
/* =====================================================
   CONTRACTOR VISIBILITY - PREMIUM SEO AUDIT POPUP
   Brand: Navy #132855 | Gold #C8A25A
===================================================== */

#cvAuditPopup {
    --cv-navy: #132855;
    --cv-gold: #C8A25A;
    --cv-white: #ffffff;
    --cv-muted: #b8c3d6;

    font-family: 'Manrope', Arial, sans-serif;
    box-sizing: border-box;
}

#cvAuditPopup *,
#cvAuditPopup *::before,
#cvAuditPopup *::after {
    box-sizing: border-box;
}

#cvAuditPopup[hidden],
#cvAuditPopup [hidden] {
    display: none !important;
}

/* ================= OVERLAY ================= */

#cvAuditPopup.cv-audit-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(5, 12, 27, 0.78);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    overflow-y: auto;
    overscroll-behavior: contain;
    animation: cvAuditFadeIn 0.3s ease both;
}

/* ================= MODAL ================= */

#cvAuditPopup .cv-audit-modal {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 540px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 38px;
    margin: auto;
    border: 1px solid rgba(200, 162, 90, 0.28);
    border-radius: 24px;

    background:
        radial-gradient(
            ellipse at top right,
            rgba(200, 162, 90, 0.08),
            transparent 48%
        ),
        linear-gradient(
            145deg,
            #142747 0%,
            #101d35 50%,
            #0c172c 100%
        );

    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.45),
        0 0 45px rgba(19, 40, 85, 0.18);

    text-align: left;
    animation: cvAuditModalIn 0.4s
        cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Premium top accent */

#cvAuditPopup .cv-audit-modal::before {
    content: "";
    position: absolute;
    top: 0;
    left: 15%;
    width: 70%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        #C8A25A,
        transparent
    );
    pointer-events: none;
}

/* ================= CLOSE BUTTON ================= */

#cvAuditPopup .cv-audit-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: #b8c3d6;
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}

#cvAuditPopup .cv-audit-close:hover {
    background: rgba(200, 162, 90, 0.12);
    border-color: rgba(200, 162, 90, 0.4);
    color: #ffffff;
    transform: rotate(90deg);
}

/* ================= GIFT ICON ================= */

#cvAuditPopup .cv-audit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 0 22px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;

    background: linear-gradient(
        145deg,
        #e2c58b,
        #C8A25A,
        #b58a40
    );

    color: #132855;
    box-shadow: 0 8px 24px rgba(200, 162, 90, 0.18);
}

/* ================= EYEBROW ================= */

#cvAuditPopup .cv-audit-eyebrow {
    display: block;
    margin: 0 0 10px;
    color: #dfbd7a;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

/* ================= HEADING ================= */

#cvAuditPopup .cv-audit-modal h2 {
    margin: 0 0 14px;
    padding: 0;
    color: #ffffff;
    font-family: inherit;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.9px;
    text-transform: none;
}

/* ================= DESCRIPTION ================= */

#cvAuditPopup .cv-audit-description {
    margin: 0 0 25px;
    padding: 0;
    color: #b8c3d6;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
}

/* ================= FORM ================= */

#cvAuditPopup #cvAuditForm {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

#cvAuditPopup .cv-audit-input-wrap {
    position: relative;
    width: 100%;
    margin-bottom: 13px;
}

#cvAuditPopup .cv-audit-input-wrap input {
    display: block;
    width: 100%;
    height: 54px;
    margin: 0;
    padding: 0 17px;
    border: 1px solid rgba(184, 195, 214, 0.2);
    border-radius: 11px;
    outline: none;
    background: #091326;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: normal;
    box-shadow: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

#cvAuditPopup .cv-audit-input-wrap input::placeholder {
    color: #8492aa;
    opacity: 1;
}

#cvAuditPopup .cv-audit-input-wrap input:focus {
    border-color: #C8A25A;
    box-shadow: 0 0 0 3px rgba(200, 162, 90, 0.12);
}

#cvAuditPopup .cv-audit-input-wrap input:-webkit-autofill {
    -webkit-text-fill-color: #ffffff;
    -webkit-box-shadow: 0 0 0 1000px #091326 inset;
    caret-color: #ffffff;
}

/* ================= SUBMIT BUTTON ================= */

#cvAuditPopup .cv-audit-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 54px;
    margin: 0;
    padding: 14px 20px;
    border: 1px solid transparent;
    border-radius: 11px;

    background: linear-gradient(
        110deg,
        #d9b978,
        #C8A25A
    );

    color: #132855;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    cursor: pointer;

    box-shadow: 0 6px 20px rgba(200, 162, 90, 0.15);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

#cvAuditPopup .cv-audit-submit:hover:not(:disabled) {
    background: linear-gradient(
        110deg,
        #e8cb92,
        #d5af66
    );

    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(200, 162, 90, 0.25);
}

#cvAuditPopup .cv-audit-submit:active:not(:disabled) {
    transform: translateY(0);
}

#cvAuditPopup .cv-audit-submit svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

#cvAuditPopup .cv-audit-submit:hover:not(:disabled) svg {
    transform: translateX(3px);
}

#cvAuditPopup .cv-audit-submit:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

/* Keyboard accessibility */

#cvAuditPopup button:focus-visible {
    outline: 2px solid #e2c58b;
    outline-offset: 4px;
}

/* ================= TRUST TEXT ================= */

#cvAuditPopup .cv-audit-trust {
    margin: 17px 0 0;
    padding: 0;
    color: #a6b3c9;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
    text-align: center;
}

/* ================= FORM MESSAGE ================= */

#cvAuditPopup .cv-audit-message {
    margin-top: 12px;
    color: #fca5a5;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

#cvAuditPopup .cv-audit-message:empty {
    display: none;
}

#cvAuditPopup .cv-audit-message.is-success {
    color: #86efac;
}

#cvAuditPopup .cv-audit-message.is-error {
    color: #fca5a5;
}

/* ================= SPAM PROTECTION ================= */

#cvAuditPopup .cv-audit-honeypot {
    display: none !important;
}

/* ================= SUCCESS SCREEN ================= */

#cvAuditPopup .cv-audit-success {
    padding: 15px 0 5px;
    text-align: center;
}

#cvAuditPopup .cv-audit-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: linear-gradient(
        145deg,
        #e2c58b,
        #C8A25A
    );
    color: #132855;
    box-shadow: 0 0 35px rgba(200, 162, 90, 0.18);
}

#cvAuditPopup .cv-audit-success h2 {
    margin-bottom: 12px;
}

#cvAuditPopup .cv-audit-success p {
    margin: 0 0 25px;
    color: #b8c3d6;
    font-size: 15px;
    line-height: 1.7;
}

/* ================= BODY SCROLL LOCK ================= */

body.cv-audit-popup-open {
    overflow: hidden !important;
}

/* ================= ANIMATIONS ================= */

@keyframes cvAuditFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes cvAuditModalIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ================= MOBILE RESPONSIVE ================= */

@media (max-width: 575px) {

    #cvAuditPopup.cv-audit-overlay {
        padding: 16px;
    }

    #cvAuditPopup .cv-audit-modal {
        max-width: 100%;
        max-height: calc(100dvh - 32px);
        padding: 28px 23px;
        border-radius: 20px;
    }

    #cvAuditPopup .cv-audit-close {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
    }

    #cvAuditPopup .cv-audit-icon {
        width: 46px;
        height: 46px;
        margin-bottom: 18px;
        border-radius: 13px;
    }

    #cvAuditPopup .cv-audit-eyebrow {
        font-size: 9px;
        letter-spacing: 1.5px;
    }

    #cvAuditPopup .cv-audit-modal h2 {
        font-size: 24px;
        line-height: 1.3;
        letter-spacing: -0.6px;
    }

    #cvAuditPopup .cv-audit-description {
        font-size: 14px;
        line-height: 1.65;
        margin-bottom: 21px;
    }

    #cvAuditPopup .cv-audit-input-wrap input {
        height: 52px;
        font-size: 16px;
    }

    #cvAuditPopup .cv-audit-submit {
        min-height: 52px;
        font-size: 14px;
        padding: 12px 15px;
    }

    #cvAuditPopup .cv-audit-trust {
        font-size: 11px;
        margin-top: 14px;
    }
}

@media (max-width: 360px) {

    #cvAuditPopup .cv-audit-modal {
        padding: 25px 18px;
    }

    #cvAuditPopup .cv-audit-modal h2 {
        font-size: 21px;
    }
}

/* ================= REDUCED MOTION ================= */

@media (prefers-reduced-motion: reduce) {

    #cvAuditPopup,
    #cvAuditPopup * {
        animation: none !important;
        transition: none !important;
    }
}



/* ==========================================
   FINAL POPUP TYPOGRAPHY & SPACING FIX
========================================== */

#cvAuditPopup .cv-audit-modal {
    max-width: 500px;
    padding: 30px 32px;
    border-radius: 22px;
}

#cvAuditPopup .cv-audit-modal h2 {
    font-size: 28px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.7px !important;
    word-spacing: normal !important;
    margin: 0 0 12px !important;
}

#cvAuditPopup .cv-audit-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 16px;
    border-radius: 13px;
}

#cvAuditPopup .cv-audit-eyebrow {
    font-size: 10px !important;
    letter-spacing: 1.5px;
    margin-bottom: 9px;
}

#cvAuditPopup .cv-audit-description {
    font-size: 14px !important;
    line-height: 1.65 !important;
    margin-bottom: 20px;
}

#cvAuditPopup .cv-audit-input-wrap input {
    font-size: 14px !important;
    height: 48px;
}

#cvAuditPopup .cv-audit-submit {
    font-size: 14px !important;
    min-height: 48px;
    padding: 12px 16px;
}

#cvAuditPopup .cv-audit-trust {
    font-size: 11px !important;
    margin-top: 13px;
}

#cvAuditPopup .cv-audit-close {
    width: 30px;
    height: 30px;
    font-size: 20px !important;
}

/* Mobile responsive */

@media (max-width: 575px) {

    #cvAuditPopup .cv-audit-modal {
        max-width: 100%;
        padding: 26px 22px;
        border-radius: 18px;
    }

    #cvAuditPopup .cv-audit-modal h2 {
        font-size: 23px !important;
        line-height: 1.35 !important;
    }

    #cvAuditPopup .cv-audit-description {
        font-size: 13px !important;
    }

    #cvAuditPopup .cv-audit-input-wrap input {
        font-size: 16px !important;
    }

    #cvAuditPopup .cv-audit-submit {
        font-size: 13px !important;
    }
}

