@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Public-facing CSS for AEC Equipment Certificates */

/* --- VERIFICATION INTERFACE STYLING --- */
.aec-verifier-container {
    max-width: 650px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    border: 1px solid #f0f0f1;
}

.aec-verifier-header {
    text-align: center;
    margin-bottom: 25px;
}

.aec-verifier-header h3 {
    font-size: 22px;
    color: #1a252f;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.aec-verifier-header p {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0;
}

/* Form Styles */
.aec-verifier-form-group {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.aec-verifier-input {
    flex-grow: 1;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    color: #2d3748;
    background-color: #fff;
    outline: none;
    transition: all 0.25s ease;
}

.aec-verifier-input:focus {
    border-color: #e25c1d;
    box-shadow: 0 0 0 3px rgba(226, 92, 29, 0.15);
}

.aec-verifier-submit {
    background-color: #e25c1d;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0 26px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.aec-verifier-submit:hover {
    background-color: #c94f18;
}

/* Status Messages */
.aec-status-box {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.aec-status-valid {
    background-color: #e6f7ec;
    color: #0b7840;
    border: 1px solid #c2eed3;
}

.aec-status-expired {
    background-color: #fff1f1;
    color: #c92424;
    border: 1px solid #ffd1d1;
}

.aec-status-notfound {
    background-color: #f7fafc;
    color: #4a5568;
    border: 1px solid #edf2f7;
}

.aec-status-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

/* Result Table and Actions */
.aec-result-details {
    background-color: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.aec-result-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

.aec-result-table th,
.aec-result-table td {
    padding: 10px 12px;
    text-align: left;
    font-size: 14px;
}

.aec-result-table th {
    font-weight: 600;
    color: #718096;
    width: 35%;
}

.aec-result-table td {
    color: #2d3748;
}

.aec-result-table tr:not(:last-child) {
    border-bottom: 1px solid #edf2f7;
}

.aec-action-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.aec-btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #1a252f;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.aec-btn-download:hover {
    background-color: #0c131a;
    color: #fff;
}

/* --- DYNAMIC CERTIFICATE PRINT LAYOUT (A4 PORTRAIT) --- */

/* Parent layout for display on web, overrides when printing */
#aec-certificate-print-wrapper {
    background-color: #f0f2f5;
    padding: 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.aec-certificate-a4 {
    width: 210mm;
    height: 297mm;
    background-color: #ffffff;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    box-sizing: border-box;
    overflow: hidden;
    padding: 10mm; /* Standard margin around the double border */
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1a252f;
}

/* Elegant Vector-Sharp Double Borders */
.aec-cert-border-outer {
    border: 3px solid #e25c1d;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 2.5mm;
}

.aec-cert-border-inner {
    border: 1px solid #e25c1d;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 8mm 10mm 42mm 10mm; /* Large bottom padding reserves space to prevent any content overlaps with footer stamp/signatures */
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Header, Logo, and Dividers */
.aec-cert-header {
    text-align: center;
    margin-bottom: 3.5mm;
    position: relative;
    z-index: 2;
}

.aec-cert-logo-img {
    width: 90mm;
    height: auto;
    display: block;
    margin: 0 auto 3mm auto;
}

.aec-cert-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3mm;
    margin-bottom: 3mm;
}

.aec-divider-line {
    height: 1px;
    background-color: #e25c1d;
    width: 35mm;
}

.aec-divider-diamond {
    color: #e25c1d;
    font-size: 8pt;
}

.aec-cert-main-heading {
    font-family: 'Outfit', 'Inter', serif;
    font-size: 21pt;
    font-weight: 900;
    color: #0d1e3d; /* Premium Navy */
    letter-spacing: 1px;
    margin: 0 0 1.5mm 0;
    text-transform: uppercase;
}

.aec-cert-fitness-heading {
    font-size: 14pt;
    font-weight: 800;
    color: #e25c1d; /* Brand Orange */
    margin: 0;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Fitness text statement */
.aec-cert-statement {
    text-align: center;
    font-size: 9.5pt;
    line-height: 1.45;
    color: #34495e;
    max-width: 175mm;
    margin: 0 auto 4mm auto; /* Spaced perfectly under vector headings */
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.aec-cert-statement strong {
    color: #c0392b; /* Bold red for report details */
}

.aec-cert-header-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3mm;
    margin-bottom: 2mm; /* Streamlined meta gap */
    position: relative;
    z-index: 2;
}

.aec-meta-box {
    border: 1px solid #e25c1d;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.85);
    padding: 1.5mm;
    display: flex;
    align-items: center;
    gap: 2mm;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.aec-meta-icon {
    width: 7mm;
    height: 7mm;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff5f0;
    border-radius: 4px;
}

.aec-meta-icon svg {
    width: 4.5mm;
    height: 4.5mm;
    fill: #e25c1d;
}

.aec-meta-text {
    display: flex;
    flex-direction: column;
}

.aec-meta-label {
    font-size: 6.5pt;
    text-transform: uppercase;
    color: #7f8c8d;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.aec-meta-val {
    font-size: 9pt;
    font-weight: 700;
    color: #2c3e50;
    margin-top: 0.2mm;
}

/* --- EQUIPMENT DETAILS TABLE --- */
.aec-details-section {
    margin-bottom: 2mm; /* Streamlined details gap */
    position: relative;
    z-index: 2;
}

.aec-section-title-bar {
    background-color: #e25c1d;
    color: #ffffff;
    font-size: 8pt;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    padding: 1.5mm 0;
    border-radius: 4px;
    letter-spacing: 0.8px;
    margin-bottom: 1.5mm;
}

.aec-details-table {
    width: 100%;
    border: 1.5px solid #bdc3c7;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.9);
}

.aec-details-table tr {
    border-bottom: 1px solid #ecf0f1;
}

.aec-details-table tr:last-child {
    border-bottom: none;
}

.aec-details-table td {
    padding: 1.0mm 3mm; /* Compact row cell padding saves height */
    font-size: 9pt;
    color: #2c3e50;
}

.aec-details-table td.label-cell {
    font-weight: 700;
    width: 42%;
    color: #2c3e50;
}

.aec-details-table td.separator-cell {
    width: 3%;
    text-align: center;
    font-weight: 700;
    color: #7f8c8d;
    padding-left: 0;
    padding-right: 0;
}

.aec-details-table td.value-cell {
    font-weight: 600;
    color: #000000;
}

/* --- SCOPE AND CONDITION SECTION --- */
.aec-columns-grid {
    display: grid;
    grid-template-columns: 43% 57%;
    gap: 4mm;
    margin-bottom: 2mm; /* Streamlined section gap */
    position: relative;
    z-index: 2;
}

.aec-panel {
    display: flex;
    flex-direction: column;
}

.aec-panel-border {
    border: 1.5px solid #bdc3c7;
    border-radius: 4px;
    padding: 1.5mm 3mm; /* Compact padding */
    flex-grow: 1;
    background-color: rgba(255, 255, 255, 0.9);
}

/* Scope checklist items */
.aec-scope-list {
    display: flex;
    flex-direction: column;
    gap: 1.2mm; /* Compact checklist gap */
    margin-top: 1mm;
}

.aec-scope-item {
    display: flex;
    align-items: center;
    gap: 2.5mm;
    font-size: 9pt;
    font-weight: 700;
    color: #2c3e50;
}

.aec-checkbox-circle {
    width: 4.5mm;
    height: 4.5mm;
    background-color: #27ae60;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.aec-checkbox-circle svg {
    width: 2.5mm;
    height: 2.5mm;
    fill: #ffffff;
}

/* Condition found checklist and repairs */
.aec-cond-header-status {
    font-size: 9pt;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 2mm;
}

.aec-cond-header-status span {
    color: #27ae60;
    font-weight: 800;
}

.aec-cond-list {
    margin: 0;
    padding-left: 5mm;
    font-size: 8.5pt;
    line-height: 1.45;
    color: #2c3e50;
}

.aec-cond-list li {
    margin-bottom: 0.8mm;
    font-weight: 600;
}

.aec-repairs-bar {
    margin-top: 1.5mm; /* Compact repairs spacing */
    border-top: 1.5px solid #edf2f7;
    padding-top: 1.5mm;
    font-size: 9pt;
    font-weight: 800;
    color: #2c3e50;
}

.aec-repairs-bar span {
    color: #c0392b;
    margin-left: 1mm;
    font-weight: 900;
}

/* --- BOTTOM TRUST/SHIELD BAR --- */
.aec-compliance-bar {
    border: 1.5px solid #2980b9;
    border-radius: 4px;
    background: rgba(235, 245, 251, 0.95);
    padding: 1.5mm 2.5mm; /* Compact compliance bar */
    display: flex;
    align-items: center;
    gap: 4mm;
    margin-bottom: 2mm; /* Compact bottom gap */
    position: relative;
    z-index: 2;
}

.aec-compliance-icon {
    width: 9mm;
    height: 9mm;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #2980b9;
    border-radius: 4px;
}

.aec-compliance-icon svg {
    width: 6mm;
    height: 6mm;
    fill: #ffffff;
}

.aec-compliance-text {
    flex-grow: 1;
}

.aec-compliance-text p {
    margin: 0;
    font-size: 8.5pt;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.35;
}

.aec-compliance-text p.red-text {
    color: #c0392b;
    font-weight: 800;
    margin-top: 0.5mm;
}

/* --- SIGNATURES & STAMP AREA (BOTTOM FOOTER OVERLAY) --- */
.aec-footer-row {
    position: absolute;
    bottom: 3mm; /* Positioned right on the edge of the inner border frame */
    left: 15mm;
    right: 15mm;
    display: grid;
    grid-template-columns: 35% 30% 35%;
    align-items: end;
    z-index: 3;
}

.aec-signature-panel {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.aec-inspector-name {
    font-size: 11pt;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 1.5mm;
}

.aec-signature-line {
    border-top: 1.5px solid #34495e;
    width: 100%;
    margin-bottom: 1.5mm;
}

.aec-signature-title {
    font-size: 7.5pt;
    font-weight: 800;
    color: #e25c1d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Premium Blend Dynamic Hand-Stamped Center Spacing */
.aec-stamp-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 25mm;
    position: relative;
    z-index: 3;
}

.aec-cert-stamp-img {
    width: 34mm;
    height: auto;
    opacity: 0.95;
    transform: rotate(-4deg); /* Realistic hand-stamped angle! */
    mix-blend-mode: multiply; /* Fuses the stamp perfectly on standard paper background! */
}

/* QR Code styling */
.aec-qr-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.aec-qr-container {
    width: 25mm;
    height: 25mm;
    background-color: #ffffff;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    padding: 1.2mm;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Library target canvas/img scaling */
.aec-qr-container img,
.aec-qr-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.aec-qr-text {
    font-size: 7.5pt;
    font-weight: 800;
    color: #2c3e50;
    margin-top: 1.5mm;
    text-align: right;
    letter-spacing: 0.2px;
}

/* Print controls overlay on web view */
.aec-print-control-bar {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 9999;
}

.aec-btn-action {
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.aec-btn-print {
    background-color: #e25c1d;
    color: #ffffff;
    border: none;
}

.aec-btn-print:hover {
    background-color: #c94f18;
}

.aec-btn-back {
    background-color: #ffffff;
    color: #2d3748;
    border: 1px solid #e2e8f0;
}

.aec-btn-back:hover {
    background-color: #f7fafc;
}


/* --- CSS @MEDIA PRINT CONFIGURATION FOR PIXEL-PERFECT PDF SAVE --- */
@media print {
    /* Hide WordPress core layout, navigation elements, admin bars, and back buttons */
    #wpadminbar, header, footer, nav, sidebar, .print-preview-sidebar, .aec-print-control-bar {
        display: none !important;
    }

    body, html {
        margin: 0 !important;
        padding: 0 !important;
        background-color: #ffffff !important;
    }

    #aec-certificate-print-wrapper {
        background-color: #ffffff !important;
        padding: 0 !important;
        margin: 0 !important;
        min-height: auto !important;
        display: block !important;
    }

    .aec-certificate-a4 {
        box-shadow: none !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        margin: 0 !important;
        width: 210mm !important;
        height: 297mm !important;
        page-break-inside: avoid !important;
        page-break-after: avoid !important;
        /* Ensure background image loads in print */
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        background-color: #ffffff !important;
    }

    /* Standard clean sheet sizing */
    @page {
        size: A4 portrait;
        margin: 0;
    }
}

/* --- FRONTEND STAFF DASHBOARD & LOGIN PORTAL STYLING --- */

.aec-dashboard-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    box-sizing: border-box;
}

/* Stylish Compact Login Card */
.aec-login-container {
    max-width: 480px;
    margin: 80px auto;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px rgba(13, 30, 61, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02);
    padding: 40px;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

.aec-login-container:hover {
    transform: translateY(-2px);
}

.aec-login-form .aec-meta-field label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: #34495e;
}

/* Logged-In Frontend Dashboard Layout */
.aec-frontend-dashboard {
    width: 100%;
    box-sizing: border-box;
}

/* Top Navigation and Inspector Badge Row */
.aec-dashboard-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #0d1e3d 0%, #1e3a68 100%);
    padding: 15px 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(13, 30, 61, 0.15);
    flex-wrap: wrap;
    gap: 15px;
}

.aec-user-badge {
    display: flex;
    align-items: center;
    gap: 15px;
}

.aec-user-icon {
    font-size: 24px;
    background: rgba(255, 255, 255, 0.1);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.aec-user-meta {
    display: flex;
    flex-direction: column;
}

.aec-user-meta strong {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
}

.aec-user-meta span {
    color: #cbd5e1;
    font-size: 12px;
}

.aec-logout-btn {
    background-color: transparent;
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.aec-logout-btn:hover {
    background-color: #e25c1d;
    border-color: #e25c1d;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(226, 92, 29, 0.25);
    transform: translateY(-1px);
}

/* Wide, Clean Certificate Generator Form Card */
.aec-form-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    padding: 40px;
    box-sizing: border-box;
}

.aec-form-card-header {
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 25px;
    margin-bottom: 30px;
}

.aec-form-card-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #0d1e3d;
    margin: 0 0 8px 0;
}

.aec-form-card-header p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.aec-form-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #0d1e3d;
    margin: 35px 0 20px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #edf2f7;
    position: relative;
    letter-spacing: 0.5px;
}

.aec-form-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #e25c1d;
}

/* Grids for Columns Layout */
.aec-form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .aec-form-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .aec-form-grid-3 {
        grid-template-columns: 1fr;
    }
}

.aec-form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .aec-form-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Form Fields and Inputs */
.aec-meta-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.aec-meta-field label {
    font-size: 14px;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 8px;
}

.aec-meta-field label .aec-required {
    color: #e74c3c;
    font-weight: bold;
    margin-left: 2px;
}

/* Checkbox Selection Grid */
.aec-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    border-radius: 8px;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .aec-checkbox-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .aec-checkbox-grid {
        grid-template-columns: 1fr;
    }
}

.aec-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    cursor: pointer;
    padding: 12px 15px;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-bottom: 0 !important;
}

.aec-checkbox-item:hover {
    border-color: #e25c1d;
    background: #fffdfb !important;
}

.aec-checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #e25c1d;
    cursor: pointer;
    margin: 0;
}

/* Form Submit Bar and Buttons */
.aec-submit-bar {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f1f5f9;
    text-align: right;
}

.aec-submit-bar button[type="submit"] {
    background: linear-gradient(135deg, #e25c1d 0%, #ff7a38 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 14px 45px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(226, 92, 29, 0.3) !important;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.aec-submit-bar button[type="submit"]:hover {
    background: linear-gradient(135deg, #c94f18 0%, #e25c1d 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(226, 92, 29, 0.4) !important;
}

.aec-submit-bar button[type="submit"]:active {
    transform: translateY(1px) !important;
}

/* Success Notice Box overrides for Dashboard */
.aec-status-box.aec-status-valid {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
    text-align: left;
    align-items: flex-start;
    position: relative;
}

.aec-status-box.aec-status-valid .aec-status-icon {
    background: #10b981;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
}

.aec-success-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.aec-success-actions .aec-btn-print {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2) !important;
}

.aec-success-actions .aec-btn-print:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3) !important;
}

.aec-success-actions .aec-btn-back {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    transition: all 0.2s ease;
}

.aec-success-actions .aec-btn-back:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
    transform: translateY(-1px);
}

/* Premium Enhancements for Form Inputs */
select.aec-verifier-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23718096' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 40px !important;
    cursor: pointer;
}

textarea.aec-verifier-input {
    font-family: inherit;
    line-height: 1.5;
}

/* --- FRONTEND HOME LANDING PAGE SPECIFIC STYLING --- */

.aec-home-container {
    width: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #2d3748;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

.aec-home-hero {
    position: relative;
    width: 100%;
    min-height: 650px;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
    box-sizing: border-box;
    padding: 100px 20px;
}

.aec-home-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 30, 61, 0.65); /* Elegant dark navy opacity mask */
    z-index: 1;
}

.aec-home-hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin: 0 auto;
}

.aec-home-hero-content h1 {
    font-family: 'Inter', sans-serif;
    font-size: 52px;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

@media (max-width: 768px) {
    .aec-home-hero-content h1 {
        font-size: 36px;
    }
}

.aec-hr-light {
    max-width: 65px;
    border: 2px solid #f05f40 !important;
    margin: 25px auto !important;
    opacity: 1 !important;
    height: 0 !important;
}

.aec-hr-primary {
    max-width: 65px;
    border: 2px solid #f05f40 !important;
    margin: 25px auto !important;
    opacity: 1 !important;
    height: 0 !important;
}

.aec-home-hero-content p {
    font-size: 19px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 auto 40px auto;
    font-weight: 300;
    max-width: 750px;
}

/* Premium Buttons */
.aec-home-btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-sizing: border-box;
}

.aec-home-btn-primary {
    background: #f05f40 !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(240, 95, 64, 0.4) !important;
}

.aec-home-btn-primary:hover {
    background: #eb3812 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(240, 95, 64, 0.5) !important;
}

.aec-home-btn-white {
    background: #ffffff !important;
    color: #f05f40 !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

.aec-home-btn-white:hover {
    background: #f8fafc !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1) !important;
}

/* About Section */
.aec-home-about {
    background-color: #f05f40;
    color: #ffffff;
    padding: 90px 20px;
    text-align: center;
    box-sizing: border-box;
}

.aec-home-inner {
    max-width: 1100px;
    margin: 0 auto;
    box-sizing: border-box;
}

.aec-home-about h2 {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 15px 0;
    text-transform: uppercase;
}

.aec-home-about p {
    font-size: 18px;
    line-height: 1.8;
    max-width: 850px;
    margin: 0 auto 35px auto;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

/* Services Section */
.aec-home-services {
    background-color: #ffffff;
    padding: 100px 20px;
    text-align: center;
    box-sizing: border-box;
}

.aec-home-services h2 {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #0d1e3d;
    margin: 0 0 15px 0;
    text-transform: uppercase;
}

.aec-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 50px;
    text-align: left;
}

@media (max-width: 768px) {
    .aec-services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.aec-service-card {
    background: #f8fafc;
    padding: 45px 35px;
    border-radius: 16px;
    border: 1px solid #edf2f7;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.aec-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(13, 30, 61, 0.06);
    border-color: rgba(240, 95, 64, 0.3);
}

.aec-service-icon {
    font-size: 40px;
    margin-bottom: 20px;
    background-color: rgba(240, 95, 64, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.aec-service-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0d1e3d;
    margin: 0 0 15px 0;
}

.aec-service-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #4a5568;
    margin: 0;
}

.aec-service-list {
    margin: 15px 0 0 20px;
    padding: 0;
    font-size: 14px;
    color: #4a5568;
}

.aec-service-list li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Portfolio Grid */
.aec-home-portfolio {
    background-color: #f8fafc;
    padding: 0;
}

.aec-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    width: 100%;
}

@media (max-width: 900px) {
    .aec-portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .aec-portfolio-grid {
        grid-template-columns: 1fr;
    }
}

.aec-portfolio-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    width: 100%;
    margin: 0;
    padding: 0;
}

.aec-portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.aec-portfolio-card:hover img {
    transform: scale(1.06);
}

.aec-portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(240, 95, 64, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    padding: 20px;
    box-sizing: border-box;
}

.aec-portfolio-card:hover .aec-portfolio-overlay {
    opacity: 1;
}

.aec-portfolio-info {
    text-align: center;
    color: #ffffff;
}

.aec-portfolio-category {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 6px;
}

.aec-portfolio-title {
    display: block;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Call to Action Profile Banner */
.aec-home-profile-cta {
    background: linear-gradient(135deg, #1a252f 0%, #0d1e3d 100%);
    color: #ffffff;
    padding: 85px 20px;
    text-align: center;
    box-sizing: border-box;
}

.aec-home-profile-cta h2 {
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 25px 0;
    letter-spacing: 0.5px;
}

/* Glowing Profile Button Keyframes */
@keyframes aec-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.aec-glow-btn {
    animation: aec-glow 2s infinite;
}

/* Contact Section */
.aec-home-contact {
    background-color: #ffffff;
    padding: 100px 20px;
    text-align: center;
    box-sizing: border-box;
}

.aec-home-contact h2 {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #0d1e3d;
    margin: 0 0 15px 0;
    text-transform: uppercase;
}

.aec-home-contact p {
    font-size: 16px;
    color: #718096;
    margin: 0 0 35px 0;
}

.aec-contact-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.aec-contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.aec-contact-icon {
    font-size: 32px;
    color: #f05f40;
    background-color: rgba(240, 95, 64, 0.1);
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.aec-contact-card p a {
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    color: #2d3748;
    transition: color 0.2s ease;
}

.aec-contact-card p a:hover {
    color: #f05f40;
}



