/*
 Theme Name:   EBC Academy Child
 Theme URI:    https://englishbusinesscoach.com
 Description:  Child theme for EBC Academy custom portal layouts and styling.
 Author:       Todd Bagnall
 Author URI:   https://englishbusinesscoach.com
 Template:     generatepress
 Version:      1.0.0
*/

/* Force GeneratePress container to 100% width globally */
body .grid-container,
body .container,
body .site-content,
body .one-container{
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}
/* =========================================================
   SINGLE LEARNER SESSION PAGE
   ========================================================= */
/* =========================================================
   EBC COPY BUTTON — GENERATEPRESS OVERRIDE & RESET
   ========================================================= */

button.ebc-copy-btn {
    /* Reset GeneratePress defaults */
    appearance: none !important;
    -webkit-appearance: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    line-height: 1 !important;
    text-transform: none !important;

    /* Enforce circle dimensions */
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    border-radius: 9999px !important;

    /* Align contents */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    /* State colors */
    color: #8a8a8f !important;
    cursor: pointer !important;
    transition: background 180ms ease, color 180ms ease !important;
}

/* Hover state */
button.ebc-copy-btn:hover,
button.ebc-copy-btn:focus {
    background: #f5f5f7 !important;
    color: #104a74 !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Success state on click */
button.ebc-copy-btn.copied {
    background: #eef8f1 !important;
    color: #16803c !important;
}

/* SVG icon sizing */
button.ebc-copy-btn svg {
    width: 17px !important;
    height: 17px !important;
    stroke: currentColor !important;
    flex-shrink: 0 !important;
    pointer-events: none !important;
}
/* =========================================================
   EBC PRACTICE ENGINE — FULL UNIFIED STYLESHEET
   ========================================================= */

#ebc-practice-engine {
    /* Color Palette Variables */
    --ebc-bg: #f6f8fb;
    --ebc-surface: #ffffff;
    --ebc-surface-soft: #f8fafc;
    --ebc-border: #e6eaf0;
    --ebc-border-hover: #d8deea;
    --ebc-border-strong: #dce2ea;

    --ebc-text: #172033;
    --ebc-text-soft: #5f6b7a;
    --ebc-text-muted: #8993a3;

    --ebc-primary: #315efb;
    --ebc-primary-hover: #3b6cff;
    --ebc-primary-dark: #2449d8;
    --ebc-primary-soft: #eef3ff;

    --ebc-indigo: #635bff;
    --ebc-indigo-soft: #f1f0ff;

    --ebc-success: #159570;
    --ebc-success-dark: #128968;
    --ebc-success-soft: #edf9f5;

    --ebc-warning: #c98216;
    --ebc-warning-soft: #fff8e9;

    --ebc-danger: #c94b61;

    /* Typography & Layout */
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ebc-text);
    position: relative;
    isolation: isolate;
}


/* =========================================================
   MAIN CARDS
   ========================================================= */

#ebc-practice-engine > .grid {
    align-items: stretch;
}

#ebc-practice-engine > .grid > div {
    position: relative;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--ebc-border);
    border-radius: 24px;
    padding: 30px;

    box-shadow:
        0 1px 2px rgba(16, 24, 40, 0.03),
        0 8px 30px rgba(16, 24, 40, 0.045);

    transition:
        transform 240ms cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 240ms cubic-bezier(0.16, 1, 0.3, 1),
        border-color 240ms ease;

    overflow: hidden;
}

/* Subtle decorative glow */
#ebc-practice-engine > .grid > div::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    top: -110px;
    right: -80px;

    background: radial-gradient(
        circle,
        rgba(49, 94, 251, 0.075) 0%,
        rgba(49, 94, 251, 0) 70%
    );

    pointer-events: none;
}

#ebc-practice-engine > .grid > div:hover {
    transform: translateY(-3px);
    border-color: var(--ebc-border-hover);

    box-shadow:
        0 2px 4px rgba(16, 24, 40, 0.035),
        0 18px 45px rgba(16, 24, 40, 0.08);
}


/* =========================================================
   CARD HEADINGS & TYPOGRAPHY
   ========================================================= */

#ebc-practice-engine h2 {
    color: var(--ebc-text);
    letter-spacing: -0.03em;
    font-weight: 600;
}

#ebc-practice-engine > .grid > div:first-child h2 {
    max-width: 620px;
}

#ebc-practice-engine p {
    text-wrap: pretty;
}


/* =========================================================
   CATEGORY LABELS & BADGES
   ========================================================= */

#ebc-practice-engine .bg-slate-100 {
    background: #f3f5f8;
    border-color: #e5e9ef;
    color: #4b5565;
}

#ebc-practice-engine .bg-blue-50 {
    background: var(--ebc-primary-soft) !important;
    border-color: #dbe5ff !important;
}

#ebc-practice-engine .bg-indigo-50 {
    background: var(--ebc-indigo-soft) !important;
    border-color: #dedcff !important;
}

#ebc-practice-engine .bg-amber-50 {
    background: var(--ebc-warning-soft) !important;
    border-color: #f3dfb6 !important;
}

#ebc-practice-engine .bg-emerald-50 {
    background: var(--ebc-success-soft) !important;
    border-color: #d6eee6 !important;
}

#ebc-practice-engine .text-emerald-700 {
    color: var(--ebc-success) !important;
}
 
#ebc-practice-engine .text-rose-900 {
    color: var(--color-rose-900) !important;
}
#ebc-practice-engine .bg-rose-50 {
    background-color: var(--color-rose-50) !important;
}




/* =========================================================
   KEY FOCUS AREA
   ========================================================= */

#ebc-practice-engine .bg-emerald-50\/60 {
    background: linear-gradient(
        135deg,
        #f1faf7 0%,
        #f8fcfa 100%
    );

    border-color: #d8eee7;

    box-shadow:
        inset 3px 0 0 var(--ebc-success),
        0 4px 16px rgba(21, 149, 112, 0.035);
}


/* =========================================================
   STAT / METRIC PILLS
   ========================================================= */

#ebc-practice-engine .bg-slate-50 {
    background: var(--ebc-surface-soft);
}

#ebc-practice-engine .grid > div .bg-slate-50 {
    transition:
        background 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

#ebc-practice-engine .grid > div .bg-slate-50:hover {
    background: var(--ebc-surface);
    border-color: var(--ebc-border-strong);
    transform: translateY(-1px);
}


/* =========================================================
   REFINED BUTTONS (COMPACT, PILL-ROUNDED, WHITE TEXT)
   ========================================================= */

/* Global baseline for action buttons */
#ebc-practice-engine button.bg-blue-600,
#ebc-practice-deck-modal button.bg-blue-600,
#ebc-practice-deck-modal button.bg-indigo-600,
#ebc-btn-submit-simulation {
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 9999px !important;
    letter-spacing: 0.015em !important;
    white-space: nowrap !important;
}

/* Primary Action Buttons (Blue) */
#ebc-practice-engine button.bg-blue-600,
#ebc-practice-deck-modal button.bg-blue-600 {
    position: relative;
    padding: 8px 18px !important;
    background: linear-gradient(
        135deg,
        #3b6cff 0%,
        #315efb 55%,
        #2449d8 100%
    ) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    box-shadow:
        0 3px 10px rgba(49, 94, 251, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    transition: transform 180ms ease, box-shadow 180ms ease !important;
}

#ebc-practice-engine button.bg-blue-600:hover,
#ebc-practice-deck-modal button.bg-blue-600:hover {
    background: linear-gradient(
        135deg,
        #416fff 0%,
        #315efb 100%
    ) !important;
    box-shadow:
        0 6px 16px rgba(49, 94, 251, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-1px);
}

#ebc-practice-engine button.bg-blue-600:active,
#ebc-practice-deck-modal button.bg-blue-600:active {
    transform: translateY(1px) scale(0.985);
}

/* Secondary / Audio Buttons (Indigo) */
#ebc-practice-deck-modal button.bg-indigo-600 {
    padding: 6px 14px !important;
    font-size: 12px !important;
    background: linear-gradient(
        135deg,
        #716aff 0%,
        #5b54e9 100%
    ) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 3px 10px rgba(91, 84, 233, 0.2) !important;
    transition: transform 180ms ease, box-shadow 180ms ease !important;
}

#ebc-practice-deck-modal button.bg-indigo-600:hover {
    box-shadow: 0 5px 14px rgba(91, 84, 233, 0.3) !important;
    transform: translateY(-1px);
}

/* Completion / Submit Button (Emerald) */
#ebc-btn-submit-simulation {
    padding: 8px 18px !important;
    background: linear-gradient(
        135deg,
        #18a77e 0%,
        #128968 100%
    ) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 3px 10px rgba(18, 137, 104, 0.2) !important;
    transition: transform 180ms ease, box-shadow 180ms ease !important;
}

#ebc-btn-submit-simulation:hover {
    box-shadow: 0 6px 16px rgba(18, 137, 104, 0.3) !important;
    transform: translateY(-1px);
}


/* =========================================================
   MODAL BACKDROP & CONTAINER
   ========================================================= */

#ebc-practice-deck-modal {
    background: rgba(15, 23, 42, 0.48);

    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);

    padding: 20px;
}

#ebc-practice-deck-modal > div {
    background: var(--ebc-surface);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 26px;

    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.10),
        0 30px 80px rgba(15, 23, 42, 0.20);

    animation: ebcModalIn 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ebcModalIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* =========================================================
   MODAL HEADER & TABS
   ========================================================= */

#ebc-practice-deck-modal > div > div:first-child {
    background: rgba(248, 250, 252, 0.88);
    border-bottom-color: #edf0f4;
    padding: 18px 24px;
}

#ebc-practice-deck-modal > div > div:first-child h3 {
    letter-spacing: 0.12em;
    font-size: 11px;
    color: #374151;
    margin-bottom: 0;
}

/* Modal Header Close Button Fix */
#ebc-practice-deck-modal > div > div:first-child button {
    width: 32px !important;
    height: 32px !important;
    border-radius: 9999px !important;

    /* Override blue background & borders */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #64748b !important; /* Neutral gray icon color */

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    cursor: pointer;

    transition:
        background 180ms ease,
        color 180ms ease,
        transform 180ms ease !important;
}

#ebc-practice-deck-modal > div > div:first-child button:hover {
    background: #eef2f6 !important; /* Soft neutral ring on hover */
    color: #0f172a !important;      /* Darker icon color on hover */
    transform: rotate(90deg) !important;
}

#ebc-practice-deck-modal > div > div:first-child button svg {
    width: 18px !important;
    height: 18px !important;
    stroke: currentColor !important;
}

#ebc-practice-deck-modal .ebc-tab-btn {
    position: relative;
    color: var(--ebc-text-muted);
    border-bottom-color: transparent;
    padding: 15px 12px;
    background: transparent;
    transition:
        color 180ms ease,
        border-color 180ms ease;
}

#ebc-practice-deck-modal .ebc-tab-btn:hover {
    color: #3f4b5d;
}

#ebc-practice-deck-modal .ebc-tab-btn.active {
    color: var(--ebc-primary);
    /*order-bottom-color: var(--ebc-primary);*/
}

#ebc-practice-deck-modal .ebc-tab-btn.active::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -1px;
    height: 2px;
    background: var(--ebc-primary);
    border-radius: 999px;
    box-shadow: 0 0 10px rgba(49, 94, 251, 0.25);
}

#ebc-practice-deck-modal button.text-xs.text-slate-400.hover\:text-blue-600.transition {background:transparent !important;
                                                              }

#ebc-practice-deck-modal button.text-xs.text-slate-400.hover\:text-amber-600.transition {background:transparent !important;}

#ebc-practice-deck-modal button.text-slate-400.hover\:text-slate-600.text-xs.shrink-0 {background:transparent !important;}

#ebc-practice-deck-modal button.text-\[11px\].font-semibold.text-blue-600.hover\:text-blue-800.transition {background: transparent !important;
                                                                                     padding: 4px 8px;
                                                                                  font-size: 0.7rem;
                                                                                  border-radius:12px;
                                                                                  color: #607D8B;
                                                                                 }
/* =========================================================
   MODAL BODY & QUIZ CARDS
   ========================================================= */

#ebc-practice-deck-modal .overflow-y-auto {
    scrollbar-width: auto;
    scrollbar-color: #cbd3df transparent;
}

#ebc-practice-deck-modal .overflow-y-auto::-webkit-scrollbar {
    width: 7px;
}

#ebc-practice-deck-modal .overflow-y-auto::-webkit-scrollbar-thumb {
    background: #cbd3df;
    border-radius: 20px;
}

#ebc-practice-deck-modal .ebc-tab-pane > div > div,
#ebc-practice-deck-modal .ebc-quiz-item,
#ebc-practice-deck-modal .ebc-scenario-opt,
#ebc-practice-deck-modal #tab-scenarios > div {
    border-color: var(--ebc-border);
    border-radius: 17px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.025);

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

#ebc-practice-deck-modal .ebc-opt-btn {
    min-height: 42px !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
    border-radius: 12px !important;
    border-color: var(--ebc-border);
    color: var(--ebc-text) !important;
    background: var(--ebc-surface);

    transition:
        background 160ms ease,
        border-color 160ms ease,
        transform 160ms ease,
        box-shadow 160ms ease;
}

#ebc-practice-deck-modal .ebc-opt-btn:hover {
    background: #f8faff !important;
    border-color: #bfcdf7 !important;
    color: var(--ebc-primary) !important;
    box-shadow: 0 3px 10px rgba(49, 94, 251, 0.055);
    transform: translateX(2px);
}

#ebc-practice-deck-modal .ebc-opt-btn.selected,
#ebc-practice-deck-modal .ebc-opt-btn[aria-selected="true"] {
    background: var(--ebc-primary) !important;
    color: #ffffff !important;
    border-color: var(--ebc-primary) !important;
}

#ebc-practice-deck-modal .ebc-explanation {
    background: #f2f6ff;
    border-color: #dce6ff;
    color: #31456f;
    box-shadow: inset 3px 0 0 #5b78e8;
}

#ebc-practice-deck-modal .ebc-scenario-fb {
    border-top-color: #edf0f4;
}

#ebc-practice-deck-modal .ebc-scenario-opt {
    background: var(--ebc-surface);
}


/* =========================================================
   MODAL FOOTER
   ========================================================= */

#ebc-practice-deck-modal > div > div:last-child {
    background: #fafbfd;
    border-top-color: #edf0f4;
    padding: 16px 22px;
}


/* =========================================================
   TYPOGRAPHY & ACCESSIBILITY
   ========================================================= */

#ebc-practice-engine .text-slate-500 { color: var(--ebc-text-soft); }
#ebc-practice-engine .text-slate-400 { color: var(--ebc-text-muted); }
#ebc-practice-engine .text-slate-600 { color: #596577; }
#ebc-practice-engine .text-slate-700 { color: #465163; }
#ebc-practice-engine .text-slate-800 { color: #263143; }
#ebc-practice-engine .text-slate-900 { color: var(--ebc-text); }

#ebc-practice-engine button:focus-visible,
#ebc-practice-deck-modal button:focus-visible,
#ebc-practice-deck-modal .ebc-opt-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(49, 94, 251, 0.25);
}

@media (prefers-reduced-motion: reduce) {
    #ebc-practice-engine *,
    #ebc-practice-engine *::before,
    #ebc-practice-engine *::after,
    #ebc-practice-deck-modal * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* =========================================================
   MOBILE RESPONSIVENESS
   ========================================================= */

@media (max-width: 640px) {
    #ebc-practice-engine > .grid > div {
        padding: 22px;
        border-radius: 20px;
    }

    #ebc-practice-engine h2 {
        font-size: 1.55rem;
        line-height: 1.25;
    }

    #ebc-practice-deck-modal {
        padding: 10px;
    }

    #ebc-practice-deck-modal > div {
        border-radius: 20px;
        max-height: 94vh;
    }

    #ebc-practice-deck-modal .overflow-y-auto {
        padding: 18px;
    }

    #ebc-practice-deck-modal .ebc-tab-btn {
        font-size: 11px;
        padding-left: 8px;
        padding-right: 8px;
    }

    #ebc-practice-deck-modal .ebc-tab-btn.active::after {
        left: 8px;
        right: 8px;
    }

    #ebc-practice-engine button.bg-blue-600 {
        width: 100%;
    }
}

/* Custom EBC Academy Styles */

#custom-back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 42px;
    height: 42px;
    line-height: 40px;
    text-align: center;
    background-color: #333333;
    color: #ffffff;
    font-size: 20px;
    border-radius: 50%;
    text-decoration: none;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

#custom-back-to-top.is-visible {
    opacity: 0.8;
    visibility: visible;
}

#custom-back-to-top:hover {
    background-color: #000000;
    color: #ffffff;
}


html { scroll-behavior: smooth; }

.inside-header {
     padding: 0;
}
.site-content {
    display: block;
}


/*-------------------------------------------------
  Academy front page
  --------------------------------- */

.ebc-home-wrapper {
    --ebc-primary: #0B2E49;     /* Dark Navy */
    --ebc-slate: #254A68;       /* Slate Blue */
    --ebc-secondary: #F8FEFE;   /* Soft Ice White */
    --ebc-accent: #FD5733;      /* Vibrant Coral */
    --ebc-text: #364A61;        /* Muted Slate */
}


/* =========================================================
   GLOBAL
   ========================================================= */

.ebc-home-wrapper ::selection {
    background: rgba(253, 87, 51, 0.22);
    color: #0B2E49;
}

.ebc-gradient-text {
    background: linear-gradient(
        110deg,
        #ffffff 15%,
        #DDECF7 58%,
        #FF9A83 100%
    );

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* =========================================================
   HERO HEADLINE STYLES
   ========================================================= */

.ebc-hero-title {
  padding-top: 0.5rem; /* pt-2 */
  font-size: 2.25rem;  /* text-4xl */
  line-height: 1.12;   /* leading-[1.12] */
  font-weight: 800;    /* font-extrabold */
  letter-spacing: -0.025em; /* tracking-tight */
  color: var(--ebc-dark, #0B2D47);
}

.ebc-hero-title span {
  color: var(--ebc-accent, #FD5732);
}

/* Tablet (640px+) */
@media (min-width: 640px) {
  .ebc-hero-title {
    padding-top: 1rem;  /* sm:pt-4 */
    font-size: 3rem;    /* sm:text-5xl */
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .ebc-hero-title {
    padding-top: 1.5rem; /* lg:pt-6 */
    font-size: 3.75rem;  /* lg:text-6xl */
  }
}

/* =========================================================
   BACKGROUND PATTERNS
   ========================================================= */

.ebc-grid {
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.055) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.055) 1px,
            transparent 1px
        );

    background-size: 64px 64px;
}

.ebc-dot-pattern {
    background-image:
        radial-gradient(
            rgba(255, 255, 255, 0.18) 1px,
            transparent 1px
        );

    background-size: 18px 18px;
}
section::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: 0px;
    top: -180px;
    border: 1px solid rgba(255,255,255,0.045);
    border-radius: 50%;
    box-shadow:
        0 0 0 70px rgba(255,255,255,0.008),
        0 0 0 140px rgba(255,255,255,0.004);
    z-index: 1;
    pointer-events: none;
}


/* =========================================================
   COACHING CARDS
   ========================================================= */

.ebc-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-height: 285px;
    padding: 1.65rem;

    overflow: hidden;

    border: 1px solid #e2e8f0;
    border-radius: 20px;

    background: #ffffff;

    text-decoration: none;

    box-shadow:
        0 2px 5px rgba(11, 45, 71, 0.025),
        0 10px 30px rgba(11, 45, 71, 0.035);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease,
        background-color .25s ease;
}


/* Accent line across top of card */

.ebc-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background: linear-gradient(
        90deg,
        var(--ebc-slate),
        var(--ebc-accent)
    );

    opacity: 0;

    transition: opacity .25s ease;
}





/* Card hover */

.ebc-card:hover {
    transform: translateY(-5px);

    border-color: rgba(16, 74, 116, .22);

    box-shadow:
        0 14px 40px rgba(11, 45, 71, .10),
        0 3px 10px rgba(11, 45, 71, .04);
}

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


/* =========================================================
   FLAT-LINE ILLUSTRATIONS
   ========================================================= */

.ebc-card-illustration {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 68px;
    height: 68px;

    margin-bottom: 1.25rem;

    border: 1px solid rgba(16, 74, 116, .10);
    border-radius: 17px;

    background: var(--ebc-secondary);

    color: var(--ebc-slate);

    transition:
        background-color .25s ease,
        color .25s ease,
        border-color .25s ease,
        transform .25s ease;
}

.ebc-card-illustration svg {
    display: block;

    width: 46px;
    height: 46px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Illustration hover */

.ebc-card:hover .ebc-card-illustration {
    background: var(--ebc-primary);
    border-color: var(--ebc-primary);

    color: #ffffff;

    transform: translateY(-2px);
}

/* =========================================================
   CARD CONTENT
   ========================================================= */

.ebc-card-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ebc-card-body {
    flex: 1;
    min-width: 0;
}

.ebc-card-body h3 {
    margin: 0;

    color: var(--ebc-primary);

    font-size: 1.12rem;
    line-height: 1.3;
    font-weight: 800;

    letter-spacing: -0.02em;

    transition: color .2s ease;
}

.ebc-card:hover .ebc-card-body h3 {
    color: var(--ebc-accent);
}


/* Description now sits below the title row */

.ebc-card-description {
    margin: .9rem 0 0;

    max-width: 34rem;

    color: var(--ebc-text);

    font-size: .85rem;
    line-height: 1.65;
}


/* =========================================================
   CARD FOOTER / CTA
   ========================================================= */

.ebc-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 1.5rem;
    padding-top: 1rem;

    border-top: 1px solid #edf1f4;

    color: var(--ebc-slate);

    font-size: .76rem;
    font-weight: 800;
}

.ebc-card-footer span {
    transition: color .2s ease;
}

.ebc-card:hover .ebc-card-footer span {
    color: var(--ebc-accent);
}


/* Arrow */

.ebc-arrow {
    width: 17px;
    height: 17px;

    transition:
        transform .2s ease,
        color .2s ease;
}

.ebc-link-card:hover .ebc-arrow {
    transform: translateX(4px);
}

.ebc-card:hover .ebc-arrow {
    color: var(--ebc-accent);
}


/* =========================================================
   KEYBOARD ACCESSIBILITY & UTILITIES
   ========================================================= */

.ebc-card:focus-visible,
.ebc-link-card:focus-visible {
    outline: none;

    box-shadow:
        0 0 0 3px rgba(253, 87, 51, .20),
        0 14px 40px rgba(11, 45, 71, .10);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .ebc-card {
        min-height: 0;
        padding: 1.35rem;

        border-radius: 17px;
    }

    .ebc-card-illustration {
        width: 60px;
        height: 60px;

        margin-bottom: 1rem;

        border-radius: 15px;
    }

    .ebc-card-illustration svg {
        width: 41px;
        height: 41px;
    }

    .ebc-card-title-row {
        gap: .8rem;
    }

    .ebc-card-body h3 {
        font-size: 1rem;
    }

    .ebc-card-description {
        margin-top: .75rem;
        font-size: .82rem;
        line-height: 1.6;
    }
    
    .ebc-card-body p {
        font-size: .82rem;
        line-height: 1.6;
    }

    .ebc-card-footer {
        margin-top: 1.25rem;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto !important;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* =========================================================
   EBC PERSONALISED ROADMAP FORM - PRODUCTION STYLESHEET
   Palette: Primary: #104A74 | Dark: #0B2D47 | Accent: #FF5733
   ========================================================= */

/* =========================================================
   1. CONTAINER & GLASS CARD
   ========================================================= */

.ebc-page-container {
    position: relative;
    min-height: 100vh;
    background-color: #0B2D47;
    padding: 60px 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ebc-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}
.glow-1 { top: -10%; left: -5%; width: 400px; height: 400px; background: rgba(16, 74, 116, 0.4); }
.glow-2 { bottom: -10%; right: -5%; width: 500px; height: 500px; background: rgba(255, 87, 51, 0.2); }

.ebc-content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.ebc-glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* =========================================================
   2. FORM WRAPPER (CONSOLIDATED)
   ========================================================= */

.ebc-roadmap-form-wrapper {
    width: 100%;
    max-width: 820px;
    margin: 30px auto 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
}

.ebc-roadmap-form-wrapper,
.ebc-roadmap-form-wrapper * {
    box-sizing: border-box !important;
}

/* =========================================================
   3. FORM HEADER
   ========================================================= */

.ebc-form-header {
    text-align: center;
    margin-bottom: 3rem;
}

.ebc-form-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.9rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid rgba(255, 87, 51, 0.25);
    border-radius: 999px;
    background: rgba(255, 87, 51, 0.08);
    color: #ff9279;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1;
}

.ebc-form-eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff5733;
    box-shadow: 0 0 0 4px rgba(255, 87, 51, 0.10);
}

.ebc-form-header h3 {
    margin: 0 0 0.75rem;
    color: #ffffff;
    font-size: clamp(1.8rem, 4vw, 2.35rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.ebc-form-header p {
    max-width: 620px;
    margin: 0 auto;
    color: rgba(219, 234, 254, 0.68);
    font-size: 1rem;
    line-height: 1.65;
}

/* =========================================================
   4. PROGRESS INDICATOR
   ========================================================= */

.ebc-form-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 520px;
    margin: 2rem auto 0;
}

.ebc-progress-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(219, 234, 254, 0.42);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.ebc-progress-item span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.68rem;
    transition: all 0.25s ease;
}

.ebc-progress-item.is-active {
    color: #ffffff;
}

.ebc-progress-item.is-active span {
    border-color: #ff5733;
    background: #ff5733;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 87, 51, 0.10);
}

.ebc-progress-line {
    width: 55px;
    height: 1px;
    margin: 0 0.75rem;
    background: rgba(255, 255, 255, 0.12);
}

/* =========================================================
   5. FORM SECTIONS & GRID
   ========================================================= */

.ebc-form-section {
    position: relative;
    margin-bottom: 1.5rem;
    padding: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.035);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
    overflow: visible; /* Prevents clipping native validity tooltips */
}

.ebc-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 1.5rem;
}

.ebc-section-number {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 87, 51, 0.10);
    border: 1px solid rgba(255, 87, 51, 0.22);
    color: #ff9279;
    font-size: 0.72rem;
    font-weight: 800;
}

.ebc-section-heading h4 {
    margin: 0;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.015em;
}

.ebc-section-heading p {
    margin: 0.25rem 0 0;
    color: rgba(219, 234, 254, 0.50);
    font-size: 0.8rem;
    line-height: 1.5;
}

.ebc-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
}

.ebc-form-group {
    margin-bottom: 1.4rem;
}

.ebc-form-grid .ebc-form-group {
    margin-bottom: 1.25rem;
}

.ebc-roadmap-form-wrapper .ebc-form-label,
.ebc-form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff !important;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.005em;
}

.ebc-form-label .req,
.ebc-form-label span.req {
    color: #ff8063;
    margin-left: 0.1rem;
}

/* =========================================================
   6. INPUTS / SELECTS / TEXTAREA (iOS ZOOM FIX)
   ========================================================= */

.ebc-roadmap-form-wrapper .ebc-form-control,
.ebc-form-control {
    display: block;
    width: 100%;
    min-height: 50px;
    box-sizing: border-box;
    padding: 0.8rem 0.95rem;

    border: 1px solid rgba(255, 255, 255, 0.13) !important;
    border-radius: 11px;

    background: rgba(255, 255, 255, 0.045) !important;
    color: #ffffff !important;

    font-family: inherit;
    font-size: 1rem; /* Minimum 16px prevents iOS Safari forced viewport zoom */
    line-height: 1.45;

    outline: none;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.08);

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;

    color-scheme: dark !important;
}

.ebc-form-control:hover {
    border-color: rgba(255, 255, 255, 0.22) !important;
    background: rgba(255, 255, 255, 0.055) !important;
}

.ebc-form-control::placeholder {
    color: rgba(255, 255, 255, 0.34);
}

.ebc-form-control:focus {
    outline: none;
    border-color: #ff5733 !important;
    background: rgba(255, 255, 255, 0.075) !important;
    box-shadow:
        0 0 0 3px rgba(255, 87, 51, 0.13),
        0 4px 16px rgba(0, 0, 0, 0.08) !important;
}

textarea.ebc-form-control {
    min-height: 118px;
    resize: vertical;
    line-height: 1.6;
}

select.ebc-form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 2.75rem;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.95rem center;
    background-size: 1rem;
    color-scheme: dark !important;
}

select.ebc-form-control option,
.ebc-roadmap-form-wrapper select option {
    background-color: #0b2d47 !important;
    color: #ffffff !important;
    font-size: 0.92rem;
}

select.ebc-form-control option:disabled {
    color: rgba(255, 255, 255, 0.4) !important;
}

select.ebc-form-control option:checked,
select.ebc-form-control option:hover {
    background-color: #104a74 !important;
    color: #ffffff !important;
}

.ebc-form-control:-webkit-autofill,
.ebc-form-control:-webkit-autofill:hover,
.ebc-form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0 1000px #0e3756 inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

.ebc-field-hint {
    margin-top: 0.45rem;
    color: var(--ebc-ink) !important;
    font-size: 0.73rem;
    line-height: 1.45;
}

/* =========================================================
   7. CHALLENGE SELECTION GRID
   ========================================================= */

.ebc-challenge-helper {
    margin: -0.15rem 0 0.85rem;
    color: rgba(219, 234, 254, 0.42);
    font-size: 0.75rem;
    line-height: 1.5;
}

.ebc-challenges-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
    margin-top: 0.75rem;
}

.ebc-roadmap-form-wrapper .ebc-challenge-btn,
.ebc-challenge-btn {
    position: relative;
    display: flex;
    min-height: 132px;
    box-sizing: border-box;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035) !important;
    cursor: pointer;
    user-select: none;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        transform 0.18s ease,
        box-shadow 0.2s ease;
}

.ebc-challenge-btn:hover {
    border-color: rgba(255, 255, 255, 0.25) !important;
    background: rgba(255, 255, 255, 0.065) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.10);
}

/* Accessible native checkbox - visually hidden but anchorable for JS/browser tooltips */
.ebc-challenge-btn input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.ebc-roadmap-form-wrapper .ebc-challenge-content,
.ebc-challenge-content {
    display: block;
    padding-right: 1.5rem;
    color: rgba(219, 234, 254, 0.55) !important;
    font-size: 0.76rem;
    line-height: 1.5;
}

.ebc-roadmap-form-wrapper .ebc-challenge-content strong,
.ebc-challenge-content strong {
    display: block;
    margin-bottom: 0.35rem;
    color: #ffffff !important;
    font-size: 0.88rem;
    line-height: 1.3;
    font-weight: 800;
    transition: color 0.2s ease;
}

.ebc-challenge-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.ebc-challenge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    margin-bottom: 0.65rem;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.ebc-challenge-description {
    display: block;
}

.ebc-challenge-check {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    color: transparent;
    font-size: 0.7rem;
    font-weight: 900;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.ebc-roadmap-form-wrapper .ebc-challenge-btn.is-active,
.ebc-challenge-btn.is-active {
    /*border-color: #ff5733 !important;*/
    background: linear-gradient(145deg, rgba(250, 252, 252, 0.98), rgba(232, 239, 241, 0.94)) !important;
    /*background: linear-gradient(
        145deg,
        rgba(16, 74, 116, 0.55),
        rgba(255, 87, 51, 0.08)
    ) !important;*/
    box-shadow:
        0 0 0 1px rgba(255, 87, 51, 0.75),
        0 10px 26px rgba(255, 87, 51, 0.10);
}


label.ebc-challenge-btn.is-active {
  position: relative !important;
  border: 2px solid transparent !important;
  isolation: isolate !important;
}

label.ebc-challenge-btn.is-active::before {
  content: "" !important;
  position: absolute !important;
  inset: -2px !important;
  border-radius: inherit !important;
  padding: 2px !important;

  background: conic-gradient(
    from var(--border-angle, 0deg),
    #104a74 0%,
    #104a74 25%,
    rgba(16, 74, 116, 0.7) 38%,
    rgba(255, 87, 51, 0.7) 62%,
    rgb(255, 87, 51) 75%,
    #104a74 100%
  ) !important;

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0) !important;
  -webkit-mask-composite: xor !important;
  mask-composite: exclude !important;

  pointer-events: none !important;
  animation: executiveBorderFlow 4s linear 1 !important;
}

@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes executiveBorderFlow {
  from {
    --border-angle: 0deg;
  }
  to {
    --border-angle: 360deg;
  }
}


/*label.ebc-challenge-btn.is-active::before {
  content: "" !important;
  position: absolute !important;
  inset: -2px !important;
  border-radius: inherit !important;
  padding: 2px !important;

  background: linear-gradient(
    135deg,
    #104a74 0%,
    #104a74 25%,
    rgba(16, 74, 116, 0.65) 40%,
    rgba(255, 87, 51, 0.65) 70%,
    rgb(255, 87, 51) 100%
  ) !important;

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0) !important;
  -webkit-mask-composite: xor !important;
  mask-composite: exclude !important;

  pointer-events: none !important;
}*/

.ebc-challenge-btn.is-active .ebc-challenge-content strong {
    color: #ffffff !important;
}

.ebc-challenge-btn.is-active .ebc-challenge-content {
    color: rgba(219, 234, 254, 0.75) !important;
}

.ebc-challenge-btn.is-active .ebc-challenge-icon {
    background: rgba(255, 87, 51, 0.16);
    transform: scale(1.04);
}

.ebc-challenge-btn.is-active .ebc-challenge-check {
    border-color: #ff5733;
    background: #ff5733;
    color: #ffffff;
    transform: scale(1.05);
}

.ebc-challenge-btn:focus-within {
    border-color: #ff5733 !important;
    box-shadow: 0 0 0 3px rgba(255, 87, 51, 0.14);
}

/* =========================================================
   8. SUBMISSION & SUMMARY
   ========================================================= */

.ebc-form-submit-section {
    margin-top: 1.75rem;
    padding-top: 0.25rem;
}

.ebc-roadmap-summary {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
}

.ebc-roadmap-summary-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(52, 211, 153, 0.10);
    border: 1px solid rgba(52, 211, 153, 0.20);
    color: #6ee7b7;
    font-size: 0.8rem;
    font-weight: 900;
}

.ebc-roadmap-summary strong {
    display: block;
    margin-bottom: 0.2rem;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
}

.ebc-roadmap-summary span {
    display: block;
    color: rgba(219, 234, 254, 0.45);
    font-size: 0.7rem;
    line-height: 1.45;
}

.ebc-gdpr-group {
    margin-bottom: 1rem;
}

.ebc-gdpr-label {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    color: rgba(219, 234, 254, 0.48);
    font-size: 0.72rem;
    line-height: 1.55;
    cursor: pointer;
}

.ebc-gdpr-label input[type="checkbox"] {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 0.1rem 0 0;
    accent-color: #ff5733;
    cursor: pointer;
}

.ebc-gdpr-label .req {
    color: #ff8063;
}

.ebc-submit-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    min-height: 58px;
    margin-top: 0.75rem;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 13px;
    background: #ff5733;
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    cursor: pointer;
    box-shadow:
        0 8px 24px rgba(255, 87, 51, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
    transition:
        background-color 0.2s ease,
        transform 0.18s ease,
        box-shadow 0.2s ease;
}

.ebc-submit-btn:hover {
    background: #e94d2c;
    transform: translateY(-2px);
    box-shadow:
        0 12px 30px rgba(255, 87, 51, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.ebc-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 5px 14px rgba(255, 87, 51, 0.22);
}

.ebc-submit-btn:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, 0.12),
        0 0 0 7px rgba(255, 87, 51, 0.40);
}

.ebc-submit-arrow {
    transition: transform 0.2s ease;
}

.ebc-submit-btn:hover .ebc-submit-arrow {
    transform: translateX(4px);
}

.ebc-submit-note {
    margin: 0.75rem 0 0;
    text-align: center;
    color: rgba(219, 234, 254, 0.36);
    font-size: 0.68rem;
    line-height: 1.5;
}

#ebc-form-response {
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    line-height: 1.5;
}

/* =========================================================
   9. VALIDATION STATES
   ========================================================= */

/*.ebc-form-control:invalid:not(:placeholder-shown) {
    border-color: rgba(248, 113, 113, 0.65) !important;
}*/

.ebc-form-control:valid:not(:placeholder-shown) {
    border-color: rgba(52, 211, 153, 0.22) !important;
}

/* =========================================================
   10. MEDIA QUERIES (MOBILE MATH FIX & 16PX BASELINE)
   ========================================================= */

@media (max-width: 700px) {

.ebc-glass-card {
    padding: 40px;
}
    .ebc-form-header {
        margin-bottom: 2rem !important;
        margin-top: -50px;
        width: calc(100% + 60px) !important; /* Fixed math: 30px left + 30px right */
        margin-left: -30px !important;
        margin-right: -30px !important;
    }

    .ebc-form-header h3 {
        font-size: 1.75rem;
    }

    .ebc-form-header p {
        font-size: 0.9rem;
        padding: 0 0.25rem;
    }

    .ebc-form-progress {
        margin-top: 1rem;
    }

    .ebc-progress-item {
        font-size: 0;
    }

    .ebc-progress-item span {
        width: 28px;
        height: 28px;
        font-size: 0.68rem;
    }

    .ebc-progress-line {
        flex: 1;
        max-width: 65px;
        margin: 0 0.5rem;
    }

    .ebc-form-section {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin-bottom: 3rem !important;
        width: calc(100% + 60px) !important; /* Fixed math: 30px left + 30px right */
        margin-left: -30px !important;
        margin-right: -30px !important;
    }

    .ebc-section-heading {
        margin-bottom: 1.1rem;
        gap: 0.65rem !important;
    }

    .ebc-section-heading h4 {
        font-size: 0.98rem;
    }

    .ebc-section-heading p {
        font-size: 0.75rem;
    }

    .ebc-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .ebc-form-grid .ebc-form-group {
        margin-bottom: 1.1rem;
    }

    .ebc-challenges-grid {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .ebc-challenge-btn {
        min-height: auto;
        padding: 0.75rem 0.65rem !important;
    }

    .ebc-challenge-content {
        font-size: 0.75rem;
        padding-right: 0.85rem !important;
    }

    .ebc-challenge-content strong {
        font-size: 0.86rem;
    }

    .ebc-roadmap-summary {
        padding: 0.85rem;
        width: calc(100% + 60px) !important; /* Fixed math: 30px left + 30px right */
        margin-left: -30px !important;
        margin-right: -30px !important;
    }

    .ebc-submit-btn {
        min-height: 56px;
        width: calc(100% + 60px) !important; /* Fixed math: 30px left + 30px right */
        margin-left: -30px !important;
        margin-right: -30px !important;
    }

    select.ebc-form-control {
        padding-left: 0.75rem !important;
        padding-right: 2rem !important;
        background-position: right 0.65rem center !important;
    }
}

@media (max-width: 420px) {
    .ebc-form-header {
        margin-bottom: 0.75rem;
    }

    .ebc-form-header h3 {
        font-size: 1.55rem;
    }

    .ebc-form-header p {
        font-size: 0.85rem;
    }

    .ebc-form-section {
        padding: 1rem 0.65rem;
        border-radius: 14px;
        margin-bottom: 0.75rem;
    }

    .ebc-section-number {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        font-size: 0.65rem;
    }

    /* Fixed iOS Safari Zoom trigger: maintained 1rem (16px) font baseline */
    .ebc-form-control {
        min-height: 48px;
        padding: 0.75rem 0.85rem;
        font-size: 1rem !important;
    }

    .ebc-roadmap-summary {
        align-items: flex-start;
        padding: 0.75rem 0.65rem;
    }

    .ebc-gdpr-label {
        font-size: 0.68rem;
    }

    .ebc-submit-btn {
        font-size: 0.92rem;
    }
}

/* =========================================================
   11. ACCESSIBILITY & REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .ebc-form-control,
    .ebc-challenge-btn,
    .ebc-challenge-icon,
    .ebc-challenge-check,
    .ebc-submit-btn,
    .ebc-submit-arrow,
    .ebc-progress-item span {
        transition: none !important;
    }
}

/* ========================================================================
   NEW DESIGN OVERRIDES
   CSS #2 — preferred/new design
   ======================================================================== */


.ebc-glass-card h3 {
    margin: 0 0 0.75rem;
    color: #ffffff;
    font-size: clamp(1.8rem, 4vw, 2.35rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.ebc-glass-card p {
    max-width: 620px;
    margin: 0 auto;
    color: rgba(219, 234, 254, 0.68);
    font-size: 1rem;
    line-height: 1.65;
}

/* ==========================================================================
   EBC Lead Booking Modal & Flatpickr Custom Styling
   Brand Palette: #0B2E49 | #254A68 | #364A61 | #FD5732 | #F8FEFE
   ========================================================================== */

/* 1. Lead Modal Backdrop Overlay */
#ebc-lead-modal {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(11, 46, 73, 0.8) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999999 !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
    box-sizing: border-box !important;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
}

/* Active State Triggered via JS (.ebc-active) */
#ebc-lead-modal.ebc-active {
    display: flex !important;
    opacity: 1 !important;
}

#ebc-lead-modal.ebc-active #ebc-lead-modal-card {
    transform: scale(1) !important;
}

/* 2. Lead Modal Inner Card Box */
#ebc-lead-modal-card {
    background: #ffffff !important;
    border-radius: 16px !important;
    width: 100% !important;
    max-width: 820px !important;
    height: 85vh !important;
    max-height: 750px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-shadow: 0 25px 50px -12px rgba(11, 46, 73, 0.35) !important;
    transform: scale(0.92);
    transition: transform 0.25s ease-in-out;
    position: relative !important;
    z-index: 1000000 !important;
    box-sizing: border-box !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #364A61;
}

/* Enable vertical scrolling inside the modal body */
#ebc-lead-booking-body {
    flex: 1 !important;
    overflow-y: auto !important;
    max-height: 100% !important;
    padding-right: 4px;
}

/* Close Button */
#ebc-lead-close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 22px;
    color: #254A68;
    cursor: pointer;
    line-height: 1;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 10;
}

#ebc-lead-close-modal:hover {
    background-color: #F8FEFE;
    color: #FD5732;
}

/* Modal Typography */
#ebc-lead-modal h3 {
    margin: 0 0 6px 0 !important;
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 700 !important;
}

#ebc-lead-modal p.ebc-subtitle {
    margin: 0 0 16px 0;
    color: #364A61;
    font-size: 14px;
    line-height: 1.5;
}

.ebc-col-heading {
    font-size: 14px;
    font-weight: 700;
    color: #0B2E49;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 3. Two-Column Grid Layout */
.ebc-modal-body-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 16px;
    align-items: start;
}

/* Column Cards */
.ebc-grid-col-left,
.ebc-grid-col-right {
    background: #F8FEFE;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    box-sizing: border-box;
}

/* 4. Flatpickr Calendar Overrides */
.flatpickr-calendar.inline {
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    font-family: inherit !important;
}

.flatpickr-months {
    background: transparent !important;
    margin-bottom: 8px;
}

.flatpickr-months .flatpickr-month {
    color: #0B2E49 !important;
    fill: #0B2E49 !important;
    height: 34px !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    font-weight: 700 !important;
    color: #0B2E49 !important;
}

.flatpickr-months .flatpickr-prev-month:hover svg, 
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: #FD5732 !important;
}

/* Weekday Headers (Mon, Tue, etc.) */
span.flatpickr-weekday {
    color: #254A68 !important;
    font-weight: 600 !important;
    font-size: 12px !important;
}

/* Day Cells */
.flatpickr-day {
    color: #364A61 !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    border: 1px solid transparent !important;
    height: 38px !important;
    line-height: 36px !important;
}

.flatpickr-day:hover {
    background-color: #e2e8f0 !important;
    color: #0B2E49 !important;
}

/* Today's Date */
.flatpickr-day.today {
    border-color: #254A68 !important;
    font-weight: 700 !important;
}

/* Selected Date */
.flatpickr-day.selected, 
.flatpickr-day.selected:hover {
    background-color: #FD5732 !important;
    border-color: #FD5732 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 10px rgba(253, 87, 50, 0.3);
}

/* Disabled/Unavailable Days */
.flatpickr-day.flatpickr-disabled, 
.flatpickr-day.flatpickr-disabled:hover {
    color: #cbd5e1 !important;
    background: transparent !important;
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}

/* 5. Time Slot Grid Buttons */
#ebc-lead-slots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-height: 260px;
    overflow-y: auto;
    padding-right: 4px;
}

#ebc-lead-slots button,
.ebc-lead-slot-btn {
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #364A61;
    background-color: #ffffff;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease-in-out;
}

#ebc-lead-slots button:hover,
.ebc-lead-slot-btn:hover {
    border-color: #254A68;
    color: #0B2E49;
    background-color: #F8FEFE;
}

/* Selected Slot Highlight */
#ebc-lead-slots button.selected,
.ebc-lead-slot-btn.selected,
#ebc-lead-slots button[style*="background: rgb(253, 87, 50)"],
#ebc-lead-slots button[style*="background-color: rgb(253, 87, 50)"] {
    background-color: #FD5732 !important;
    color: #ffffff !important;
    border-color: #FD5732 !important;
    box-shadow: 0 4px 10px rgba(253, 87, 50, 0.25);
}

/* 6. Form Inputs & Submit Controls */
#ebc-lead-customer-fields {
    margin-top: 18px;
    padding: 16px 0 30px 0 !important;
    border-top: 1px solid #e2e8f0;
}

.ebc-form-group {
    margin-bottom: 12px;
}

.ebc-form-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #0B2E49;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ebc-form-group input[type="text"],
.ebc-form-group input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #0B2E49;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.ebc-form-group input[type="text"]:focus,
.ebc-form-group input[type="email"]:focus {
    outline: none;
    border-color: #FD5732;
    box-shadow: 0 0 0 3px rgba(253, 87, 50, 0.15);
}

.ebc-privacy-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #364A61;
    margin-top: 12px;
    line-height: 1.4;
}

.ebc-privacy-group input[type="checkbox"] {
    margin-top: 2px;
    accent-color: #FD5732;
}

#ebc-lead-submit-btn {
    width: 100%;
    margin-top: 16px;
    padding: 12px 18px;
    background-color: #FD5732;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(253, 87, 50, 0.3);
}

#ebc-lead-submit-btn:hover {
    background-color: #e04826;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(253, 87, 50, 0.4);
}

#ebc-lead-submit-btn:disabled {
    background-color: #cbd5e1;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#ebc-lead-form-error {
    margin-top: 12px;
    padding: 10px;
    border-radius: 8px;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 12px;
    font-weight: 500;
}
.ebc-form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    width: 100%;
}

.ebc-form-row input[type="text"] {
    flex: 1;
    width: 100%;
}

/* 7. Mobile Responsiveness Safeguard */
@media (max-width: 768px) {
    .ebc-modal-body-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 640px) {

	#ebc-lead-modal {
	padding: 0 !important;
	}
    #ebc-lead-modal-card {
        height: 100vh !important;
        max-height: none !important;
        border-radius: 12px !important;
        width: 100vw !important;
        max-width: 100% !important;
        border-radius: 0 !important;
    }
    #ebc-lead-customer-fields {
    padding: 16px 0 50px 0 !important;
}
    .ebc-form-row {
        flex-direction: column;
        gap: 10px;
    }
}



/* ================================================================
   EBC — EXECUTIVE EDITORIAL
   ================================================================

   COMPLETE VISUAL REPLACEMENT

   IMPORTANT:
   - Replace the previous CSS with this file.
   - Do NOT add this underneath the previous CSS.
   - HTML structure remains unchanged.
   - IDs remain unchanged.
   - Form names remain unchanged.
   - Checkbox values remain unchanged.
   - JavaScript / form logic remains unchanged.

   DESIGN DIRECTION
   -----------------
   Wide
   Light
   Editorial
   Executive
   Premium
   Modern
   Calm
   Highly readable
   ================================================================ */


/* ================================================================
   01. DESIGN SYSTEM
   ================================================================ */

:root {

    /* ---------- Core palette ---------- */

    --ebc-ink: #252b2d;
    --ebc-ink-soft: #3f484b;

    --ebc-muted: #697276;
    --ebc-muted-light: #8a9295;

    /* ---------- Accent ---------- */

    --ebc-accent: #d75c42;
    --ebc-accent-dark: #b94831;
    --ebc-accent-soft: #f7e9e4;

    /*
       Sage is deliberately subtle.
       It gives the page a premium executive feel
       without turning it into a green-themed website.
    */

    --ebc-sage: #66766f;
    --ebc-sage-dark: #4e5d57;
    --ebc-sage-soft: #e9eeeb;

    /* ---------- Backgrounds ---------- */

    --ebc-page: #eeece7;
    --ebc-page-light: #f5f3ef;

    --ebc-surface: #fbfaf7;
    --ebc-surface-alt: #f4f2ed;
    --ebc-surface-deep: #e9e7e1;

    /* ---------- Forms ---------- */

    --ebc-input: #f0efeb;
    --ebc-input-hover: #f7f6f2;
    --ebc-input-focus: #fffefa;

    /* ---------- Borders ---------- */

    --ebc-border: #d8d6d0;
    --ebc-border-soft: #e4e2dc;
    --ebc-border-strong: #bdbab3;

    /* ---------- Status ---------- */

    --ebc-success: #4e765f;
    --ebc-success-soft: #e6eee9;

    /* ---------- Radius ---------- */

    --ebc-radius-xl: 26px;
    --ebc-radius-lg: 18px;
    --ebc-radius-md: 12px;
    --ebc-radius-sm: 9px;

    /* ---------- Shadows ---------- */

    --ebc-shadow-card:
        0 28px 80px rgba(35, 39, 39, 0.09),
        0 3px 12px rgba(35, 39, 39, 0.025);

    --ebc-shadow-section:
        0 8px 28px rgba(35, 39, 39, 0.045);

    --ebc-shadow-hover:
        0 16px 38px rgba(35, 39, 39, 0.085);
}


/* ================================================================
   02. GLOBAL RESET / SAFETY
   ================================================================ */

.ebc-page-container *,
.ebc-page-container *::before,
.ebc-page-container *::after {
    box-sizing: border-box;
}

.ebc-page-container {

    color: var(--ebc-ink) !important;

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif !important;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 0 !important;
}

.ebc-page-container button,
.ebc-page-container input,
.ebc-page-container select,
.ebc-page-container textarea {

    font-family: inherit !important;
}


/* ================================================================
   03. PAGE BACKGROUND
   ================================================================ */

.ebc-page-container {

    min-height: 100vh;

    position: relative;

    overflow: hidden;

    background:

        radial-gradient(
            ellipse 800px 500px at -5% -5%,
            rgba(255,255,255,0.80),
            transparent 68%
        ),

        radial-gradient(
            ellipse 700px 500px at 105% 92%,
            rgba(216,220,215,0.55),
            transparent 70%
        ),

        linear-gradient(
            135deg,
            #efede8 0%,
            #e9e7e1 45%,
            #f2f0ec 100%
        ) !important;
}


/* ================================================================
   04. AMBIENT ELEMENTS
   ================================================================ */

/*
   The existing HTML contains ambient glows and grid elements.
   We keep them visually quiet so they add depth without looking
   futuristic or decorative.
*/

.ebc-glow {

    opacity: 0.08 !important;

    filter: blur(110px) !important;

    pointer-events: none !important;
}

.ebc-glow.glow-1 {

    background: #ffffff !important;
}

.ebc-glow.glow-2 {

    background: #d75c42 !important;

    opacity: 0.035 !important;
}

.ebc-grid {

    opacity: 0.20 !important;

    background-image:

        linear-gradient(
            rgba(55,60,60,0.025) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(55,60,60,0.025) 1px,
            transparent 1px
        ) !important;

    background-size: 48px 48px !important;
}


/* ================================================================
   05. MAIN WIDTH
   ================================================================ */

.ebc-content-wrapper {

    width:
        min(1540px, calc(100% - 56px)) !important;

    max-width: 1540px !important;

    margin:
        0 auto !important;

    padding:
        46px 0 90px !important;
}


/* ================================================================
   06. MAIN EXECUTIVE PANEL
   ================================================================ */

.ebc-glass-card {

    width: 100% !important;

    max-width: none !important;

    padding:
        64px clamp(34px, 5vw, 92px)
        82px !important;

    background:
        rgba(251,250,247,0.975) !important;

    border:
        1px solid rgba(207,204,197,0.92) !important;

    border-radius:
        var(--ebc-radius-xl) !important;

    box-shadow:
        var(--ebc-shadow-card) !important;

    backdrop-filter:
        none !important;

    -webkit-backdrop-filter:
        none !important;
}


/* ================================================================
   07. GLOBAL HEADINGS
   ================================================================ */

.ebc-glass-card h1,
.ebc-glass-card h2,
.ebc-glass-card h3,
.ebc-glass-card h4,
.ebc-glass-card h5,
.ebc-glass-card h6 {

    color:
        var(--ebc-ink) !important;

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif !important;
}

.ebc-glass-card h3 {

    color:
        var(--ebc-ink) !important;

    font-size:
        clamp(2.1rem, 3.4vw, 3.15rem) !important;

    line-height:
        1.04 !important;

    font-weight:
        760 !important;

    letter-spacing:
        -0.052em !important;
}

.ebc-glass-card p {

    color:
        var(--ebc-muted) !important;
}


/* ================================================================
   08. INTRODUCTION
   ================================================================ */

.ebc-form-header {

    max-width:
        1050px !important;

    /*margin:
        0 auto 58px !important;*/

    text-align:
        center;
}

.ebc-form-header > p {

    max-width:
        720px !important;

    margin-left:
        auto !important;

    margin-right:
        auto !important;

    color:
        #5f686c !important;

    font-size:
        1.05rem !important;

    line-height:
        1.8 !important;
        padding: 15px;
}


/* Eyebrow */

.ebc-form-eyebrow {

    display:
        inline-flex !important;

    align-items:
        center !important;

    gap:
        10px !important;

    margin-bottom:
        16px !important;

    color:
        var(--ebc-accent) !important;

    font-size:
        0.68rem !important;

    font-weight:
        800 !important;

    letter-spacing:
        0.17em !important;

    text-transform:
        uppercase !important;
}

.ebc-form-eyebrow::before {

    content:
        "" !important;

    display:
        block !important;

    width:
        28px !important;

    height:
        2px !important;

    background:
        var(--ebc-accent) !important;
}


/* ================================================================
   09. TOP CHOICE AREA
   ================================================================ */

.ebc-content-wrapper .max-w-4xl {

    max-width:
        1120px !important;
}

.ebc-content-wrapper
.max-w-4xl > .text-center {

    margin-bottom:
        36px !important;
}

.ebc-content-wrapper
.max-w-4xl h3 {

    color:
        var(--ebc-ink) !important;

    font-size:
        clamp(1.7rem, 2.4vw, 2.25rem) !important;

    letter-spacing:
        -0.04em !important;
}

.ebc-content-wrapper
.max-w-4xl p {

    color:
        var(--ebc-muted) !important;
}


/* ================================================================
   10. CHOICE CARDS
   ================================================================ */

.ebc-content-wrapper
.grid.grid-cols-1.md\\:grid-cols-2 > div {

    position:
        relative !important;

    min-height:
        260px !important;

    padding:
        34px !important;

    background:
        var(--ebc-surface) !important;

    border:
        1px solid var(--ebc-border) !important;

    border-radius:
        var(--ebc-radius-lg) !important;

    box-shadow:
        var(--ebc-shadow-section) !important;

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease !important;
}

.ebc-content-wrapper
.grid.grid-cols-1.md\\:grid-cols-2 > div:hover {

    transform:
        translateY(-4px) !important;

    border-color:
        #c4c1ba !important;

    box-shadow:
        var(--ebc-shadow-hover) !important;
}


/* Self-guided */

.ebc-content-wrapper
.grid.grid-cols-1.md\\:grid-cols-2 > div:first-child {

    background:
        linear-gradient(
            145deg,
            #f7f5f1 0%,
            #efede8 100%
        ) !important;
}


/* Consultation */

.ebc-content-wrapper
.grid.grid-cols-1.md\\:grid-cols-2 > div:nth-child(2) {

    background:
        linear-gradient(
            145deg,
            #fffdfa 0%,
            #f8f5f0 100%
        ) !important;

    border-color:
        #d1cbc3 !important;

    overflow:
        hidden !important;
}

.ebc-content-wrapper
.grid.grid-cols-1.md\\:grid-cols-2 > div:nth-child(2)::before {

    content:
        "" !important;

    position:
        absolute !important;

    left:
        0 !important;

    top:
        0 !important;

    bottom:
        0 !important;

    width:
        4px !important;

    background:
        var(--ebc-accent) !important;
}


/* Card headings */

.ebc-content-wrapper
.grid.grid-cols-1.md\\:grid-cols-2 > div h3 {

    margin-bottom:
        9px !important;

    color:
        var(--ebc-ink) !important;

    font-size:
        1.27rem !important;

    line-height:
        1.22 !important;

    font-weight:
        740 !important;

    letter-spacing:
        -0.028em !important;
}

.ebc-content-wrapper
.grid.grid-cols-1.md\\:grid-cols-2 > div p {

    color:
        #646d71 !important;

    font-size:
        0.9rem !important;

    line-height:
        1.7 !important;
}


/* Pills */

.ebc-content-wrapper
.grid.grid-cols-1.md\\:grid-cols-2 > div
.inline-flex {

    background:
        #e7e5df !important;

    color:
        #596266 !important;

    border-radius:
        999px !important;

    font-size:
        0.65rem !important;

    font-weight:
        800 !important;

    letter-spacing:
        0.07em !important;

    text-transform:
        uppercase !important;
}

.ebc-content-wrapper
.grid.grid-cols-1.md\\:grid-cols-2 > div:nth-child(2)
.inline-flex {

    background:
        var(--ebc-accent-soft) !important;

    color:
        var(--ebc-accent-dark) !important;
}


/* Card footer */

.ebc-content-wrapper
.grid.grid-cols-1.md\\:grid-cols-2 > div
.mt-6.pt-4 {

    border-top-color:
        var(--ebc-border-soft) !important;

    color:
        var(--ebc-muted) !important;
}


/* ================================================================
   11. ORANGE CONSULTATION BUTTON
   ================================================================ */

#ebc-open-booking-modal-btn {

    min-height:
        50px !important;

    padding:
        12px 22px !important;

    background:
        var(--ebc-accent) !important;

    color:
        #ffffff !important;

    border:
        none !important;

    border-radius:
        var(--ebc-radius-sm) !important;

    box-shadow:
        0 8px 20px rgba(215,92,66,0.17) !important;

    font-size:
        0.84rem !important;

    font-weight:
        760 !important;

    transition:
        transform .2s ease,
        background .2s ease,
        box-shadow .2s ease !important;
}

#ebc-open-booking-modal-btn:hover {

    background:
        var(--ebc-accent-dark) !important;

    transform:
        translateY(-2px) !important;

    box-shadow:
        0 13px 28px rgba(215,92,66,0.22) !important;
}


/* ================================================================
   12. FORM CONTAINER
   ================================================================ */

.ebc-roadmap-form-wrapper {

    width:
        100% !important;

    max-width:
        1220px !important;

    margin:
        0 auto !important;
        
        
}


#ebc-roadmap-form {

    width:
        100% !important;
}


/* ================================================================
   13. PROGRESS
   ================================================================ */

.ebc-form-progress {

    display:
        flex !important;

    align-items:
        center !important;

    justify-content:
        center !important;

    max-width:
        820px !important;

    margin:
        44px auto 0 !important;
}

.ebc-progress-item {

    display:
        flex !important;

    align-items:
        center !important;

    gap:
        9px !important;

    color:
        #999d9d !important;

    font-size:
        0.75rem !important;

    font-weight:
        720 !important;
}

.ebc-progress-item span {

    display:
        flex !important;

    align-items:
        center !important;

    justify-content:
        center !important;

    width:
        31px !important;

    height:
        31px !important;

    background:
        #e5e3de !important;

    color:
        #737a7d !important;

    border-radius:
        50% !important;

    font-size:
        0.7rem !important;
}

.ebc-progress-item.is-active {

    color:
        var(--ebc-ink) !important;
}

.ebc-progress-item.is-active span {

    background:
        var(--ebc-ink) !important;

    color:
        #ffffff !important;
}

.ebc-progress-line {

    flex:
        1 !important;

    max-width:
        125px !important;

    height:
        1px !important;

    margin:
        0 15px !important;

    background:
        #d5d2cc !important;
}


/* ================================================================
   14. FORM SECTIONS
   ================================================================ */

.ebc-form-section {

    margin-bottom:
        22px !important;

    padding:
        36px !important;

    background:
        #faf9f6 !important;

    border:
        1px solid var(--ebc-border) !important;

    border-radius:
        var(--ebc-radius-lg) !important;

    box-shadow:
        var(--ebc-shadow-section) !important;
}

.ebc-form-section:hover {

    border-color:
        #cac7c0 !important;
}


/* ================================================================
   15. SECTION HEADERS
   ================================================================ */

.ebc-section-heading {

    display:
        flex !important;

    align-items:
        flex-start !important;

    gap:
        15px !important;

    margin-bottom:
        29px !important;
}

.ebc-section-number {

    flex:
        0 0 auto !important;

    display:
        flex !important;

    align-items:
        center !important;

    justify-content:
        center !important;

    width:
        39px !important;

    height:
        39px !important;

    background:
        var(--ebc-sage-soft) !important;

    color:
        var(--ebc-sage-dark) !important;

    border-radius:
        10px !important;

    font-size:
        0.7rem !important;

    font-weight:
        800 !important;

    letter-spacing:
        0.03em !important;
}

.ebc-section-heading h4 {

    margin:
        0 0 5px !important;

    color:
        var(--ebc-ink) !important;

    font-size:
        1.14rem !important;

    line-height:
        1.25 !important;

    font-weight:
        760 !important;

    letter-spacing:
        -0.025em !important;
}

.ebc-section-heading p {

    margin:
        0 !important;

    color:
        #6a7377 !important;

    font-size:
        0.84rem !important;

    line-height:
        1.6 !important;
}


/* ================================================================
   16. FORM GRID
   ================================================================ */

.ebc-form-grid {

    display:
        grid !important;

    grid-template-columns:
        repeat(2, minmax(0, 1fr)) !important;

    gap:
        22px 26px !important;
}


/* ================================================================
   17. FORM LABELS
   ================================================================ */

.ebc-form-group {

    margin-bottom:
        22px !important;
}

.ebc-form-label {

    display:
        block !important;

    margin-bottom:
        8px !important;

    color:
        #30383b !important;

    font-size:
        0.78rem !important;

    line-height:
        1.35 !important;

    font-weight:
        780 !important;

    letter-spacing:
        0.008em !important;
}

.ebc-form-label .req {

    color:
        var(--ebc-accent) !important;

    font-weight:
        800 !important;
}


/* ================================================================
   18. FORM CONTROLS
   ================================================================ */

/*
   Important:
   These are intentionally NOT white.

   The input area is visibly separated from the card so users
   immediately understand where they are expected to type.
*/

.ebc-roadmap-form-wrapper .ebc-form-control {

    display:
        block !important;

    width:
        100% !important;

    min-height:
        52px !important;

    box-sizing:
        border-box !important;

    padding:
        13px 15px !important;

    background:
        var(--ebc-input) !important;

    border:
        1px solid #c9c6bf !important;

    border-radius:
        9px !important;

    color:
        #252b2d !important;

    font-size:
        0.9rem !important;

    font-weight:
        500 !important;

    line-height:
        1.45 !important;

    box-shadow:
        inset 0 1px 2px rgba(30,32,32,0.025) !important;

    outline:
        none !important;

    transition:
        background .18s ease,
        border-color .18s ease,
        box-shadow .18s ease !important;
}


/* Placeholder */

.ebc-form-control::placeholder {

    color:
        #747d80 !important;

    opacity:
        1 !important;
}


/* Hover */

.ebc-form-control:hover {

    background:
        var(--ebc-input-hover) !important;

    border-color:
        #aaa69e !important;
}


/* Focus */

.ebc-form-control:focus {

    background:
        var(--ebc-input-focus) !important;

    border-color:
        var(--ebc-sage) !important;

    box-shadow:
        0 0 0 3px rgba(102,118,111,0.13),
        inset 0 1px 2px rgba(30,32,32,0.02) !important;
}


/* Select */

select.ebc-form-control {

    color:
        #30383b !important;

    cursor:
        pointer !important;
}


/* Textarea */

textarea.ebc-form-control {

    min-height:
        142px !important;

    resize:
        vertical !important;
}


/* ================================================================
   19. CHALLENGE GRID
   ================================================================ */

.ebc-challenge-helper {

    margin:
        -3px 0 17px !important;

    color:
        #687276 !important;

    font-size:
        0.81rem !important;

    line-height:
        1.5 !important;
}

.ebc-challenges-grid {

    display:
        grid !important;

    grid-template-columns:
        repeat(2, minmax(0, 1fr)) !important;

    gap:
        12px !important;
}


/* ================================================================
   20. CHALLENGE CARDS
   ================================================================ */

.ebc-challenge-btn {

    position:
        relative !important;

    display:
        flex !important;

    align-items:
        flex-start !important;

    min-height:
        94px !important;

    padding:
        17px 43px 17px 17px !important;

    background:
        #f0efeb !important;

    border:
        1px solid #d0cdc6 !important;

    border-radius:
        var(--ebc-radius-md) !important;

    cursor:
        pointer !important;

    transition:
        background .18s ease,
        border-color .18s ease,
        transform .18s ease,
        box-shadow .18s ease !important;
}

.ebc-challenge-btn:hover {

    background:
        #f8f7f3 !important;

    border-color:
        #b9b5ad !important;

    transform:
        translateY(-1px) !important;

    box-shadow:
        0 7px 18px rgba(40,42,41,0.055) !important;
}


/* Hidden native checkbox */

.ebc-challenge-checkbox {

    position:
        absolute !important;

    opacity:
        0 !important;

    pointer-events:
        none !important;
}


/* Active */

.ebc-challenge-btn.is-active {

    background:
        #f8ebe6 !important;

    border-color:
        var(--ebc-accent) !important;

    box-shadow:
        0 0 0 1px rgba(215,92,66,0.07) !important;
}


/* ================================================================
   21. CHALLENGE CONTENT
   ================================================================ */

.ebc-challenge-content {

    display:
        block !important;
}

.ebc-challenge-title {

    display:
        flex !important;

    align-items:
        center !important;

    gap:
        9px !important;

    color:
        #30383b !important;
}

.ebc-challenge-title strong {

    color:
        #30383b !important;

    font-size:
        0.86rem !important;

    font-weight:
        760 !important;
}

.ebc-challenge-btn.is-active
.ebc-challenge-title strong {

    color:
        #382f2b !important;
}

.ebc-challenge-description {

    display:
        block !important;

    margin-top:
        7px !important;

    padding-left:
        29px !important;

    color:
        #747c80 !important;

    font-size:
        0.75rem !important;

    line-height:
        1.48 !important;
}


/* Icons */

.ebc-challenge-icon {

    display:
        inline-flex !important;

    align-items:
        center !important;

    justify-content:
        center !important;

    width:
        22px !important;

    height:
        22px !important;

    color:
        var(--ebc-sage-dark) !important;
}

.ebc-challenge-icon img {

    width:
        18px !important;

    height:
        18px !important;
}


/* ================================================================
   22. CHECK INDICATOR
   ================================================================ */

.ebc-challenge-check {

    position:
        absolute !important;

    top:
        16px !important;

    right:
        15px !important;

    display:
        flex !important;

    align-items:
        center !important;

    justify-content:
        center !important;

    width:
        21px !important;

    height:
        21px !important;

    background:
        #e5e2dc !important;

    border:
        1px solid #bbb8b1 !important;

    border-radius:
        50% !important;

    color:
        transparent !important;

    font-size:
        0.68rem !important;

    font-weight:
        800 !important;
}

.ebc-challenge-btn.is-active
.ebc-challenge-check {

    background:
        var(--ebc-accent) !important;

    border-color:
        var(--ebc-accent) !important;

    color:
        #ffffff !important;
}


/* ================================================================
   23. SUBMIT / SUMMARY PANEL
   ================================================================ */

.ebc-form-submit-section {

    margin-top:
        26px !important;

    padding:
        36px !important;

    background:
        linear-gradient(
            145deg,
            #eeece7 0%,
            #f6f4ef 100%
        ) !important;

    border:
        1px solid #d5d2cb !important;

    border-radius:
        var(--ebc-radius-lg) !important;
}


/* Summary */

.ebc-roadmap-summary {

    display:
        flex !important;

    align-items:
        center !important;

    gap:
        14px !important;

    margin-bottom:
        25px !important;

    padding:
        18px 20px !important;

    background:
        #faf9f6 !important;

    border:
        1px solid var(--ebc-border) !important;

    border-radius:
        var(--ebc-radius-md) !important;
}

.ebc-roadmap-summary-icon {

    flex:
        0 0 auto !important;

    display:
        flex !important;

    align-items:
        center !important;

    justify-content:
        center !important;

    width:
        35px !important;

    height:
        35px !important;

    background:
        var(--ebc-success-soft) !important;

    color:
        var(--ebc-success) !important;

    border-radius:
        50% !important;
}

.ebc-roadmap-summary strong {

    display:
        block !important;

    color:
        #30383b !important;

    font-size:
        0.86rem !important;
}

.ebc-roadmap-summary span {

    display:
        block !important;

    margin-top:
        3px !important;

    color:
        #6c7579 !important;

    font-size:
        0.77rem !important;
}


/* ================================================================
   24. GDPR
   ================================================================ */

.ebc-gdpr-group {

    margin-bottom:
        24px !important;
}

.ebc-gdpr-label {

    display:
        flex !important;

    align-items:
        flex-start !important;

    gap:
        10px !important;

    color:
        #687174 !important;

    font-size:
        0.77rem !important;

    line-height:
        1.58 !important;

    cursor:
        pointer !important;
}

#ebc_gdpr_consent {

    flex:
        0 0 auto !important;

    width:
        17px !important;

    height:
        17px !important;

    margin-top:
        1px !important;

    accent-color:
        var(--ebc-accent) !important;
}


/* ================================================================
   25. SUBMIT BUTTON
   ================================================================ */

.ebc-submit-btn {

    display:
        flex !important;

    align-items:
        center !important;

    justify-content:
        center !important;

    gap:
        12px !important;

    width:
        100% !important;

    min-height:
        57px !important;

    padding:
        14px 24px !important;

    background:
        #303638 !important;

    color:
        #ffffff !important;

    border:
        none !important;

    border-radius:
        9px !important;

    font-size:
        0.88rem !important;

    font-weight:
        760 !important;

    letter-spacing:
        0.01em !important;

    box-shadow:
        0 9px 24px rgba(48,54,56,0.15) !important;

    cursor:
        pointer !important;

    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease !important;
}

.ebc-submit-btn:hover {

    background:
        #1f2426 !important;

    transform:
        translateY(-1px) !important;

    box-shadow:
        0 13px 30px rgba(48,54,56,0.21) !important;
}

.ebc-submit-arrow {

    transition:
        transform .2s ease !important;
}

.ebc-submit-btn:hover
.ebc-submit-arrow {

    transform:
        translateX(4px) !important;
}

.ebc-submit-note {

    margin:
        10px 0 0 !important;

    color:
        #858c8f !important;

    font-size:
        0.71rem !important;

    text-align:
        center !important;
}


/* ================================================================
   26. MODAL
   ================================================================ */

#ebc-booking-modal {

    background:
        rgba(34,38,39,0.46) !important;

    backdrop-filter:
        blur(8px) !important;

    -webkit-backdrop-filter:
        blur(8px) !important;
}

#ebc-booking-modal-card {

    max-width:
        940px !important;

    background:
        #fbfaf7 !important;

    border:
        1px solid #d6d3cc !important;

    border-radius:
        18px !important;

    box-shadow:
        0 30px 90px rgba(30,34,34,0.24) !important;
}


/* ================================================================
   27. VISIBILITY SAFETY NET
   ================================================================ */

/*
   This is deliberately explicit.

   The original page contains utility-style classes and inherited
   styles. These rules prevent light text from accidentally appearing
   on light surfaces.
*/

.ebc-roadmap-form-wrapper
.ebc-form-section label {

    color:
        #30383b !important;
}

.ebc-roadmap-form-wrapper
.ebc-form-section p {

    color:
        #697276 !important;
}

.ebc-roadmap-form-wrapper
.ebc-form-section strong {

    color:
        #30383b !important;
}

.ebc-roadmap-form-wrapper
.ebc-form-submit-section label {

    color:
        #30383b !important;
}

.ebc-roadmap-form-wrapper
.ebc-form-submit-section p {

    color:
        #697276 !important;
}

.ebc-roadmap-form-wrapper
.ebc-form-submit-section strong {

    color:
        #30383b !important;
}


/* ================================================================
   28. KEYBOARD ACCESSIBILITY
   ================================================================ */

.ebc-form-control:focus-visible,
.ebc-challenge-btn:focus-visible,
#ebc-open-booking-modal-btn:focus-visible,
.ebc-submit-btn:focus-visible {

    outline:
        2px solid var(--ebc-accent) !important;

    outline-offset:
        3px !important;
}


/* ================================================================
   29. TABLET
   ================================================================ */

@media (max-width: 1000px) {

    .ebc-content-wrapper {

        width:
            min(100% - 32px, 1540px) !important;

        padding-top:
            30px !important;

        padding-bottom:
            60px !important;
    }

    .ebc-glass-card {

        padding:
            46px 30px 62px !important;

        border-radius:
            22px !important;
    }

    .ebc-form-grid {

        grid-template-columns:
            1fr !important;

        gap:
            0 !important;
    }

    .ebc-challenges-grid {

        grid-template-columns:
            repeat(2, minmax(0,1fr)) !important;
    }

    .ebc-form-section,
    .ebc-form-submit-section {

        padding:
            28px !important;
    }
}


/* ================================================================
   30. MOBILE
   ================================================================ */

@media (max-width: 680px) {

    .ebc-content-wrapper {

        width:
            calc(100% - 16px) !important;

        padding-top:
            18px !important;

        padding-bottom:
            34px !important;
    }

    .ebc-glass-card {

        padding:
            34px 16px 44px !important;

        border-radius:
            18px !important;
    }

    .ebc-glass-card h3 {

        font-size:
            2rem !important;
    }

    .ebc-form-header {

        margin-bottom:
            38px !important;
    }

    .ebc-form-header > p {

        font-size:
            0.94rem !important;
    }

    .ebc-content-wrapper
    .grid.grid-cols-1.md\\:grid-cols-2 {

        gap:
            12px !important;
    }

    .ebc-content-wrapper
    .grid.grid-cols-1.md\\:grid-cols-2 > div {

        min-height:
            auto !important;

        padding:
            26px !important;
    }

    .ebc-form-progress {

        margin-top:
            32px !important;
    }

    .ebc-progress-item {

        font-size:
            0.64rem !important;

        gap:
            6px !important;
    }

    .ebc-progress-item span {

        width:
            27px !important;

        height:
            27px !important;
    }

    .ebc-progress-line {

        max-width:
            34px !important;

        margin:
            0 6px !important;
    }

    .ebc-form-section,
    .ebc-form-submit-section {

        padding:
            22px !important;

        border-radius:
            14px !important;
    }

    .ebc-section-heading {

        gap:
            11px !important;
    }

    .ebc-section-number {

        width:
            34px !important;

        height:
            34px !important;

        border-radius:
            8px !important;
    }

    .ebc-form-control {

        min-height:
            50px !important;

        font-size:
            0.88rem !important;
    }

    .ebc-challenges-grid {

        grid-template-columns:
            1fr !important;
    }

    .ebc-challenge-btn {

        min-height:
            86px !important;
    }

    .ebc-roadmap-summary {

        align-items:
            flex-start !important;
    }
}


/* ================================================================
   31. SMALL MOBILE
   ================================================================ */

@media (max-width: 430px) {

    .ebc-content-wrapper {

        width:
            calc(100% - 10px) !important;
    }

    .ebc-glass-card {

        padding:
            28px 12px 38px !important;
    }

    .ebc-form-section,
    .ebc-form-submit-section {

        padding:
            18px !important;
    }

    .ebc-section-heading h4 {

        font-size:
            1.03rem !important;
    }

    .ebc-section-heading p {

        font-size:
            0.78rem !important;
    }

    .ebc-form-label {

        font-size:
            0.76rem !important;
    }

    .ebc-form-progress {

        display:
            none !important;
    }
}


/* ================================================================
   32. REDUCED MOTION
   ================================================================ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        scroll-behavior:
            auto !important;

        transition-duration:
            0.01ms !important;

        animation-duration:
            0.01ms !important;
    }
}

/* Form reveal */
.ebc-roadmap-form-wrapper {
    display: none;
}

.ebc-roadmap-form-wrapper.ebc-form-visible {
    display: block;
    animation: ebcFormReveal 0.5s ease-out forwards;
}

@keyframes ebcFormReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   LOGIN PAGE
   ========================================================= */
/* Full Viewport Centering */
.ebc-login-page-wrapper {
    min-height: calc(100vh - 120px); /* Centers vertically on page */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background-color: #f8fafc; /* Tailwind slate-50 */
}

/* Card Styling */
.ebc-login-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 12px;
    padding: 2.5rem;
    border: 1px solid #e2e8f0; /* slate-200 */
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
}

/* Brand Badge */
/* Logo Styling */
.ebc-brand-logo {
    display: block;
    max-width: 60px; /* Adjust size as needed */
    height: auto;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
}

/* Form Spacing & Fields */
.ebc-form-body form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.ebc-form-body label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155; /* slate-700 */
    margin-bottom: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.ebc-form-body input[type="text"],
.ebc-form-body input[type="password"] {
    width: 100%;
    height: 44px;
    border-radius: 8px;
    border: 1px solid #cbd5e1; /* slate-300 */
    padding: 0 0.875rem;
    font-size: 0.9375rem;
    color: #0f172a;
    background-color: #ffffff;
    transition: all 0.15s ease-in-out;
    outline: none;
}

.ebc-form-body input[type="text"]:focus,
.ebc-form-body input[type="password"]:focus {
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

/* Remember Me Checkbox */
.ebc-form-body p.login-remember {
    margin: -0.25rem 0 0 0;
}

.ebc-form-body p.login-remember label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b; /* slate-500 */
    text-transform: none;
    font-weight: 400;
    cursor: pointer;
}

.ebc-form-body input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    cursor: pointer;
}

/* Submit Button */
.ebc-form-body input[type="submit"],
.ebc-btn-primary {
    width: 100%;
    height: 44px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    background-color: #0f172a; /* slate-900 */
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background-color 0.15s ease-in-out;
    text-decoration: none;
}

.ebc-form-body input[type="submit"]:hover,
.ebc-btn-primary:hover {
    background-color: #1e293b; /* slate-800 */
}

/* Alerts & Notices */
.ebc-alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    margin-bottom: 1.25rem;
    text-align: center;
}

.ebc-alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.ebc-alert-info {
    background-color: #f0f9ff;
    color: #075985;
    border: 1px solid #bae6fd;
}

/* Card Footer */
.ebc-card-footer {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

    <!-- ============================================================
         ROADMAP COMPONENT CSS
    ============================================================= -->

   

        .ebc-scope {

            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;

        }


        .ebc-scope .apple-button {

            transition:
                background-color 180ms ease,
                transform 180ms ease,
                box-shadow 180ms ease;

        }


        .ebc-scope .apple-button:hover {

            transform: translateY(-1px);

        }


        .ebc-scope .apple-button:active {

            transform: translateY(0);

        }


        .ebc-scope .session-card {

            transition:
                transform 200ms ease,
                box-shadow 200ms ease,
                border-color 200ms ease;

        }


        .ebc-scope .session-card:hover {

            transform: translateY(-2px);

            box-shadow:
                0 12px 35px rgba(0,0,0,0.07);

        }


        .ebc-scope .apple-glass {

            background: rgba(255,255,255,0.72);

            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);

        }


        .ebc-scope ::selection {

            background: rgba(0,113,227,0.18);

        }
        .ebc-scope .session-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
            gap: 20px;
        }
        
        .ebc-scope .session-card {
            min-width: 0;
            height: 100%;
        }

    

/* ==========================================================================
   EBC Live Notes Dock — Refined Warm Light Aesthetic
   ========================================================================== */

#ebc-live-dock {
    /* Surface palette */
    --ebc-dock-bg: #F4F2ED;
    --ebc-dock-header: #ECE9E2;
    --ebc-card-bg: #FBFAF7;
    --ebc-border: #DDD9D0;
    --ebc-input-bg: #FFFFFF;

    /* Typography */
    --ebc-text: #30343B;
    --ebc-muted: #737B86;

    /* Semantic accents */
    --ebc-vocab: #258F78;
    --ebc-grammar: #B9821F;
    --ebc-sentence: #258AB8;

    /* Interaction */
    --ebc-focus: #3DA6D8;
    --ebc-hover: #FFFFFF;

    box-sizing: border-box;
    position: sticky !important;
    bottom: 0 !important;
    left: auto !important;
    right: auto !important;

    width: 100% !important;
    max-width: 100% !important;

    color: var(--ebc-text);
    background: var(--ebc-dock-bg);

    border: 1px solid var(--ebc-border);
    border-radius: 14px;

    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);

    box-shadow:
        0 10px 28px rgba(48, 52, 59, 0.10),
        0 2px 6px rgba(48, 52, 59, 0.05);

    transition:
        transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

/* ==========================================================================
   Header
   ========================================================================== */

#ebc-dock-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    min-height: 48px;
    padding: 10px 14px;

    color: var(--ebc-text);
    background: var(--ebc-dock-header);
    border-bottom: 1px solid var(--ebc-border);
    border-radius: 13px 13px 0 0;

    cursor: grab;
    user-select: none;
    -webkit-user-select: none;

    transition: background-color 0.18s ease;
}

#ebc-dock-header:active {
    cursor: grabbing;
}

#ebc-dock-header button {
    flex: 0 0 auto;
    cursor: pointer;
}

#ebc-dock-header button:hover {
    filter: brightness(0.96);
}

#ebc-dock-header button:focus-visible {
    outline: 2px solid var(--ebc-focus);
    outline-offset: 3px;
}

/* ==========================================================================
   Body / Layout
   ========================================================================== */

#ebc-dock-body {
    container-type: inline-size;
    container-name: ebc-dock-container;

    direction: rtl;
    padding-left: 0.5rem;

    color: var(--ebc-text);
    background: var(--ebc-dock-bg);

    /* Warm light scrollbar — Firefox */
    scrollbar-width: auto;
    scrollbar-color: #C5BFB3 #EAE6DE;
}

#ebc-dock-body > div {
    direction: ltr;
}

/* Maintain responsive content layout */

@container ebc-dock-container (max-width: 900px) {
    .ebc-responsive-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }
}

@container ebc-dock-container (min-width: 901px) {
    .ebc-responsive-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* ==========================================================================
   Scrollbar — warm neutral palette
   ========================================================================== */

#ebc-dock-body::-webkit-scrollbar {
    width: 10px;
}

#ebc-dock-body::-webkit-scrollbar-track {
    background: #EAE6DE;
    border-radius: 9999px;
}

#ebc-dock-body::-webkit-scrollbar-thumb {
    background: #C5BFB3;
    border: 2px solid #EAE6DE;
    border-radius: 9999px;
    background-clip: padding-box;
}

#ebc-dock-body::-webkit-scrollbar-thumb:hover {
    background: #A9A294;
    border-color: #EAE6DE;
    background-clip: padding-box;
}

#ebc-dock-body::-webkit-scrollbar-thumb:active {
    background: var(--ebc-focus);
    border-color: #EAE6DE;
    background-clip: padding-box;
}

/* ==========================================================================
   Dragging State
   ========================================================================== */

#ebc-live-dock.is-dragging {
    transition: none !important;

    opacity: 0.98;
    border-color: #C7C0B4;

    box-shadow:
        0 24px 48px rgba(48, 52, 59, 0.18),
        0 8px 18px rgba(48, 52, 59, 0.09);
}

#ebc-live-dock.is-dragging #ebc-dock-header {
    background: #E4E0D7;
}

/* ==========================================================================
   Auto-Save Status
   ========================================================================== */

@keyframes ebcPulseSlow {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.45;
    }
}

.ebc-saving-pulse {
    animation: ebcPulseSlow 1.2s infinite ease-in-out;
}

/* ==========================================================================
   List Item Cards
   ========================================================================== */

#ebc-dock-body li {
    padding: 0.55rem 0.7rem;

    color: var(--ebc-text);
    background: var(--ebc-card-bg);
    border: 1px solid var(--ebc-border);
    border-radius: 9px;

    overflow-wrap: anywhere;

    transition:
        background-color 0.16s ease,
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        transform 0.16s ease;
}

#ebc-dock-body li:hover {
    background: var(--ebc-hover);
    border-color: #CEC8BC;

    box-shadow: 0 3px 9px rgba(48, 52, 59, 0.055);
}

#ebc-dock-body li button {
    opacity: 0.7;

    transition:
        opacity 0.15s ease,
        color 0.15s ease,
        background-color 0.15s ease;
}

#ebc-dock-body li:hover button,
#ebc-dock-body li button:focus-visible {
    opacity: 1;
}

#ebc-dock-body li button:focus-visible {
    outline: 2px solid var(--ebc-focus);
    outline-offset: 2px;
}

/* ==========================================================================
   Inputs — consistent, understated controls
   ========================================================================== */

#ebc-live-dock input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
#ebc-live-dock textarea {
    box-sizing: border-box;

    background: var(--ebc-input-bg);
    color: var(--ebc-text);
    border: 1px solid var(--ebc-border);
    border-radius: 8px;

    transition:
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        background-color 0.16s ease;
}

#ebc-live-dock input::placeholder,
#ebc-live-dock textarea::placeholder {
    color: var(--ebc-muted);
    opacity: 1;
}

#ebc-live-dock input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):hover:not(:disabled),
#ebc-live-dock textarea:hover:not(:disabled) {
    border-color: #C5BFB3;
}

#ebc-live-dock input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):focus,
#ebc-live-dock textarea:focus {
    border-color: var(--ebc-focus);
    outline: none;

    box-shadow: 0 0 0 3px rgba(61, 166, 216, 0.13);
}

#ebc-live-dock input:disabled,
#ebc-live-dock textarea:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

/* ==========================================================================
   Accessibility / Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    #ebc-live-dock,
    #ebc-live-dock *,
    #ebc-live-dock *::before,
    #ebc-live-dock *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}


/*+++++++++++++SESSION LAYOUT WITH VIDEO SIDEBAR+++++++++++++*/

/* Collapse grid to single full-width column when video is hidden */
.ebc-session-layout.no-sidebar {
    grid-template-columns: 1fr;
    max-width: 1000px; /* Optional cap for comfortable reading width */
}

/* Layout Wrapper */
.ebc-session-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2px;
    align-items: start;
    max-width: 1500px;
    margin: 0 auto;
    padding: 24px 24px 24px 0;
    box-sizing: border-box;
}

/* Left Main Content Area */
.ebc-session-main {
    min-width: 0; /* Prevents long JSON or pre tags from blowing out grid columns */
    position: relative !important;
}



.ebc-role-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #e0e7ff;
    color: #3730a3;
    font-weight: 600;
    font-size: 13px;
    border-radius: 20px;
    margin-top: 8px;
}


/* EBC Academy — custom Daily video interface */

.ebc-daily {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 480px;
    overflow: hidden;
    border-radius: 10px;
    background: #0B2D47;
    color: #fff;
    font-family: inherit;
}

.ebc-daily [hidden] {
    display: none !important;
}
/* The existing sidebar contains the video and chat. */
.ebc-live-sidebar {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

/* Video occupies the top 40% of the sidebar on desktop. */
.ebc-live-sidebar > #ebc-daily {
    position: relative;
    flex: 0 0 40%;
    width: 100%;
    height: auto;
    min-height: 180px;
    overflow: hidden;
    border-radius: 10px;
}

/* Chat fills the remaining sidebar space. */
.ebc-live-sidebar > .ebc-live-chat {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    margin-top: 10px;
}

/* Screens narrower than 800px: full-height video, no chat. */
@media (max-width: 799.98px) {
    .ebc-live-sidebar > .ebc-live-chat {
        display: none !important;
    }

    .ebc-live-sidebar > #ebc-daily {
        flex: 1 1 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        margin: 0;
    }
}


.ebc-daily__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px;
    font-size: 13px;
}

#ebc-daily-status {
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 400;
    text-align: right;
}

.ebc-daily__participants {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    min-height: 0;
    overflow-y: auto;
    padding: 10px;
}

.ebc-daily__tile {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    min-height: 150px;
    max-height: 250px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 9px;
    background: #193b53;
}

.ebc-daily__tile video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #142d40;
}

.ebc-daily__tile--screen {
    aspect-ratio: 16 / 10;
    max-height: 260px;
    background: #080d12;
    order: -1;
}

.ebc-daily__tile--screen video {
    object-fit: contain;
    background: #080d12;
}

.ebc-daily__label {
    position: absolute;
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: fit-content;
    max-width: calc(100% - 16px);
    overflow: hidden;
    padding: 5px 8px;
    border-radius: 5px;
    background: rgb(0 0 0 / 65%);
    color: #fff;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ebc-daily__no-video {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    color: #cbd5e1;
    font-size: 13px;
    text-align: center;
}

.ebc-daily__placeholder {
    padding: 24px 12px;
    color: #cbd5e1;
    font-size: 13px;
    text-align: center;
}

.ebc-daily__controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    border-top: 1px solid rgb(255 255 255 / 12%);
}

.ebc-daily__controls button {
    min-width: 0;
    padding: 10px 6px;
    border: 1px solid #456176;
    border-radius: 7px;
    background: #193b53;
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    line-height: 1.35;
    cursor: pointer;
    transition: background 0.15s ease;
}

.ebc-daily__controls button:hover:not(:disabled) {
    background: #28536f;
}

.ebc-daily__controls button:focus-visible {
    outline: 2px solid #FF5733;
    outline-offset: 2px;
}

.ebc-daily__controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ebc-daily__controls .ebc-daily__leave {
    border-color: #a52c32;
    background: #a52c32;
}

.ebc-daily__controls .ebc-daily__leave:hover:not(:disabled) {
    background: #861f25;
}

.ebc-daily__error {
    margin: 0 10px;
    padding: 10px;
    border: 1px solid rgb(255 150 150 / 30%);
    border-radius: 6px;
    background: rgb(130 30 35 / 25%);
    color: #fecaca;
    font-size: 12px;
    overflow-wrap: anywhere;
}

/* Audio is played separately from the video tiles. */
.ebc-daily__tile audio {
    display: none;
}

/* The video area fills the panel behind the controls. */
.ebc-daily__participants {
    position: absolute;
    inset: 0;
    display: block;
    padding: 0;
    overflow: hidden;
}

/* Main participant video. */
.ebc-daily__tile--remote {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    z-index: 2;
}

/* Your own camera appears as a small floating tile. */
.ebc-daily__tile--local {
    position: absolute;
    top: auto;
    right: 8px;
    bottom: 65px;
    left: auto;
    display: block;
    width: 30%;
    max-width: 115px;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 4 / 3;
    z-index: 5;
    border: 2px solid #fff;
    box-shadow: 0 3px 12px rgb(0 0 0 / 35%);
}

/* Optional: hide your own video while retaining the main video. */
#ebc-daily[data-show-self="false"] .ebc-daily__tile--local {
    display: none !important;
}

/* Keep screen sharing visible when active. */
.ebc-daily__tile--screen {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    z-index: 3;
}

.ebc-daily__header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 7;
    background: linear-gradient(
        to bottom,
        rgb(0 0 0 / 65%),
        transparent
    );
}

.ebc-daily__controls {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 8;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    padding: 8px;
    border: 0;
    background: linear-gradient(
        to top,
        rgb(0 0 0 / 80%),
        transparent
    );
}

.ebc-daily__controls button {
    padding: 7px 4px;
    font-size: 10px;
}

.ebc-daily__placeholder {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 12px;
    text-align: center;
}

/* =========================================
   EBC Academy — session chat
   ========================================= */

.ebc-live-chat {
    --ebc-chat-navy: #0B2D47;
    --ebc-chat-blue: #104A74;
    --ebc-chat-text: #1F2937;
    --ebc-chat-muted: #64748B;
    --ebc-chat-border: #DCE5EC;
    --ebc-chat-background: #F4F7F9;

    display: flex;
    flex: 1 1 0%;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;

    border: 1px solid var(--ebc-chat-border);
    border-radius: 10px;
    background: var(--ebc-chat-background);
    color: var(--ebc-chat-text);
    font-family: inherit;
    font-size: 13px;
}

/* -----------------------------------------
   Header
   ----------------------------------------- */

.ebc-live-chat__header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 7px 10px;

    padding: 11px 13px;
    border-bottom: 1px solid var(--ebc-chat-border);
    background: #FFFFFF;
}

.ebc-live-chat__header strong {
    color: var(--ebc-chat-navy);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

#ebc-chat-status {
    max-width: 100%;
    padding: 4px 8px;
    border: 1px solid #E5EBF0;
    border-radius: 999px;
    background: #F3F6F8;

    color: var(--ebc-chat-muted);
    font-size: 10px;
    font-weight: 400;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

/* -----------------------------------------
   Message history
   ----------------------------------------- */

.ebc-live-chat__messages {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 10px;

    min-width: 0;
    min-height: 0;
    padding: 13px 11px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;

    background: var(--ebc-chat-background);
    font-size: 12px;

    scrollbar-width: thin;
    scrollbar-color: #C5D1DA transparent;
}

.ebc-live-chat__messages::-webkit-scrollbar {
    width: 5px;
}

.ebc-live-chat__messages::-webkit-scrollbar-track {
    background: transparent;
}

.ebc-live-chat__messages::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #C5D1DA;
}

/* Empty state */

#ebc-chat-empty {
    max-width: 240px;
    margin: auto;
    padding: 12px;

    color: var(--ebc-chat-muted);
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

/* -----------------------------------------
   Message bubbles
   ----------------------------------------- */

.ebc-chat-message {
    align-self: flex-start;
    max-width: 90%;
    min-width: 0;
    padding: 9px 11px;

    border: 1px solid #E0E7ED;
    border-radius: 12px 12px 12px 4px;
    background: #FFFFFF;
    color: var(--ebc-chat-text);
    box-shadow: 0 1px 2px rgb(11 45 71 / 4%);

    overflow-wrap: anywhere;
    line-height: 1.5;
}

/* Messages sent by the current user */

.ebc-chat-message--own {
    align-self: flex-end;

    border-color: #C8DDEB;
    border-radius: 12px 12px 4px 12px;
    background: #E8F3FA;
    color: #17364B;
}

/* Sender name and timestamp */

.ebc-chat-message__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 3px 8px;
    margin-bottom: 5px;

    color: var(--ebc-chat-muted);
    font-size: 10px;
    line-height: 1.4;
}

.ebc-chat-message__sender {
    color: var(--ebc-chat-blue);
    font-weight: 700;
}

.ebc-chat-message--own .ebc-chat-message__sender {
    color: var(--ebc-chat-navy);
}

/* Message content */

.ebc-chat-message__text {
    margin: 0;
    color: inherit;
    font-size: 12px;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* -----------------------------------------
   Message composer
   ----------------------------------------- */

.ebc-live-chat__form {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-end;
    gap: 8px;

    min-width: 0;
    padding: 10px;
    border-top: 1px solid var(--ebc-chat-border);
    background: #FFFFFF;
}

#ebc-chat-input {
    display: block;
    flex: 1 1 auto;
    width: 0;
    min-width: 0;
    min-height: 42px;
    max-height: 100px;
    margin: 0;
    padding: 10px 11px;
    resize: vertical;

    border: 1px solid #CFD9E2;
    border-radius: 9px;
    outline: none;
    background: #F8FAFC;
    color: var(--ebc-chat-text);

    font-family: inherit;
    font-size: 12px;
    line-height: 1.45;

    transition:
        border-color 150ms ease,
        background-color 150ms ease,
        box-shadow 150ms ease;
}

#ebc-chat-input::placeholder {
    color: #8795A3;
    opacity: 1;
}

#ebc-chat-input:hover:not(:disabled) {
    border-color: #AFBFCC;
}

#ebc-chat-input:focus {
    border-color: var(--ebc-chat-blue);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgb(16 74 116 / 10%);
}

#ebc-chat-input:disabled {
    cursor: not-allowed;
    background: #F0F3F6;
    color: #7B8794;
}

/* Send button */

#ebc-chat-send {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;

    min-width: 58px;
    min-height: 42px;
    margin: 0;
    padding: 0 13px;

    border: 1px solid var(--ebc-chat-blue);
    border-radius: 9px;
    background: var(--ebc-chat-blue);
    color: #FFFFFF;

    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;

    transition:
        background-color 150ms ease,
        border-color 150ms ease,
        transform 150ms ease,
        opacity 150ms ease;
}

#ebc-chat-send:hover:not(:disabled) {
    border-color: var(--ebc-chat-navy);
    background: var(--ebc-chat-navy);
}

#ebc-chat-send:active:not(:disabled) {
    transform: translateY(1px);
}

#ebc-chat-send:focus-visible {
    outline: 2px solid #FF5733;
    outline-offset: 3px;
}

#ebc-chat-send:disabled {
    border-color: #E2E8EE;
    background: #E2E8EE;
    color: #8794A0;
    cursor: not-allowed;
}

/* -----------------------------------------
   Screen-reader-only label
   ----------------------------------------- */

.ebc-chat-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
    border: 0;
}

/* -----------------------------------------
   Reduced motion accessibility
   ----------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .ebc-live-chat *,
    .ebc-live-chat *::before,
    .ebc-live-chat *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

/* Keep the video error visible above the video tiles. */
#ebc-daily-error:not([hidden]) {
    position: absolute;
    z-index: 10;
    top: 48px;
    right: 10px;
    left: 10px;
    margin: 0;
}

/* Smaller screens */
@media (max-width: 480px) {
    .ebc-live-sidebar > #ebc-daily {
        min-height: 180px;
    }

    .ebc-live-chat__header {
        padding: 9px;
    }

    .ebc-live-chat__messages {
        padding: 9px;
    }

    .ebc-live-chat__form {
        gap: 6px;
        padding: 8px;
    }

    #ebc-chat-send {
        padding: 9px 10px;
    }
}

@media (max-width: 480px) {
    .ebc-daily {
        min-height: 420px;
    }

    .ebc-daily__tile {
        min-height: 130px;
    }

    .ebc-daily__controls {
        padding: 9px;
        gap: 6px;
    }

    .ebc-daily__controls button {
        padding: 9px 4px;
        font-size: 11px;
    }
}


/* =========================================
   EBC Daily — compact meeting controls
   Append after existing CSS
   ========================================= */

.ebc-daily__controls {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 9px;
    padding: 8px 10px 10px;
    border: 0;
    background: linear-gradient(
        to top,
        rgb(0 0 0 / 82%),
        rgb(0 0 0 / 35%),
        transparent
    );
}

.ebc-daily__controls button {
    position: relative;
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    overflow: hidden;

    /* Keep the text in the DOM for accessibility,
       but display the icon visually. */
    font-size: 0;
    line-height: 0;
    color: #fff;
    text-indent: -9999px;
    white-space: nowrap;

    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 50%;
    background: #304454;
    cursor: pointer;
    box-shadow: 0 2px 5px rgb(0 0 0 / 18%);
    transition:
        background .15s ease,
        transform .15s ease,
        opacity .15s ease;
}

/* Icon shape: all four buttons use a white SVG mask. */
.ebc-daily__controls button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 19px;
    height: 19px;
    background-color: #fff;
    transform: translate(-50%, -50%);
    pointer-events: none;

    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

/* Microphone */
#ebc-daily-mic::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='2' width='6' height='12' rx='3'/%3E%3Cpath d='M5 10v2a7 7 0 0 0 14 0v-2M12 19v3M8 22h8'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='2' width='6' height='12' rx='3'/%3E%3Cpath d='M5 10v2a7 7 0 0 0 14 0v-2M12 19v3M8 22h8'/%3E%3C/svg%3E");
}

/* Camera */
#ebc-daily-camera::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='12' height='12' rx='2'/%3E%3Cpath d='m15 10 6-3v10l-6-3z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='12' height='12' rx='2'/%3E%3Cpath d='m15 10 6-3v10l-6-3z'/%3E%3C/svg%3E");
}

/* Screen sharing */
#ebc-daily-screen::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='13' rx='2'/%3E%3Cpath d='M8 21h8M12 17v4M12 13V7M8.5 10.5 12 7l3.5 3.5'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='13' rx='2'/%3E%3Cpath d='M8 21h8M12 17v4M12 13V7M8.5 10.5 12 7l3.5 3.5'/%3E%3C/svg%3E");
}

/* Leave call: handset with diagonal slash */
#ebc-daily-leave::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4c-1 1-1 3 0 5 2 4 7 9 11 11 2 1 4 1 5 0l1-2-5-4-2 2c-2-1-5-4-6-6l2-2-4-5z'/%3E%3Cpath d='m3 3 18 18'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4c-1 1-1 3 0 5 2 4 7 9 11 11 2 1 4 1 5 0l1-2-5-4-2 2c-2-1-5-4-6-6l2-2-4-5z'/%3E%3Cpath d='m3 3 18 18'/%3E%3C/svg%3E");
}

/* Hover and keyboard focus */
.ebc-daily__controls button:hover:not(:disabled) {
    background-color: #496174;
    transform: scale(1.06);
}

.ebc-daily__controls button:focus-visible {
    outline: 2px solid #FF5733;
    outline-offset: 3px;
}

/* Clearly indicate muted microphone or disabled camera. */
#ebc-daily-mic[aria-pressed="false"],
#ebc-daily-camera[aria-pressed="false"] {
    background-color: #a52c32;
    border-color: #c75a60;
}

/* Show when screen sharing is active. */
#ebc-daily-screen[aria-pressed="true"] {
    background-color: #104A74;
    border-color: #5aa3d2;
}

/* Prominent red leave-call button. */
#ebc-daily-controls button.is-leave,
.ebc-daily__controls .ebc-daily__leave,
#ebc-daily-leave {
    background-color: #d93045;
    border-color: #d93045;
}

#ebc-daily-leave:hover:not(:disabled) {
    background-color: #b92336;
}

/* Disabled controls */
.ebc-daily__controls button:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
}

/* Fit narrower sidebar widths */
@media (max-width: 480px) {
    .ebc-daily__controls {
        gap: 7px;
        padding: 7px 5px 9px;
    }

    .ebc-daily__controls button {
        flex-basis: 35px;
        width: 35px;
        min-width: 35px;
        height: 35px;
        min-height: 35px;
    }

    .ebc-daily__controls button::before {
        width: 18px;
        height: 18px;
    }
}


/* Fullscreen button — top right */
.ebc-daily__header {
    display: flex;
    align-items: center;
    gap: 8px;
}

#ebc-daily-status {
    margin-left: auto;
}

.ebc-daily__fullscreen {
    display: inline-flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 25%);
    border-radius: 6px;
    background: rgb(0 0 0 / 30%);
    color: #fff;
    cursor: pointer;
}

.ebc-daily__fullscreen-icon {
    display: block;
    width: 17px;
    height: 17px;
    background: #fff;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3H5a2 2 0 0 0-2 2v3M16 3h3a2 2 0 0 1 2 2v3M21 16v3a2 2 0 0 1-2 2h-3M3 16v3a2 2 0 0 0 2 2h3'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3H5a2 2 0 0 0-2 2v3M16 3h3a2 2 0 0 1 2 2v3M21 16v3a2 2 0 0 1-2 2h-3M3 16v3a2 2 0 0 0 2 2h3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ebc-daily__fullscreen:hover {
    background: rgb(255 255 255 / 20%);
}

.ebc-daily__fullscreen:focus-visible {
    outline: 2px solid #FF5733;
    outline-offset: 2px;
}

/* Expanded video */
#ebc-daily:fullscreen {
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: 0;
    background: #0B2D47;
}

#ebc-daily:fullscreen .ebc-daily__tile--local {
    width: 18%;
    max-width: 220px;
    bottom: 75px;
}

#ebc-daily:fullscreen .ebc-daily__controls button {
    flex-basis: 44px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
}

#ebc-daily:fullscreen .ebc-daily__controls button::before {
    width: 21px;
    height: 21px;
}
.ebc-daily__fullscreen.is-fullscreen .ebc-daily__fullscreen-icon {
    transform: rotate(180deg);
}

/*Session Content*/
.ebc-dynamic-theory h1 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    line-height: 1.2em;
    font-weight: 600;
    }

.ebc-dynamic-theory h3 {
    color: #0B2E49;
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.ebc-dynamic-theory ul {
    list-style-type: disc;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    padding-left: 1.25rem;
}

.ebc-dynamic-theory li {
    margin-bottom: 0.25rem;
}

.ebc-dynamic-theory blockquote {
    background-color: #edf2f7;
    border-left: 4px solid #FD5732; /* Coral accent */
    margin-top: 1.25rem;
    padding: 0.75rem 1rem;
    border-radius: 0 0.375rem 0.375rem 0;
    color: #0B2E49;
    font-weight: 500;
}

/* Styling Parsedown elements inside the Coach Script card */
.ebc-coach-script h3 {
    color: #78350f; /* Amber-900 */
    font-size: 0.875rem;
    /*font-weight: 700;
    text-transform: uppercase;*/
    letter-spacing: 0.02em;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
}

.ebc-coach-script h3:first-of-type {
    margin-top: 0;
}

.ebc-coach-script blockquote {
    background-color: #ffffff;
    border-left: 4px solid #d97706; /* Amber-600 */
    border-radius: 0 0.375rem 0.375rem 0;
    padding: 0.75rem 1rem;
    margin: 0.75rem 0;
    font-style: italic;
    color: #1e293b;
}

.ebc-coach-script ul, 
.ebc-coach-script ol {
    margin: 0.5rem 0 0.75rem 1.25rem;
}

.ebc-coach-script ul {
    list-style-type: disc;
}

.ebc-coach-script ol {
    list-style-type: decimal;
}

.ebc-coach-script li {
    margin-bottom: 0.25rem;
}

/* Mobile & Tablet Responsive Breakpoint */
@media (max-width: 1024px) {
    .ebc-session-layout {
        grid-template-columns: 1fr; /* Stacks vertically on smaller viewports */
    }
    
    .ebc-session-sidebar {
        position: relative;
        top: 0;
        height: 500px;
        order: -1; /* Keeps video on top on mobile */
    }
}

/****************************************************************===========
 * EBC LEARNER DASHBOARD - APPLE DESIGN SYSTEM (COMPLETE)
 * Location: wp-content/plugins/ebc-fluency-platform/assets/css/learner-dashboard.css
 ***************************************************************************/

/* 1. ROOT VARIABLES & CONTAINER */
.ebc-apple-dashboard {
    --apple-bg: #f5f5f7;
    --apple-card-bg: rgba(255, 255, 255, 0.88);
    --apple-text: #1d1d1f;
    --apple-subtext: #86868b;
    --apple-blue: #0071e3;
    --apple-blue-hover: #0077ed;
    --apple-blue-light: #f0f6ff;
    --apple-border: rgba(0, 0, 0, 0.08);
    --apple-radius: 18px;
    --apple-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, sans-serif;

    font-family: var(--apple-font);
    background-color: var(--apple-bg);
    padding: 32px;
    border-radius: 24px;
    max-width: 1140px;
    margin: 0 auto;
    color: var(--apple-text);
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

.ebc-apple-dashboard *, 
.ebc-apple-dashboard *::before, 
.ebc-apple-dashboard *::after {
    box-sizing: border-box;
}

/* 2. HEADER & METRICS */
.ebc-apple-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
}

.ebc-apple-welcome h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 6px 0;
    color: var(--apple-text);
    line-height: 1.2;
}

.ebc-apple-welcome p {
    font-size: 15px;
    color: var(--apple-subtext);
    margin: 0;
    font-weight: 400;
}

.ebc-apple-metrics {
    display: flex;
    gap: 12px;
}

.ebc-metric-pill {
    background: #ffffff;
    border: 1px solid var(--apple-border);
    padding: 8px 18px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.ebc-metric-val {
    font-size: 16px;
    font-weight: 700;
    color: var(--apple-blue);
}

.ebc-metric-lbl {
    font-size: 13px;
    color: var(--apple-subtext);
    font-weight: 500;
}

.ebc-metric-pill-zero {
    border: 1px solid #fd5732; /* Vibrant Coral accent */
    background-color: rgba(253, 87, 50, 0.05);
}

.ebc-metric-pill-zero .ebc-metric-val {
    color: #fd5732;
}

.ebc-metric-pill-zero .ebc-metric-lbl {
    color: #fd5732;
    font-weight: 600;
}

.ebc-metric-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 3. ROADMAP PROGRESS BAR */
.ebc-roadmap-progress-card {
    background: #ffffff;
    border: 1px solid var(--apple-border);
    border-radius: 16px;
    padding: 18px 24px;
    margin-bottom: 28px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.ebc-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 10px;
}

.ebc-progress-title {
    font-weight: 600;
    color: var(--apple-text);
}

.ebc-progress-stats {
    color: var(--apple-subtext);
}

.ebc-progress-track {
    background: #e5e5ea;
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
}

.ebc-progress-fill {
    background: var(--apple-blue);
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 4. CARDS & GRID */
.ebc-apple-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.ebc-apple-card {
    background: var(--apple-card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--apple-border);
    border-radius: var(--apple-radius);
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    margin-bottom: 28px;
}

.ebc-apple-grid .ebc-apple-card {
    margin-bottom: 0;
}

.ebc-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.ebc-card-header h2 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0;
    color: var(--apple-text);
}

/* 5. NEXT SESSION / UPCOMING HERO CARD */
.ebc-upcoming-card {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ebc-upcoming-card.ebc-card-unlocked {
    background: linear-gradient(135deg, #ffffff 0%, #f4f8fe 100%);
    border: 1px solid rgba(0, 113, 227, 0.25);
    box-shadow: 0 8px 30px rgba(0, 113, 227, 0.06);
}

.ebc-upcoming-card.ebc-card-locked {
    background: rgba(255, 255, 255, 0.75);
}

.ebc-card-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Session Meta Bar */
.ebc-session-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
}

.ebc-session-tag {
    display: inline-flex;
    align-items: center;
    background-color: var(--apple-blue);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.ebc-course-tag {
    display: inline-flex;
    align-items: center;
    background-color: #f2f2f7;
    color: var(--apple-text);
    font-weight: 500;
    font-size: 0.78rem;
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid #e5e5ea;
}

.ebc-row-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--apple-subtext);
    font-size: 0.85rem;
    margin-left: auto;
}

/* Titles & Description Callouts */
.ebc-session-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--apple-text);
    margin: 2px 0 0 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.ebc-objective-box,
.ebc-activity-box {
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #3a3a3c;
}

.ebc-objective-box {
    background-color: var(--apple-blue-light);
    border-left: 4px solid var(--apple-blue);
}

.ebc-activity-box {
    background-color: #f5f5f7;
    border-left: 4px solid #8e8e93;
}

.ebc-objective-box strong,
.ebc-activity-box strong {
    color: var(--apple-text);
}

/* Locked & Subtext Notices */
.ebc-row-subtext {
    font-size: 0.88rem;
    color: var(--apple-subtext);
    line-height: 1.4;
}

.ebc-locked-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(250, 250, 250, 0.8);
    border: 1px dashed #d2d2d7;
    padding: 12px 16px;
    border-radius: 10px;
    color: #6e6e73;
    font-style: italic;
}

/* Card Action Button Group */
.ebc-card-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
    flex-wrap: wrap;
}

/* 6. APPLE BUTTONS & BADGES */
.ebc-apple-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    border-radius: 20px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.ebc-btn-primary {
    background: var(--apple-blue);
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.25);
}

.ebc-btn-primary:hover {
    background: var(--apple-blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.35);
}

.ebc-btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: var(--apple-text) !important;
}

.ebc-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.09);
    transform: translateY(-1px);
}

.ebc-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ebc-badge-blue {
    background: rgba(0, 113, 227, 0.1);
    color: var(--apple-blue);
}

.ebc-badge-gray {
    background: rgba(0, 0, 0, 0.05);
    color: var(--apple-subtext);
}

/* 7. LIST ROWS & ARCHIVE ITEMS */
.ebc-apple-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ebc-list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.ebc-list-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.ebc-row-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ebc-row-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--apple-text);
}

.ebc-row-title a {
    color: var(--apple-text);
    text-decoration: none;
    transition: color 0.15s ease;
}

.ebc-row-title a:hover {
    color: var(--apple-blue);
}

.ebc-notes-excerpt {
    font-size: 12px;
    color: var(--apple-subtext);
    background: #f9f9fb;
    padding: 6px 10px;
    border-radius: 6px;
    margin-top: 4px;
    line-height: 1.4;
    border-left: 2px solid #d2d2d7;
}

.ebc-row-action {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
}

.ebc-apple-empty {
    text-align: center;
    padding: 32px;
    color: var(--apple-subtext);
    font-size: 14px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    border: 1px dashed var(--apple-border);
}

/* 8. WORDPRESS EMOJI FIX */
.ebc-apple-dashboard img.emoji {
    display: inline-block !important;
    height: 1em !important;
    width: 1em !important;
    margin: 0 0.2em !important;
    vertical-align: -0.1em !important;
    box-shadow: none !important;
    border: none !important;
    background: none !important;
}
/* ==========================================
   EBC RESCHEDULE / CANCEL MODAL (ISOLATED)
   ========================================== */
#ebc-reschedule-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(11, 46, 73, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#ebc-reschedule-modal .ebc-modal-card {
    background: #F8FEFE;
    border-radius: 12px;
    padding: 28px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
    border: 1px solid #cbd5e1;
    font-family: inherit;
}

#ebc-reschedule-modal .ebc-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #364A61;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

#ebc-reschedule-modal .ebc-modal-header h3 {
    margin: 0;
    color: #0B2E49;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

/* Late warning title state */
#ebc-reschedule-modal .ebc-modal-header h3.is-late-title {
    color: #FD5732;
}

#ebc-reschedule-modal .ebc-modal-body {
    margin-top: 14px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.6;
    color: #254A68;
}

#ebc-reschedule-modal .ebc-modal-body p {
    margin: 0;
    padding: 0;
}

#ebc-reschedule-modal .ebc-modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
}

/* Scoped specifically inside this modal */
#ebc-reschedule-modal .ebc-btn-secondary {
    background: #e2e8f0;
    color: #254A68;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

#ebc-reschedule-modal .ebc-btn-primary {
    background: #0B2E49;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

/* Late warning button state */
#ebc-reschedule-modal .ebc-btn-primary.is-late-btn {
    background: #FD5732;
}

#ebc-reschedule-modal .ebc-btn-primary:disabled,
#ebc-reschedule-modal .ebc-btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
/* 9. RESPONSIVE MEDIA QUERIES */
@media (max-width: 820px) {
    .ebc-apple-dashboard {
        padding: 20px;
        border-radius: 16px;
    }

    .ebc-apple-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .ebc-apple-grid {
        grid-template-columns: 1fr;
    }

    .ebc-row-meta {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 580px) {
    .ebc-apple-welcome h1 {
        font-size: 26px;
    }

    .ebc-card-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ebc-card-actions .ebc-apple-btn {
        width: 100%;
    }

    .ebc-list-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .ebc-row-action {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
    }
}

/******COACH specialities and PROFILES*****/

.ebc-coach-specialities {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.ebc-speciality-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border: 1px solid #DCE5EC;
    border-radius: 999px;
    background: #F4F7F9;
    color: #0B2E49;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.01em;
}

/* ========================================================================== 
   EBC Academy — Shared Live Session Frame (Coach + Learner)
   Scoped to pages whose body has .ebc-live-session-page.
   ========================================================================== */

/* Keep root-document styling limited to live-session pages. */
@supports selector(html:has(> body.ebc-live-session-page)) {
    html:has(> body.ebc-live-session-page) {
        width: 100%;
        height: 100%;
        margin: 0 !important;
        padding: 0 !important;
        background: #0f1012 !important;
        overflow: hidden !important;
    }
}

body.ebc-live-session-page {
    width: 100%;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    background: #0f1012 !important;
    overflow: hidden !important;
}

/* Hide the normal site chrome during a live session. */
body.ebc-live-session-page #masthead,
body.ebc-live-session-page .site-header,
body.ebc-live-session-page #site-header,
body.ebc-live-session-page .elementor-location-header,
body.ebc-live-session-page .wp-site-blocks > header,
body.ebc-live-session-page #colophon,
body.ebc-live-session-page .site-footer,
body.ebc-live-session-page .elementor-location-footer,
body.ebc-live-session-page .wp-site-blocks > footer {
    display: none !important;
}

/* Reset the theme's outer containers only on session pages. */
body.ebc-live-session-page #page,
body.ebc-live-session-page .site,
body.ebc-live-session-page .site-content,
body.ebc-live-session-page #content,
body.ebc-live-session-page #primary,
body.ebc-live-session-page .content-area,
body.ebc-live-session-page main.site-main,
body.ebc-live-session-page .wp-site-blocks {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-sizing: border-box !important;
}

body.ebc-live-session-page #page,
body.ebc-live-session-page .site,
body.ebc-live-session-page .wp-site-blocks {
    height: 100dvh !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

/* Application frame */
body.ebc-live-session-page .ebc-live-session-app,
body.ebc-live-session-page .ebc-live-session-app * {
    box-sizing: border-box;
}

body.ebc-live-session-page .ebc-live-session-app {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100dvh;
    min-height: 0;
    padding: 10px;
    overflow: hidden;
    background: #0f1012;
    color: #f5f5f7;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Top bar */
body.ebc-live-session-page .ebc-live-session-topbar {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(70px, 1fr) minmax(0, 2fr) minmax(70px, 1fr);
    align-items: center;
    flex: 0 0 42px;
    min-width: 0;
    padding: 0 14px;
    border: 1px solid #27282b;
    border-bottom: 0;
    border-radius: 13px 13px 0 0;
    background: #171719;
    color: #f5f5f7;
}

body.ebc-live-session-page .ebc-live-session-window-dots {
    display: flex;
    align-items: center;
    gap: 7px;
}

body.ebc-live-session-page .ebc-live-session-window-dots span {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

body.ebc-live-session-page .ebc-live-session-window-dots span:nth-child(1) { background: #ff5f57; }
body.ebc-live-session-page .ebc-live-session-window-dots span:nth-child(2) { background: #febc2e; }
body.ebc-live-session-page .ebc-live-session-window-dots span:nth-child(3) { background: #28c840; }

body.ebc-live-session-page .ebc-live-session-topbar-title {
    min-width: 0;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #f4f4f5;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .01em;
}

body.ebc-live-session-page .ebc-live-session-topbar-title span {
    color: #a1a1aa;
    font-weight: 400;
}

body.ebc-live-session-page .ebc-live-session-topbar-status {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #a1a1aa;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .07em;
    white-space: nowrap;
}

body.ebc-live-session-page .ebc-live-session-topbar-status > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef5350;
}

body.ebc-live-session-page .ebc-live-session-topbar-status.is-complete > span {
    background: #22c55e;
}

/* Main workspace */
body.ebc-live-session-page .ebc-live-session-workspace {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border-right: 1px solid #27282b;
    border-left: 1px solid #27282b;
    background: #f5f5f7;
}

/* Shared desktop grid: content on the left, video on the right. */
body.ebc-live-session-page .ebc-session-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 32%);
    grid-template-rows: minmax(0, 1fr);
    grid-template-areas: "content video";
    align-items: stretch;
    gap: 0 !important;
    width: 100%;
    max-width: none !important;
    height: 100%;
    min-height: 0;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
    overflow: hidden;
    background: #f5f5f7;
}

body.ebc-live-session-page .ebc-session-layout.no-sidebar {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    grid-template-areas: "content";
}

body.ebc-live-session-page .ebc-session-main {
    grid-area: content;
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    background: #f5f5f7;
}

body.ebc-live-session-page .ebc-session-main > .ebc-scope {
    min-height: 0 !important;
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

body.ebc-live-session-page .ebc-session-sidebar {
    grid-area: video;
    position: relative !important;
    inset: auto !important;
    align-self: stretch;
    width: auto !important;
    min-width: 0;
    min-height: 0;
    height: auto !important;
    max-height: none !important;
    padding: 0 6px;
    overflow: hidden;
    border-left: 1px solid #303034;
    background: #171719;
}

/* Video frame / iframe */
body.ebc-live-session-page .ebc-daily-sticky-frame {
    display: flex;
    flex-direction: column;
    position: relative !important;
    inset: auto !important;
    width: 100%;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden;
    border: 1px solid #303034;
    border-radius: 10px;
    background: #202124;
}

body.ebc-live-session-page .ebc-daily-sticky-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    background: #202124;
}

body.ebc-live-session-page .ebc-fullscreen-btn {
    position: absolute;
    z-index: 5;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 7px;
    background: rgba(20,20,22,.82);
    color: #fff;
    font-size: 11px;
    line-height: 1.2;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

body.ebc-live-session-page .ebc-fullscreen-btn:hover {
    background: rgba(50,50,54,.95);
}

body.ebc-live-session-page .ebc-fullscreen-btn:focus-visible {
    outline: 2px solid #FF5733;
    outline-offset: 2px;
}

/* Coach-only save bar positioning; harmless on learner pages if absent. */
body.ebc-live-session-page .ebc-coach-save-bar {
    bottom: 46px !important;
    margin: 0 11px -5px 11px;
}

/* Shared bottom bar */
body.ebc-live-session-page .ebc-live-session-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 36px;
    gap: 12px;
    min-width: 0;
    padding: 0 14px;
    border: 1px solid #27282b;
    border-top: 0;
    border-radius: 0 0 13px 13px;
    background: #171719;
    color: #a1a1aa;
    font-size: 10px;
}

body.ebc-live-session-page .ebc-live-session-bottom-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: #c4c4ca;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
}

body.ebc-live-session-page .ebc-live-session-bottom-label > span {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #22c55e;
}

body.ebc-live-session-page .ebc-live-session-bottom-time {
    min-width: 0;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ebc-live-session-page .ebc-live-session-dashboard-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    color: #d4d4d8;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
}

body.ebc-live-session-page .ebc-live-session-dashboard-link:hover {
    color: #fff;
}

body.ebc-live-session-page .ebc-live-session-dashboard-link:focus-visible {
    outline: 2px solid #FF5733;
    outline-offset: 3px;
}

/* Tablet and mobile: video first, capped at 40vh; session content below. */
@media (max-width: 800px) {
    body.ebc-live-session-page,
    body.ebc-live-session-page #page,
    body.ebc-live-session-page .site,
    body.ebc-live-session-page .wp-site-blocks {
        height: 100dvh !important;
        overflow: hidden !important;
    }

    body.ebc-live-session-page .ebc-live-session-app {
        padding: 0;
    }

    body.ebc-live-session-page .ebc-live-session-topbar {
        flex-basis: 42px;
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        padding: 0 10px;
        border-radius: 0;
    }

    body.ebc-live-session-page .ebc-live-session-topbar-status {
        font-size: 0;
    }

    body.ebc-live-session-page .ebc-live-session-topbar-status > span {
        width: 8px;
        height: 8px;
    }

    body.ebc-live-session-page .ebc-live-session-workspace {
        border-right: 0;
        border-left: 0;
    }

    body.ebc-live-session-page .ebc-session-layout {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: minmax(0, 40dvh) minmax(0, 1fr) !important;
        grid-template-areas: "video" "content" !important;
    }

    body.ebc-live-session-page .ebc-session-layout.no-sidebar {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: minmax(0, 1fr) !important;
        grid-template-areas: "content" !important;
    }

    body.ebc-live-session-page .ebc-session-main {
        grid-area: content;
        height: auto;
    }

    body.ebc-live-session-page .ebc-session-sidebar {
        grid-area: video;
        height: auto !important;
        max-height: 40dvh !important;
        min-height: 0 !important;
        padding: 6px;
        border-left: 0;
        border-bottom: 1px solid #303034;
    }

    body.ebc-live-session-page .ebc-daily-sticky-frame {
        max-height: 100% !important;
    }

    body.ebc-live-session-page .ebc-session-main > .ebc-scope {
        padding: 1rem !important;
    }

    body.ebc-live-session-page .ebc-live-session-bottom-bar {
        flex-basis: 34px;
        padding: 0 10px;
        border-radius: 0;
    }

    body.ebc-live-session-page .ebc-live-session-bottom-time {
        display: none;
    }

    body.ebc-live-session-page .ebc-coach-save-bar {
        bottom: 34px !important;
    }
}

@media (max-width: 420px) {
    body.ebc-live-session-page .ebc-live-session-topbar-title {
        font-size: 11px;
    }

    body.ebc-live-session-page .ebc-live-session-bottom-label {
        font-size: 9px;
    }

    body.ebc-live-session-page .ebc-live-session-dashboard-link {
        font-size: 10px;
    }
}
