/* ============================================================
   INKIDIA LANDING PAGE — OWL Component Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

.inkidia-app *,
.inkidia-app *::before,
.inkidia-app *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ─── INSTANT COVER: hides header/footer immediately on first paint, before OWL mounts ─── */
#inkidia-root {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    background: #ffffff;
    overflow-y: auto;
    overflow-x: hidden;
}

.inkidia-app {
    /* Palette of the 2026 pages (inkidia_home_2026, /moalim, /iquiz):
       blue headings, sky surfaces, pink calls to action. */
    --brand: #1E3F8F;
    --brand-2: #2F6BE0;
    --brand-dark: #14306F;
    --brand-light: #EAF4FF;
    --accent: #EC1C6E;
    --accent-dark: #C9135A;
    --green: #16A085;
    --text: #1F2746;
    --muted: #5B6478;
    --bg: #ffffff;
    --card: #F6FAFF;
    --line: #E3EAF5;
    --radius: 18px;
    --shadow: 0 16px 40px -26px rgba(19, 48, 111, .5);
    --font-heading: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    /*
     * BIDI ISOLATION: critical to prevent Odoo's html[dir="rtl"] from bleeding in.
     * direction: ltr sets the base direction.
     * unicode-bidi: isolate creates a fully self-contained bidi context —
     * no bidi inheritance from parent html/body elements.
     */
    direction: ltr;
    unicode-bidi: isolate;

    /* MOD: Force Full Screen to hide Odoo Header/Footer */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    overflow-y: auto;
    overflow-x: hidden;
}

/* ─── RTL MODE — OWL reactively sets dir="rtl" on .inkidia-app when AR is selected ─── */
.inkidia-app[dir="rtl"] {
    direction: rtl;
    unicode-bidi: isolate;
    --font-heading: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
    font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
}

/* ─── FLOATING CTA (Vertical) ─── */
#floating-cta {
    position: fixed;
    right: 20px;
    bottom: 40px;
    transform: scale(0);
    z-index: 1000;
    background: var(--ikn-blue);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 18px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(236, 28, 110, 0.4);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: ik-cta-blink 2s infinite;
    opacity: 0;
    pointer-events: none;
}

#floating-cta.visible {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

[dir="rtl"] #floating-cta {
    right: auto;
    left: 20px;
}

@keyframes ik-cta-blink {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(236, 28, 110, 0.4);
    }

    50% {
        transform: scale(1.08);
        box-shadow: 0 12px 48px rgba(236, 28, 110, 0.6);
    }
}

#floating-cta svg {
    transform: rotate(90deg);
    margin-bottom: 8px;
}

[dir="rtl"] #floating-cta svg {
    transform: rotate(-90deg);
}

/* ─── LOGO BAR ─── */
.ik-logo-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 20px 0;
    position: relative;
}

.ik-logo-bar .logo {
    font-size: 22px;
    font-weight: 900;
    color: var(--brand);
    letter-spacing: -0.5px;
}

.ik-logo-bar .badge {
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50px;
    padding: 3px 8px;
    margin-left: 8px;
    letter-spacing: 0.5px;
}

/* ─── LANGUAGE SWITCHER ─── */
.lang-switcher {
    position: absolute;
    top: 18px;
    right: 20px;
    display: flex;
    gap: 8px;
}

[dir="rtl"] .lang-switcher {
    right: auto;
    left: 20px;
}

.lang-btn {
    background: var(--card);
    border: 1px solid #E3EAF5;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    color: var(--muted);
    transition: all 0.2s;
    font-family: inherit;
}

.lang-btn.active {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

/* ─── SCREEN SYSTEM ─── */
.ik-screen {
    display: none;
    width: 100%;
    animation: ikFadeIn 0.4s ease;
}

.ik-screen.active {
    display: block;
}

@keyframes ikFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

/* ─── PROGRESS BAR ─── */
.ik-progress-wrap {
    padding: 16px 20px 0;
    max-width: 600px;
    margin: 0 auto;
    display: none;
}

.ik-progress-wrap.visible {
    display: block;
}

.progress-steps {
    display: flex;
    align-items: center;
    gap: 0;
}

.step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #E3EAF5;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
}

.step-dot.done {
    background: var(--green);
    color: #fff;
}

.step-dot.active {
    background: var(--brand);
    color: #fff;
}

.step-line {
    flex: 1;
    height: 3px;
    background: #E3EAF5;
    transition: background 0.3s;
}

.step-line.done {
    background: var(--green);
}

.step-label {
    font-size: 11px;
    color: var(--muted);
    text-align: center;
    margin-top: 6px;
}

/* ─── VERTICAL PROGRESS BAR (INLINE TIMELINE) ─── */
.ik-timeline-item {
    position: relative;
    padding-left: 60px;
    /* LTR */
}

[dir="rtl"] .ik-timeline-item {
    padding-left: 0;
    padding-right: 60px;
    /* RTL */
}

/* On mobile, slightly less padding */
@media (max-width: 768px) {
    .ik-timeline-item {
        padding-left: 45px;
    }

    [dir="rtl"] .ik-timeline-item {
        padding-right: 45px;
    }
}

.ik-timeline-indicator {
    position: absolute;
    top: 0;
    left: 0;
    bottom: -60px;
    /* Span over the margin-bottom to connect to next section */
    width: 45px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

[dir="rtl"] .ik-timeline-indicator {
    left: auto;
    right: 0;
}

.v-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #E3EAF5;
    color: #9ca3af;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    z-index: 2;
    transition: all 0.3s;
    flex-shrink: 0;
}

.v-dot.active {
    background: var(--green);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(22, 160, 133, 0.3);
}

.v-dot.done {
    background: var(--green);
    color: #fff;
}

.v-line {
    width: 3px;
    flex-grow: 1;
    background: #E3EAF5;
    margin-top: 5px;
    margin-bottom: 5px;
    border-radius: 4px;
    transition: all 0.3s;
}

.v-line.active {
    background: var(--green);
}

/* Step 3 title: a soft frosted panel so it stays readable over a background image. */
.ik-step-backdrop {
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 10px 14px;
}


/* ─── CONTAINERS ─── */
.ik-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 24px 20px 100px;
}

/* Screen-1 sections carry an inline `order` style (admin-configurable section
   order); flex-column preserves their normal block-stacked appearance while
   making `order` take effect. Scoped to screen 1 only — screen 0 is untouched. */
.ik-screen-1 .ik-container {
    display: flex;
    flex-direction: column;
}

/* ─── SCREEN 0: PROFILE ─── */
.hero-label {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--brand);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero-label-ar {
    font-size: 1.2em;
    line-height: 1.7;
}

.ik-screen-0 h1 {
    text-align: center;
    font-size: clamp(26px, 6vw, 38px);
    font-weight: 900;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 8px;
}

.ik-screen-0 h1 span {
    color: var(--brand);
}

.ik-screen-0 .sub {
    text-align: center;
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 32px;
}

.profile-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.profile-card {
    background: var(--card);
    border: 2px solid transparent;
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 63, 143, 0.06), transparent);
    opacity: 0;
    transition: opacity 0.2s;
}

.profile-card:hover {
    border-color: var(--brand);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.profile-card:hover::before {
    opacity: 1;
}

.profile-card .emoji {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

/* Admin-uploaded picture replacing the emoji above: fixed-height box so any
   uploaded file — whatever its own dimensions — scales down to fit without
   being cropped or stretched, and the card's layout never shifts. */
.profile-icon-media {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.profile-icon-media img {
    max-height: 56px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    display: block;
    border-radius: 12px;
}

.profile-icon-media .emoji {
    margin-bottom: 0;
}

.profile-card h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}

.profile-card p {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
}

.trust-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 16px;
    background: var(--card);
    border-radius: 12px;
}

.trust-item {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.trust-item strong {
    color: var(--text);
}

/* ─── SCREEN 1: VALUE PROP ─── */
.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-light);
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    border-radius: 50px;
    padding: 5px 14px;
    margin-bottom: 16px;
}

[dir="rtl"] .profile-badge svg {
    transform: scaleX(-1);
    margin-left: 6px;
    margin-right: 0;
}

.ik-screen-1 h2 {
    font-size: clamp(22px, 5.5vw, 32px);
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 10px;
    color: var(--text);
}

.ik-screen-1 h2 span {
    color: var(--brand);
}

.ik-screen-1 .hook {
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 28px;
    line-height: 1.6;
}

.benefits-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--card);
    border-radius: 12px;
    padding: 14px 16px;
}

.benefits-list .icon {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Admin-uploaded picture replacing an emoji inside .icon (see iconHtml() in
   inkidia_landing.js): capped to the emoji's own footprint so it never grows
   the row or distorts, whatever aspect ratio the uploaded file has. */
.benefits-list .icon .icon-img {
    display: block;
    height: 26px;
    width: 26px;
    object-fit: contain;
    border-radius: 6px;
}

.benefits-list .text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.benefits-list .text span {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
}

.social-proof-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.avatars {
    display: flex;
}

.avatars .av {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-light);
    color: var(--brand);
    font-weight: 700;
}

.avatars .av:first-child {
    margin-left: 0;
}

.proof-text {
    font-size: 12px;
    color: var(--muted);
}

.proof-text strong {
    color: var(--text);
}

.stars {
    color: #F9B826;
    font-size: 13px;
}

/* ─── SCREEN 2: VIDEO ─── */
.ik-screen-2 h2 {
    font-size: clamp(20px, 5vw, 28px);
    font-weight: 900;
    margin-bottom: 6px;
    color: var(--text);
}

.ik-screen-2 .sub {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 24px;
}

.video-player-wrap {
    position: relative;
    background: #1F2746;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/9;
    margin-bottom: 16px;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.video-thumb-bg {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

.video-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.play-btn:hover {
    transform: translate(-50%, -50%) scale(1.08);
    background: #fff;
}

.play-btn svg {
    color: var(--brand);
    margin-left: 4px;
}

.video-caption {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    color: #fff;
    text-align: left;
}

[dir="rtl"] .video-caption {
    text-align: right;
}

.video-caption .tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #F9B826;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 2px 6px;
    display: inline-block;
    margin-bottom: 4px;
}

.video-caption h4 {
    font-size: 14px;
    font-weight: 700;
}

.video-titles-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 20px 0;
}

.video-title-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f3f4f6;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

/* Hover effect */
.video-title-item:hover {
    background: #E3EAF5;
}

/* Base style for the index circle */
.v-idx {
    width: 24px;
    height: 24px;
    background: #d1d5db;
    color: #5B6478;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.v-label {
    font-size: 13px;
    font-weight: 600;
    color: #5B6478;
    transition: color 0.3s ease;
    text-align: left;
    opacity: 1;
    /* Explicitly visible to override the old .v-label rule if any */
}

[dir="rtl"] .v-label {
    text-align: right;
}

/* ACTIVE STATE */
.video-title-item.active {
    background: var(--brand-light);
    border-color: var(--brand);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(30, 63, 143, 0.1);
}

[dir="rtl"] .video-title-item.active {
    transform: translateX(-4px);
}

.video-title-item.active .v-idx {
    background: var(--brand);
    color: #ffffff;
    animation: ik-v-pulse 2s infinite;
}

.video-title-item.active .v-label {
    color: var(--brand);
    font-weight: 800;
}

/* ACTIVE ANIMATION: Subtle pulse for the index */
@keyframes ik-v-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(30, 63, 143, 0.4);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(30, 63, 143, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(30, 63, 143, 0);
    }
}

.video-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* ─── SCREEN 3: FORM ─── */
.landing-section {
    padding-bottom: 60px;
    border-bottom: 1px solid #EAF4FF;
    margin-bottom: 60px;
}

.mini-hook {
    background: var(--brand-light);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    margin-bottom: 40px;
    border-left: 4px solid var(--brand);
}

[dir="rtl"] .mini-hook {
    border-left: none;
    border-right: 4px solid var(--brand);
}

.mini-hook h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--brand);
    margin-bottom: 8px;
}

.mini-hook p {
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
}

.hook {
    white-space: pre-line;
}

.final-header {
    text-align: center;
    margin-bottom: 28px;
}

.final-header h2 {
    font-size: clamp(20px, 5vw, 28px);
    font-weight: 900;
    color: var(--text);
    margin-bottom: 6px;
}

.final-header h2 span {
    color: var(--green);
}

.final-header p {
    font-size: 14px;
    color: var(--muted);
}

.offer-box {
    background: #F6FAFF;
    /* light neutral background */
    border: 1px solid #E3ECF7;
    border-radius: var(--radius);
    padding: 24px;
    /* similar to mini-hook */
    color: #1f2937;
    margin-bottom: 40px;
    /* like mini-hook */
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    display: flex;
    /* Make it flex */
    align-items: center;
    /* Align items vertically */
    justify-content: center;
    /* Center horizontally */
    gap: 16px;
    /* Space between emoji and text */
}

[dir="rtl"] .offer-box {
    border-left: none;
    border-right: 4px solid var(--brand);
}

.offer-box .offer-emoji {
    font-size: 32px;
    display: block;
    margin: 0;
}

.offer-box .offer-text {
    text-align: left;
    /* Text alignment inside flex child */
}

[dir="rtl"] .offer-box .offer-text {
    text-align: right;
}

.offer-box .offer-text strong {
    font-size: 15px;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
    color: var(--brand);
}

.offer-box .offer-text span {
    font-size: 13px;
    color: #5B6478;
}

/* Shown instead of/alongside the offer box when Moodle is unreachable
   (see _is_moodle_up in the controller) - same card shape as .offer-box,
   amber instead of brand-blue so it reads as a heads-up, not an error. */
.ik-maintenance-notice {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: var(--radius);
    padding: 20px 24px;
    color: #1f2937;
    margin-bottom: 24px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 16px;
}

[dir="rtl"] .ik-maintenance-notice {
    border-left: none;
    border-right: 4px solid #F59E0B;
}

[dir="ltr"] .ik-maintenance-notice {
    border-left: 4px solid #F59E0B;
}

.ik-maintenance-notice .ik-maintenance-emoji {
    font-size: 28px;
    flex: none;
}

.ik-maintenance-notice .ik-maintenance-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

[dir="rtl"] .ik-maintenance-notice .ik-maintenance-text {
    text-align: right;
}

.ik-maintenance-notice .ik-maintenance-text strong {
    font-size: 15px;
    font-weight: 700;
    color: #92400E;
}

.ik-maintenance-notice .ik-maintenance-text span {
    font-size: 13px;
    color: #5B6478;
}

.timer-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 20px;
    justify-content: center;
}

.timer-wrap .pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: ikPulse 1.5s infinite;
}

@keyframes ikPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.ik-countdown {
    font-weight: 700;
    color: var(--accent);
}

.ik-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}

[dir="rtl"] .ik-form {
    text-align: right;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid #E3EAF5;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(30, 63, 143, 0.1);
}

/* Partner handoff (IQuiz, etc.): phone number pre-filled and fixed, not editable */
.form-group input[readonly] {
    background: #f8fafc;
    color: var(--muted);
    cursor: not-allowed;
}

.form-group input[readonly]:focus {
    border-color: #E3EAF5;
    box-shadow: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Add red star after label if the field inside is required */
.ik-form .form-group:has(input[required])>label::after,
.ik-form .form-group:has(select[required])>label::after {
    content: " *";
    color: #e11d48;
    /* red */
    font-weight: 700;
}

.checkbox-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-wrap input[type=checkbox] {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    border-radius: 4px;
    padding: 0;
    cursor: pointer;
    margin-top: 2px;
    -webkit-appearance: checkbox !important;
    appearance: checkbox !important;
}

.checkbox-wrap label {
    font-size: 12px;
    color: var(--muted);
    cursor: pointer;
}

/* The WhatsApp question: the WhatsApp logo right next to its tick box. */
.checkbox-wrap label.ik-wa-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-wrap label.ik-wa-label input[type=checkbox] {
    margin-top: 0;
}

.ik-wa-logo {
    flex: none;
    width: 24px;
    height: 24px;
}

/* After the WhatsApp question: the form in two parts, contact details above,
   the account settings below. */
.ik-form-sep {
    height: 0;
    margin: 22px 0 20px;
    border-top: 2px solid #DCE3EC;
}

/* Under "Enfant 1": up to 3 children can be added. */
.ik-child-help {
    margin: -6px 0 12px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--muted);
}

/* ─── DEVICE QUESTIONS: yes / no buttons, then one card per device ───
   Each choice is a radio inside its label; the visible box is the span right
   after it, styled by input:checked + span. The radio stays in the page (not
   display:none) so the browser can point at it when the answer is missing. */
.ik-choice {
    position: relative;
    display: block;
    cursor: pointer;
}

.form-group .ik-choice input[type=radio] {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.ik-yesno {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ik-yesno-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 48px;
    padding: 10px 8px;
    border: 1.5px solid #D5DCE6;
    border-radius: 10px;
    background: #F7F9FC;
    color: #334155;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

/* A visible radio button in every choice: an empty ring, then a dot in a
   green ring once chosen, so the visitor sees at once that it is clicked. */
.ik-yesno-dot,
.ik-device-radio {
    flex: none;
    box-sizing: border-box;
    width: 20px;
    height: 20px;
    border: 2px solid #94A3B8;
    border-radius: 50%;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.ik-device-radio {
    width: 24px;
    height: 24px;
}

.ik-choice:hover .ik-yesno-dot,
.ik-choice:hover .ik-device-radio {
    border-color: #2F6BE0;
}

.ik-choice input:checked + .ik-yesno-box {
    border-color: #4ADE80;
    background: #ECFDF3;
    color: #14532D;
}

.ik-choice input:checked + .ik-yesno-box .ik-yesno-dot,
.ik-choice input:checked + .ik-device-card .ik-device-radio {
    border-color: #22C55E;
    background: #22C55E;
    box-shadow: inset 0 0 0 4px #fff;
}

.ik-devices {
    display: grid;
    gap: 10px;
}

.ik-device-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 96px;
    padding: 26px 16px 18px;
    border: 1.5px solid #D5DCE6;
    border-radius: 14px;
    background: #F7F9FC;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.ik-device-card--reco {
    background: #fff;
}

/* The chosen device: a blue-to-green frame. */
.ik-choice input:checked + .ik-device-card {
    border: 2px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box,
                linear-gradient(90deg, #2F6BE0, #22C55E) border-box;
    box-shadow: 0 4px 14px rgba(47, 107, 224, 0.12);
}

.ik-choice input:focus-visible + .ik-yesno-box,
.ik-choice input:focus-visible + .ik-device-card {
    box-shadow: 0 0 0 3px rgba(47, 107, 224, 0.25);
}

/* "Recommandé" sits in the top-left corner, in French as in Arabic. */
.ik-device-badge {
    position: absolute;
    top: 0;
    left: 0;
    padding: 3px 10px;
    border-radius: 12px 0 10px 0;
    background: #E0EEFF;
    color: #2F6BE0;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.ik-device-img {
    flex: none;
    width: 72px;
    height: 54px;
    object-fit: contain;
}

.ik-device-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.ik-device-title {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text);
}

.ik-device-hint {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    color: #16A34A;
}

/* ─── PACK SELECTION CHECKBOXES ─── */
.ik-checkbox-group {
    display: grid;
    gap: 10px;
    margin-top: 8px;
    background: #fdfdff;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #eee;
}

.ik-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
}

.ik-check-item input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    border-radius: 4px;
    cursor: pointer;
    accent-color: var(--brand);
    -webkit-appearance: checkbox !important;
    appearance: checkbox !important;
    margin: 0;
    border: 1px solid #ddd;
    background-color: #fff;
}

.checkbox-wrap a {
    color: var(--brand);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: transform 0.15s, box-shadow 0.15s, background-color 0.15s;
    box-shadow: 0 10px 22px -12px rgba(236, 28, 110, .9);
    letter-spacing: 0.3px;
    font-family: inherit;
}

[dir="rtl"] .btn-primary svg {
    transform: scaleX(-1);
    margin-right: 0;
    margin-left: 8px;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 14px 26px -12px rgba(236, 28, 110, .9);
}

.btn-primary:active {
    transform: scale(0.98);
}

.no-cc {
    text-align: center;
    font-size: 11px;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.security-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.sec-badge {
    font-size: 11px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ─── SUCCESS SCREEN ─── */
.ik-screen-success {
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--green), #12866F);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(22, 160, 133, 0.3);
    animation: ikPopIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes ikPopIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.ik-screen-success h2 {
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 10px;
}

.ik-screen-success p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 28px;
}

.next-steps {
    background: var(--card);
    border-radius: var(--radius);
    padding: 20px;
    text-align: left;
}

[dir="rtl"] .next-steps {
    text-align: right;
}

.next-steps h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.next-step-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #EAF4FF;
}

.next-step-item:last-child {
    border: none;
}

.step-num {
    width: 24px;
    height: 24px;
    background: var(--brand);
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.next-step-item p {
    font-size: 13px;
    color: var(--text);
    line-height: 1.5;
}

/* ─── PRICING SECTION ─── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.price-card {
    background: #fff;
    border: 2px solid #E3ECF7;
    border-radius: 16px;
    padding: 32px 16px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    min-height: 320px;
    cursor: default;
    transition: none !important;
}

.price-card.highlight {
    border-color: var(--brand);
    box-shadow: 0 10px 25px rgba(30, 63, 143, 0.1);
}

/* Book cover / icon above the title. Admin-uploadable in Images (book_essentielles,
   book_langues, book_secondaires): fixed-height box, object-fit: contain, so any
   uploaded picture — whatever its own aspect ratio — fits without cropping or
   stretching and the pricing grid's card heights never shift. */
.price-icon-media {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.price-icon-media img {
    max-height: 48px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}

.price-icon-media .price-emoji {
    font-size: 32px;
    line-height: 1;
}

.price-card h3 {
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 12px;
    color: #1F2746;
    line-height: 1.2;
}

.price-card .subjects {
    color: #718096;
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.6;
    flex-grow: 1;
}

.price-tag {
    font-size: 20px;
    font-weight: 900;
    color: var(--brand);
    margin-top: auto;
}

.avg-cost {
    background: #fdf2f2;
    color: #c53030;
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    border: 1px dashed #feb2b2;
}

.payment-methods-box {
    text-align: right;
}

[dir="ltr"] .payment-methods-box {
    text-align: left;
}

.payment-group h5 {
    font-weight: 800;
    font-size: 15px;
    color: #1F2746;
    margin-bottom: 8px;
}

.payment-group p {
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 5px;
}

.confirm-msg {
    color: #2b6cb0 !important;
    font-weight: 600;
    font-style: italic;
}

.payment-details {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

@media (max-width: 600px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }

    .price-card {
        padding: 24px 8px !important;
        min-height: 198px !important;
    }

    .price-card h3 {
        font-size: 13px !important;
    }

    .price-icon-media {
        height: 34px !important;
        margin-bottom: 6px !important;
    }

    .price-icon-media img {
        max-height: 34px !important;
    }

    .price-icon-media .price-emoji {
        font-size: 24px !important;
    }

    .price-card .subjects {
        display: block !important;
        font-size: 11px !important;
        margin-bottom: 12px !important;
    }

    .price-tag {
        font-size: 14px !important;
    }
}

/* ─── MODAL ─── */
.ik-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: ikFadeIn 0.3s ease;
}

@keyframes ikFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.ik-modal {
    background: #fff;
    width: 650px;
    max-width: 100%;
    max-height: 90vh;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: ikModalIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes ikModalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.ik-modal-header {
    padding: 18px 25px;
    background: #f8fafc;
    border-bottom: 1px solid #eef2f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ik-modal-header h3 {
    margin: 0;
    font-weight: 800;
    font-size: 17px;
    color: var(--brand);
}

.ik-modal-header .close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
}

.ik-modal-body {
    padding: 25px;
    overflow-y: auto;
    font-size: 14px;
    color: #334155;
    line-height: 1.6;
}

.ik-modal-body p {
    margin-bottom: 15px;
}

.ik-modal-body strong {
    color: #1F2746;
}

.ik-modal-footer {
    padding: 15px 25px;
    background: #f8fafc;
    border-top: 1px solid #eef2f6;
    display: flex;
    justify-content: center;
}

/* RTL Adjustments for modal */
[dir="rtl"] .ik-modal-body {
    text-align: right;
}

/* ─── READ MORE STUDENT ─── */
.ik-text-btn {
    background: none;
    border: none;
    color: var(--brand);
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.2s;
}

.ik-text-btn:hover {
    opacity: 0.8;
}

.student-more-content {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
}

.student-more-content p {
    margin-bottom: 12px;
}

.student-more-content strong {
    color: #1F2746;
    display: block;
    margin-bottom: 8px;
}

.custom-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.custom-list li {
    margin-bottom: 8px;
    padding-inline-start: 10px;
}

[dir="rtl"] .student-more-content {
    text-align: right;
}

/* ── INLINE OTP STYLES ── */
.btn-otp-action {
    background: var(--brand);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0 16px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-otp-action:hover {
    background: var(--brand-dark, #2b4ed3);
    transform: translateY(-1px);
}

.btn-otp-action:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
}

.otp-inline-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    margin: 15px 0 25px 0;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

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

.otp-inline-sub {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 15px;
    text-align: center;
}

.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    direction: ltr;
}

.otp-digit {
    width: 44px !important;
    height: 56px !important;
    text-align: center;
    font-size: 24px !important;
    font-weight: 800;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: white !important;
    margin: 0 !important;
    color: #1e293b;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.otp-digit:focus {
    border-color: var(--brand) !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(30, 63, 143, 0.15), 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px) scale(1.02);
    outline: none;
    color: var(--brand);
}

.otp-digit:not(:placeholder-shown) {
    border-color: var(--brand-light, #D6E9FF);
    background: #F6FAFF;
}

.otp-inline-resend {
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

.resend-link,
.ik2-resend-link {
    background: none;
    border: none;
    color: var(--brand);
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    padding: 4px;
    font-size: 13px;
    transition: opacity 0.2s;
}

.resend-link:hover,
.ik2-resend-link:hover {
    opacity: 0.8;
}

/* Remove arrows from number inputs */
.otp-digit::-webkit-outer-spin-button,
.otp-digit::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.otp-digit[type=number] {
    -moz-appearance: textfield;
}

.otp-digit {
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: none;
}

@media (max-width: 420px) {
    .ik-otp-modal {
        padding: 24px 16px;
    }

    .otp-digit {
        width: 38px;
        height: 48px;
        font-size: 18px;
    }

    .otp-inputs {
        gap: 4px;
    }
}

/* ─── 2026 type and details ──────────────────────────────────────────────
   Headings in Plus Jakarta Sans and the site blue, the highlighted word in
   pink, kicker in the light blue, chips on a sky tint, pill-shaped language
   buttons: what /accueil-2026, /moalim and /iquiz do. The variables above
   carry the palette; this block carries the shapes. */
.inkidia-app :where(h1, h2, h3, h4, h5),
.inkidia-app .ik-logo-bar .logo {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -.01em;
}

.inkidia-app[dir="rtl"] :where(h1, h2, h3, h4, h5) {
    letter-spacing: 0;
    line-height: 1.4;
}

.inkidia-app .ik-screen-0 h1,
.inkidia-app .ik-screen-1 h2,
.inkidia-app .ik-screen-2 h2,
.inkidia-app .final-header h2,
.inkidia-app .ik-screen-success h2 {
    color: var(--brand);
}

.inkidia-app .ik-screen-0 h1 span,
.inkidia-app .ik-screen-1 h2 span,
.inkidia-app .final-header h2 span {
    color: var(--accent);
}

.inkidia-app .ik-logo-bar .logo {
    color: var(--brand-dark);
}

.inkidia-app .hero-label {
    color: var(--brand-2);
    letter-spacing: .1em;
}

.inkidia-app .profile-badge {
    background: #E3EDFF;
    color: var(--brand-2);
}

.inkidia-app .ik-text-btn {
    color: var(--brand-2);
}

.inkidia-app .step-dot.active {
    background: var(--brand-2);
}

.inkidia-app .lang-btn {
    border-radius: 999px;
    border-color: var(--line);
}

.inkidia-app .lang-btn.active {
    background: var(--brand-2);
    border-color: var(--brand-2);
}

.inkidia-app .profile-card,
.inkidia-app .benefits-list li,
.inkidia-app .price-card {
    border: 1px solid #E3ECF7;
    background: #fff;
    box-shadow: 0 14px 30px -24px rgba(19, 48, 111, .4);
}

.inkidia-app .profile-card:hover,
.inkidia-app .price-card.highlight {
    border-color: var(--brand-2);
}

.inkidia-app .form-group select:focus,
.inkidia-app .form-group input:focus {
    border-color: var(--brand-2);
}