/**
 * CRO page CTA audit form only. Loaded from template-cro.php.
 * Do not attach this file to other templates.
 */
#cro-main #contact,
#cro-main #cro-cta-audit {
    scroll-margin-top: 110px;
}

#cro-main .cro-cta-audit .section-title {
    margin-bottom: 18px;
}

#cro-main .cro-cta-audit .section-description {
    max-width: 540px;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 32px;
}

#cro-main .cro-cta-audit__points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
    max-width: 560px;
}

#cro-main .cro-cta-audit__point {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

#cro-main .cro-cta-audit__icon {
    flex: 0 0 28px;
    color: #c4a0ff;
    line-height: 0;
    margin-top: 2px;
}

#cro-main .cro-cta-audit__point p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    line-height: 1.45;
}

#cro-main .cro-cta-audit__form {
    padding: 28px 28px 22px;
    border-radius: 18px;
    border: 1px solid #7500ff !important;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(117, 0, 255, 0.18),
        0 0 40px rgba(117, 0, 255, 0.22);
}

#cro-main .cro-cta-audit__form .cta-form-header h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0;
    text-transform: none;
}

#cro-main .cro-cta-audit-form .cro-cta-audit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

#cro-main .cro-cta-audit-form .cro-cta-audit-field--full {
    grid-column: 1 / -1;
}

#cro-main .cro-cta-audit-form label,
#cro-main .cro-cta-audit-form .form-label {
    display: none;
}

#cro-main .cro-cta-audit-form input:not([type="submit"]):not([type="hidden"]) {
    margin-bottom: 0;
    min-height: 46px;
    font-size: 14px;
}

#cro-main .cro-cta-audit-form .wpcf7-submit,
#cro-main .cro-cta-audit-form input[type="submit"] {
    width: 100%;
    margin-top: 4px;
    background: #7500ff !important;
    color: #ffffff !important;
    text-transform: none;
    letter-spacing: 0;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    padding: 14px 16px;
}

#cro-main .cro-cta-audit__badge-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 18px;
}

#cro-main .cro-cta-audit__left-badge {
    display: block;
    width: auto;
    max-width: 168px;
    height: auto;
    margin: 0;
}

#cro-main .cro-cta-audit__know-more {
    display: inline-flex;
    align-items: center;
    color: #b57aff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-decoration: none;
    background: rgba(181, 122, 255, 0.16);
    border: 1px solid rgba(181, 122, 255, 0.45);
    border-radius: 999px;
    padding: 4px 10px;
}

#cro-main .cro-cta-audit__know-more:hover,
#cro-main .cro-cta-audit__know-more:focus {
    color: #d2b3ff;
    background: rgba(181, 122, 255, 0.28);
    border-color: rgba(210, 179, 255, 0.7);
}

#cro-main .cro-cta-audit__logos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    gap: 10px 12px;
    margin-top: 18px;
}

#cro-main .cro-cta-audit__logos img {
    width: auto;
    max-width: 100%;
    height: 46px;
    object-fit: contain;
    filter: brightness(0) invert(1) contrast(1.15);
    opacity: 1;
}

@media (max-width: 767.98px) {
    #cro-main .cro-cta-audit__points,
    #cro-main .cro-cta-audit-form .cro-cta-audit-grid {
        grid-template-columns: 1fr;
    }

    #cro-main .cro-cta-audit__logos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 16px;
    }
}

/* Keep hero + CTA fields after submit; thank-you sits under the form. */
#cro-main .cro-hero-audit-visual form.sent .form-group,
#cro-main .cro-hero-audit-visual .glass-panel:has(form.sent) header,
#cro-main .cro-hero-audit-visual form.sent .cro-audit-submit-btn,
#cro-main .cro-hero-audit-visual form.sent .input-grid,
#cro-main .cro-hero-audit-visual form.sent .auth-box,
#cro-main .cro-hero-audit-visual form.sent .primary-btn,
#cro-main .cro-hero-audit-visual form.sent .privacy-text,
#cro-main .cro-cta-audit-form.sent .cro-cta-audit-grid,
#cro-main .cro-cta-audit-form.sent .wpcf7-submit,
#cro-main .cro-cta-audit-form.sent input[type="submit"] {
    display: revert !important;
}

#cro-main .cro-hero-audit-visual form.sent .input-grid {
    display: grid !important;
}

#cro-main .cro-hero-audit-visual form.sent .wpcf7-response-output,
#cro-main .cro-cta-audit-form.sent .wpcf7-response-output {
    display: block !important;
    position: static !important;
    order: 99;
    margin: 16px 0 0 !important;
    padding: 12px 14px !important;
    border: 1px solid rgba(167, 139, 250, 0.45) !important;
    border-radius: 12px !important;
    background: rgba(12, 10, 18, 0.55) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.55 !important;
    text-align: left !important;
}
