/* Painel de escolha da inscrição (escolha.js), na página /inscricao/<slug> e no painel lateral das páginas de curso.
   Só depende do site.css (tokens --brand-*, .lead-field, .lead-error e a fonte Inter): o inscricao.css não carrega
   nas páginas de curso. Celular primeiro; cabe em 360 px e num contêiner de 480 px. O host pode trocar o fundo do
   rodapé fixo com --esc-bg (padrão: o fundo das páginas). */

.esc{--esc-bg:var(--paper,#fafafa);--esc-o:var(--brand-o,#f45a14);--esc-o-text:#c2410c;--esc-o-dark:#a53009;--esc-navy:var(--brand-navy,#102e54);--esc-cream:var(--brand-cream,#fdefd9);--esc-ink:#1d1d1d;--esc-muted:#5f5f5f;--esc-line:#e3e3e3;--esc-focus:#81320f;display:flex;flex-direction:column;gap:22px;min-width:0;color:var(--esc-ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;line-height:1.5}
.esc [hidden]{display:none!important}
.esc-sr{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.esc-block{min-width:0;margin:0;padding:0;border:0}
.esc-h{display:block;width:100%;margin:0 0 10px;padding:0;color:var(--esc-navy);font-size:1rem;font-weight:800;letter-spacing:-.01em;line-height:1.3}
.esc .lead-field{min-width:0;margin:0}
.esc-link{display:inline-flex;align-items:center;min-height:44px;margin:0;padding:0;border:0;background:none;color:var(--esc-o-text);font:700 .92rem Inter,ui-sans-serif,system-ui,sans-serif;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;cursor:pointer}
.esc-link:hover{color:var(--esc-o-dark)}
.esc-link:focus-visible,.esc-pf:focus-visible,.esc-info:focus-visible,.esc-close:focus-visible,.esc-more:focus-visible{outline:3px solid var(--esc-focus);outline-offset:2px;border-radius:6px}

/* ---------- 1. Curso ---------- */
.esc-course{padding:14px 16px;border:1px solid var(--esc-line);border-radius:16px;background:#fff}
.esc-kicker{margin:0;color:var(--esc-muted);font-size:.8rem;font-weight:600}
.esc-course-name{margin:2px 0 0;color:var(--esc-navy);font-size:1.12rem;font-weight:800;letter-spacing:-.02em;line-height:1.25;overflow-wrap:anywhere}
.esc-course-line{margin:4px 0 0;color:var(--esc-muted);font-size:.86rem;font-weight:600}

/* ---------- 2. Unidade: CEP ou cidade ---------- */
.esc-where-row{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.esc-where-row.is-city{grid-template-columns:minmax(0,1fr) 92px}
.esc-uf select{padding:0 8px}
.esc-status{display:flex;align-items:center;gap:8px;margin:8px 0 0;color:var(--esc-muted);font-size:.86rem}
.esc-status:empty{display:none}
.esc-status.is-busy::before{content:"";flex:none;width:16px;height:16px;border:2px solid #f1e3dc;border-top-color:var(--esc-o);border-radius:50%;animation:esc-spin .8s linear infinite}
@keyframes esc-spin{to{transform:rotate(360deg)}}

/* ---------- 3. Unidade escolhida ---------- */
.esc-unit-box{margin-top:12px}
.esc-unit{display:flex;align-items:flex-start;gap:12px;padding:14px;border:2px solid var(--esc-o);border-radius:16px;background:#fffaf6}
.esc-unit-pin{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:50%;background:#fff1ec;color:var(--esc-o-text)}
.esc-unit-pin svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.esc-unit-text{min-width:0}
.esc-unit-name{margin:0;color:var(--esc-ink);font-size:.98rem;font-weight:800;line-height:1.3;overflow-wrap:anywhere}
.esc-unit-name:focus{outline:none}
.esc-unit-addr{margin:3px 0 0;color:var(--esc-muted);font-size:.84rem;line-height:1.4;overflow-wrap:anywhere}
.esc-unit-km{margin:2px 0 0;color:var(--esc-muted);font-size:.8rem;font-weight:600}
.esc-unit-note{margin:8px 0 0;color:var(--esc-muted);font-size:.76rem;font-style:italic;line-height:1.4}
.esc-swap{margin-top:2px}
.esc-units{margin-top:4px}
.esc .esc-units-filter{margin:0 0 10px}
.esc-units-filter label{display:block;margin:0 0 6px;color:var(--esc-navy);font-size:.8rem;font-weight:700}
.esc-units-filter select{min-height:46px;font-size:.92rem}
.esc-units-list{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.esc-unit-opt{display:flex;align-items:flex-start;gap:12px;width:100%;padding:12px 14px;border:2px solid var(--esc-line);border-radius:14px;background:#fff;color:inherit;font:inherit;text-align:left;cursor:pointer;transition:border-color .15s ease,background-color .15s ease}
@media (hover:hover){.esc-unit-opt:hover{border-color:#f6a082}}
.esc-unit-opt[aria-current="true"]{border-color:var(--esc-o);background:#fffaf6}
.esc-unit-opt:focus-visible{outline:3px solid var(--esc-focus);outline-offset:2px}
.esc-dot{flex:none;width:20px;height:20px;margin-top:1px;border:2px solid #9a9a9a;border-radius:50%;background:#fff}
.esc-unit-opt[aria-current="true"] .esc-dot{border:6px solid var(--esc-o)}
.esc-unit-opt-text{display:flex;flex-direction:column;min-width:0}
.esc-unit-opt-name{color:var(--esc-ink);font-size:.94rem;font-weight:700;line-height:1.3;overflow-wrap:anywhere}
.esc-unit-opt-addr{margin-top:2px;color:var(--esc-muted);font-size:.8rem;line-height:1.4;overflow-wrap:anywhere}
.esc-unit-opt-km{margin-top:2px;color:var(--esc-muted);font-size:.78rem;font-weight:600}
.esc-more{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;margin:8px 0 0;border:2px dashed #e3cfc2;border-radius:14px;background:transparent;color:var(--esc-o-dark);font:700 .9rem Inter,ui-sans-serif,system-ui,sans-serif;cursor:pointer}
.esc-more:hover{border-color:#f6a082;background:#fff}

/* ---------- 4–5. Opções em pílula (modalidade, turno, situação acadêmica) ---------- */
.esc-chips{display:flex;flex-wrap:wrap;gap:8px}
.esc-chip{position:relative;display:flex;min-width:0;cursor:pointer}
.esc-chip input{position:absolute;top:50%;left:50%;width:1px;height:1px;margin:0;opacity:0}
.esc-chip-box{display:flex;flex-direction:column;justify-content:center;width:100%;min-height:44px;padding:8px 16px;border:2px solid var(--esc-line);border-radius:999px;background:#fff;color:var(--esc-ink);transition:border-color .15s ease,background-color .15s ease,color .15s ease}
.esc-chip-label{font-size:.92rem;font-weight:700;line-height:1.25}
.esc-chip-note{margin-top:3px;color:var(--esc-muted);font-size:.78rem;font-weight:500;line-height:1.35}
@media (hover:hover){.esc-chip:hover .esc-chip-box{border-color:#f6a082}}
.esc-chip input:checked+.esc-chip-box{border-color:var(--esc-o);background:#fff1ec;color:var(--esc-o-dark)}
.esc-chip input:focus-visible+.esc-chip-box{outline:3px solid var(--esc-focus);outline-offset:2px}
/* Modalidades: cartões com a frase, dois por linha quando cabem */
.esc-chips.is-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}
.esc-chips.is-cards .esc-chip-box{justify-content:flex-start;padding:10px 12px;border-radius:14px}

/* ---------- Avisos (WhatsApp) ---------- */
.esc-live:empty{display:none}
.esc-notice{margin-top:12px;padding:16px;border:1px solid #f0dccb;border-radius:16px;background:#fff;box-shadow:0 10px 26px rgba(120,60,20,.07)}
.esc-notice h3{margin:0 0 6px;color:var(--esc-ink);font-size:1.02rem;font-weight:800;letter-spacing:-.02em;line-height:1.3}
.esc-notice p{margin:0 0 14px;color:var(--esc-muted);font-size:.9rem;line-height:1.5}
.esc-notice .esc-retry{display:flex;margin:6px auto 0}

/* ---------- 6. Condições exclusivas para você ---------- */
.esc-price .esc-status{margin:0 0 4px}
.esc-first-label{margin:0;color:var(--esc-muted);font-size:.86rem;font-weight:600}
.esc-first-value{margin:0;color:var(--esc-ink);font-size:2rem;font-weight:800;letter-spacing:-.04em;line-height:1.1;font-variant-numeric:tabular-nums}
.esc-policy{margin:6px 0 0;color:var(--esc-muted);font-size:.76rem;line-height:1.45}
.esc-policy a{color:var(--esc-o-text);font-weight:600;text-underline-offset:2px}
.esc-policy a:hover{color:var(--esc-o-dark)}
/* Simulador: borda de destaque, como no oficial */
.esc-sim{margin-top:14px;padding:16px 14px 14px;border:2px solid var(--esc-o);border-radius:16px;background:#fff;box-shadow:0 10px 24px rgba(244,90,20,.12)}
.esc-sim-title{margin:0;color:var(--esc-ink);font-size:.98rem;font-weight:800;text-align:center}
.esc-switch-row{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px 8px;margin:6px 0 8px}
.esc-switch{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:48px;min-height:44px;margin:0;padding:0;border:0;background:none;cursor:pointer}
.esc-switch-track{position:relative;display:block;width:46px;height:28px;border-radius:999px;background:#8a8a8a;transition:background-color .15s ease}
.esc-switch-knob{position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3);transition:transform .15s ease}
.esc-switch[aria-checked="true"] .esc-switch-track{background:var(--esc-o)}
.esc-switch[aria-checked="true"] .esc-switch-knob{transform:translateX(18px)}
.esc-switch:focus-visible{outline:none}
.esc-switch:focus-visible .esc-switch-track{outline:3px solid var(--esc-focus);outline-offset:2px}
.esc-switch-label{color:var(--esc-ink);font-size:.92rem;font-weight:600}
.esc-switch-text{cursor:pointer}
.esc-pf{margin:0;padding:6px 0;border:0;background:none;color:var(--esc-o-text);font:800 .92rem Inter,ui-sans-serif,system-ui,sans-serif;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px;cursor:pointer}
.esc-pf:hover{color:var(--esc-o-dark)}
.esc-info{display:inline-grid;place-items:center;flex:none;width:36px;height:36px;margin:0 -6px 0 -4px;padding:0;border:0;border-radius:50%;background:none;cursor:pointer}
.esc-info-i{display:grid;place-items:center;width:20px;height:20px;border:2px solid var(--esc-o-text);border-radius:50%;color:var(--esc-o-text);font:800 .72rem/1 Georgia,"Times New Roman",serif}
.esc-info:hover .esc-info-i{background:#fff1ec}
/* Linhas das mensalidades; as zeradas (Pague Fácil) em destaque */
.esc-rows{margin:0}
.esc-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 4px;border-bottom:1px solid #ececec;font-size:.88rem;line-height:1.35}
.esc-row:last-child{border-bottom:0}
.esc-row dt{min-width:0;color:#3d3d3d}
.esc-row dd{flex:none;margin:0;font-weight:600;text-align:right;font-variant-numeric:tabular-nums}
.esc-row.is-zero dd{padding:2px 8px;border-radius:999px;background:var(--esc-cream);color:var(--esc-o-text);font-weight:800}
.esc-sim-note{margin:10px 0 0;color:var(--esc-muted);font-size:.76rem;text-align:center}
/* Pós: o bloco de hoje, sem chave */
.esc-pos{padding:16px;border:2px solid var(--esc-o);border-radius:16px;background:#fff;box-shadow:0 10px 24px rgba(244,90,20,.12)}
.esc-pos-head{margin:0;color:var(--esc-ink);font-size:1rem;line-height:1.4}
.esc-pos-head b{font-weight:800}
.esc-pos-head .is-money{color:var(--esc-o-text);font-size:1.45em;letter-spacing:-.03em;line-height:1.1;white-space:nowrap}
.esc-pos-detail{margin:6px 0 0;color:var(--esc-muted);font-size:.86rem;line-height:1.45}
.esc-pos .esc-rows{margin-top:10px}

/* ---------- 7. Botão final, preso ao pé do contêiner que rola ---------- */
.esc-foot{position:sticky;bottom:0;z-index:2;display:grid;gap:10px;margin-top:-6px;padding:14px 0 calc(12px + env(safe-area-inset-bottom,0px));background:linear-gradient(to top,var(--esc-bg) 78%,rgba(255,255,255,0))}
.esc-cta{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:54px;padding:0 24px;border:0;border-radius:999px;background:#c2410c;color:#fff;font:800 1.02rem/1.2 Inter,ui-sans-serif,system-ui,sans-serif;text-align:center;text-decoration:none;box-shadow:0 4px 0 #8a2b06;cursor:pointer;transition:background-color .15s ease}
.esc-cta:hover{background:#a8380b;color:#fff}
.esc-cta:active{transform:translateY(3px);box-shadow:0 1px 0 #8a2b06}
.esc-cta:focus-visible{outline:3px solid var(--esc-navy);outline-offset:3px}
.esc-cta.is-wa{background:#1f7a4d;box-shadow:0 4px 0 #145236}
.esc-cta.is-wa:hover{background:#18653f}
.esc-cta.is-wa:active{box-shadow:0 1px 0 #145236}

/* ---------- Janela do Pague Fácil ---------- */
.esc-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;display:grid;place-items:center;padding:16px;background:rgba(16,24,40,.5)}
.esc-dialog{position:relative;width:100%;max-width:340px;padding:22px 20px 20px;border-radius:18px;background:#fff;box-shadow:0 24px 60px rgba(0,0,0,.28)}
.esc-dialog:focus{outline:none}
.esc-dialog-title{margin:0 40px 8px 0;color:var(--esc-navy);font-size:1.15rem;font-weight:800;letter-spacing:-.02em;line-height:1.25}
.esc-dialog-sub{margin:0 0 4px;color:var(--esc-o-text);font-size:.92rem;font-weight:700}
.esc-dialog-text{margin:0;color:#3d3d3d;font-size:.92rem;line-height:1.5}
.esc-close{position:absolute;top:6px;right:6px;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:none;color:var(--esc-muted);cursor:pointer}
.esc-close:hover{background:#f3f3f3;color:var(--esc-ink)}
.esc-close svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}

/* ---------- Celular estreito ---------- */
@media (max-width:379px){
  .esc-chip-box{padding:8px 12px}
  .esc-first-value{font-size:1.8rem}
}

@media (prefers-reduced-motion:reduce){
  .esc-chip-box,.esc-unit-opt,.esc-switch-track,.esc-switch-knob,.esc-cta{transition:none}
  .esc-status.is-busy::before{animation:none}
}
