/* ============================================================
   Full test + payment — Apple-inspired UI
   Scoped to #tft-quiz-app.tft-full-app (does not affect express quiz)
   ============================================================ */

#tft-quiz-app.tft-full-app {
    --tft-blue: #0071e3;
    --tft-blue-hover: #0077ed;
    --tft-blue-pressed: #006edb;
    --tft-text: #1d1d1f;
    --tft-text-secondary: #86868b;
    --tft-text-tertiary: #6e6e73;
    --tft-fill: rgba(0, 0, 0, 0.04);
    --tft-fill-strong: rgba(0, 0, 0, 0.06);
    --tft-stroke: rgba(0, 0, 0, 0.08);
    --tft-surface: rgba(255, 255, 255, 0.72);
    --tft-surface-solid: #ffffff;
    --tft-success: #248a3d;
    --tft-danger: #d70015;
    --tft-radius: 22px;
    --tft-radius-sm: 14px;
    --tft-shadow: 0 8px 40px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --tft-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
    --thumb-color: var(--tft-blue);
    --slider-track-height: 6px;
    --thumb-size: 28px;

    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    padding: clamp(32px, 6vw, 72px) 20px clamp(48px, 8vw, 96px);
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
        "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.47059;
    letter-spacing: -0.022em;
    color: var(--tft-text);
    background: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Soft atmospheric backdrop */
#tft-quiz-app.tft-full-app .tft-full-atmosphere {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    border-radius: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 0%, rgba(0, 113, 227, 0.09) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 90% 20%, rgba(90, 200, 250, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 60% 45% at 50% 100%, rgba(180, 190, 210, 0.18) 0%, transparent 55%),
        linear-gradient(180deg, #f5f5f7 0%, #eef0f4 48%, #f5f5f7 100%);
}

#tft-quiz-app.tft-full-app .tft-full-atmosphere::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.35;
    mix-blend-mode: multiply;
}

/* Panel / surface */
#tft-quiz-app.tft-full-app .tft-full-panel,
#tft-quiz-app.tft-full-app .container {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin: 0 auto 28px;
    padding: clamp(28px, 5vw, 44px) clamp(24px, 4vw, 40px);
    background: #ffffff;
    background: var(--tft-surface);
    backdrop-filter: saturate(180%) blur(28px);
    -webkit-backdrop-filter: saturate(180%) blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: var(--tft-radius);
    box-shadow: var(--tft-shadow);
    text-align: left;
    box-sizing: border-box;
    animation: tft-full-rise 0.55s var(--tft-ease) both;
}

@keyframes tft-full-rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
#tft-quiz-app.tft-full-app .tft-full-header {
    margin-bottom: 28px;
    text-align: center;
}

#tft-quiz-app.tft-full-app .tft-full-header--compact {
    margin-bottom: 22px;
}

#tft-quiz-app.tft-full-app .tft-full-eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tft-blue);
    text-align: center;
}

#tft-quiz-app.tft-full-app .tft-full-title,
#tft-quiz-app.tft-full-app h1,
#tft-quiz-app.tft-full-app h2 {
    margin: 0 0 10px;
    font-size: clamp(28px, 5vw, 36px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--tft-text);
    text-align: center;
}

#tft-quiz-app.tft-full-app .tft-full-lead,
#tft-quiz-app.tft-full-app .tft-full-header p {
    margin: 0 auto;
    max-width: 36em;
    font-size: 17px;
    line-height: 1.47;
    color: var(--tft-text-secondary);
    text-align: center;
}

/* Form */
#tft-quiz-app.tft-full-app .tft-full-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#tft-quiz-app.tft-full-app .tft-full-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#tft-quiz-app.tft-full-app .tft-full-label {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--tft-text-tertiary);
    padding-left: 2px;
}

#tft-quiz-app.tft-full-app .tft-full-label-hint {
    font-weight: 400;
    color: var(--tft-text-secondary);
    opacity: 0.85;
}

#tft-quiz-app.tft-full-app .tft-full-input,
#tft-quiz-app.tft-full-app input[type="text"],
#tft-quiz-app.tft-full-app input[type="email"],
#tft-quiz-app.tft-full-app input[type="tel"] {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 14px 16px;
    font: inherit;
    font-size: 17px;
    color: var(--tft-text);
    background: var(--tft-fill);
    border: 1px solid transparent;
    border-radius: var(--tft-radius-sm);
    outline: none;
    transition: background 0.2s var(--tft-ease), border-color 0.2s var(--tft-ease),
        box-shadow 0.2s var(--tft-ease);
    -webkit-appearance: none;
    appearance: none;
}

#tft-quiz-app.tft-full-app .tft-full-input::placeholder {
    color: #a1a1a6;
}

#tft-quiz-app.tft-full-app .tft-full-input:hover {
    background: var(--tft-fill-strong);
}

#tft-quiz-app.tft-full-app .tft-full-input:focus {
    background: var(--tft-surface-solid);
    border-color: var(--tft-blue);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.18);
}

#tft-quiz-app.tft-full-app .tft-full-field-hint {
    font-size: 13px;
    line-height: 1.4;
    padding: 2px 2px 0;
}

#tft-quiz-app.tft-full-app .tft-full-field-hint.is-ok {
    color: var(--tft-success);
}

#tft-quiz-app.tft-full-app .tft-full-field-hint.is-err {
    color: var(--tft-danger);
}

/* Price row */
#tft-quiz-app.tft-full-app .tft-full-price,
#tft-quiz-app.tft-full-app #price-info {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 6px 0 2px;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.06), rgba(90, 200, 250, 0.08));
    border: 1px solid rgba(0, 113, 227, 0.1);
    border-radius: var(--tft-radius-sm);
    font-weight: 400;
}

#tft-quiz-app.tft-full-app .tft-full-price-label {
    font-size: 15px;
    color: var(--tft-text-secondary);
}

#tft-quiz-app.tft-full-app .tft-full-price-value {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--tft-text);
}

#tft-quiz-app.tft-full-app .tft-full-price.is-free .tft-full-price-value {
    color: var(--tft-success);
}

/* Consent */
#tft-quiz-app.tft-full-app .tft-full-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 4px 0 0;
    cursor: pointer;
    user-select: none;
}

#tft-quiz-app.tft-full-app .tft-full-checkbox {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    accent-color: var(--tft-blue);
    cursor: pointer;
}

#tft-quiz-app.tft-full-app .tft-full-consent-text {
    font-size: 13px;
    line-height: 1.45;
    color: var(--tft-text-secondary);
}

#tft-quiz-app.tft-full-app .tft-full-consent-text a {
    color: var(--tft-blue);
    text-decoration: none;
}

#tft-quiz-app.tft-full-app .tft-full-consent-text a:hover {
    text-decoration: underline;
}

#tft-quiz-app.tft-full-app .tft-lab-consent-block {
    margin-top: 10px;
}

/* Laboratory invite banner (optional intro on pay form) */
#tft-quiz-app.tft-full-app .tft-lab-invite-banner {
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(33, 64, 154, 0.18);
    background: linear-gradient(135deg, rgba(33, 64, 154, 0.06), rgba(33, 64, 154, 0.02));
}

#tft-quiz-app.tft-full-app .tft-lab-invite-banner__eyebrow {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tft-blue, #21409a);
}

#tft-quiz-app.tft-full-app .tft-lab-invite-banner__title {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.3;
    color: var(--tft-text, #1e293b);
}

#tft-quiz-app.tft-full-app .tft-lab-invite-banner__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--tft-text-secondary, #475569);
    white-space: pre-wrap;
}

#tft-quiz-app.tft-full-app .tft-lab-invite-banner__text.is-clamped {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

#tft-quiz-app.tft-full-app .tft-lab-invite-banner__more {
    display: inline-flex;
    width: auto;
    margin: 8px 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--tft-blue) !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    transform: none !important;
}

#tft-quiz-app.tft-full-app .tft-lab-invite-banner__more:hover:not(:disabled),
#tft-quiz-app.tft-full-app .tft-lab-invite-banner__more:active:not(:disabled) {
    background: transparent !important;
    color: var(--tft-blue-hover) !important;
    box-shadow: none !important;
    transform: none !important;
}

body.tft-lab-consent-open {
    overflow: hidden !important;
    touch-action: none;
}

.tft-lab-consent-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
        "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.tft-lab-consent-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: saturate(140%) blur(20px);
    -webkit-backdrop-filter: saturate(140%) blur(20px);
}

.tft-lab-consent-modal__sheet {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 720px;
    height: 100%;
    max-height: 100%;
    margin: 0 auto;
    background: #f5f5f7;
    box-shadow: none;
    overflow: hidden;
}

@media (min-width: 720px) {
    .tft-lab-consent-modal {
        align-items: center;
        padding: 40px 24px;
    }

    .tft-lab-consent-modal__sheet {
        height: min(860px, calc(100vh - 80px));
        max-height: calc(100vh - 80px);
        border-radius: 18px;
        box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    }
}

.tft-lab-consent-modal__chrome {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    gap: 8px;
    padding: 14px 16px 12px;
    background: rgba(245, 245, 247, 0.86);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.tft-lab-consent-modal__chrome-text {
    text-align: center;
    min-width: 0;
}

.tft-lab-consent-modal__eyebrow {
    margin: 0 0 2px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #86868b;
}

.tft-lab-consent-modal__chrome h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: #1d1d1f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tft-lab-consent-modal__close {
    width: 30px !important;
    height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.08) !important;
    box-shadow: none !important;
    color: #1d1d1f !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transform: none !important;
}

.tft-lab-consent-modal__close span {
    position: relative;
    width: 12px;
    height: 12px;
    display: block;
}

.tft-lab-consent-modal__close span::before,
.tft-lab-consent-modal__close span::after {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 12px;
    height: 1.5px;
    background: #1d1d1f;
    border-radius: 1px;
}

.tft-lab-consent-modal__close span::before {
    transform: rotate(45deg);
}

.tft-lab-consent-modal__close span::after {
    transform: rotate(-45deg);
}

.tft-lab-consent-modal__close:hover {
    background: rgba(0, 0, 0, 0.12) !important;
    transform: none !important;
    box-shadow: none !important;
}

.tft-lab-consent-modal__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 20px 16px 28px;
}

@media (min-width: 720px) {
    .tft-lab-consent-modal__scroll {
        padding: 28px 28px 36px;
    }
}

.tft-lab-consent-modal__doc {
    max-width: 620px;
    margin: 0 auto;
    padding: 28px 24px 32px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
    color: #1d1d1f;
    font-size: 15px;
    line-height: 1.47;
    letter-spacing: -0.011em;
    text-align: left;
}

@media (min-width: 720px) {
    .tft-lab-consent-modal__doc {
        padding: 36px 40px 40px;
        font-size: 16px;
        line-height: 1.5;
    }
}

.tft-lab-consent-modal__doc > *:first-child {
    margin-top: 0 !important;
}

.tft-lab-consent-modal__doc > *:last-child {
    margin-bottom: 0 !important;
}

.tft-lab-consent-modal__doc p {
    margin: 0 0 0.7em;
}

.tft-lab-consent-modal__doc p:empty,
.tft-lab-consent-modal__doc p:has(> br:only-child) {
    display: none;
}

.tft-lab-consent-modal__doc h1,
.tft-lab-consent-modal__doc h2,
.tft-lab-consent-modal__doc h3,
.tft-lab-consent-modal__doc h4 {
    margin: 1.15em 0 0.4em;
    color: #1d1d1f;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-align: left;
}

.tft-lab-consent-modal__doc h1 {
    font-size: 1.45em;
}

.tft-lab-consent-modal__doc h2 {
    font-size: 1.2em;
}

.tft-lab-consent-modal__doc h3,
.tft-lab-consent-modal__doc h4 {
    font-size: 1.05em;
}

.tft-lab-consent-modal__doc ul,
.tft-lab-consent-modal__doc ol {
    margin: 0 0 0.85em;
    padding-left: 1.25em;
}

.tft-lab-consent-modal__doc li {
    margin: 0 0 0.35em;
}

.tft-lab-consent-modal__doc li > p {
    margin: 0;
}

.tft-lab-consent-modal__doc a {
    color: #0071e3;
    text-decoration: none;
}

.tft-lab-consent-modal__doc a:hover {
    text-decoration: underline;
}

.tft-lab-consent-modal__actions {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(245, 245, 247, 0.92);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.tft-lab-consent-modal__btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-width: 108px;
    margin: 0 !important;
    padding: 11px 18px !important;
    border: 0 !important;
    border-radius: 980px !important;
    font: inherit;
    font-size: 15px !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none !important;
    box-shadow: none !important;
    transform: none !important;
}

.tft-lab-consent-modal__btn--ghost {
    background: transparent !important;
    color: #0071e3 !important;
}

.tft-lab-consent-modal__btn--ghost:hover {
    background: rgba(0, 113, 227, 0.08) !important;
    color: #0071e3 !important;
    transform: none !important;
    box-shadow: none !important;
}

.tft-lab-consent-modal__btn--primary {
    background: #0071e3 !important;
    color: #fff !important;
}

.tft-lab-consent-modal__btn--primary:hover {
    background: #0077ed !important;
    color: #fff !important;
    transform: none !important;
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.28) !important;
}

/* Buttons */
#tft-quiz-app.tft-full-app .tft-full-btn,
#tft-quiz-app.tft-full-app button,
#tft-quiz-app.tft-full-app #start-test-btn,
#tft-quiz-app.tft-full-app #tft-quiz-begin-btn,
#tft-quiz-app.tft-full-app #next-btn,
#tft-quiz-app.tft-full-app #tft-gate-pay-link,
#tft-quiz-app.tft-full-app .tft-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 8px 0 0;
    padding: 16px 22px;
    font: inherit;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: #fff !important;
    background: var(--tft-blue);
    border: none;
    border-radius: 980px;
    box-shadow: none;
    cursor: pointer;
    text-decoration: none !important;
    text-align: center;
    box-sizing: border-box;
    transition: background 0.2s var(--tft-ease), transform 0.2s var(--tft-ease),
        opacity 0.2s var(--tft-ease), box-shadow 0.2s var(--tft-ease);
    -webkit-tap-highlight-color: transparent;
}

#tft-quiz-app.tft-full-app .tft-full-btn:hover:not(:disabled),
#tft-quiz-app.tft-full-app button:hover:not(:disabled),
#tft-quiz-app.tft-full-app #tft-gate-pay-link:hover,
#tft-quiz-app.tft-full-app .tft-cta-button:hover {
    background: var(--tft-blue-hover);
    color: #fff !important;
    transform: scale(1.01);
    box-shadow: 0 4px 18px rgba(0, 113, 227, 0.28);
}

#tft-quiz-app.tft-full-app .tft-full-btn:active:not(:disabled),
#tft-quiz-app.tft-full-app button:active:not(:disabled) {
    background: var(--tft-blue-pressed);
    transform: scale(0.985);
}

#tft-quiz-app.tft-full-app .tft-full-btn:disabled,
#tft-quiz-app.tft-full-app button:disabled,
#tft-quiz-app.tft-full-app #next-btn:disabled {
    background: #d2d2d7;
    color: #fff !important;
    cursor: not-allowed;
    opacity: 1;
    transform: none;
    box-shadow: none;
}

#tft-quiz-app.tft-full-app #start-test-btn {
    margin-top: 10px;
}

#tft-quiz-app.tft-full-app #next-btn {
    margin-top: 28px;
}

#tft-quiz-app.tft-full-app .tft-full-panel--gate .tft-full-btn {
    margin-top: 8px;
}

/* Notices & errors */
#tft-quiz-app.tft-full-app .tft-full-notice,
#tft-quiz-app.tft-full-app #tft-pay-notice {
    margin: 0 0 18px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.4;
    border-radius: 12px;
    background: rgba(0, 113, 227, 0.08);
    color: var(--tft-text);
    text-align: center;
}

#tft-quiz-app.tft-full-app .tft-full-notice.is-error,
#tft-quiz-app.tft-full-app .tft-full-error--block {
    background: rgba(215, 0, 21, 0.08);
    color: var(--tft-danger);
}

/* Site legal notice (operator / processor) — visible in all modes */
#tft-quiz-app.tft-full-app .tft-legal-notice-slot {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    margin: 0 auto 8px;
    padding: 0 4px;
    box-sizing: border-box;
}

#tft-quiz-app.tft-full-app .tft-legal-notice,
.tft-legal-notice {
    width: 100%;
    max-width: 560px;
    margin: 0 auto 20px;
    padding: 14px 16px;
    box-sizing: border-box;
    border-radius: 14px;
    background: rgba(0, 113, 227, 0.06);
    border: 1px solid rgba(0, 113, 227, 0.12);
}

#tft-quiz-app.tft-full-app .tft-legal-notice__text,
.tft-legal-notice__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #6e6e73;
    letter-spacing: -0.01em;
}

#tft-quiz-app.tft-full-app .tft-legal-notice__text a,
.tft-legal-notice__text a {
    color: #0071e3;
    text-decoration: none;
}

#tft-quiz-app.tft-full-app .tft-legal-notice__text a:hover,
.tft-legal-notice__text a:hover {
    text-decoration: underline;
}

#tft-quiz-app.tft-full-app #tft-pay-notice.is-error {
    background: rgba(215, 0, 21, 0.08);
    color: var(--tft-danger);
}

#tft-quiz-app.tft-full-app .tft-full-error,
#tft-quiz-app.tft-full-app #agreement-error,
#tft-quiz-app.tft-full-app #email-error {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--tft-danger);
    text-align: left;
}

#tft-quiz-app.tft-full-app .tft-full-error--block {
    margin-top: 14px;
    text-align: center;
}

/* Quiz progress */
#tft-quiz-app.tft-full-app .tft-full-progress {
    margin-bottom: 28px;
}

#tft-quiz-app.tft-full-app .tft-full-progress-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

#tft-quiz-app.tft-full-app #progress,
#tft-quiz-app.tft-full-app .tft-full-progress-text {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--tft-text-secondary);
}

#tft-quiz-app.tft-full-app .tft-full-progress-track {
    height: 4px;
    background: var(--tft-fill-strong);
    border-radius: 4px;
    overflow: hidden;
}

#tft-quiz-app.tft-full-app .tft-full-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0071e3, #64d2ff);
    border-radius: 4px;
    transition: width 0.35s var(--tft-ease);
}

/* Question */
#tft-quiz-app.tft-full-app #question-area,
#tft-quiz-app.tft-full-app .tft-full-question {
    margin-top: 0;
    min-height: 0;
    text-align: left;
}

/* Intro / start screen */
#tft-quiz-app.tft-full-app .tft-full-intro-list {
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#tft-quiz-app.tft-full-app .tft-full-intro-list li {
    position: relative;
    margin: 0;
    padding: 14px 16px 14px 44px;
    font-size: 15px;
    line-height: 1.45;
    color: var(--tft-text);
    background: var(--tft-fill);
    border-radius: var(--tft-radius-sm);
}

#tft-quiz-app.tft-full-app .tft-full-intro-list li::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 1.15em;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-radius: 50%;
    background: var(--tft-blue);
}

#tft-quiz-app.tft-full-app #tft-quiz-begin-btn {
    margin-top: 20px;
}

#tft-quiz-app.tft-full-app #question-text,
#tft-quiz-app.tft-full-app .tft-full-question-text {
    margin: 0 0 36px;
    min-height: 0;
    font-size: clamp(17px, 3vw, 20px);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.015em;
    color: var(--tft-text);
    text-align: center;
    animation: tft-full-fade 0.35s var(--tft-ease) both;
}

@keyframes tft-full-fade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slider */
#tft-quiz-app.tft-full-app .tft-full-slider,
#tft-quiz-app.tft-full-app .slider-wrapper {
    margin-top: 8px;
}

#tft-quiz-app.tft-full-app .tft-full-slider-row,
#tft-quiz-app.tft-full-app .slider-container {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

#tft-quiz-app.tft-full-app .slider-label {
    min-width: 36px;
    font-size: 13px;
    font-weight: 500;
    color: var(--tft-text-secondary);
}

#tft-quiz-app.tft-full-app .slider-label.left,
#tft-quiz-app.tft-full-app .slider-label.right {
    color: var(--tft-text-secondary);
}

#tft-quiz-app.tft-full-app #answer-slider {
    flex: 1;
    width: 100%;
    height: var(--slider-track-height);
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    background: linear-gradient(
        to right,
        #ff453a 0%,
        #ffd60a 50%,
        #30d158 100%
    );
    border-radius: 999px;
    outline: none;
    cursor: pointer;
}

#tft-quiz-app.tft-full-app #answer-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: var(--thumb-size);
    height: var(--thumb-size);
    background: var(--thumb-color);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
    cursor: grab;
    transition: transform 0.15s var(--tft-ease), background-color 0.12s ease;
}

#tft-quiz-app.tft-full-app #answer-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.08);
}

#tft-quiz-app.tft-full-app #answer-slider::-moz-range-thumb {
    width: var(--thumb-size);
    height: var(--thumb-size);
    background: var(--thumb-color);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    cursor: grab;
}

#tft-quiz-app.tft-full-app #slider-value-display,
#tft-quiz-app.tft-full-app .tft-full-slider-value {
    margin: 0 auto;
    padding: 10px 16px;
    max-width: max-content;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
    text-align: center;
    color: var(--tft-text);
    background: var(--tft-fill);
    border-radius: 980px;
    min-height: 0;
    transition: color 0.12s ease, background 0.2s var(--tft-ease);
}

/* Results */
#tft-quiz-app.tft-full-app #results-area.tft-full-panel--results,
#tft-quiz-app.tft-full-app .tft-full-panel--results {
    margin-top: 0;
    background: var(--tft-surface);
    border: 1px solid rgba(255, 255, 255, 0.65);
    padding: clamp(28px, 5vw, 44px) clamp(24px, 4vw, 40px);
}

#tft-quiz-app.tft-full-app .tft-full-status,
#tft-quiz-app.tft-full-app #ajax-status {
    padding: 0;
    font-size: 17px;
    text-align: center;
    border-radius: 0;
    background: transparent !important;
    color: var(--tft-text);
}

#tft-quiz-app.tft-full-app .tft-full-thanks {
    margin-bottom: 28px;
}

#tft-quiz-app.tft-full-app .tft-full-thanks-title {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--tft-text);
}

#tft-quiz-app.tft-full-app .tft-full-thanks-text {
    margin: 0;
    font-size: 17px;
    color: var(--tft-text-secondary);
    text-align: center;
}

#tft-quiz-app.tft-full-app .tft-full-upsell {
    margin-top: 8px;
    padding: 24px 22px;
    background: linear-gradient(160deg, rgba(0, 113, 227, 0.07), rgba(90, 200, 250, 0.1));
    border: 1px solid rgba(0, 113, 227, 0.12);
    border-radius: var(--tft-radius-sm);
    text-align: center;
}

#tft-quiz-app.tft-full-app .tft-full-upsell h3 {
    margin: 0 0 8px;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--tft-text);
    text-align: center;
}

#tft-quiz-app.tft-full-app .tft-full-upsell p {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.47;
    color: var(--tft-text-secondary);
    text-align: center;
}

#tft-quiz-app.tft-full-app .tft-full-status-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px 0;
    color: var(--tft-text-secondary);
}

#tft-quiz-app.tft-full-app .tft-full-spinner {
    width: 28px;
    height: 28px;
    border: 2.5px solid rgba(0, 113, 227, 0.18);
    border-top-color: var(--tft-blue);
    border-radius: 50%;
    animation: tft-full-spin 0.7s linear infinite;
}

@keyframes tft-full-spin {
    to {
        transform: rotate(360deg);
    }
}

#tft-quiz-app.tft-full-app .tft-full-status-error {
    color: var(--tft-danger);
}

#tft-quiz-app.tft-full-app .tft-full-mailto {
    display: inline-flex;
    width: 100%;
    margin-top: 18px;
    padding: 16px 22px;
    font-size: 17px;
    font-weight: 500;
    color: #fff !important;
    background: var(--tft-blue);
    border-radius: 980px;
    text-decoration: none !important;
    justify-content: center;
    box-sizing: border-box;
}

/* Override legacy express rules inside full app */
#tft-quiz-app.tft-full-app p {
    text-align: inherit;
}

@media (max-width: 480px) {
    #tft-quiz-app.tft-full-app {
        padding: 24px 14px 48px;
    }

    #tft-quiz-app.tft-full-app .tft-full-panel,
    #tft-quiz-app.tft-full-app .container {
        padding: 24px 18px;
        border-radius: 18px;
    }

    #tft-quiz-app.tft-full-app .tft-full-title,
    #tft-quiz-app.tft-full-app h1,
    #tft-quiz-app.tft-full-app h2 {
        font-size: 26px;
    }

    #tft-quiz-app.tft-full-app #question-text {
        font-size: 17px;
        margin-bottom: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #tft-quiz-app.tft-full-app .tft-full-panel,
    #tft-quiz-app.tft-full-app #question-text,
    #tft-quiz-app.tft-full-app .tft-full-progress-bar,
    #tft-quiz-app.tft-full-app .tft-full-spinner {
        animation: none !important;
        transition: none !important;
    }
}
