/* =============================================================
   Home-page qualify-and-route popup (.fsq-* = FindaSAP Quiz)
   Self-contained + namespaced so nothing bleeds into the rest
   of the home page. Loaded only on template-landing-page.php.
   ============================================================= */

.fsq-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.72);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}
.fsq-overlay.is-open { display: flex; }

.fsq-modal {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #1c1d21;
    color: #f4f4f5;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    padding: 30px 24px 24px;
    font-family: var(--ft-font-body, 'Open Sans', Arial, sans-serif);
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
.fsq-modal.is-wide { max-width: 620px; }

.fsq-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease;
}
.fsq-close:hover { background: rgba(255, 255, 255, 0.18); }

.fsq-dots { display: flex; gap: 6px; margin-bottom: 18px; }
.fsq-dot {
    width: 22px;
    height: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.18);
    transition: background 0.2s ease;
}
.fsq-dot.is-on { background: #FECF04; }

.fsq-screen { display: none; }
.fsq-screen.is-active { display: block; }

.fsq-title {
    font-family: var(--ft-font-heading, 'Montserrat', Arial, sans-serif);
    font-size: 22px;
    line-height: 1.25;
    font-weight: 800;
    margin: 0 0 16px;
    color: #fff;
    outline: none;
}
.fsq-sub {
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
    margin: -6px 0 18px;
}
.fsq-group-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.5);
    margin: 18px 0 8px;
}

.fsq-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 14px 18px;
    margin: 0 0 10px;
    font-family: var(--ft-font-heading, 'Montserrat', Arial, sans-serif);
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease;
}
.fsq-btn:active { transform: translateY(1px); }
.fsq-btn--primary { background: #FECF04; color: #161616; }
.fsq-btn--primary:hover { background: #e5bb03; }
.fsq-btn--ghost {
    background: transparent;
    color: #f4f4f5;
    border-color: rgba(255, 255, 255, 0.25);
}
.fsq-btn--ghost:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.04);
}

.fsq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.fsq-grid--cities { grid-template-columns: repeat(3, 1fr); }
.fsq-pill {
    display: block;
    padding: 10px 8px;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: #f4f4f5;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9px;
    transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.fsq-pill:hover {
    background: rgba(254, 207, 4, 0.16);
    border-color: #FECF04;
    color: #fff;
}

.fsq-back {
    display: inline-block;
    margin-top: 14px;
    padding: 4px 2px;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    text-decoration: underline;
}
.fsq-back:hover { color: #fff; }

@media (max-width: 480px) {
    .fsq-modal { padding: 26px 16px 18px; border-radius: 16px; }
    .fsq-title { font-size: 19px; }
    .fsq-grid,
    .fsq-grid--cities { grid-template-columns: repeat(2, 1fr); }
}
