/**
 * Leaders Verification Page Styles
 * High-end premium aesthetics with dark/light themes and gold accents.
 *
 * @package FitnessCoachProTheme
 */

/* ══════════════════════════════════════════
   COLOR & VARIABLE TOKENS
   ══════════════════════════════════════════ */
:root {
    --gold:               #c5a059;
    --gold-light:         #d4b47a;
    --gold-dark:          #a8843e;
    --font-serif:         'Cairo', sans-serif;
    --font-sans:          'Cairo', 'Segoe UI', sans-serif;
    --transition:         all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Base Light Mode Tokens on :root/html so they can be overridden by inline styles set by JS */
    --ebook-bg:           #fcf9f8;
    --ebook-surface:      #ffffff;
    --ebook-surface-2:    #fcfaf6;
    --ebook-card:         #ffffff;
    --ebook-border:       rgba(197, 160, 89, 0.2);
    --ebook-border-light: rgba(197, 160, 89, 0.08);
    --ebook-text:         #1b1c1c;
    --ebook-text-muted:   #555852;
    --ebook-text-light:   #7a7d78;
    --ebook-shadow-sm:    0 4px 12px rgba(197, 160, 89, 0.05);
    --ebook-shadow-md:    0 10px 30px rgba(197, 160, 89, 0.08);
    --ebook-shadow-gold:  0 8px 24px rgba(197, 160, 89, 0.15);
}

/* Map original style variables to ebook variables on body.fcp-leaders-page */
body.fcp-leaders-page {
    --bg-color:           var(--ebook-bg);
    --card-bg:            var(--ebook-card);
    --card-bg-hover:      var(--ebook-surface-2);
    --border-color:       var(--ebook-border);
    --border-light:       var(--ebook-border-light);
    --text-primary:       var(--ebook-text);
    --text-muted:         var(--ebook-text-muted);
    --text-light:         var(--ebook-text-light);
    --shadow-sm:          var(--ebook-shadow-sm);
    --shadow-md:          var(--ebook-shadow-md);
    --shadow-gold:        var(--ebook-shadow-gold);
}

/* Dark Mode Tokens overriding Ebook variables on html[data-ebook-theme="dark"] */
html[data-ebook-theme="dark"] {
    --ebook-bg:           #0d0d0d;
    --ebook-surface:      #141414;
    --ebook-surface-2:    #1c1c1c;
    --ebook-card:         #202020;
    --ebook-border:       rgba(197, 160, 89, 0.22);
    --ebook-border-light: rgba(197, 160, 89, 0.08);
    --ebook-text:         #f0ede8;
    --ebook-text-muted:   #aeaba6;
    --ebook-text-light:   #6b6865;
    --ebook-white:        #1a1a1a;
    --ebook-dark-bg:      #060606;
    --ebook-shadow-sm:    0 2px 16px rgba(0,0,0,0.55);
    --ebook-shadow-md:    0 8px 40px rgba(0,0,0,0.65);
    --ebook-shadow-gold:  0 8px 32px rgba(197,160,89,0.12);

    /* Map theme variables for html element itself to align backgrounds */
    --bg-color:           var(--ebook-bg);
    --text-primary:       var(--ebook-text);
}

/* ══════════════════════════════════════════
   BASE & LAYOUT
   ══════════════════════════════════════════ */
html {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    min-height: 100vh;
    min-height: -webkit-fill-available; /* Safari iOS address bar fix */
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%; /* Prevent font scaling in landscape on iOS */
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    display: flex;
    flex-direction: column;
    overflow-x: hidden; /* Prevent horizontal scroll on all screen sizes */
    transition: background-color 0.4s ease, color 0.4s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* ══════════════════════════════════════════
   HEADER / NAVIGATION
   ══════════════════════════════════════════ */
.fcpl-header {
    width: 100%;
    padding: 20px 40px;
    background: transparent;
    z-index: 100;
}

.fcpl-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fcpl-header__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.fcpl-header__brand:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}

.fcpl-header__controls {
    display: flex;
    gap: 12px;
}

.fcpl-icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 44px;
    padding: 0 16px;
    border-radius: 22px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 13px;
    transition: var(--transition);
    user-select: none;
}

.fcpl-icon-btn:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}

.fcpl-icon-btn .material-symbols-outlined {
    font-size: 18px;
    color: var(--gold);
}

.fcpl-lang-code {
    font-weight: bold;
    text-transform: uppercase;
}

/* ══════════════════════════════════════════
   MAIN CONTAINER
   ══════════════════════════════════════════ */
.fcpl-container {
    flex: 1;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 20px 24px 60px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Centered Gold Title */
.fcpl-title-wrap {
    text-align: center;
    margin-bottom: 24px;
}

.fcpl-main-title {
    font-family: var(--font-sans);
    color: var(--gold);
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1.5px;
    display: inline-block;
    position: relative;
    padding-bottom: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* RTL: Remove letter-spacing for Arabic text */
[dir="rtl"] .fcpl-main-title {
    letter-spacing: 0;
}

.fcpl-main-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    right: 25%; /* Support RTL centering */
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ══════════════════════════════════════════
   PROGRESS SLIDER (SLIDBAR)
   ══════════════════════════════════════════ */
.fcpl-progress-wrapper {
    margin-bottom: 30px;
}

.fcpl-progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 8px;
}

#fcpl-progress-label {
    color: var(--gold);
    font-weight: 600;
}

.fcpl-progress-bar-container {
    width: 100%;
    height: 6px;
    background: var(--border-light);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.fcpl-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
    width: 0%;
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(197, 160, 89, 0.4);
}

/* ══════════════════════════════════════════
   LEAD GATE (Pre-Quiz Email Collection)
   ══════════════════════════════════════════ */
.fcpl-lead-gate {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.fcpl-lead-gate__card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 48px 40px;
    box-shadow: var(--shadow-md);
    text-align: center;
    max-width: 540px;
    margin: 0 auto;
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.fcpl-lead-gate__icon {
    margin-bottom: 16px;
}

.fcpl-lead-gate__title {
    font-family: var(--font-serif);
    color: var(--gold);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.fcpl-lead-gate__desc {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 28px;
}

.fcpl-lead-gate__form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.fcpl-lead-gate__input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--ebook-surface);
    color: var(--ebook-text);
    font-family: var(--font-sans);
    font-size: 15px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
    outline: none;
}

.fcpl-lead-gate__input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

.fcpl-lead-gate__input.fcpl-input-error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}

.fcpl-lead-gate__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 24px;
    background: var(--gold);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.02em;
}

.fcpl-lead-gate__btn:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.35);
}

.fcpl-lead-gate__privacy {
    color: var(--text-light);
    font-size: 12px;
    margin: 0;
}

/* ══════════════════════════════════════════
   QUIZ CARD PANEL
   ══════════════════════════════════════════ */
.fcpl-quiz-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    max-width: 100%;
    overflow: hidden;
}

/* Question Header */
.fcpl-question-index {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.fcpl-question-text {
    font-family: var(--font-serif);
    color: var(--gold);
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 30px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* RTL Specific Question Text Cairo styling */
[dir="rtl"] .fcpl-question-text {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.6rem;
}

/* ══════════════════════════════════════════
   ANSWERS & INPUTS
   ══════════════════════════════════════════ */
.fcpl-answers-stack {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

/* Multiple choice buttons */
.fcpl-answer-btn {
    width: 100%;
    padding: 16px 24px;
    border-radius: 6px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary); /* White in dark, black in light via variables */
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none; /* Normalize across browsers */
}

[dir="rtl"] .fcpl-answer-btn {
    text-align: right;
}

.fcpl-answer-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: var(--gold);
    background: var(--card-bg-hover);
    box-shadow: var(--shadow-gold);
}

.fcpl-answer-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* State Indicators (Correct/Incorrect) */
.fcpl-answer-btn.correct {
    background: rgba(46, 125, 50, 0.1) !important;
    border-color: #2e7d32 !important;
    color: #2e7d32 !important;
    font-weight: 600;
}

.fcpl-answer-btn.incorrect {
    background: rgba(198, 40, 40, 0.1) !important;
    border-color: #c62828 !important;
    color: #c62828 !important;
    font-weight: 600;
    animation: shake 0.4s ease-in-out;
}

.fcpl-btn-feedback-icon {
    display: inline-flex;
    font-size: 20px;
    margin-left: 10px;
}

[dir="rtl"] .fcpl-btn-feedback-icon {
    margin-left: 0;
    margin-right: 10px;
}

/* Text & Phone Inputs */
.fcpl-input-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fcpl-text-input {
    width: 100%;
    padding: 16px;
    border-radius: 6px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 15px;
    outline: none;
    transition: var(--transition);
}

.fcpl-text-input:focus {
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}

/* Verification validation error text */
.fcpl-validation-msg {
    font-size: 13px;
    color: #c62828;
    min-height: 20px;
    margin-top: -5px;
    opacity: 0;
    transition: opacity 0.2s;
}

.fcpl-validation-msg.visible {
    opacity: 1;
}

/* General Action Buttons */
.fcpl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 30px;
    border-radius: 6px;
    background: var(--gold);
    border: none;
    color: #ffffff !important;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    outline: none;
    -webkit-tap-highlight-color: transparent; /* Remove iOS tap highlight */
}

.fcpl-btn:hover:not(:disabled) {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.fcpl-btn:active:not(:disabled) {
    transform: translateY(0);
}

.fcpl-btn:disabled {
    background: var(--text-light);
    opacity: 0.5;
    cursor: not-allowed;
}

/* Submit button alignment — adapts for RTL */
.fcpl-btn--submit {
    align-self: flex-start;
}

[dir="rtl"] .fcpl-btn--submit {
    align-self: flex-end;
}

/* Yes/No row layout */
.fcpl-answers-row {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
}

.fcpl-answers-row .fcpl-answer-btn {
    flex: 1;
    justify-content: center;
}

/* ══════════════════════════════════════════
   SUCCESS / COMPLETION SCREEN
   ══════════════════════════════════════════ */
.fcpl-success-screen {
    text-align: center;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fcpl-success-icon-wrap {
    color: var(--gold);
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--card-bg-hover);
    box-shadow: var(--shadow-gold);
}

.fcpl-success-title {
    font-family: var(--font-serif);
    color: var(--gold);
    font-size: 2.2rem;
    font-weight: 500;
    margin: 0 0 15px 0;
}

[dir="rtl"] .fcpl-success-title {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.8rem;
}

.fcpl-success-desc {
    color: var(--text-muted);
    max-width: 460px;
    margin: 0 auto 35px auto;
    font-size: 15px;
}

.fcpl-btn--restart {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary) !important;
}

.fcpl-btn--restart:hover {
    background: var(--card-bg-hover);
    border-color: var(--gold);
    color: var(--gold) !important;
}

/* ══════════════════════════════════════════
   NAVIGATION ARROWS
   ══════════════════════════════════════════ */
.fcpl-nav-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.fcpl-nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--gold);
    cursor: pointer;
    transition: var(--transition);
    outline: none;
}

.fcpl-nav-arrow:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}

.fcpl-nav-arrow:active:not(:disabled) {
    transform: translateY(0);
}

.fcpl-nav-arrow:disabled {
    opacity: 0.18;
    cursor: not-allowed;
}

/* Flip arrow icons based on document direction attribute for LTR/RTL support */
[dir="rtl"] #fcpl-prev-icon {
    transform: rotate(180deg);
}

[dir="rtl"] #fcpl-next-icon {
    transform: rotate(180deg);
}

/* Icon gold */
.icon-gold {
    color: var(--gold) !important;
}

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.fcpl-footer {
    width: 100%;
    padding: 30px;
    text-align: center;
    border-top: 1px solid var(--border-light);
    background: transparent;
}

.fcpl-footer__copy {
    margin: 0;
    font-size: 12px;
    color: var(--text-light);
}

/* ══════════════════════════════════════════
   ANIMATIONS & EFFECTS
   ══════════════════════════════════════════ */
.fcpl-loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 180px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1.5s linear infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.animate-bounce {
    animation: bounce 2s infinite ease-in-out;
}

/* Shake animation for wrong selection */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* Transitions for rendering questions */
.fade-out {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.fade-in {
    opacity: 0;
    transform: translateY(8px);
    animation: fadeInAnim 0.3s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ══════════════════════════════════════════
   RESPONSIVE MEDIA QUERIES
   ══════════════════════════════════════════ */

/* ── Tablet (≤ 768px) ── */
@media (max-width: 768px) {
    .fcpl-header {
        padding: 16px 24px;
    }

    .fcpl-container {
        padding: 16px 20px 40px 20px;
    }

    .fcpl-main-title {
        font-size: 1.8rem;
    }

    [dir="rtl"] .fcpl-main-title {
        font-size: 1.7rem;
    }

    .fcpl-question-text {
        font-size: 1.5rem;
        margin-bottom: 24px;
        line-height: 1.45;
    }

    [dir="rtl"] .fcpl-question-text {
        font-size: 1.35rem;
    }

    .fcpl-quiz-card {
        padding: 30px 24px;
        min-height: 280px;
    }

    .fcpl-answer-btn {
        padding: 14px 20px;
    }

    .fcpl-nav-arrow {
        width: 48px;
        height: 48px;
    }

    .fcpl-success-icon-wrap {
        width: 90px;
        height: 90px;
    }

    .fcpl-success-icon-wrap .material-symbols-outlined {
        font-size: 56px !important;
    }

    .fcpl-success-title {
        font-size: 1.8rem;
    }

    [dir="rtl"] .fcpl-success-title {
        font-size: 1.5rem;
    }

    .fcpl-btn {
        padding: 13px 24px;
        font-size: 14px;
    }
}

/* ── Mobile Large (≤ 576px) ── */
@media (max-width: 576px) {
    .fcpl-header {
        padding: 14px 16px;
    }

    .fcpl-header__controls {
        gap: 8px;
    }

    .fcpl-icon-btn {
        height: 40px;
        padding: 0 12px;
        font-size: 12px;
    }

    .fcpl-icon-btn .material-symbols-outlined {
        font-size: 16px;
    }

    .fcpl-header__brand {
        width: 40px;
        height: 40px;
    }

    .fcpl-container {
        padding: 12px 14px 32px 14px;
    }

    .fcpl-main-title {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    [dir="rtl"] .fcpl-main-title {
        font-size: 1.4rem;
    }

    .fcpl-title-wrap {
        margin-bottom: 18px;
    }

    .fcpl-progress-wrapper {
        margin-bottom: 20px;
    }

    .fcpl-progress-text {
        font-size: 12px;
    }

    .fcpl-question-index {
        font-size: 12px;
    }

    .fcpl-question-text {
        font-size: 1.25rem;
        margin-bottom: 20px;
        line-height: 1.5;
    }

    [dir="rtl"] .fcpl-question-text {
        font-size: 1.15rem;
    }

    .fcpl-quiz-card {
        padding: 24px 16px;
        min-height: 240px;
        border-radius: 6px;
    }

    .fcpl-answers-stack {
        gap: 12px;
    }

    .fcpl-answer-btn {
        padding: 12px 16px;
        font-size: 14px;
    }

    .fcpl-answers-row {
        gap: 12px;
    }

    .fcpl-text-input {
        padding: 14px;
        font-size: 14px;
    }

    .fcpl-btn {
        padding: 12px 20px;
        font-size: 14px;
        width: 100%; /* Full-width buttons on mobile */
    }

    .fcpl-btn--submit {
        align-self: stretch; /* Override flex-start for mobile full-width */
    }

    [dir="rtl"] .fcpl-btn--submit {
        align-self: stretch;
    }

    .fcpl-nav-controls {
        margin-top: 20px;
    }

    .fcpl-nav-arrow {
        width: 44px;
        height: 44px;
    }

    .fcpl-nav-arrow .material-symbols-outlined {
        font-size: 20px;
    }

    .fcpl-success-icon-wrap {
        width: 80px;
        height: 80px;
    }

    .fcpl-success-icon-wrap .material-symbols-outlined {
        font-size: 48px !important;
    }

    .fcpl-success-title {
        font-size: 1.5rem;
    }

    [dir="rtl"] .fcpl-success-title {
        font-size: 1.3rem;
    }

    .fcpl-success-desc {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .fcpl-footer {
        padding: 20px 14px;
    }

    .fcpl-footer__copy {
        font-size: 11px;
    }
}

/* ── Mobile Small (≤ 420px) ── */
@media (max-width: 420px) {
    .fcpl-header {
        padding: 12px 12px;
    }

    .fcpl-icon-btn {
        height: 38px;
        padding: 0 10px;
        font-size: 11px;
        border-radius: 19px;
    }

    .fcpl-header__brand {
        width: 38px;
        height: 38px;
    }

    .fcpl-container {
        padding: 10px 10px 28px 10px;
    }

    .fcpl-main-title {
        font-size: 1.3rem;
        letter-spacing: 0.5px;
        padding-bottom: 6px;
    }

    [dir="rtl"] .fcpl-main-title {
        font-size: 1.25rem;
    }

    .fcpl-title-wrap {
        margin-bottom: 14px;
    }

    .fcpl-progress-wrapper {
        margin-bottom: 16px;
    }

    .fcpl-progress-text {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .fcpl-question-index {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .fcpl-question-text {
        font-size: 1.1rem;
        margin-bottom: 18px;
        line-height: 1.5;
    }

    [dir="rtl"] .fcpl-question-text {
        font-size: 1.05rem;
    }

    /* Switch English to Sans-Serif on small screens for readability */
    [dir="ltr"] .fcpl-question-text {
        font-family: var(--font-sans);
        font-weight: 600;
    }

    .fcpl-quiz-card {
        padding: 20px 14px;
        min-height: 200px;
    }

    .fcpl-answers-stack {
        gap: 10px;
    }

    .fcpl-answer-btn {
        padding: 12px 14px;
        font-size: 13px;
    }

    .fcpl-answers-row {
        flex-direction: column; /* Stack Yes/No vertically on small screens */
        gap: 10px;
    }

    .fcpl-text-input {
        padding: 12px;
        font-size: 13px;
    }

    .fcpl-btn {
        padding: 11px 16px;
        font-size: 13px;
    }

    .fcpl-nav-arrow {
        width: 40px;
        height: 40px;
    }

    .fcpl-success-icon-wrap {
        width: 70px;
        height: 70px;
        margin-bottom: 16px;
    }

    .fcpl-success-icon-wrap .material-symbols-outlined {
        font-size: 40px !important;
    }

    .fcpl-success-title {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    [dir="rtl"] .fcpl-success-title {
        font-size: 1.15rem;
    }

    .fcpl-success-desc {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .fcpl-footer {
        padding: 16px 10px;
    }
}

/* ── Smallest Screens (≤ 320px) ── */
@media (max-width: 320px) {
    .fcpl-header {
        padding: 10px 8px;
    }

    .fcpl-header__controls {
        gap: 6px;
    }

    .fcpl-icon-btn {
        height: 36px;
        padding: 0 8px;
        font-size: 10px;
    }

    .fcpl-icon-btn .material-symbols-outlined {
        font-size: 15px;
    }

    .fcpl-header__brand {
        width: 36px;
        height: 36px;
    }

    .fcpl-container {
        padding: 8px 8px 24px 8px;
    }

    .fcpl-main-title {
        font-size: 1.15rem;
        letter-spacing: 0;
    }

    [dir="rtl"] .fcpl-main-title {
        font-size: 1.1rem;
    }

    .fcpl-question-text {
        font-size: 1rem;
        margin-bottom: 16px;
        line-height: 1.5;
        font-family: var(--font-sans); /* Sans-serif for all languages on tiny screens */
        font-weight: 600;
    }

    [dir="rtl"] .fcpl-question-text {
        font-size: 0.95rem;
    }

    .fcpl-quiz-card {
        padding: 16px 10px;
        min-height: 180px;
    }

    .fcpl-answer-btn {
        padding: 10px 12px;
        font-size: 12px;
    }

    .fcpl-btn-feedback-icon {
        font-size: 16px;
    }

    .fcpl-text-input {
        padding: 10px;
        font-size: 12px;
    }

    .fcpl-validation-msg {
        font-size: 11px;
    }

    .fcpl-btn {
        padding: 10px 14px;
        font-size: 12px;
        gap: 6px;
    }

    .fcpl-nav-controls {
        margin-top: 16px;
    }

    .fcpl-nav-arrow {
        width: 36px;
        height: 36px;
    }

    .fcpl-nav-arrow .material-symbols-outlined {
        font-size: 18px;
    }

    .fcpl-success-icon-wrap {
        width: 60px;
        height: 60px;
        margin-bottom: 14px;
    }

    .fcpl-success-icon-wrap .material-symbols-outlined {
        font-size: 34px !important;
    }

    .fcpl-success-title {
        font-size: 1.15rem;
    }

    [dir="rtl"] .fcpl-success-title {
        font-size: 1.05rem;
    }

    .fcpl-success-desc {
        font-size: 12px;
    }

    .fcpl-btn--restart {
        font-size: 12px;
        padding: 10px 14px;
    }

    .fcpl-footer {
        padding: 14px 8px;
    }

    .fcpl-footer__copy {
        font-size: 10px;
    }
}

/* ══════════════════════════════════════════
   WELCOME TOAST — Non-blocking corner toast
   for returning leads (glassmorphism gold)
   ══════════════════════════════════════════ */
.fcpl-welcome-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(197, 160, 89, 0.3);
    color: #c5a059;
    padding: 14px 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-sans);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 99999;
    pointer-events: none;
    direction: rtl;
    box-shadow: 0 8px 32px rgba(197, 160, 89, 0.15);
}

.fcpl-welcome-toast.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 600px) {
    .fcpl-welcome-toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
        text-align: center;
        font-size: 13px;
        padding: 12px 16px;
    }
}

/* Funnel Bar Offset to prevent header overlap */
body.fcp-has-funnel-bar .fcpl-header {
    padding-top: 32px !important;
}
