/* C99i (C113) · The common Oasis enquiry form. Layout only: every colour, corner, gap and font comes from the --oxf-* variables, which
   the hosting site sets from its own theme, e.g.  .site { --oxf-accent: var(--brand); --oxf-font: var(--font-body); }  */
.oxf {
  --oxf-accent: var(--oxf-brand, #1D4ED8);
  --oxf-accent-ink: #FFFFFF;
  --oxf-ink: #1E293B;
  --oxf-muted: #64748B;
  --oxf-surface: #FFFFFF;
  --oxf-canvas: #F8FAFC;
  --oxf-line: #CBD5E1;
  --oxf-error: #B91C1C;
  --oxf-ok: #15803D;
  --oxf-radius: 8px;
  --oxf-gap: 16px;
  --oxf-font: inherit;
  font-family: var(--oxf-font);
  color: var(--oxf-ink);
  font-size: 15px;
  line-height: 1.5;
  container: oxf / inline-size;
}
.oxf *, .oxf *::before, .oxf *::after { box-sizing: border-box; }
.oxf [hidden] { display: none !important; }
.oxf-title { margin: 0 0 var(--oxf-gap); font-size: 1.25em; }
.oxf-form { margin: 0; }
.oxf-kinds { border: 0; margin: 0 0 var(--oxf-gap); padding: 0; min-width: 0; }
.oxf-tiles { display: grid; grid-template-columns: 1fr; gap: 12px; }
/* Balanced rows by the form's own width: 2 x 2 for four choices, one row of three for three, one row of four only when wide. */
@container oxf (min-width: 520px) { .oxf-tiles { grid-template-columns: repeat(2, 1fr); } }
@container oxf (min-width: 720px) { .oxf-tiles:not(:has(> :nth-child(4))) { grid-template-columns: repeat(3, 1fr); } }
@container oxf (min-width: 1100px) { .oxf-tiles { grid-template-columns: repeat(4, 1fr); } }
.oxf-tile { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 14px 40px 14px 14px; border: 1px solid var(--oxf-line);
  border-radius: calc(var(--oxf-radius) + 4px); background: var(--oxf-surface); cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.oxf-tile:hover { border-color: var(--oxf-accent); }
.oxf-tile-input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.oxf-tile-icon { flex: 0 0 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
  color: var(--oxf-accent); background: color-mix(in srgb, var(--oxf-accent) 12%, transparent); }
.oxf-tile-icon svg { width: 20px; height: 20px; }
.oxf-tile-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.oxf-tile-title { font-weight: 600; line-height: 1.3; }
.oxf-tile-sub { font-size: .85em; line-height: 1.35; color: var(--oxf-muted); }
.oxf-tile-check { position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--oxf-line); background: var(--oxf-surface); }
.oxf-tile:has(.oxf-tile-input:checked) { border-color: var(--oxf-accent); box-shadow: 0 0 0 1px var(--oxf-accent) inset;
  background: color-mix(in srgb, var(--oxf-accent) 6%, var(--oxf-surface)); }
.oxf-tile:has(.oxf-tile-input:checked) .oxf-tile-check { border-color: var(--oxf-accent); background: var(--oxf-accent); box-shadow: inset 0 0 0 3px var(--oxf-surface); }
.oxf-tile:has(.oxf-tile-input:focus-visible) { outline: 2px solid var(--oxf-accent); outline-offset: 2px; }
.oxf-kinds > .oxf-label { display: block; margin-bottom: 8px; }
.oxf-grid { display: grid; grid-template-columns: 1fr; gap: var(--oxf-gap); }
@container oxf (min-width: 600px) { .oxf-grid { grid-template-columns: 1fr 1fr; } .oxf-wide { grid-column: 1 / -1; } }
.oxf-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; margin: 0; padding: 0; }
.oxf-label { font-weight: 600; font-size: .92em; color: var(--oxf-ink); padding: 0; }
.oxf-req { color: var(--oxf-error); }
.oxf-optional { font-weight: 400; color: var(--oxf-muted); }
.oxf-input { width: 100%; min-height: 42px; padding: 9px 12px; font: inherit; color: var(--oxf-ink); background: var(--oxf-surface);
  border: 1px solid var(--oxf-line); border-radius: var(--oxf-radius); }
textarea.oxf-input { min-height: 104px; resize: vertical; }
.oxf-input:focus { outline: 2px solid var(--oxf-accent); outline-offset: 1px; border-color: var(--oxf-accent); }
.oxf-input[readonly] { background: var(--oxf-canvas); }
.oxf-input:disabled { opacity: .65; }
.oxf-upper { text-transform: uppercase; }
.oxf-row { display: flex; gap: 8px; align-items: center; flex-wrap: nowrap; }
.oxf-dial { flex: 0 0 auto; width: 96px; padding-left: 8px; padding-right: 4px; }
.oxf-grow { flex: 1 1 auto; width: auto; min-width: 0; }
.oxf-row .oxf-btn { flex: 0 0 auto; padding-left: 12px; padding-right: 12px; }
@media (max-width: 380px) { .oxf-row { flex-wrap: wrap; } .oxf-grow { flex-basis: 140px; } }
.oxf-invalid .oxf-input { border-color: var(--oxf-error); }
.oxf-error { margin: 0; min-height: 0; color: var(--oxf-error); font-size: .88em; }
.oxf-error:empty { display: none; }
.oxf-error:not(:empty)::before { content: "⚠ "; }
.oxf-counter { align-self: flex-end; color: var(--oxf-muted); font-size: .82em; }
.oxf-check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.oxf-check input { margin-top: 4px; accent-color: var(--oxf-accent); }
.oxf-check a { color: var(--oxf-accent); }
.oxf-choices { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.oxf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 16px; font: inherit; font-weight: 600;
  border-radius: var(--oxf-radius); border: 1px solid var(--oxf-accent); cursor: pointer; white-space: nowrap; }
.oxf-btn-primary { background: var(--oxf-accent); color: var(--oxf-accent-ink); min-width: 180px; }
.oxf-btn-secondary { background: var(--oxf-surface); color: var(--oxf-accent); }
.oxf-btn:disabled { opacity: .55; cursor: not-allowed; }
.oxf-btn:focus-visible, .oxf-link:focus-visible { outline: 2px solid var(--oxf-accent); outline-offset: 2px; }
.oxf-link { background: none; border: 0; padding: 0; font: inherit; color: var(--oxf-accent); text-decoration: underline; cursor: pointer; }
.oxf-link:disabled { color: var(--oxf-muted); text-decoration: none; cursor: default; }
.oxf-verified { color: var(--oxf-ok); font-weight: 600; white-space: nowrap; }
.oxf-otp { margin-top: 4px; padding: 12px; border: 1px dashed var(--oxf-line); border-radius: var(--oxf-radius); background: var(--oxf-canvas); }
.oxf-otp-msg { margin: 0 0 8px; color: var(--oxf-muted); font-size: .92em; }
.oxf-otp-boxes { display: flex; gap: 6px; }
.oxf-otp-box { width: 44px; min-width: 0; text-align: center; font-size: 1.2em; font-variant-numeric: tabular-nums; padding: 8px 0; }
.oxf-otp-actions { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: .9em; }
.oxf-captcha { margin-top: var(--oxf-gap); }
.oxf-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.oxf-status { margin: var(--oxf-gap) 0 0; font-weight: 500; color: var(--oxf-error); }
.oxf-status:empty { display: none; }
.oxf-status-ok { color: var(--oxf-ok); }
.oxf-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: var(--oxf-gap); }
.oxf-hint { color: var(--oxf-muted); font-size: .88em; }
.oxf-spinner { display: none; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: oxf-spin .8s linear infinite; }
.oxf-busy .oxf-spinner { display: inline-block; }
@keyframes oxf-spin { to { transform: rotate(360deg); } }
.oxf-done { text-align: center; padding: calc(var(--oxf-gap) * 1.5) var(--oxf-gap); border: 1px solid var(--oxf-line); border-radius: var(--oxf-radius); background: var(--oxf-surface); }
.oxf-done:focus { outline: none; }
.oxf-done-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--oxf-ok); color: #fff;
  font-size: 24px; font-weight: 700; }
.oxf-done-title { margin: 12px 0 4px; font-size: 1.2em; }
.oxf-token { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
.oxf-done-ways { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.oxf-done-ways a { color: var(--oxf-accent); font-weight: 600; }
.oxf-unavailable { padding: var(--oxf-gap); border: 1px solid var(--oxf-line); border-radius: var(--oxf-radius); background: var(--oxf-canvas); }
@media (prefers-reduced-motion: reduce) { .oxf-spinner { animation: none; } }
