/* Landing Page 2 — Quiz Dating Funnel */

body.landing-page-quiz,
body.landing-page-quiz * {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

body.landing-page-quiz {
    background: #f0eef6;
    margin: 0;
    padding: 0;
}

body.landing-page-quiz #page {
    max-width: 100%;
    padding: 0;
}

body.landing-page-quiz .site-header,
body.landing-page-quiz .site-branding {
    display: none !important;
}

.quiz-landing-main {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
}

.quiz-landing-wrap {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* ── Header / Logo ─────────────────────────────── */

.quiz-header {
    text-align: center;
    padding: 20px 0 4px;
}

.quiz-logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #1a1a2e;
}

/* ── Stepper ───────────────────────────────────── */

.quiz-stepper {
    position: relative;
    margin: 14px 0 28px;
    padding: 0 8px;
}

.quiz-stepper__track {
    height: 3px;
    background: #d4d0e4;
    border-radius: 3px;
    position: relative;
}

.quiz-stepper__fill {
    height: 100%;
    background: #6c5ce7;
    border-radius: 3px;
    width: 0%;
    transition: width 0.5s ease;
}

.quiz-stepper__labels {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.quiz-stepper__dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #d4d0e4;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s;
}

.quiz-stepper__dot.active,
.quiz-stepper__dot.done {
    background: #6c5ce7;
}

.quiz-stepper__label {
    font-size: 11px;
    color: #9894ab;
    flex: 1;
    text-align: center;
    padding: 0 4px;
    font-weight: 500;
}

/* ── Steps Container ───────────────────────────── */

.quiz-steps-container {
    position: relative;
    min-height: 380px;
}

.quiz-step {
    display: none;
    text-align: center;
    animation: quizSlideIn 0.35s ease forwards;
    padding: 20px 0;
}

.quiz-step.active {
    display: block;
}

@keyframes quizSlideIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes quizSlideOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(-30px); }
}

.quiz-step.exiting {
    display: block;
    animation: quizSlideOut 0.25s ease forwards;
}

/* ── Typography ────────────────────────────────── */

.quiz-greeting {
    font-size: 15px;
    color: #6c5ce7;
    margin: 0 0 6px;
    font-weight: 500;
}

.quiz-question {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.quiz-sub {
    font-size: 14px;
    color: #7a7790;
    margin: 0 0 22px;
    line-height: 1.5;
    font-weight: 400;
}

.quiz-prompt {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 20px 0 18px;
}

.quiz-disclaimer {
    font-size: 12px;
    color: #9894ab;
    margin: 4px 0 18px;
    line-height: 1.5;
}

/* ── Card Options (with real photos) ───────────── */

.quiz-options--cards {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.quiz-card {
    width: 190px;
    background: #fff;
    border: 2px solid #e0dced;
    border-radius: 16px;
    padding: 14px 14px 12px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.quiz-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(108, 92, 231, 0.15);
    border-color: #6c5ce7;
}

img.quiz-card__img {
    width: 150px;
    height: 160px;
    border-radius: 12px;
    object-fit: cover;
    object-position: center top;
}

.quiz-card__label {
    display: block;
    background: #6c5ce7;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 28px;
    border-radius: 10px;
    width: 100%;
    text-align: center;
    transition: background 0.2s;
}

.quiz-card:hover .quiz-card__label {
    background: #5a4bd1;
}

/* ── Button Options ────────────────────────────── */

.quiz-options--buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 440px;
    margin: 0 auto;
}

button.quiz-btn,
button.quiz-btn:focus,
button.quiz-btn:active {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #fff !important;
    background: #6c5ce7 !important;
    border: 1px solid #6c5ce7 !important;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    letter-spacing: -0.1px;
}

button.quiz-btn:hover {
    background: #5a4bd1 !important;
    border-color: #5a4bd1 !important;
    transform: scale(1.015);
}

/* ── Small buttons (grid layout) ───────────────── */

.quiz-options--grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 440px;
    margin: 0 auto;
}

.quiz-btn--sm {
    padding: 13px 12px;
    font-size: 13px;
    border-radius: 10px;
}

/* ── Toggle buttons (multi-select) ─────────────── */

button.quiz-btn--toggle,
button.quiz-btn--toggle:hover,
button.quiz-btn--toggle:focus,
button.quiz-btn--toggle:active {
    background: #e8e4f4 !important;
    color: #4a3d8f !important;
    border-color: #e8e4f4 !important;
    transition: none !important;
    transform: none !important;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

button.quiz-btn--toggle:hover {
    background: #ddd7ee !important;
    border-color: #ddd7ee !important;
}

button.quiz-btn--toggle.selected,
button.quiz-btn--toggle.selected:hover,
button.quiz-btn--toggle.selected:focus,
button.quiz-btn--toggle.selected:active {
    background: #6c5ce7 !important;
    color: #fff !important;
    border-color: #6c5ce7 !important;
    box-shadow: 0 0 0 2px #6c5ce7, 0 0 0 4px rgba(108, 92, 231, 0.2) !important;
}

/* ── Continue button (multi-select steps) ──────── */

.quiz-continue {
    display: block;
    margin: 20px auto 0;
    padding: 14px 44px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #6c5ce7;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.quiz-continue:hover {
    background: #5a4bd1;
}

/* ── Notification / Interstitial ───────────────── */

.quiz-step--interstitial {
    padding: 44px 0;
}

.quiz-notification {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    padding: 8px 18px;
    border-radius: 10px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
    font-size: 13px;
    font-weight: 600;
    color: #6c5ce7;
    margin-bottom: 16px;
}

.quiz-interstitial-text {
    font-size: 16px;
    color: #4a4a60;
    line-height: 1.5;
    margin: 10px 0;
}

/* ── Stat bar ──────────────────────────────────── */

.quiz-stat-bar {
    width: 100%;
    max-width: 320px;
    height: 10px;
    background: #e0dced;
    border-radius: 10px;
    margin: 18px auto 8px;
    overflow: hidden;
}

.quiz-stat-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, #6c5ce7, #a29bfe);
    border-radius: 10px;
    transition: width 1.5s ease;
}

.quiz-stat-label {
    font-size: 13px;
    font-weight: 600;
    color: #6c5ce7;
}

/* ── Loader ────────────────────────────────────── */

.quiz-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 14px;
    color: #9894ab;
}

.quiz-loader__spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e0dced;
    border-top-color: #6c5ce7;
    border-radius: 50%;
    animation: quizSpin 0.7s linear infinite;
}

@keyframes quizSpin {
    to { transform: rotate(360deg); }
}

/* ── Registration Form ─────────────────────────── */

.quiz-form {
    max-width: 380px;
    margin: 0 auto;
}

.quiz-form__field {
    margin-bottom: 12px;
}

.quiz-form__input {
    width: 100%;
    padding: 15px 16px;
    font-size: 15px;
    border: 2px solid #d4d0e4;
    border-radius: 12px;
    background: #fff;
    color: #1a1a2e;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.quiz-form__input:focus {
    border-color: #6c5ce7;
}

.quiz-form__input--error {
    border-color: #e53e3e !important;
    animation: quizShake 0.4s ease;
}

@keyframes quizShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.quiz-form__input::placeholder {
    color: #b0adbe;
}

.quiz-form__submit {
    display: block;
    width: 100%;
    padding: 15px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #6c5ce7;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.quiz-form__submit:hover {
    background: #5a4bd1;
}

.quiz-form__note {
    font-size: 11px;
    color: #b0adbe;
    margin: 10px 0 0;
}

.quiz-form__skip {
    display: block;
    width: 100%;
    padding: 12px 24px;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #9894ab;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.15s;
}

.quiz-form__skip:hover {
    color: #6c5ce7;
}

.quiz-form__textarea {
    resize: none;
    min-height: 100px;
    line-height: 1.5;
}

/* ── Photo Upload ──────────────────────────────── */

.quiz-upload {
    position: relative;
    max-width: 200px;
    margin: 0 auto 16px;
}

.quiz-upload__preview {
    width: 180px;
    height: 200px;
    border: 2px dashed #d4d0e4;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: #fff;
    overflow: hidden;
}

.quiz-upload__preview:hover {
    border-color: #6c5ce7;
    background: #f8f6ff;
}

.quiz-upload__preview.has-image {
    border-style: solid;
    border-color: #6c5ce7;
    padding: 0;
}

.quiz-upload__preview.has-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.quiz-upload__icon {
    width: 40px;
    height: 40px;
    color: #b0adbe;
}

.quiz-upload__text {
    font-size: 13px;
    color: #9894ab;
    font-weight: 500;
}

.quiz-upload__input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* ── Match progress bar ────────────────────────── */

.quiz-match-progress {
    width: 100%;
    max-width: 320px;
    height: 6px;
    background: #e0dced;
    border-radius: 6px;
    margin: 20px auto 10px;
    overflow: hidden;
}

.quiz-match-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, #6c5ce7, #a29bfe);
    border-radius: 6px;
    width: 0%;
    transition: width 3s ease;
}

.quiz-match-count {
    font-size: 14px;
    font-weight: 600;
    color: #6c5ce7;
    margin: 0;
}

/* ── Success / Inbox Card ──────────────────────── */

.quiz-success-icon {
    font-size: 48px;
    margin-bottom: 10px;
    line-height: 1;
}

.quiz-inbox-card {
    background: #fff;
    border-radius: 14px;
    padding: 28px 24px;
    max-width: 400px;
    margin: 24px auto 0;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.quiz-inbox-card__icon {
    font-size: 36px;
    margin-bottom: 10px;
    line-height: 1;
}

.quiz-inbox-card__title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
}

.quiz-inbox-card__text {
    font-size: 13px;
    color: #4a4a60;
    line-height: 1.5;
    margin: 0 0 10px;
}

.quiz-inbox-card__hint {
    font-size: 11px;
    color: #b0adbe;
    margin: 0;
}

/* ── Footer links (hidden -- landing-footer has them) */

.quiz-footer-links {
    display: none;
}

/* ── Final step ────────────────────────────────── */

.quiz-step--final {
    padding: 50px 0;
}

/* ── Landing Footer Override ────────────────────── */

body.landing-page-quiz .landing-footer {
    max-width: 640px !important;
    margin: 0 auto !important;
    padding: 24px 20px 32px !important;
    text-align: center !important;
    border-top: 1px solid #ddd8eb !important;
}

body.landing-page-quiz .landing-footer--links {
    margin-bottom: 10px !important;
}

body.landing-page-quiz .landing-footer--links a {
    color: #a09cb4 !important;
    text-decoration: none !important;
    font-size: 11px !important;
    font-weight: 400 !important;
}

body.landing-page-quiz .landing-footer--links a:hover {
    color: #6c5ce7 !important;
}

body.landing-page-quiz .landing-footer--sep {
    color: #c8c4d6 !important;
    margin: 0 5px !important;
    font-weight: 400 !important;
}

body.landing-page-quiz .landing-footer--company {
    margin-bottom: 8px !important;
}

body.landing-page-quiz .landing-footer--company p {
    margin: 0 !important;
    font-size: 10px !important;
    color: #b0adbe !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
}

body.landing-page-quiz .landing-footer--company-name {
    font-weight: 500 !important;
    color: #a09cb4 !important;
}

body.landing-page-quiz .landing-footer--company-email a {
    color: #b0adbe !important;
    font-weight: 400 !important;
    text-decoration: none !important;
}

body.landing-page-quiz .landing-footer--company-email a:hover {
    color: #6c5ce7 !important;
}

body.landing-page-quiz .landing-footer--copyright {
    font-size: 10px !important;
    color: #b8b5c6 !important;
    margin: 0 0 4px !important;
    font-weight: 400 !important;
}

body.landing-page-quiz .landing-footer--disclaimer {
    font-size: 9px !important;
    color: #c0bdcc !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    max-width: 480px !important;
    margin: 0 auto !important;
}

/* ── Responsive ────────────────────────────────── */

@media (max-width: 600px) {
    .quiz-question {
        font-size: 21px;
    }

    .quiz-options--cards {
        gap: 10px;
    }

    .quiz-card {
        width: 155px;
        padding: 10px 10px 10px;
    }

    img.quiz-card__img {
        width: 125px;
        height: 140px;
    }

    .quiz-btn {
        padding: 14px 18px;
        font-size: 14px;
    }

    .quiz-options--grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .quiz-btn--sm {
        padding: 12px 8px;
        font-size: 12px;
    }

    .quiz-stepper__label {
        font-size: 10px;
    }

    .quiz-stepper__dot {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }
}
