

/* ======================================= */
/* EDU ARCHITECTS & INFRASTRUCTURE PAGE     */
/* (K-12 Founders & Owners Summit 2026)     */
/* Sits inside the shared .k12-wrapper page */
/* pattern above — no partner logo supplied */
/* for this page, so its .policy-page-intro */
/* omits .theme-partner-logo-card entirely  */
/* (single flex child renders fine). The    */
/* schedule table extends .k12-schedule-    */
/* table with a 4th "Attraction Hook"       */
/* column (2nd) ahead of the title (moved   */
/* to 3rd) and a "Format" pill (4th) — the  */
/* .efs- prefix (Edu/Founders Summit) keeps */
/* these overrides scoped so the shared     */
/* 3-column table on every other sector     */
/* page is untouched.                       */
/* ======================================= */

.efs-schedule-table { min-width: 760px; }

/* Attraction Hook column — small purple eyebrow label, not the bold
   title treatment the base table reserves for column 2. */
.efs-schedule-table td:nth-child(2) {
    padding-left: 18px !important;
    font-weight: 700;
    color: var(--brand-purple);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Session Title & Core Value column — the bold-dot "title" treatment
   moves here (column 3) since the Attraction Hook now occupies column 2. */
.efs-schedule-table td:nth-child(3) {
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
    padding-left: 26px !important;
}

.efs-session-title { display: block; }

.efs-session-desc {
    display: block;
    margin-top: 4px;
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-gray);
}

.efs-format-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(130, 41, 102, 0.1);
    color: var(--brand-purple);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

/* Desktop-table dot only — mobile stacks cards and shows the
   data-label text instead (same convention as the base table). */
@media (min-width: 721px) {
    .efs-schedule-table td:nth-child(2)::before { content: none; }
    .efs-schedule-table td:nth-child(3)::before {
        content: '';
        position: absolute;
        left: 18px;
        top: 24px;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--grad-main);
    }}

/* ======================================================================= */
/* "THE FOUNDERS TOWNHALL" REGISTRATION MODAL — .ftm-*                     */
/* inc/founders-townhall-modal.php, included only from this page (the      */
/* CTA below opens it via class="js-ftm-open" instead of navigating to     */
/* the old standalone founders-townhall-registration.php — user request:  */
/* "I don't want a new page, I just want a popup"). Page-exclusive per     */
/* brain.md's CSS-split rule since this modal is used nowhere else yet.    */
/*                                                                          */
/* Reuses .pf-modal-overlay (backdrop) and .pf-modal-close/.pf-success     */
/* (close button + confirmation panel skin) from common.css's Partner      */
/* Registration Modal, and .form-row/.input-group/.form-control/          */
/* .site-cta-btn for every plain text/select/textarea field — zero new    */
/* CSS needed for those. Only the modal shell (sticky head + scrolling    */
/* middle + sticky foot, needed because this form is ~4x longer than the  */
/* one .pf-modal was built for) and the flex-wrap "pill" choice groups     */
/* (replacing the old one-radio-per-line Google Forms list — far more     */
/* scannable across the many 8-15 option questions) are new here.         */
/* ======================================================================= */

.ftm-modal {
    width: 100%;
    max-width: 820px;
    max-height: calc(100vh - 48px);
    background: #ffffff;
    border-radius: var(--radius-md);
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
    transform: translateY(24px) scale(0.98);
    transition: transform var(--trans-base);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.pf-modal-overlay.is-open .ftm-modal { transform: translateY(0) scale(1); }

.ftm-modal::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: var(--grad-main);
    z-index: 2;
}

/* Locks the page behind the modal from scrolling while it's open — this
   form is long enough that background scroll would be disorienting. */
body.ftm-lock-scroll { overflow: hidden; }

.ftm-form-wrap,
.ftm-form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
/* Specificity tie with the UA stylesheet's [hidden]{display:none} would
   otherwise let this author rule win by source order — this explicit
   override is what actually lets JS's `formWrap.hidden = true` hide the
   form when swapping in the confirmation panel. */
.ftm-form-wrap[hidden] { display: none; }

/* ---------- Sticky head (title + close) ---------- */
.ftm-modal-head {
    flex-shrink: 0;
    position: relative;
    padding: 30px 56px 18px 32px;
    border-bottom: 1px solid var(--border-color);
}

.ftm-close { position: absolute; top: 14px; right: 14px; }

.ftm-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--brand-blue);
    margin-bottom: 6px;
}

.ftm-modal-heading {
    font-family: inherit;
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-dark);
    margin: 0 0 8px;
}

.ftm-modal-sub {
    font-size: 0.86rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0 0 10px;
}

.ftm-required-note { font-size: 0.78rem; color: var(--text-gray); margin: 0; }
.ftm-required { color: var(--brand-red); font-weight: 700; }

/* ---------- Scrolling middle (the actual questions) ---------- */
.ftm-modal-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 8px 32px 4px;
}

.ftm-section {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 26px 0 14px;
    padding-top: 18px;
}
.ftm-section:first-child { margin-top: 6px; padding-top: 0; }

.ftm-section-num {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--grad-main);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(2px);
}

.ftm-section-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
}

/* Pill-choice legend/note — same idea as .pf-track-legend, duplicated
   rather than shared since this is a <span> (no matching <label for>). */
.ftm-legend {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}
.ftm-note {
    display: block;
    margin: -4px 0 10px;
    font-size: 0.8rem;
    color: var(--text-gray);
    font-style: italic;
}

.ftm-pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.ftm-pill-option { position: relative; }
.ftm-pill-option input[type="radio"],
.ftm-pill-option input[type="checkbox"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}
.ftm-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1.5px solid var(--border-color);
    background: #fafafa;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
    transition: background-color var(--trans-base), border-color var(--trans-base), color var(--trans-base), box-shadow var(--trans-base);
}
.ftm-pill-indicator {
    width: 14px;
    height: 14px;
    min-width: 14px;
    border: 2px solid #c9c9cf;
    background: #ffffff;
    flex-shrink: 0;
    position: relative;
    transition: border-color var(--trans-base), background-color var(--trans-base);
}
.ftm-pill-indicator--radio { border-radius: 50%; }
.ftm-pill-indicator--check { border-radius: 4px; }
.ftm-pill-indicator--radio::after {
    content: "";
    position: absolute;
    inset: 2.5px;
    border-radius: 50%;
    background: #ffffff;
    transform: scale(0);
    transition: transform var(--trans-base);
}
.ftm-pill-indicator--check::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 0;
    width: 4px;
    height: 8px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform var(--trans-base);
}
.ftm-pill-option input:checked ~ .ftm-pill {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(20, 83, 188, 0.2);
}
.ftm-pill-option input:checked ~ .ftm-pill .ftm-pill-indicator { border-color: #ffffff; background: var(--brand-blue); }
.ftm-pill-option input:checked ~ .ftm-pill .ftm-pill-indicator--radio::after { transform: scale(1); }
.ftm-pill-option input:checked ~ .ftm-pill .ftm-pill-indicator--check::after { transform: rotate(45deg) scale(1); }
.ftm-pill-option input:focus-visible ~ .ftm-pill { outline: 2px solid var(--brand-blue); outline-offset: 2px; }

/* Checkbox "select at least one" groups — flagged by ftmModal's own JS
   since native `required` per-checkbox can't express "at least one". */
.ftm-field-error { display: none; margin: 8px 0 0; font-size: 0.78rem; color: var(--brand-red); font-weight: 600; }
.ftm-field--invalid .ftm-legend { color: var(--brand-red); }
.ftm-field--invalid .ftm-pill { border-color: var(--brand-red); }
.ftm-field--invalid .ftm-field-error { display: block; }

/* File upload (Q26 — photograph) */
.ftm-file-wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ftm-file-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1.5px solid var(--brand-blue);
    color: var(--brand-blue);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background-color var(--trans-base), color var(--trans-base);
}
.ftm-file-btn:hover { background: var(--brand-blue); color: #ffffff; }
.ftm-file-icon { width: 16px; height: 16px; fill: currentColor; }
.ftm-file-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ftm-file-name { font-size: 0.85rem; color: var(--text-gray); }

/* ---------- Sticky foot (disclaimer + Submit/Clear) ---------- */
.ftm-modal-foot {
    flex-shrink: 0;
    padding: 14px 32px 22px;
    border-top: 1px solid var(--border-color);
    background: #ffffff;
}
.ftm-footer-disclaimer {
    text-align: center;
    font-size: 0.76rem;
    color: var(--text-gray);
    margin: 0 0 12px;
}
.ftm-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.ftm-clear-btn {
    background: none;
    border: none;
    color: var(--brand-blue);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 8px 6px;
}
.ftm-clear-btn:hover { text-decoration: underline; }

/* ---------- Confirmation panel (.pf-success reused, close X added) ---------- */
.ftm-success { position: relative; padding: 40px 32px 32px; }
.ftm-success .ftm-close { top: 14px; right: 14px; }

@media (max-width: 760px) {
    .ftm-modal-head { padding: 24px 50px 16px 20px; }
    .ftm-modal-scroll { padding: 8px 20px 4px; }
    .ftm-modal-foot { padding: 14px 20px 20px; }

    /* Founders Townhall modal heading centering (Task 1, mobile/perf pass).
       .ftm-close is absolutely positioned, so centering the heading block
       is layout-safe. Reuses this component's existing 760px breakpoint
       rather than introducing a second one just for this. */
    .ftm-eyebrow,
    .ftm-modal-heading,
    .ftm-modal-sub { text-align: center; }
}

@media (max-width: 600px) {
    .ftm-modal { max-height: calc(100vh - 24px); border-radius: var(--radius-sm); }
    .ftm-pill { padding: 8px 12px; font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
    .ftm-modal,
    .ftm-pill,
    .ftm-pill-indicator,
    .ftm-pill-indicator--radio::after,
    .ftm-pill-indicator--check::after { transition: none; }
}