/* ===== QUIZ.CSS — Childcare type quiz styles ===== */

/* ===== INTRO SCREEN ===== */
.quiz-intro {
    max-width: 540px;
    margin: 0 auto;
    padding: 5rem 2rem 4rem;
    text-align: center;
}
.quiz-intro h1 {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 2.4rem;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--black);
    margin-bottom: 0.75rem;
}
.quiz-intro .quiz-deck {
    font-size: 1.05rem;
    color: var(--gray);
    line-height: 1.65;
    margin-bottom: 2rem;
}
.quiz-start-btn {
    padding: 0.85rem 3rem;
    background: var(--pool);
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.quiz-start-btn:hover {
    background: var(--black);
}

/* ===== QUESTION STEPS ===== */
.quiz-step {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Progress bar */
.quiz-progress {
    height: 4px;
    background: var(--rule);
    margin-bottom: 2.5rem;
}
.quiz-progress__fill {
    height: 100%;
    background: var(--pool);
    transition: width 0.3s;
}

/* Step label */
.quiz-step-label {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--pool-deep);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Question text */
.quiz-question {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--black);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

/* ===== SINGLE SELECT OPTIONS ===== */
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.quiz-option {
    padding: 1rem 1.25rem;
    border: 1px solid var(--rule);
    cursor: pointer;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.88rem;
    color: var(--charcoal);
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    min-height: 52px;
    display: flex;
    align-items: center;
}
.quiz-option:hover {
    border-color: var(--charcoal);
}
.quiz-option.selected {
    border-color: var(--pool-deep);
    background: var(--cream);
    color: var(--black);
    font-weight: 500;
}

/* ===== MULTI SELECT PILLS ===== */
.quiz-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.quiz-pill {
    padding: 0.6rem 1.25rem;
    border: 1px solid var(--rule);
    cursor: pointer;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.82rem;
    color: var(--gray);
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
}
.quiz-pill:hover {
    border-color: var(--charcoal);
}
.quiz-pill.selected {
    border-color: var(--pool-deep);
    background: var(--pool);
    color: var(--white);
}
.quiz-pill.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* Hint text */
.quiz-hint {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.72rem;
    color: var(--light-gray);
    margin-top: 0.5rem;
}

/* ===== NAVIGATION ===== */
.quiz-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}
.quiz-next-btn {
    padding: 0.7rem 2rem;
    background: var(--pool);
    color: var(--white);
    border: none;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}
.quiz-next-btn:hover {
    background: var(--black);
}
.quiz-next-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.quiz-next-btn:disabled:hover {
    background: var(--pool);
}
.quiz-back-btn {
    padding: 0.7rem 1.5rem;
    background: none;
    border: 1px solid var(--rule);
    color: var(--gray);
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}
.quiz-back-btn:hover {
    border-color: var(--charcoal);
    color: var(--charcoal);
}

/* ===== RESULTS SCREEN ===== */
.quiz-results {
    max-width: 680px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Results header */
.quiz-results-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.quiz-results-label {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--pool-deep);
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.quiz-results h2 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--black);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}
.quiz-results-sub {
    font-size: 0.92rem;
    color: var(--gray);
    line-height: 1.6;
}

/* Result cards */
.quiz-result-card {
    border-left: 3px solid var(--pool-deep);
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    margin-bottom: 1.5rem;
    background: var(--cream);
}
.quiz-result-card__rank {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pool-deep);
    font-weight: 700;
    margin-bottom: 0.35rem;
}
.quiz-result-card h3 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--black);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}
.quiz-result-card__why {
    font-size: 0.85rem;
    color: var(--charcoal);
    line-height: 1.65;
    margin-bottom: 0.75rem;
}
.quiz-result-card__pros {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem;
}
.quiz-result-card__pros li {
    font-size: 0.8rem;
    color: var(--charcoal);
    padding: 0.2rem 0;
    padding-left: 1.2rem;
    position: relative;
    line-height: 1.5;
}
.quiz-result-card__pros li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--pool-deep);
    font-weight: 700;
}
.quiz-result-card__watchfor {
    font-size: 0.78rem;
    color: var(--gray);
    font-style: italic;
    line-height: 1.6;
}
.quiz-result-cta {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--pool-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.quiz-result-cta:hover {
    color: var(--black);
}

/* ===== EMAIL CAPTURE ===== */
.quiz-email-section {
    margin-top: 2.5rem;
    padding: 2rem;
    background: var(--cream);
    border: 1px solid var(--rule);
    text-align: center;
}

/* ===== SHARE CARD (Spotify Wrapped style) ===== */
.quiz-share-card {
    max-width: 400px;
    margin: 0 auto 1.5rem;
    aspect-ratio: 1 / 1;
    background: var(--black);
    border-top: 4px solid var(--pool);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    text-align: center;
    box-sizing: border-box;
}
.quiz-share-card__tag {
    font-family: 'Jost', sans-serif;
    font-size: 0.6rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.45);
    margin-bottom: 1.25rem;
}
.quiz-share-card__type {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 0.75rem;
}
.quiz-share-card__tagline {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.82rem;
    font-weight: 300;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    max-width: 280px;
}
.quiz-share-card__pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.quiz-share-card__pill {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.62rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--pool);
    border: 1px solid rgba(11,133,122,0.4);
    padding: 0.3rem 0.75rem;
}
.quiz-share-card__footer {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
}
.quiz-share-card__footer svg {
    opacity: 0.5;
}
.quiz-share-card__footer span {
    font-family: 'Jost', sans-serif;
    font-size: 0.65rem;
    font-weight: 400;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.04em;
}

/* ===== CARD ACTION BUTTONS ===== */
.quiz-card-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}
.quiz-card-actions button {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.7rem 1rem;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.15s;
    min-height: 44px;
}
.quiz-save-btn {
    background: var(--pool);
    border: 1.5px solid var(--pool);
    color: var(--white);
}
.quiz-save-btn:hover {
    background: var(--black);
    border-color: var(--black);
}
.quiz-action-share-btn {
    background: var(--white);
    border: 1.5px solid var(--charcoal);
    color: var(--charcoal);
}
.quiz-action-share-btn:hover {
    background: var(--charcoal);
    color: var(--white);
}
.quiz-action-share-btn:hover svg {
    stroke: var(--white);
}

/* ===== QUIZ LABEL (free tool / almost there) ===== */
.quiz-label--pool {
    color: var(--pool);
    margin-bottom: 1rem;
}
.quiz-label--pool-sm {
    color: var(--pool);
    margin-bottom: 0.75rem;
}

/* ===== EMAIL GATE ===== */
.quiz-gate-heading {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}
.quiz-gate-desc {
    font-size: 0.82rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.quiz-gate-form {
    display: flex;
    gap: 0;
    max-width: 420px;
    margin: 0 auto;
}
.quiz-gate-input {
    flex: 1;
    padding: 0.7rem 1rem;
    border: 1px solid var(--rule);
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    outline: none;
    min-height: 44px;
}
.quiz-gate-submit {
    padding: 0.7rem 1.5rem;
    background: var(--pool);
    border: 1px solid var(--pool);
    border-radius: 0 6px 6px 0;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    min-height: 44px;
    white-space: nowrap;
}
.quiz-gate-msg {
    font-size: 0.72rem;
    margin-top: 0.5rem;
    min-height: 1rem;
}

/* ===== RESULTS EMAIL SECTION ===== */
.quiz-email-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.15rem;
    color: var(--black);
    margin-bottom: 0.4rem;
}
.quiz-email-desc {
    font-size: 0.78rem;
    color: var(--gray);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}
.quiz-email-form {
    display: flex;
    gap: 0;
    max-width: 520px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.quiz-email-city {
    padding: 0.7rem 0.75rem;
    border: 1px solid var(--rule);
    border-right: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: var(--charcoal);
    outline: none;
    background: var(--white);
    min-height: 44px;
    -webkit-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%2212%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%236B7D8E%22 stroke-width=%222%22%3E%3Cpolyline points=%226 9 12 15 18 9%22/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    padding-right: 2rem;
}
.quiz-email-input {
    flex: 1;
    padding: 0.7rem 1rem;
    border: 1px solid var(--rule);
    border-right: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    outline: none;
    background: var(--white);
    min-height: 44px;
    min-width: 180px;
}
.quiz-email-submit {
    padding: 0.7rem 1.5rem;
    background: var(--pool);
    border: 1px solid var(--pool);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
    min-height: 44px;
}
.quiz-capture-msg {
    font-size: 0.72rem;
    margin-top: 0.5rem;
    min-height: 1.2rem;
}

/* ===== RESULTS BROWSE LINKS ===== */
.quiz-result-card__browse {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--rule);
}
.quiz-result-card__browse-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray);
    margin-bottom: 0.5rem;
}
.quiz-result-card__browse-links {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.quiz-browse-city-link {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border: 1.5px solid var(--pool);
    color: var(--pool);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: all 0.2s;
}

/* ===== URL SHARE CTA ===== */
.quiz-url-cta {
    display: inline-block;
    padding: 0.85rem 3rem;
    background: var(--pool);
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-decoration: none;
    transition: background 0.2s;
}

/* ===== SHARE + RETAKE ===== */
.quiz-share-section {
    margin-top: 2rem;
    text-align: center;
}
.quiz-retake {
    margin-top: 1rem;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.75rem;
    color: var(--gray);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}
.quiz-retake:hover {
    color: var(--black);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .quiz-intro {
        padding: 3rem 1rem 2.5rem;
    }
    .quiz-intro h1 {
        font-size: 1.8rem;
    }
    .quiz-step {
        padding: 2rem 1rem;
    }
    .quiz-question {
        font-size: 1.3rem;
    }
    .quiz-results {
        padding: 2rem 1rem;
    }
    .quiz-results h2 {
        font-size: 1.5rem;
    }
    .quiz-result-card {
        padding: 1.25rem 1.25rem 1.25rem 1.5rem;
    }
    .quiz-result-card h3 {
        font-size: 1.2rem;
    }
    .quiz-share-card {
        max-width: 100%;
        padding: 2rem 1.5rem;
    }
    .quiz-share-card__type {
        font-size: 1.6rem;
    }
    .quiz-share-card__tagline {
        font-size: 0.75rem;
    }
    .quiz-card-actions {
        max-width: 100%;
    }
    .quiz-email-section {
        padding: 1.5rem 1rem;
    }
    /* Stack email form on mobile */
    .quiz-email-section .email-capture-form {
        flex-direction: column !important;
    }
    .quiz-email-section .email-capture-form select,
    .quiz-email-section .email-capture-form input[type="email"] {
        border-right: 1px solid var(--rule) !important;
        border-bottom: none !important;
        width: 100% !important;
        min-width: 0 !important;
    }
    .quiz-email-section .email-capture-form button {
        min-height: 44px;
        width: 100%;
    }
}
