/**
 * NFA — Search Email Verification Styles
 * File: assets/css/nfa-search-verify.css
 *
 * Scoped entirely to .nfa-sv-* classes.
 * Uses the NFA brand colours from variable.css:
 *   --nfa-navy   : #0d1f3c
 *   --nfa-blue   : #1a3a6b
 *   --nfa-gold   : #f0a500
 *   --nfa-red    : #ef4444
 *   --nfa-green  : #22c55e
 * (Falls back to hard-coded values where CSS vars may not be loaded.)
 */

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

.nfa-sv-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(13, 31, 60, 0.72);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: nfaSvFadeIn 0.22s ease;
}

.nfa-sv-overlay--visible {
    display: flex;
}

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

/* Lock scroll while overlay is open */
.nfa-sv-body-locked {
    overflow: hidden;
}

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

.nfa-sv-overlay__box {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 24px 64px rgba(13, 31, 60, 0.28);
    max-width: 480px;
    width: 100%;
    padding: 40px 36px 32px;
    text-align: center;
    animation: nfaSvSlideUp 0.26s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

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

.nfa-sv-overlay__icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 16px;
}

.nfa-sv-overlay__title {
    font-family: inherit;
    font-size: 22px;
    font-weight: 700;
    color: #0d1f3c;
    margin: 0 0 12px;
    line-height: 1.25;
}

.nfa-sv-overlay__body {
    font-size: 14px;
    color: #475569;
    line-height: 1.7;
    margin: 0 0 24px;
}

.nfa-sv-overlay__body strong {
    color: #0d1f3c;
}

/* ================================================================
   RESEND SECTION
================================================================ */

.nfa-sv-overlay__resend {
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
    margin: 0 0 20px;
}

.nfa-sv-overlay__resend-note {
    font-size: 12px;
    margin: 8px 0 0;
    min-height: 18px;
    color: #64748b;
}

.nfa-sv-overlay__resend-note--ok {
    color: #15803d;
    font-weight: 600;
}

.nfa-sv-overlay__resend-note--err {
    color: #b91c1c;
}

/* ================================================================
   OVERLAY HINT (bottom note)
================================================================ */

.nfa-sv-overlay__hint {
    font-size: 11px;
    color: #94a3b8;
    margin: 20px 0 0;
    line-height: 1.5;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}

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

.nfa-sv-overlay__actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ================================================================
   BUTTONS
================================================================ */

.nfa-sv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border-color 0.18s, opacity 0.18s;
    border: 2px solid transparent;
    white-space: nowrap;
    text-decoration: none;
    font-family: inherit;
}

.nfa-sv-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Primary — navy fill */
.nfa-sv-btn--primary {
    background: #0d1f3c;
    color: #ffffff;
    border-color: #0d1f3c;
}
.nfa-sv-btn--primary:hover:not(:disabled) {
    background: #1a3a6b;
    border-color: #1a3a6b;
}

/* Outline — navy border */
.nfa-sv-btn--outline {
    background: transparent;
    color: #0d1f3c;
    border-color: #0d1f3c;
}
.nfa-sv-btn--outline:hover:not(:disabled) {
    background: #f0f5ff;
}

/* Ghost — light grey */
.nfa-sv-btn--ghost {
    background: #f1f5f9;
    color: #334155;
    border-color: #e2e8f0;
}
.nfa-sv-btn--ghost:hover:not(:disabled) {
    background: #e2e8f0;
}

/* ================================================================
   RESULTS GATE — blurs and hides the cards section
================================================================ */

/* GATE: while unverified, #nfaCards is NO LONGER force-hidden —
 * it now holds only the static dummy teaser cards (rendered server-side
 * in page-home.php, zero real vendor data), so it's safe and useful to
 * show. This class is kept only as a hook for the small adjustments
 * below (no real vendor markup is ever present while it's applied,
 * since $vendors is always empty server-side until verified). */
.nfa-sv-gated {
    display: block;
}

/* ================================================================
   DUMMY TEASER CARDS — shown pre-verification in place of real cards.
   Reuses .nfa-card layout/classes so the shape matches real results;
   only the values are blurred so nothing reads as real data.
================================================================ */

.nfa-dummy-cards {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.nfa-card--dummy {
    position: relative;
    pointer-events: none;
    user-select: none;
}

.nfa-card--dummy .nfa-card__req-btn {
    /* FIX: .nfa-card--dummy above sets pointer-events:none so the rest of
       the card (credit-tab badges, tags, etc.) stays inert/decorative -
       but that also blocked real mouse clicks from ever reaching THIS
       button once it got a real handleDummyReqBtnClick() handler (see
       nfa-search-verify.js). A synthetic jQuery .trigger('click') still
       "worked" because it calls the bound handler directly and skips the
       browser's actual hit-testing/pointer-events check - which is why
       this looked fine in a console test but did nothing on a real click.
       Re-enabling pointer-events here (just for this button) fixes real
       clicks without making the rest of the dummy card interactive. */
    pointer-events: auto;
    cursor: pointer;
}

/* Brief highlight pulse applied to the verification gate banner when a
   visitor clicks "Request an Estimate" on a dummy/sample card - see
   nfa-search-verify.js handleDummyReqBtnClick(). */
.nfa-sv-gate-banner--pulse {
    animation: nfaSvBannerPulse 1.4s ease;
}

@keyframes nfaSvBannerPulse {
    0%   { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45); }
    60%  { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}




/* ================================================================
   GATE BANNER — shown above the blurred cards
================================================================ */

.nfa-sv-gate-banner {
    background: #f0f5ff;
    border: 1px solid #c7d9ff;
    border-radius: 10px;
    padding: 20px 24px;
    margin: 0 auto;
	margin-bottom: 20px;
    animation: nfaSvFadeIn 0.28s ease;
}

.nfa-sv-gate-banner__inner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.nfa-sv-gate-banner__icon {
    font-size: 24px;
    flex-shrink: 0;
    line-height: 1.2;
}

.nfa-sv-gate-banner__msg {
    font-size: 14px;
    color: #1e3a6b;
    line-height: 1.65;
    margin: 0;
}

.nfa-sv-gate-banner__msg strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
    color: #0d1f3c;
}

/* ================================================================
   EXPIRED / ERROR BANNER (inline under the form)
================================================================ */

.nfa-sv-expired-banner {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    padding: 12px 18px;
    font-size: 13px;
    color: #9a3412;
    margin: 12px 0 0;
    line-height: 1.55;
    animation: nfaSvFadeIn 0.22s ease;
}

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

@media (max-width: 540px) {
    .nfa-sv-overlay__box {
        padding: 28px 20px 24px;
    }

    .nfa-sv-overlay__title {
        font-size: 18px;
    }

    .nfa-sv-overlay__icon {
        font-size: 38px;
    }

    .nfa-sv-btn {
        font-size: 12px;
        padding: 9px 16px;
    }

    .nfa-sv-gate-banner {
        padding: 16px;
    }

    .nfa-sv-gate-banner__inner {
        flex-direction: column;
        gap: 8px;
    }
}

@media only screen and (max-width:1720px){
	.nfa-sv-gate-banner{
		margin-left:20px !important;
		margin-right:20px !important;
		width:auto !important;
	}
}

@media only screen and (max-width:767px){
	.nfa-sv-gate-banner{
		margin-left:15px !important;
		margin-right:15px !important;
	}
}