/**
 * Event Check-in - Conversational Multi-Step Form Frontend
 * Istanbul Edition Design Language
 */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@200;400;500;600;700;800&display=swap');

:root {
    --ecf-navy: #002d72;
    --ecf-cyan: #0babe4;
    --ecf-dark: #00122e;
    --ecf-soft: #eef3f8;
    --ecf-paper: #ffffff;
    --ecf-ink: #0f2440;
    --ecf-muted: #64748b;
    --ecf-ok: #16a34a;
    --ecf-line: rgba(0, 45, 114, 0.14);
    --ecf-shadow: 0 18px 54px rgba(0, 45, 114, 0.10);
}

/* Hidden utility */
.ec-hidden { display: none !important; }

/* Override theme max-width constraints when our form is on the page.
   Common themes (Starter, Bridge, Flavor, Avada, Divi, etc.) limit
   .standard_wrapper or #page_content_wrapper to ~1200-1425px. */
.ec-form-app,
.ec-form-app ~ *,
body:has(.ec-form-app) #page_content_wrapper,
body:has(.ec-form-app) .standard_wrapper,
body:has(.ec-form-app) .footer_bar_wrapper,
body:has(.ec-form-app) .page_content_wrapper,
body:has(.ec-form-app) #content,
body:has(.ec-form-app) .content-area,
body:has(.ec-form-app) .site-content,
body:has(.ec-form-app) .entry-content,
body:has(.ec-form-app) .post-content,
body:has(.ec-form-app) article,
body:has(.ec-form-app) .elementor-section.elementor-section-boxed > .elementor-container,
body:has(.ec-form-app) .e-con,
body:has(.ec-form-app) .ast-container,
body:has(.ec-form-app) .container,
body:has(.ec-form-app) .wrapper,
body:has(.ec-form-app) .inner_wrapper,
body:has(.ec-form-app) main {
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: hidden !important;
}

html:has(.ec-form-app),
body:has(.ec-form-app) {
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

body.ec-fullwidth-page {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Fallback class for browsers without :has() support */
body.ec-fullwidth-page #page_content_wrapper,
body.ec-fullwidth-page #wrapper,
body.ec-fullwidth-page .inner,
body.ec-fullwidth-page .standard_wrapper,
body.ec-fullwidth-page .inner_wrapper,
body.ec-fullwidth-page .page_content_wrapper,
body.ec-fullwidth-page #content,
body.ec-fullwidth-page .content-area,
body.ec-fullwidth-page .site-content,
body.ec-fullwidth-page .entry-content,
body.ec-fullwidth-page .post-content,
body.ec-fullwidth-page .elementor-section.elementor-section-boxed > .elementor-container,
body.ec-fullwidth-page .e-con,
body.ec-fullwidth-page .ast-container,
body.ec-fullwidth-page .container,
body.ec-fullwidth-page article,
body.ec-fullwidth-page main {
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: hidden !important;
}

body.ec-fullwidth-page header,
body.ec-fullwidth-page footer,
body.ec-fullwidth-page .site-header,
body.ec-fullwidth-page .site-footer,
body.ec-fullwidth-page .wp-site-header,
body.ec-fullwidth-page .wp-site-footer,
body.ec-fullwidth-page [role="banner"],
body.ec-fullwidth-page [role="contentinfo"],
body.ec-fullwidth-page .wp-block-template-part,
body.ec-fullwidth-page .entry-header,
body.ec-fullwidth-page .page-header,
body.ec-fullwidth-page .entry-title,
body.ec-fullwidth-page .page-title,
body.ec-fullwidth-page .post-title,
body.ec-fullwidth-page .wp-block-post-title {
    display: none !important;
}

body.ec-fullwidth-page .wp-site-blocks,
body.ec-fullwidth-page .wp-block-group,
body.ec-fullwidth-page .wp-block-post-content {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
}

.ec-form-app {
    --ec-form-fit-zoom: 1;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    color: var(--ecf-navy);
    width: 100vw;
    margin: 0 !important;
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(280px, 26vw) minmax(0, 1fr);
    background: linear-gradient(90deg, #fff 0%, #fff 26%, #eef3f8 26%, #f8fafc 100%);
    overflow: hidden;
    /* Break out of any theme content container to fill viewport width */
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
    zoom: var(--ec-form-fit-zoom);
}

html:has(.ec-form-fit-active),
body:has(.ec-form-fit-active),
body.ec-form-fit-active-body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.ec-form-app.ec-form-fit-active {
    width: calc(100vw / var(--ec-form-fit-zoom)) !important;
    max-width: calc(100vw / var(--ec-form-fit-zoom)) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    transform-origin: top center;
}

.ec-form-app.ec-form-fit-active .ec-form-left,
.ec-form-app.ec-form-fit-active .ec-form-right,
.ec-form-app.ec-form-fit-active .ec-form-stage,
.ec-form-app.ec-form-fit-active .ec-form-panel {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

.ec-form-app.ec-form-fit-active .ec-form-left {
    max-height: calc(100dvh / var(--ec-form-fit-zoom)) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.ec-form-app.ec-form-fit-active .ec-form-right,
.ec-form-app.ec-form-fit-active .ec-form-stage,
.ec-form-app.ec-form-fit-active .ec-form-panel {
    overflow: visible !important;
}

/* Fullscreen mode (header/footer hidden) */
.ec-form-app.ec-form-fullscreen {
    position: relative;
    top: auto;
    left: 50%;
    right: auto;
    bottom: auto;
    z-index: 99999;
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

/* Left panel */
.ec-form-left {
    position: relative;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    scrollbar-gutter: stable;
    padding: clamp(22px, 3vw, 46px);
    border-right: 2px solid var(--ecf-navy);
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: clamp(18px, 3vh, 34px);
    max-height: 100vh;
    max-height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
}

.ec-form-left::before {
    content: "REGISTER";
    position: absolute;
    left: -7vw;
    top: 7vh;
    font-size: clamp(72px, 12vw, 190px);
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.08em;
    color: rgba(0, 45, 114, 0.045);
    transform: rotate(-90deg);
    transform-origin: center;
    pointer-events: none;
}

.ec-form-left::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(0,45,114,.045) 1px, transparent 1px),
                       linear-gradient(90deg, rgba(0,45,114,.045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, black, transparent 86%);
    pointer-events: none;
}

.ec-form-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 2px solid var(--ecf-navy);
    background: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    box-shadow: 7px 7px 0 rgba(0, 45, 114, 0.08);
    position: relative;
    z-index: 2;
}

.ec-form-pill::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--ecf-cyan);
    box-shadow: 0 0 18px rgba(11, 171, 228, 0.45);
    flex-shrink: 0;
}

.ec-form-headline {
    margin: 0 0 16px;
    font-size: 42px;
    line-height: 0.86;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.075em;
    text-transform: uppercase;
    color: var(--ecf-navy);
    position: relative;
    z-index: 2;
}

.ec-form-headline span { color: var(--ecf-cyan); }

.ec-form-lead {
    max-width: 430px;
    font-size: clamp(13px, 1.05vw, 16px);
    line-height: 1.65;
    color: var(--ecf-muted);
    position: relative;
    z-index: 2;
}

/* Branding */
.ec-form-brand-footer {
    position: relative;
    z-index: 3;
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.ec-form-brand-logos {
    --ec-logo-h: 44px;
    --ec-logo-max: 120px;
    display: block;
    max-width: 100%;
    overflow: visible;
}

.ec-form-brand-logos-track {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ec-form-brand-logo {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.ec-form-brand-logos img {
    display: block !important;
    width: auto !important;
    height: var(--ec-logo-h) !important;
    max-width: var(--ec-logo-max) !important;
    object-fit: contain !important;
    background: #fff;
}

.ec-form-brand-logos--success {
    --ec-logo-h: 54px;
    --ec-logo-max: 150px;
    margin: 0 auto 22px;
}

.ec-form-brand-logos--success .ec-form-brand-logos-track {
    justify-content: center;
}

.ec-form-brand-logos--topbar {
    --ec-logo-h: 60px;
    --ec-logo-max: 140px;
    width: min(520px, 42vw);
    overflow: hidden;
}

.ec-form-brand-logos--topbar .ec-form-brand-logos-track {
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 10px;
}

.ec-form-brand-logos--lefttop {
    display: none;
}

.ec-form-brand-logos--slider .ec-form-brand-logos-track {
    width: max-content;
    flex-wrap: nowrap;
    animation: ecLogoSlide 22s linear infinite;
}

.ec-form-brand-logos--slider:hover .ec-form-brand-logos-track {
    animation-play-state: paused;
}

@keyframes ecLogoSlide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ec-form-brand-logos--slider .ec-form-brand-logos-track {
        animation: none;
        transform: none;
    }
}

.ec-form-contact-card,
.ec-form-success-contact {
    border: 2px solid rgba(0, 45, 114, 0.14);
    background: rgba(255, 255, 255, 0.88);
    padding: 12px 14px;
    box-shadow: 6px 6px 0 rgba(0, 45, 114, 0.06);
    color: var(--ecf-navy);
}

.ec-form-contact-card span,
.ec-form-success-contact strong {
    display: block;
    margin-bottom: 6px;
    color: rgba(0, 45, 114, 0.52);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ec-form-contact-card a,
.ec-form-success-contact a,
.ec-form-success-contact span {
    display: block;
    color: var(--ecf-navy);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
    text-decoration: none;
    word-break: break-word;
}

.ec-form-powered {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    color: rgba(0, 45, 114, 0.56);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ec-form-powered img {
    display: block !important;
    width: auto !important;
    height: 30px !important;
    max-width: 96px !important;
    object-fit: contain !important;
}

.ec-event-intro-panel {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 22px;
}

.ec-event-intro-main h4 {
    margin: 0;
    color: var(--ecf-navy);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 26px;
    font-style: italic;
    font-weight: 800;
    line-height: 0.98;
}

.ec-event-intro-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.ec-event-intro-meta span {
    border: 1px solid rgba(0, 45, 114, 0.16);
    background: #fff;
    padding: 9px 11px;
    color: var(--ecf-navy);
    font-size: 11px;
    font-weight: 800;
}

.ec-event-intro-main p {
    margin: 18px 0 0;
    color: var(--ecf-muted);
    font-size: 15px;
    line-height: 1.7;
}

.ec-event-intro-schedule {
    align-self: start;
    border-left: 4px solid var(--ecf-cyan);
    background: #fff;
    padding: 16px;
    box-shadow: 0 10px 28px rgba(0, 45, 114, 0.06);
}

.ec-event-intro-schedule > b {
    display: block;
    margin-bottom: 10px;
    color: rgba(0, 45, 114, 0.52);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ec-event-intro-slot {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid rgba(0, 45, 114, 0.1);
}

.ec-event-intro-slot time {
    color: var(--ecf-navy);
    font-size: 12px;
    font-weight: 900;
}

.ec-event-intro-slot span {
    color: var(--ecf-muted);
    font-size: 13px;
    line-height: 1.45;
}

.ec-form-left::-webkit-scrollbar {
    width: 8px;
}

.ec-form-left::-webkit-scrollbar-track {
    background: rgba(0, 45, 114, 0.06);
}

.ec-form-left::-webkit-scrollbar-thumb {
    background: rgba(0, 45, 114, 0.20);
    border: 2px solid rgba(255, 255, 255, 0.75);
}

/* Step navigation */
.ec-form-steps {
    margin-top: clamp(18px, 3vh, 34px);
    display: grid;
    gap: clamp(10px, 1.5vh, 16px);
    position: relative;
    z-index: 2;
}

.ec-form-step-link {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    align-items: start;
    color: rgba(0, 45, 114, 0.44);
    transition: 0.25s;
    cursor: pointer;
}

.ec-form-step-link.is-active {
    color: var(--ecf-navy);
    transform: translateX(5px);
}

.ec-form-step-no {
    height: 34px;
    border: 2px solid rgba(0, 45, 114, 0.26);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 12px;
    background: #fff;
    transition: 0.25s;
}

.ec-form-step-link.is-active .ec-form-step-no {
    background: var(--ecf-navy);
    border-color: var(--ecf-navy);
    color: #fff;
    box-shadow: 5px 5px 0 rgba(11, 171, 228, 0.22);
}

.ec-form-step-title {
    font-size: clamp(11px, 0.95vw, 13px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.ec-form-step-sub {
    margin-top: 3px;
    font-size: clamp(10px, 0.85vw, 12px);
    color: var(--ecf-muted);
}

/* Right panel */
.ec-form-right {
    position: relative;
    box-sizing: border-box;
    min-width: 0;
    padding: clamp(18px, 2.6vw, 38px) clamp(18px, 3vw, 42px);
    display: flex;
    flex-direction: column;
    overflow-y: hidden;
    overflow-x: hidden;
    max-height: 100vh;
    max-height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
}

.ec-form-app .ec-form-right {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    padding-top: clamp(18px, 2.6vw, 38px) !important;
    padding-right: clamp(18px, 3vw, 42px) !important;
    padding-bottom: clamp(18px, 2.6vw, 38px) !important;
    padding-left: clamp(18px, 3vw, 42px) !important;
    align-items: center;
}

.ec-form-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: clamp(14px, 2vh, 24px);
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.ec-form-progress-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    min-width: 0;
}

.ec-form-topbar h2 {
    margin: 0;
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    color: var(--ecf-navy);
}

.ec-form-kicker {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(0, 45, 114, 0.46);
}

.ec-form-progress {
    display: flex;
    gap: 6px;
    align-items: center;
}

.ec-form-progress-dot {
    display: block;
    width: clamp(18px, 2.2vw, 34px);
    height: 5px;
    background: rgba(0, 45, 114, 0.14);
}

.ec-form-progress-dot.on {
    background: var(--ecf-cyan);
    box-shadow: 0 0 18px rgba(11, 171, 228, 0.35);
}

/* Stage */
.ec-form-stage {
    position: relative;
    box-sizing: border-box;
    z-index: 2;
    width: 100%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    border: 2px solid var(--ecf-navy);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 12px 12px 0 rgba(0, 45, 114, 0.08), var(--ecf-shadow);
    overflow: hidden;
}

.ec-form-stage > form {
    box-sizing: border-box;
    height: auto;
    min-height: 0;
}

/* Panel (each step) */
.ec-form-panel {
    position: relative;
    box-sizing: border-box;
    display: none;
    height: auto;
    min-height: 0;
    max-height: clamp(560px, 72dvh, 780px);
    grid-template-rows: auto auto auto;
    gap: clamp(16px, 2.5vh, 28px);
    padding: clamp(20px, 3vw, 42px);
    padding-bottom: clamp(88px, 12dvh, 132px);
    scroll-padding-bottom: clamp(88px, 12dvh, 132px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    opacity: 0;
    transform: translateY(22px);
    filter: blur(8px);
    pointer-events: none;
    transition: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.ec-form-panel::-webkit-scrollbar {
    width: 10px;
}

.ec-form-panel::-webkit-scrollbar-track {
    background: rgba(0, 45, 114, 0.06);
}

.ec-form-panel::-webkit-scrollbar-thumb {
    background: rgba(0, 45, 114, 0.22);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.ec-form-panel.active {
    display: grid;
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    pointer-events: auto;
}

.ec-form-question-title {
    margin: 0;
    font-size: clamp(32px, 4.2vw, 66px);
    font-weight: 800;
    font-style: italic;
    line-height: 0.9;
    letter-spacing: -0.08em;
    text-transform: uppercase;
    max-width: 860px;
    color: var(--ecf-navy);
}

.ec-form-question-title span { color: var(--ecf-cyan); }

.ec-form-question-help {
    max-width: 720px;
    color: var(--ecf-muted);
    line-height: 1.6;
    margin: 14px 0 0;
    font-size: clamp(13px, 1.05vw, 15px);
}

/* Content area (fields) */
.ec-form-content {
    align-self: start;
    width: 100%;
    max-width: 1080px;
    overflow: visible;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    align-content: start;
}

/* Field widths */
.ec-ff[data-width="full"] { grid-column: span 6; }
.ec-ff[data-width="half"] { grid-column: span 3; }
.ec-ff[data-width="third"] { grid-column: span 2; }
.ec-ff[data-width="two_thirds"] { grid-column: span 4; }

/* Field styling */
.ec-ff { display: grid; gap: 8px; min-width: 0; }

.ec-ff-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(0, 45, 114, 0.55);
}

.ec-ff-input,
.ec-ff-select,
.ec-ff-textarea {
    width: 100%;
    border: 2px solid rgba(0, 45, 114, 0.18);
    background: #fff;
    color: var(--ecf-navy);
    padding: 14px 16px;
    outline: none;
    transition: 0.2s;
    min-height: 54px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    box-sizing: border-box;
    border-radius: 0;
}

.ec-ff-input:focus,
.ec-ff-select:focus,
.ec-ff-textarea:focus {
    border-color: var(--ecf-cyan);
    box-shadow: 0 0 0 4px rgba(11, 171, 228, 0.12);
}

.ec-ff-input::placeholder,
.ec-ff-textarea::placeholder {
    color: rgba(0, 45, 114, 0.32);
}

.ec-ff-textarea {
    min-height: 128px;
    resize: none;
    line-height: 1.6;
}

.ec-ff-error {
    font-size: 12px;
    font-weight: 600;
    color: #dc2626;
}

/* Radio cards */
.ec-form-app .ec-ff-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    align-items: stretch;
}

.ec-form-app .ec-ff-choice-grid:has(input[type="radio"]) {
    grid-template-columns: repeat(auto-fit, minmax(150px, 220px));
    justify-content: start;
    gap: 10px;
}

.ec-form-app .ec-ff-choice {
    position: relative;
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    border: 2px solid rgba(0, 45, 114, 0.18);
    background: #fff;
    padding: 20px;
    min-height: 120px;
    transition: 0.25s;
    cursor: pointer;
    overflow: hidden;
}

.ec-form-app .ec-ff-choice:has(input[type="radio"]) {
    display: flex !important;
    align-items: center;
    min-height: 64px;
    padding: 14px 48px 14px 18px !important;
}

.ec-form-app .ec-ff-choice:hover {
    border-color: var(--ecf-cyan);
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0 rgba(11, 171, 228, 0.16);
}

.ec-form-app .ec-ff-choice:has(input[type="radio"]):hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 rgba(11, 171, 228, 0.14);
}

.ec-form-app .ec-ff-choice input { position: absolute; opacity: 0; pointer-events: none; }

.ec-form-app .ec-ff-choice:has(input:checked) {
    background: rgba(11, 171, 228, 0.08);
    border-color: var(--ecf-cyan);
    box-shadow: 8px 8px 0 rgba(11, 171, 228, 0.13);
}

.ec-form-app .ec-ff-choice b {
    display: block;
    margin-bottom: 9px;
    font-size: 18px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    color: var(--ecf-navy);
}

.ec-form-app .ec-ff-choice:has(input[type="radio"]) b {
    margin-bottom: 0;
    font-size: 16px;
    line-height: 1.1;
}

.ec-form-app .ec-ff-choice p { margin: 0; color: var(--ecf-muted); font-size: 13px; line-height: 1.5; }

.ec-form-app .ec-ff-choice-mark {
    position: absolute;
    right: 14px;
    top: 12px;
    width: 24px;
    height: 24px;
    border: 2px solid rgba(0, 45, 114, 0.26);
    display: grid;
    place-items: center;
    font-size: 12px;
    color: transparent;
}

.ec-form-app .ec-ff-choice:has(input[type="radio"]) .ec-ff-choice-mark {
    top: 50%;
    right: 14px;
    width: 26px;
    height: 26px;
    transform: translateY(-50%);
}

.ec-form-app .ec-ff-choice:has(input:checked) .ec-ff-choice-mark {
    background: var(--ecf-cyan);
    border-color: var(--ecf-cyan);
    color: #fff;
}

/* Chips */
.ec-ff-chips { display: flex; gap: 10px; flex-wrap: wrap; }

.ec-ff-chip {
    border: 2px solid rgba(0, 45, 114, 0.18);
    background: #fff;
    padding: 12px 15px;
    color: var(--ecf-navy);
    font-weight: 700;
    font-size: 13px;
    transition: 0.2s;
    cursor: pointer;
}

.ec-ff-chip input { display: none; }

.ec-ff-chip:has(input:checked) {
    background: var(--ecf-navy);
    border-color: var(--ecf-navy);
    color: #fff;
    box-shadow: 6px 6px 0 rgba(11, 171, 228, 0.16);
}

/* Phone with country code */
.ec-ff-phone-box {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 10px;
    align-items: end;
}

/* Verify button */
.ec-ff-verify-btn {
    height: 54px;
    border: 2px solid var(--ecf-cyan);
    background: rgba(11, 171, 228, 0.08);
    color: var(--ecf-navy);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
}

.ec-ff-verify-btn:hover {
    background: var(--ecf-cyan);
    color: #fff;
}

.ec-ff-verify-btn.verified {
    background: rgba(22, 163, 74, 0.1);
    border-color: var(--ecf-ok);
    color: var(--ecf-ok);
    cursor: default;
}

/* OTP input */
.ec-ff-otp {
    margin-top: 12px;
    border: 1px solid var(--ecf-line);
    background: #fff;
    padding: 16px;
    display: grid;
    gap: 12px;
}

.ec-ff-otp-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr) 54px;
    gap: 10px;
    align-items: center;
}

.ec-ff-otp-row input {
    text-align: center;
    font-size: 22px;
    font-weight: 800;
}

/* Website preview */
.ec-ff-website-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 16px;
    align-items: stretch;
}

.ec-ff-preview-card {
    border: 2px solid var(--ecf-line);
    background: #fff;
    overflow: hidden;
    transform: translateY(10px);
    opacity: 0.85;
    transition: 0.35s;
}

.ec-ff-website-wrap:focus-within .ec-ff-preview-card {
    transform: translateY(0);
    opacity: 1;
    box-shadow: 8px 8px 0 rgba(11, 171, 228, 0.14);
}

.ec-ff-preview-top {
    height: 72px;
    background: linear-gradient(135deg, var(--ecf-cyan), var(--ecf-navy));
}

.ec-ff-preview-body {
    padding: 14px;
}

.ec-ff-preview-body b { display: block; font-size: 14px; margin-bottom: 4px; color: var(--ecf-navy); }
.ec-ff-preview-body p { margin: 0; color: var(--ecf-muted); font-size: 11px; }

/* Signature */
.ec-ff-signature {
    height: 176px;
    border: 2px solid rgba(0, 45, 114, 0.22);
    background: #fff;
    position: relative;
    overflow: hidden;
}

.ec-ff-signature canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.ec-ff-signature::after {
    content: "SIGN HERE";
    position: absolute;
    left: 22px;
    bottom: 16px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: rgba(0, 45, 114, 0.20);
    pointer-events: none;
}

/* Range slider */
.ec-ff-range-wrap {
    border: 2px solid var(--ecf-line);
    background: #fff;
    padding: 20px;
}

.ec-ff-range-row {
    display: flex;
    align-items: center;
    gap: 18px;
}

.ec-ff-range-row input[type="range"] {
    width: 100%;
    accent-color: var(--ecf-cyan);
}

.ec-ff-range-value {
    font-size: 40px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.06em;
    color: var(--ecf-cyan);
}

/* File upload */
.ec-ff-upload {
    border: 2px dashed rgba(0, 45, 114, 0.24);
    background: #fff;
    padding: 26px;
    text-align: center;
    transition: 0.2s;
    cursor: pointer;
}

.ec-ff-upload:hover {
    border-color: var(--ecf-cyan);
    background: rgba(11, 171, 228, 0.06);
}

.ec-ff-upload input[type="file"] { display: none; }

/* Social links */
.ec-ff-social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.ec-ff-social {
    border: 2px solid rgba(0, 45, 114, 0.18);
    background: #fff;
    padding: 18px;
    transition: 0.25s;
}

.ec-ff-social:hover {
    border-color: var(--ecf-cyan);
    transform: translateY(-5px);
    box-shadow: 8px 8px 0 rgba(11, 171, 228, 0.12);
}

.ec-ff-social-icon {
    width: 36px;
    height: 36px;
    background: var(--ecf-cyan);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 14px;
    margin-bottom: 12px;
}

.ec-ff-social b { display: block; font-size: 14px; margin-bottom: 8px; color: var(--ecf-navy); }

.ec-ff-social input {
    width: 100%;
    border: 0;
    border-bottom: 1px solid rgba(0, 45, 114, 0.24);
    background: transparent;
    color: var(--ecf-navy);
    padding: 8px 0;
    outline: none;
    font-family: inherit;
    font-size: 13px;
}

/* Repeatable field bundles */
.ec-ff-repeater {
    grid-column: 1 / -1 !important;
    display: grid;
    gap: 12px;
}

.ec-ff-repeater-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.ec-ff-repeater-head p {
    margin: 6px 0 0;
    color: var(--ecf-muted);
    font-size: 13px;
    line-height: 1.5;
}

.ec-ff-repeater-limit {
    flex: 0 0 auto;
    border: 1px solid rgba(0, 45, 114, 0.16);
    background: rgba(0, 45, 114, 0.04);
    padding: 6px 9px;
    color: rgba(0, 45, 114, 0.58);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ec-ff-repeater-items {
    display: grid;
    gap: 14px;
}

.ec-ff-repeater-item {
    border: 2px solid rgba(0, 45, 114, 0.16);
    background: #fff;
    padding: 16px;
    box-shadow: 6px 6px 0 rgba(0, 45, 114, 0.05);
}

.ec-ff-repeater-item-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 45, 114, 0.10);
}

.ec-ff-repeater-item-head b {
    color: var(--ecf-navy);
    font-size: 14px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.ec-ff-repeater-remove {
    border: 1px solid rgba(0, 45, 114, 0.18);
    background: #fff;
    color: rgba(0, 45, 114, 0.56);
    min-height: 32px;
    padding: 0 10px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
}

.ec-ff-repeater-remove:disabled,
.ec-ff-repeater-add:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.ec-ff-repeater-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.ec-ff-repeater-field {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.ec-ff-repeater-field[data-width="full"] { grid-column: span 6; }
.ec-ff-repeater-field[data-width="half"] { grid-column: span 3; }
.ec-ff-repeater-field[data-width="third"] { grid-column: span 2; }
.ec-ff-repeater-field[data-width="two_thirds"] { grid-column: span 4; }

.ec-ff-repeater-grid > .ec-ff[data-width="full"] { grid-column: span 6; }
.ec-ff-repeater-grid > .ec-ff[data-width="half"] { grid-column: span 3; }
.ec-ff-repeater-grid > .ec-ff[data-width="third"] { grid-column: span 2; }
.ec-ff-repeater-grid > .ec-ff[data-width="two_thirds"] { grid-column: span 4; }

/* Review step */
.ec-ff-review {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.ec-ff-review-item {
    border: 1px solid var(--ecf-line);
    background: #fff;
    padding: 17px;
}

.ec-ff-review-item span {
    display: block;
    font-size: 10px;
    font-weight: 800;
    color: rgba(0, 45, 114, 0.40);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ec-ff-review-item b {
    display: block;
    margin-top: 7px;
    font-size: 16px;
    color: var(--ecf-navy);
}

/* Actions (Back / Continue) */
.ec-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    align-items: center;
    position: relative;
    z-index: 5;
    margin-top: 10px;
    padding-top: 16px;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--ecf-line);
    scroll-margin-bottom: clamp(56px, 8dvh, 96px);
}

.ec-form-btn {
    min-height: 52px;
    padding: 0 22px;
    border: 2px solid rgba(0, 45, 114, 0.22);
    background: #fff;
    color: var(--ecf-navy);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    font-family: inherit;
    border-radius: 0;
}

.ec-form-btn:hover {
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0 rgba(11, 171, 228, 0.24);
}

.ec-form-btn.primary {
    background: var(--ecf-navy);
    border-color: var(--ecf-navy);
    color: #fff;
    box-shadow: 6px 6px 0 rgba(11, 171, 228, 0.18);
}

.ec-form-btn.ghost { color: rgba(0, 45, 114, 0.55); }
.ec-form-btn:disabled { opacity: 0.35; pointer-events: none; }

/* Section break */
.ec-ff-section-break {
    grid-column: 1 / -1;
    padding: 16px 0;
    border-top: 2px solid var(--ecf-line);
}

.ec-ff-section-break h4 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 800;
    color: var(--ecf-navy);
    text-transform: uppercase;
}

.ec-ff-section-break p {
    margin: 0;
    font-size: 13px;
    color: var(--ecf-muted);
}

/* Success state */
.ec-form-success {
    display: none;
    text-align: center;
    padding: 60px 20px;
}

.ec-form-success.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
}

/* Expand stage + hide topbar when success is visible */
.ec-form-right:has(#ec-form-success.active) .ec-form-topbar {
    display: none;
}

.ec-form-right:has(#ec-form-success.active) .ec-form-stage {
    flex: 1 1 auto;
    display: flex;
    align-items: stretch;
}

.ec-form-success-icon {
    width: 80px;
    height: 80px;
    border: 3px solid var(--ecf-navy);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--ecf-navy);
    margin-bottom: 20px;
}

.ec-form-success-contact {
    max-width: 420px;
    margin: 22px auto 0;
}

#ec-form-success-qr {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.ec-form-success-qr-item {
    margin: 0;
    display: grid;
    gap: 8px;
    justify-items: center;
    color: var(--ecf-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ec-form-success-qr-item figcaption {
    display: grid;
    gap: 6px;
    justify-items: center;
}

.ec-form-success-qr-item strong {
    color: var(--ecf-navy);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.ec-form-success-qr-item a {
    color: var(--ecf-navy);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Language Switcher */
.ec-form-left-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    z-index: 3;
}

.ec-form-lang-switcher {
    position: relative;
    z-index: 3;
}

#ec-form-lang-switcher {
    display: none;
}

.ec-form-lang-select {
    appearance: none;
    -webkit-appearance: none;
    padding: 7px 28px 7px 10px;
    border: 2px solid var(--ecf-navy);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23002d72'/%3E%3C/svg%3E") no-repeat right 8px center;
    font-family: inherit;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ecf-navy);
    cursor: pointer;
}

.ec-form-lang-select:focus {
    outline: none;
    border-color: var(--ecf-cyan);
}

/* Country Select */
.ec-ff-country-select {
    width: 100%;
}

/* Company Info Card */
.ec-ff-company-card {
    grid-column: 1 / -1 !important;
}

.ec-company-card {
    border: 2px solid var(--ecf-navy);
    background: #fff;
    box-shadow: 6px 6px 0 rgba(0, 45, 114, 0.08);
    overflow: hidden;
}

.ec-company-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(0,45,114,0.04) 0%, rgba(11,171,228,0.04) 100%);
    border-bottom: 1px solid var(--ecf-line);
}

.ec-company-card-logo {
    width: 64px;
    height: 64px;
    border: 2px solid var(--ecf-line);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #fff;
    overflow: hidden;
}

.ec-company-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ec-company-card-logo-placeholder {
    font-size: 28px;
    opacity: 0.3;
}

.ec-company-card-title h4 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 800;
    color: var(--ecf-navy);
    letter-spacing: -0.02em;
}

.ec-company-card-type {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ecf-cyan);
}

.ec-company-card-body {
    padding: 16px 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ec-company-card-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--ecf-ink);
}

.ec-company-card-icon {
    width: 24px;
    text-align: center;
    font-size: 14px;
    flex-shrink: 0;
    opacity: 0.5;
}

.ec-company-card-desc {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--ecf-line);
    font-size: 13px;
    line-height: 1.6;
    color: var(--ecf-muted);
}

/* Responsive */
@media (max-width: 1180px) {
    .ec-form-app {
        grid-template-columns: minmax(230px, 30vw) minmax(0, 1fr);
    }

    .ec-form-headline {
        font-size: 42px;
    }

    .ec-form-content {
        grid-template-columns: repeat(4, 1fr);
    }

    .ec-ff[data-width="half"],
    .ec-ff[data-width="third"] {
        grid-column: span 2;
    }

    .ec-ff[data-width="two_thirds"],
    .ec-ff[data-width="full"] {
        grid-column: span 4;
    }
}

@media (max-width: 1024px) {
    .ec-form-app {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
        background: linear-gradient(180deg, #fff 0%, #fff 34%, #eef3f8 34%, #f8fafc 100%);
    }

    .ec-form-left {
        border-right: 0;
        border-bottom: 2px solid var(--ecf-navy);
        min-height: auto;
        max-height: 42dvh;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-gutter: auto;
        padding: clamp(18px, 3vw, 30px);
        display: block;
        gap: 0;
    }

    .ec-form-left::before {
        left: auto;
        right: -34px;
        top: 18px;
        font-size: clamp(68px, 16vw, 128px);
        transform: none;
    }

    .ec-form-headline {
        max-width: 760px;
        margin: 22px 0 12px;
        font-size: 42px;
    }

    .ec-form-lead {
        max-width: 680px;
    }

    .ec-form-brand-footer {
        margin-top: 22px;
    }

    .ec-form-brand-logos {
        --ec-logo-h: 40px;
        --ec-logo-max: 110px;
    }

    .ec-form-brand-logos--topbar {
        --ec-logo-h: 60px;
        --ec-logo-max: 140px;
    }

    .ec-form-steps {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
        margin-top: 22px;
    }

    .ec-form-step-link {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 8px;
        align-items: center;
        min-width: 0;
    }

    .ec-form-step-link.is-active {
        transform: none;
    }

    .ec-form-step-title,
    .ec-form-step-sub {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ec-form-right {
        min-height: 0;
        height: 100%;
        max-height: 100%;
        overflow: hidden;
        padding: clamp(16px, 3vw, 28px);
    }

    .ec-form-app .ec-form-right {
        padding-top: clamp(16px, 3vw, 28px) !important;
        padding-right: clamp(16px, 3vw, 28px) !important;
        padding-bottom: clamp(16px, 3vw, 28px) !important;
        padding-left: clamp(16px, 3vw, 28px) !important;
    }

    .ec-form-stage {
        height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    .ec-form-panel {
        grid-template-rows: auto auto auto;
        height: 100%;
        max-height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .ec-ff-choice-grid,
    .ec-ff-social-grid,
    .ec-ff-website-wrap,
    .ec-ff-review,
    .ec-ff-repeater-grid {
        grid-template-columns: 1fr;
    }

    .ec-ff-repeater-field[data-width],
    .ec-ff-repeater-grid > .ec-ff[data-width] {
        grid-column: 1 / -1;
    }

    .ec-ff-choice-grid:has(input[type="radio"]) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    html:has(.ec-form-app),
    body:has(.ec-form-app),
    body.ec-fullwidth-page {
        height: auto;
        min-height: 100%;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    body:has(.ec-form-app) #page_content_wrapper,
    body:has(.ec-form-app) .standard_wrapper,
    body:has(.ec-form-app) .footer_bar_wrapper,
    body:has(.ec-form-app) .page_content_wrapper,
    body:has(.ec-form-app) #content,
    body:has(.ec-form-app) .content-area,
    body:has(.ec-form-app) .site-content,
    body:has(.ec-form-app) .entry-content,
    body:has(.ec-form-app) .post-content,
    body:has(.ec-form-app) article,
    body:has(.ec-form-app) main {
        overflow: visible !important;
    }

    .ec-form-app,
    .ec-form-app.ec-form-fullscreen {
        width: 100%;
        min-height: 100dvh;
        height: auto;
        max-height: none;
        display: flex;
        flex-direction: column;
        overflow: visible;
        background: #f8fafc;
    }

    .ec-form-left {
        padding: 12px;
        min-height: 0;
        max-height: min(42dvh, 360px);
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        border-right: 0;
        border-bottom: 2px solid var(--ecf-navy);
    }

    .ec-form-left-top {
        align-items: flex-start;
    }

    .ec-form-brand-logos--lefttop {
        --ec-logo-h: 32px;
        --ec-logo-max: 86px;
        display: block;
        flex: 1 1 100%;
        margin-top: 2px;
    }

    .ec-form-brand-logos--lefttop .ec-form-brand-logos-track {
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 8px;
        overflow: hidden;
    }

    .ec-form-brand-logos--topbar {
        display: none;
    }

    .ec-form-pill,
    .ec-form-lang-select {
        max-width: 100%;
    }

    .ec-form-headline {
        display: none;
    }

    .ec-form-lead {
        display: none;
    }

    .ec-form-brand-footer {
        display: none;
    }

    .ec-form-brand-logos {
        --ec-logo-h: 34px;
        --ec-logo-max: 92px;
    }

    .ec-form-brand-logos-track {
        gap: 9px;
    }

    .ec-form-brand-logos--success {
        --ec-logo-h: 42px;
        --ec-logo-max: 115px;
    }

    .ec-form-contact-card,
    .ec-form-success-contact {
        padding: 10px 12px;
    }

    .ec-form-powered {
        display: none;
    }

    .ec-event-intro-panel {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }

    .ec-event-intro-main h4 {
        font-size: 26px;
    }

    .ec-event-intro-slot {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .ec-form-steps {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 10px 2px 2px;
        margin-top: 10px;
        margin-left: -2px;
        margin-right: -2px;
        scrollbar-width: none;
    }

    .ec-form-steps::-webkit-scrollbar {
        display: none;
    }

    .ec-form-left::-webkit-scrollbar {
        display: none;
    }

    .ec-form-step-link {
        flex: 0 0 auto;
        width: 44px;
        display: block;
    }

    .ec-form-step-no {
        width: 38px;
        height: 38px;
    }

    .ec-form-step-title,
    .ec-form-step-sub {
        display: none;
    }

    .ec-form-right {
        padding: 10px;
        min-height: 0;
        height: auto;
        overflow: visible;
    }

    .ec-form-app .ec-form-right {
        padding-top: 10px !important;
        padding-right: 10px !important;
        padding-bottom: 10px !important;
        padding-left: 10px !important;
    }

    .ec-form-topbar {
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 12px;
    }

    .ec-form-panel {
        max-height: none;
        overflow: visible;
    }

    .ec-form-topbar h2 {
        font-size: 20px;
        line-height: 1;
    }

    .ec-form-progress {
        max-width: 42vw;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .ec-form-progress-group {
        gap: 10px;
    }

    .ec-form-brand-logos--topbar {
        --ec-logo-h: 34px;
        --ec-logo-max: 88px;
        width: min(360px, 48vw);
    }

    .ec-form-progress-dot {
        width: 18px;
    }

    .ec-form-panel {
        padding: 16px;
        gap: 16px;
        display: none;
    }

    .ec-form-panel.active {
        display: grid;
    }

    .ec-form-question-title {
        font-size: clamp(28px, 11vw, 42px);
        line-height: 0.96;
        letter-spacing: -0.055em;
    }

    .ec-form-question-help {
        margin-top: 10px;
        font-size: 13px;
    }

    .ec-form-content {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .ec-ff[data-width] {
        grid-column: span 1 !important;
    }

    .ec-ff-input,
    .ec-ff-select,
    .ec-ff-textarea {
        min-height: 50px;
        padding: 12px 13px;
        font-size: 16px;
    }

    .ec-ff-phone-box {
        grid-template-columns: minmax(92px, 32%) minmax(0, 1fr);
        gap: 8px;
    }

    .ec-ff-choice {
        min-height: auto;
        padding: 16px;
    }

    .ec-ff-choice:has(input[type="radio"]) {
        min-height: 56px;
        padding: 12px 42px 12px 14px;
    }

    .ec-ff-choice:hover,
    .ec-form-btn:hover {
        transform: none;
    }

    .ec-ff-signature {
        height: 150px;
    }

    .ec-form-actions {
        position: sticky;
        bottom: 0;
        z-index: 5;
        margin: 4px -16px -16px;
        padding: 12px 0 0;
        background: rgba(255, 255, 255, 0.96);
        border-top: 1px solid var(--ecf-line);
    }

    .ec-form-btn {
        min-height: 50px;
        padding: 0 14px;
        white-space: normal;
        text-align: center;
    }
}

/* Always allow the right workspace to scroll inside the fixed form shell. */
.ec-form-app .ec-form-right {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.ec-form-app .ec-form-stage {
    min-height: 0;
}

@media (max-width: 420px) {
    .ec-form-left {
        padding: 10px;
        max-height: 22dvh;
    }

    .ec-form-left::before {
        display: none;
    }

    .ec-form-left-top {
        gap: 8px;
    }

    .ec-form-pill {
        padding: 8px 10px;
        font-size: 9px;
    }

    .ec-form-lang-select {
        padding: 7px 25px 7px 9px;
        font-size: 9px;
    }

    .ec-form-headline {
        display: none;
    }

    .ec-form-brand-logos {
        --ec-logo-h: 30px;
        --ec-logo-max: 82px;
    }

    .ec-form-brand-logos--topbar {
        --ec-logo-h: 30px;
        --ec-logo-max: 74px;
    }

    .ec-form-stage {
        border-left: 0;
        border-right: 0;
        margin-left: auto;
        margin-right: auto;
    }

    .ec-form-panel {
        padding: 16px 14px;
    }

    .ec-form-actions {
        margin: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .ec-form-topbar {
        flex-direction: column;
    }

    .ec-form-progress-group {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .ec-form-progress {
        max-width: 100%;
        justify-content: flex-start;
    }

    .ec-form-actions {
        grid-column: 1 / -1;
        gap: 8px;
    }

    .ec-form-actions .ec-form-btn {
        flex: 1 1 0;
        min-width: 0;
        letter-spacing: 0.09em;
        font-size: 9px;
    }
}

/* Greek language: disable CSS uppercase so JS can handle accent stripping.
   In Greek, capital letters do not carry accents (tonos). */
.ec-lang-el .ec-form-pill,
.ec-lang-el .ec-form-headline,
.ec-lang-el .ec-form-question-title,
.ec-lang-el .ec-form-kicker,
.ec-lang-el .ec-form-btn,
.ec-lang-el .ec-form-step-no,
.ec-lang-el .ec-form-topbar h2,
.ec-lang-el .ec-form-step-title,
.ec-lang-el .ec-form-step-sub,
.ec-lang-el .ec-form-lang-select,
.ec-lang-el .ec-ff-label,
.ec-lang-el .ec-event-intro-schedule > b,
.ec-lang-el .ec-ff-verify-btn,
.ec-lang-el .ec-ff-repeater-limit,
.ec-lang-el .ec-ff-repeater-item-head b,
.ec-lang-el .ec-ff-repeater-remove,
.ec-lang-el .ec-company-card-type {
    text-transform: none !important;
}

.ec-ff-appointment {
    display: grid;
    gap: 14px;
}

.ec-appointment-help,
.ec-appointment-empty,
.ec-appointment-day-note {
    margin: 0;
    color: var(--ecf-muted, #64748b);
    font-size: 13px;
    line-height: 1.45;
}

.ec-appointment-day-note {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid rgba(0, 45, 114, 0.14);
    background: rgba(11, 171, 228, 0.08);
    color: var(--ecf-navy, #002d72);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ec-appointment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ec-appointment-grid label {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.ec-ff-appointment.ec-appointment-date-locked .ec-appointment-grid {
    grid-template-columns: minmax(0, 1fr);
}

.ec-ff-appointment.ec-appointment-date-locked .ec-appointment-date-wrap {
    display: none;
}

.ec-appointment-grid span {
    color: var(--ecf-navy, #002d72);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ec-ff-appointment[data-object-layout="cards"] .ec-appointment-object,
.ec-ff-appointment[data-object-layout="panel"] .ec-appointment-object {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.ec-appointment-slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 10px;
}

.ec-ff-repeater-item .ec-ff-appointment {
    margin-top: 4px;
    padding: 16px;
    border: 1px solid rgba(0, 45, 114, 0.12);
    background:
        linear-gradient(180deg, rgba(11, 171, 228, 0.06), rgba(255, 255, 255, 0) 120px),
        #fff;
}

.ec-ff-repeater-item .ec-ff-appointment > .ec-ff-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 5px 9px;
    border: 1px solid rgba(0, 45, 114, 0.14);
    background: #fff;
    color: var(--ecf-navy, #002d72);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ec-appointment-slot {
    min-height: 46px;
    border: 1px solid var(--ecf-line, #d8e1ee);
    background: #fff;
    color: var(--ecf-navy, #002d72);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    letter-spacing: .05em;
    transition: .18s ease;
}

.ec-appointment-times.is-refreshing .ec-appointment-slot-grid {
    opacity: .94;
}

.ec-appointment-slot-grid.is-fresh {
    animation: ecAppointmentSlotsIn .22s ease both;
}

.ec-appointment-slot.is-entering {
    animation: ecAppointmentSlotsIn .18s ease both;
}

.ec-appointment-slot.is-leaving {
    opacity: 0;
    transform: scale(.98);
    pointer-events: none;
}

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

.ec-appointment-slot:hover,
.ec-appointment-slot.is-selected {
    border-color: var(--ecf-accent, #0babe4);
    background: rgba(11, 171, 228, .1);
}

.ec-appointment-object-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0;
}

.ec-appointment-panel-shell {
    display: block;
    margin-top: 10px;
}

.ec-appointment-panel-shell.is-popup-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 99980;
    background: rgba(0, 18, 46, 0.46);
    backdrop-filter: blur(3px);
    animation: ecAppointmentBackdropIn .18s ease both;
}

.ec-appointment-profile-panel {
    box-sizing: border-box;
    position: fixed;
    top: 50%;
    left: var(--ec-appointment-popup-left, 50%);
    z-index: 99990;
    width: min(var(--ec-appointment-popup-width, 980px), calc(100vw - 30px));
    max-height: min(720px, calc(100dvh - 32px));
    overflow-y: auto;
    overflow-x: hidden;
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    grid-template-rows: auto auto 1fr;
    align-items: start;
    gap: 20px 24px;
    padding: 24px;
    border: 2px solid rgba(0, 45, 114, 0.22);
    background: #fff;
    box-shadow: 0 28px 70px rgba(0, 18, 46, 0.26);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -45%) scale(.96);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.ec-appointment-profile-panel.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.ec-appointment-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(0, 45, 114, 0.18);
    background: #fff;
    color: var(--ecf-navy, #002d72);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.ec-appointment-popup-close:hover {
    border-color: var(--ecf-accent, #0babe4);
}

@keyframes ecAppointmentBackdropIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ec-appointment-profile-media {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: rgba(0, 45, 114, 0.06);
    overflow: hidden;
    min-width: 0;
}

.ec-appointment-profile-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ec-appointment-profile-avatar {
    width: 100%;
    height: 100%;
    min-height: 150px;
    display: grid;
    place-items: center;
    color: var(--ecf-navy, #002d72);
    font-size: 44px;
    font-weight: 900;
    font-style: italic;
    background: rgba(11, 171, 228, 0.08);
}

.ec-appointment-profile-copy {
    grid-column: 1;
    grid-row: 2;
    display: grid;
    gap: 6px;
    align-self: start;
    min-width: 0;
}

.ec-appointment-profile-kicker {
    color: rgba(0, 45, 114, 0.52);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ec-appointment-profile-name {
    margin: 0;
    color: var(--ecf-navy, #002d72);
    font-size: clamp(22px, 2.1vw, 30px);
    line-height: 1;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.ec-appointment-profile-location {
    margin: 0;
    color: var(--ecf-accent, #0babe4);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ec-appointment-profile-description {
    margin: 4px 0 0;
    color: var(--ecf-muted, #64748b);
    font-size: 13px;
    line-height: 1.55;
}

.ec-appointment-object-card {
    display: grid;
    gap: 10px;
    width: 100%;
    min-height: 148px;
    padding: 15px;
    border: 2px solid rgba(0, 45, 114, 0.14);
    border-radius: 8px;
    background: #fff;
    color: var(--ecf-text, #1d2733);
    cursor: pointer;
    text-align: left;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ec-ff-appointment[data-object-layout="panel"] .ec-appointment-object-cards {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    margin: 0;
}

.ec-ff-appointment[data-object-layout="panel"] .ec-appointment-object-card {
    min-height: 0;
    padding: 10px;
    gap: 9px;
}

.ec-appointment-object-card-image,
.ec-appointment-object-card-avatar {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 2px;
    border-radius: 6px;
    background: rgba(0, 45, 114, 0.06);
    overflow: hidden;
}

.ec-appointment-object-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ec-appointment-object-card-avatar {
    display: grid;
    place-items: center;
    color: var(--ecf-navy, #002d72);
    font-size: 42px;
    font-weight: 900;
    font-style: italic;
}

.ec-appointment-object-card:hover,
.ec-appointment-object-card.is-selected,
.ec-appointment-object-card.has-selection {
    border-color: var(--ecf-accent, #0babe4);
    box-shadow: 0 12px 24px rgba(0, 45, 114, 0.12);
    transform: translateY(-1px);
}

.ec-appointment-object-card-top {
    display: grid;
    gap: 4px;
}

.ec-appointment-object-card-top b {
    color: var(--ecf-navy, #002d72);
    font-size: 16px;
    line-height: 1.2;
}

.ec-ff-appointment[data-object-layout="panel"] .ec-appointment-object-card-top b {
    font-size: 14px;
    text-align: center;
}

.ec-appointment-object-card-top small {
    color: var(--ecf-accent, #0babe4);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1.25;
    text-transform: uppercase;
}

.ec-appointment-object-card-desc {
    color: var(--ecf-muted, #64748b);
    font-size: 13px;
    line-height: 1.35;
}

.ec-appointment-card-slots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    min-height: 0;
}

.ec-appointment-card-slot-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 5px 7px 5px 9px;
    border: 1px solid rgba(0, 45, 114, 0.16);
    background: rgba(11, 171, 228, .08);
    color: var(--ecf-navy, #002d72);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.ec-appointment-card-slot-remove {
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    border: 0;
    background: var(--ecf-navy, #002d72);
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    padding: 0;
}

.ec-appointment-panel-status {
    grid-column: 1;
    grid-row: 3;
    min-height: 0;
    border-left: 4px solid transparent;
    padding: 0;
    color: var(--ecf-muted, #64748b);
    font-size: 13px;
    font-weight: 700;
}

.ec-appointment-panel-status.is-ok,
.ec-appointment-panel-status.is-error {
    padding: 12px 14px;
    background: #fff;
}

.ec-appointment-panel-status.is-ok {
    border-color: #16a34a;
    color: #166534;
}

.ec-appointment-panel-status.is-error {
    border-color: #dc2626;
    color: #991b1b;
}

.ec-appointment-selection-summary {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.ec-ff-appointment[data-object-layout="panel"] .ec-appointment-slot-grid {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ec-appointment-profile-panel .ec-appointment-times {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: stretch;
    min-height: 100%;
    padding-left: 22px;
    border-left: 1px solid rgba(0, 45, 114, 0.12);
    min-width: 0;
}

.ec-appointment-selection-summary b,
.ec-appointment-selection-summary span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid rgba(0, 45, 114, 0.14);
    background: #fff;
    color: var(--ecf-navy, #002d72);
    font-size: 11px;
    font-weight: 800;
}

.ec-appointment-selection-summary span {
    color: var(--ecf-muted, #64748b);
    font-weight: 700;
}

@media (max-width: 680px) {
    .ec-appointment-grid {
        grid-template-columns: 1fr;
    }

    .ec-appointment-profile-panel {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        width: calc(100vw - 22px);
        padding: 16px;
    }

    .ec-appointment-profile-media,
    .ec-appointment-profile-copy,
    .ec-appointment-panel-status,
    .ec-appointment-profile-panel .ec-appointment-times {
        grid-column: 1;
        grid-row: auto;
    }

    .ec-appointment-profile-panel .ec-appointment-times {
        min-height: 0;
        padding-left: 0;
        border-left: 0;
    }

    .ec-appointment-object-cards {
        grid-template-columns: 1fr;
    }
}

/* Viewport-bound fit mode: keep the form shell fixed and scroll inside panes. */
body.ec-form-fit-active-body {
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
}

.ec-form-app.ec-form-fit-active,
.ec-form-app.ec-form-fit-active.ec-form-fullscreen {
    height: calc(100dvh / var(--ec-form-fit-zoom)) !important;
    min-height: calc(100dvh / var(--ec-form-fit-zoom)) !important;
    max-height: calc(100dvh / var(--ec-form-fit-zoom)) !important;
    overflow: hidden !important;
}

.ec-form-app.ec-form-fit-active .ec-form-left,
.ec-form-app.ec-form-fit-active .ec-form-right {
    min-height: 0 !important;
    max-height: calc(100dvh / var(--ec-form-fit-zoom)) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.ec-form-app.ec-form-fit-active .ec-form-right {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.ec-form-app.ec-form-fit-active .ec-form-stage {
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
}

.ec-form-app.ec-form-fit-active .ec-form-stage > form {
    box-sizing: border-box !important;
    height: 100% !important;
    min-height: 0 !important;
}

.ec-form-app.ec-form-fit-active .ec-form-panel {
    box-sizing: border-box !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: clamp(96px, 14dvh, 150px) !important;
    scroll-padding-bottom: clamp(96px, 14dvh, 150px);
}

@media (max-width: 760px) {
    .ec-form-app.ec-form-fit-active,
    .ec-form-app.ec-form-fit-active.ec-form-fullscreen {
        display: flex !important;
        flex-direction: column !important;
    }

    .ec-form-app.ec-form-fit-active .ec-form-left {
        flex: 0 0 auto !important;
        max-height: min(calc(42dvh / var(--ec-form-fit-zoom)), 360px) !important;
    }

    .ec-form-app.ec-form-fit-active .ec-form-right {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }
}
