/* Encounters Africa: /enquire additions to the brand stylesheet (the prototype's enquiry styles are already in site.css).
   The prototype's tiles, chips and month cells were buttons with aria-pressed; here they are labels around native
   checkboxes and radios so the same markup works as a plain form without JavaScript. Only brand tokens are used. */

/* ---------- with and without JavaScript ---------- */
html:not(.eq-js) .eq-jsonly { display: none !important; }
.eq-js .eq-nojs { display: none !important; }
.eq-js:not(.eq-ready) .eq-fs:not([data-step="0"]) { display: none; }
html:not(.eq-js) .eq-fs + .eq-fs { margin-top: var(--s-8); padding-top: var(--s-7); border-top: 1px solid var(--sand); }
html:not(.eq-js) .eq-fs .eq-h { font-size: clamp(30px, 3.4vw, 44px); }
.eq-intro { margin-bottom: var(--s-7); }
.eq-side { top: calc(var(--header-h) + 24px); }
.eq-root .eq-fs { display: block; }
.eq-root .eq-fs[hidden] { display: none; }

/* ---------- native inputs inside tiles, chips, month cells and segments ---------- */
.eq-in { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
label.tile, label.chip, label.month, .eq-seg-l { position: relative; cursor: pointer; }
.tile.is-on, .tile:has(.eq-in:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--e-1); }
.tile.is-on .ic, .tile:has(.eq-in:checked) .ic { background: var(--deep-lagoon); color: var(--paper); }
.tile .tick .ea-ic { opacity: 0; }
.tile.is-on .tick, .tile:has(.eq-in:checked) .tick { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tile.is-on .tick .ea-ic, .tile:has(.eq-in:checked) .tick .ea-ic { opacity: 1; }
.chip:has(.eq-in:checked) { background: var(--ink); color: var(--canvas); border-color: var(--ink); }
.month.is-on, .month:has(.eq-in:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.month.is-off { opacity: .45; cursor: not-allowed; background: transparent; }
.month.is-off:hover { border-color: var(--sand); }
.seg .eq-seg-l { min-height: 40px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; border-radius: 4px; font: 500 14.5px/1 var(--f-text); color: var(--ink-700); transition: background var(--t-fast); }
.seg .eq-seg-l:hover { color: var(--ink); }
.seg .eq-seg-l.is-on, .seg .eq-seg-l:has(.eq-in:checked) { background: var(--paper); color: var(--ink); box-shadow: var(--e-1); }
.tile:has(.eq-in:focus-visible), .chip:has(.eq-in:focus-visible), .month:has(.eq-in:focus-visible), .seg .eq-seg-l:has(.eq-in:focus-visible) { box-shadow: var(--focus); }
@supports not selector(:has(*)) {
  .tile:focus-within, .chip:focus-within, .month:focus-within, .seg .eq-seg-l:focus-within { box-shadow: var(--focus); }
}

/* ---------- step details ---------- */
.eq-more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.eq-more > .t-small { margin-right: 4px; }
.eq-block > .label { display: block; }
.eq-partytype { margin: 22px 0; }
.eq-budget { margin: 26px 0 0; max-width: 760px; }
.eq-budget .note { margin-top: 12px; }
.eq-about { margin-top: 0; }
.eq-about .eq-block { margin-bottom: 0; }
.counter .eq-num { width: 44px; height: 40px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--ink); text-align: center; font: 600 17px/1 var(--f-text); font-feature-settings: "tnum" 1; appearance: textfield; -moz-appearance: textfield; }
.counter .eq-num::-webkit-inner-spin-button, .counter .eq-num::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
html:not(.eq-js) .counter .eq-num { width: 72px; }
.eq-root .help.err:empty { display: none; }
.eq-root span.help.err { display: flex; }
.eq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.eq-privacy { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; color: var(--ink-700); }
.eq-privacy .ea-ic { color: var(--ink-500); margin-top: 2px; }
.eq-banner .eq-banner-act { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px; }
.eq-root [data-eq-advice] .note { margin-top: 12px; max-width: 640px; }
.eq-guide .note { margin-top: 12px; }
.eq-next[aria-disabled="true"] { opacity: .7; cursor: progress; }
.eq-errs[data-eq-errs] { align-items: flex-start; }

/* ---------- side panel and thank-you ---------- */
.eq-av { width: 48px; height: 48px; }
.eq-av.lg { width: 64px; height: 64px; }
.eq-av img { width: 58%; height: auto; }
.fit-trip ul:empty { display: none; }
.eq-ty .ty-sym { width: 420px; height: 420px; }
.eq-sum { margin: 18px 0 0; max-width: 760px; border-top: 1px solid var(--sand); }
.eq-sum > div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--sand); }
.eq-sum dt { font: 600 11px/1.5 var(--f-text); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-500); }
.eq-sum dd { margin: 0; font-size: 15px; line-height: 1.5; white-space: pre-line; }
.eq-ty-sum { padding-bottom: 0; }

/* ---------- finish later ---------- */
.eq-dialog { width: calc(100% - 40px); max-width: 520px; padding: 32px; border: 0; border-radius: var(--r-scale-lg); background: var(--paper); color: var(--ink); box-shadow: var(--e-3); }
.eq-dialog::backdrop { background: var(--ink, #2E2924); opacity: .55; }

@media (max-width: 760px) {
  /* the sticky action bar has to fit Back, Finish later, the fit count and the main button on a 360px screen */
  .eq-nav > .row { min-width: 0; }
  .eq-nav [data-eq-back] span { display: none; }
  .eq-nav [data-eq-back] { width: var(--h); padding: 0; }
  .eq-nav .eq-next { padding: 0 18px; }
  .eq-nav [data-eq-next-i="arrow"] { display: none; }
  .eq-nav .eq-fitchip { padding: 0 12px; }
  .eq-sum > div { grid-template-columns: 1fr; gap: 2px; }
  .eq-dialog { padding: 24px 22px; }
  .eq-ty .ty-sym { width: 260px; height: 260px; }
}
