/* iSol · formulário de aplicação do iSol Cases em modal (modelo da inscrição da G4), compartilhado entre a /operacao-ia/
 e a /isol-cases/ (public/aplicar/isol-aplicar.js). Saiu de operacao.css na rodada 14: mesmas classes oi-*, mesmos tokens. */
.oi-k { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; font: 500 12px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.oi-sub { margin: 10px 0 0; font-size: 17px; line-height: 1.55; max-width: 60ch; }
.oi-a { display: inline-flex; align-items: center; min-height: 44px; color: var(--cyan); font: 600 15px var(--f-display); text-decoration: underline; text-underline-offset: 3px; }
.oi-link { min-height: 44px; padding: 0 2px; border: 0; background: none; color: var(--on-dark-soft); font: 500 13.5px var(--f-mono); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.oi-link:hover { color: var(--cyan); }
.oi-go { min-height: 52px; height: auto; padding: 12px 26px; white-space: normal; text-align: center; line-height: 1.3; }
.oi-fs { border: 0; margin: 0; padding: 0; min-width: 0; }
.oi-fs legend { padding: 0; margin: 0 0 12px; font: 600 clamp(18px, 2.2vw, 22px)/1.3 var(--f-display); color: var(--white); }
.oi-hint { margin: -4px 0 12px; font-size: 14px; color: var(--on-dark-soft); }
.oi-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.oi-chip { position: relative; display: inline-flex; cursor: pointer; }
.oi-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.oi-chip span { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 16px; border: 1px solid rgba(120,170,215,.3); border-radius: 999px; background: var(--bg-2); color: var(--on-dark); font: 500 15.5px var(--f-body); transition: background-color .15s, border-color .15s; }
.oi-chip:hover span { border-color: var(--cyan); background: var(--bg-3); }
.oi-chip input:checked + span { border-color: var(--cyan); background: rgba(52,195,240,.16); color: var(--white); }
.oi-chip input[type="checkbox"] + span::before { content: ""; width: 16px; height: 16px; margin-right: 8px; border: 1.6px solid var(--on-dark-mut); border-radius: 4px; flex: 0 0 auto; }
.oi-chip input[type="checkbox"]:checked + span::before { border-color: var(--cyan); background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.5 3 3 6-7' fill='none' stroke='%23061627' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.oi-err { margin: 10px 0 0; font: 500 14px var(--f-body); color: #ffb4b4; }
.oi-book { margin-top: 16px; }
.oi-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.oi-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.oi-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.oi-f label { font: 500 13px var(--f-display); color: var(--white); }
.oi-f label small { font: 400 12.5px var(--f-body); color: var(--on-dark-soft); }
.oi-f input, .oi-f select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid rgba(120,170,215,.35); border-radius: 12px; background: var(--bg-2); color: var(--white); font: 400 16px var(--f-body); box-sizing: border-box; color-scheme: dark; }
.oi-f input::placeholder { color: var(--on-dark-mut); }
.oi-f input[aria-invalid="true"] { border-color: #ffb4b4; }
.oi-book > .oi-hint { margin: 8px 0 0; font-size: 13px; }
.oi-slots { margin-top: 18px; }
.oi-slots legend { font-size: 16px; margin-bottom: 8px; }
.oi-slot { display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: start; margin-bottom: 10px; }
.oi-slot > i { align-self: end; font-style: normal; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(52,195,240,.14); color: var(--cyan); font: 600 13px var(--f-mono); margin-bottom: 10px; }
/* v1.50.2 (bug no celular): dia e período com a mesma altura e o campo de data preso à coluna. iOS Safari e Android
   Chrome dão ao input date uma largura mínima própria e uma altura diferente da do select: appearance none, min-width 0 */
.oi-slot .oi-f label { min-height: 1.4em; }
.oi-slot .oi-f input, .oi-slot .oi-f select { height: 48px; min-height: 48px; }
.oi-f input[type="date"] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; text-align: left; line-height: 26px; }
.oi-f input[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
.oi-f input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.85); cursor: pointer; }
.oi-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.oi-frame { margin-top: 14px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-exec); background: #fff; }
.oi-frame iframe { display: block; width: 100%; height: 640px; border: 0; }
.oi-done p { margin: 8px 0 0; font-size: 16px; line-height: 1.55; }
html.oi-lock, html.oi-lock body { overflow: hidden; }
.oi-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.oi-modal[hidden] { display: none; }
.oi-modal-bg { position: absolute; inset: 0; background: rgba(2,6,12,.78); backdrop-filter: blur(4px); }
.oi-modal-p { position: relative; width: min(680px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: clamp(20px, 4vw, 34px); border-radius: 22px; border: 1px solid rgba(52,195,240,.35); background: var(--glow), var(--bg-1); box-shadow: 0 40px 120px -30px rgba(0,0,0,.8); overscroll-behavior: contain; }
.oi-modal-p h2 { margin: 0; font-size: clamp(1.35rem, 3vw, 1.9rem); line-height: 1.2; }
.oi-modal-p h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.oi-modal-p .oi-sub { margin: 10px 0 18px; font-size: 15.5px; }
.oi-x { position: sticky; top: 0; float: right; margin: -8px -8px 8px 12px; z-index: 2; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.22); background: var(--bg-2); color: var(--white); display: grid; place-items: center; cursor: pointer; }
.oi-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.oi-x:hover { border-color: var(--cyan); }
.oi-span { grid-column: 1 / -1; }
.oi-flbl { font: 500 13px var(--f-display); color: var(--white); }
.oi-req { color: #fbbf24; }
.oi-tel { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 8px; }
.oi-tel select, .oi-tel input { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid rgba(120,170,215,.35); border-radius: 12px; background: var(--bg-2); color: var(--white); font: 400 16px var(--f-body); box-sizing: border-box; color-scheme: dark; }
.oi-f select { appearance: auto; }
.oi-ferr { margin: 0; font: 500 13px/1.4 var(--f-body); color: #ffb4b4; }
.oi-f [aria-invalid="true"], .oi-tel [aria-invalid="true"] { border-color: #ffb4b4; }
.oi-reqn { margin: 12px 0 0 !important; font-size: 13px; }
.oi-mgo { width: 100%; margin-top: 14px; }
.oi-reqs { margin-top: 18px; padding: 14px 16px; border: 1px solid rgba(251,191,36,.35); border-radius: 16px; }
.oi-reqs legend { font-size: 16px; margin-bottom: 4px; padding: 0 6px; }
.oi-chk { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: start; padding: 8px 0; }
.oi-chk input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--cyan); cursor: pointer; }
.oi-chk label { color: var(--white); font: 500 15px/1.45 var(--f-body); cursor: pointer; }
.oi-chk .oi-ferr { grid-column: 2; }
.oi-chk [aria-invalid="true"] { outline: 2px solid #ffb4b4; outline-offset: 2px; }
.oi-opt { color: var(--on-dark-mut); font-size: 13.5px; }
.oi-next { margin: 12px 0 0; padding: 12px 14px; border-left: 3px solid #6ee7b7; border-radius: 0 12px 12px 0; background: var(--bg-2); color: var(--on-dark); font-size: 15px; line-height: 1.55; }
.oi-fn { margin: 4px 0 0; color: var(--cyan); font: 600 15px/1.4 var(--f-display); }
.oi-fath { margin: 2px 0 0; font-size: 13px; line-height: 1.45; color: var(--on-dark-soft); }
.oi-modal-p h2, .oi-modal-p h3 { color: var(--white); font-family: var(--f-display); letter-spacing: -.015em; }
.oi-modal .btn-primary { color: var(--navy-900); }
.oi-modal a:focus-visible, .oi-modal button:focus-visible, .oi-modal input:focus-visible, .oi-modal select:focus-visible, .oi-chip:focus-within { outline: 2px solid var(--cyan); outline-offset: 2px; }
@media (max-width: 560px) {
  .oi-modal { padding: 0; place-items: end stretch; }
  .oi-modal-p { width: 100%; max-height: calc(100dvh - env(safe-area-inset-top, 0px)); border-radius: 22px 22px 0 0; padding-top: max(20px, calc(env(safe-area-inset-top, 0px) + 12px)); padding-bottom: calc(20px + env(safe-area-inset-bottom, 0)); }
  .oi-tel { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .oi-fields { grid-template-columns: minmax(0, 1fr); }
  .oi-go { width: 100%; }
  .oi-chip span { min-height: 44px; padding: 8px 13px; font-size: 15px; }
  .oi-frame iframe { height: 560px; }
}
/* até 420 px, dia e período empilhados em uma coluna; cada opção vira um bloco numerado */
@media (max-width: 420px) {
  .oi-slot { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .oi-slot > i { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .oi-chip span { transition: none; }
}
