/* =====================================================================
   PLAN YOUR MOUNTAIN DAYS — the ski landing's booking tabs.

   The words on the left change with the tab. On the right, a row of six icon
   tabs with hairlines between them — the one in use filled navy — and under
   it the short form for that tab: square-shouldered fields, navy selects,
   steppers with their buttons in a navy block, and a gold button.

   Kohwan's own colours and type (the ski pages' --skl-* tokens, with plain
   fallbacks). Prefix .skbt- throughout.
   ===================================================================== */
.skbt {
  --bt-navy: var(--skl-navy, #2e4755);
  --bt-navy-2: #24404f;
  --bt-gold: var(--skl-gold, #BD830D);
  --bt-gold-2: #a8740b;
  --bt-ink: var(--skl-ink, #1f3441);
  --bt-muted: var(--skl-muted, #5f7380);
  --bt-line: #C6D3D9;
  --bt-soft: #F2F5F7;
  --bt-head: var(--skl-head, 'Barlow Condensed', 'Oswald', system-ui, sans-serif);
  --bt-ease: cubic-bezier(.22, .61, .36, 1);

  padding-block: clamp(56px, 6.5vw, 96px) clamp(34px, 4.5vw, 64px);
  background: #FFFFFF;
}
.skbt [hidden] { display: none !important; }

.skbt__in {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 56px);
  align-items: start;
}

/* ------------------------------ the words ------------------------------ */
.skbt__copy { min-width: 0; padding-top: 4px; }
.skbt__say { animation: skbt-in .45s var(--bt-ease); }
.skbt__eyebrow {
  margin: 0 0 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bt-gold);
}
.skbt__h {
  margin: 0;
  font-family: var(--bt-head);
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--bt-navy);
}
.skbt__p { margin: 14px 0 0; max-width: 34ch; font-size: .95rem; line-height: 1.6; color: var(--bt-muted); }
.skbt__p + .skbt__p { margin-top: 8px; }
.skbt__call { margin: 16px 0 0; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bt-ink); }
.skbt__call a {
  display: block;
  margin-top: 4px;
  font-family: var(--bt-head);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--bt-gold);
  text-decoration: none;
}
.skbt__call a:hover { color: var(--bt-navy); }

/* ------------------------------- the tabs ------------------------------- */
.skbt__main { min-width: 0; }
.skbt__tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: clamp(20px, 2.4vw, 30px);
}
.skbt__tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 132px;
  padding: 16px 8px 14px;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--bt-navy);
  cursor: pointer;
  transition: background-color .25s var(--bt-ease), color .25s var(--bt-ease);
}
/* the hairline between two tabs, clear of the filled one */
.skbt__tab + .skbt__tab::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: var(--bt-line);
}
.skbt__tab.is-on::before,
.skbt__tab.is-on + .skbt__tab::before { opacity: 0; }
.skbt__tab-ic { display: block; width: 46px; height: 46px; transition: transform .3s var(--bt-ease); }
.skbt__tab-ic svg { display: block; width: 100%; height: 100%; }
.skbt__tab-t {
  font-size: .76rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .16em;
  text-align: center;
  text-transform: uppercase;
}
.skbt__tab:hover { background: var(--bt-soft); }
.skbt__tab:hover .skbt__tab-ic { transform: translateY(-3px); }
.skbt__tab.is-on { background: var(--bt-navy); color: #FFFFFF; }
.skbt__tab.is-on .skbt__tab-ic { color: var(--bt-gold); }
.skbt__tab:focus-visible { outline: 2px solid var(--bt-gold); outline-offset: -2px; }

/* ------------------------------- the forms ------------------------------- */
.skbt__pane { margin: 0; animation: skbt-in .4s var(--bt-ease); }
@keyframes skbt-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.skbt__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 36px; align-items: end; }
.skbt__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 26px; }
/* the button row under a three-field row, its button under the third field */
.skbt__row--end { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 26px; margin-top: 22px; }
.skbt__row--end .skbt__act { grid-column: 3; }

/* Lodging: the two dates, a rule, then the two steppers with the button
   beside them — every piece in a named cell, so nothing wraps out of place. */
.skbt__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "in    out   ."
    "rule  rule  ."
    "ad    ch    act";
  gap: 18px 26px;
  align-items: end;
}
.skbt__grid > :nth-child(1) { grid-area: in; }
.skbt__grid > :nth-child(2) { grid-area: out; }
.skbt__grid > .skbt__rule { grid-area: rule; }
.skbt__grid > :nth-child(4) { grid-area: ad; }
.skbt__grid > :nth-child(5) { grid-area: ch; }
.skbt__grid > .skbt__act--end { grid-area: act; align-self: end; }

.skbt__rule { margin: 4px 0; border: 0; border-top: 1px solid var(--bt-line); }

.skbt__field { display: flex; flex-direction: column; gap: 9px; min-width: 0; margin: 0; padding: 0; border: 0; }
.skbt__lab {
  padding: 0;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bt-ink);
}

/* a date: the field and a calendar block at its right */
.skbt__date { display: flex; height: 50px; border: 1px solid var(--bt-line); background: #FFFFFF; transition: border-color .2s; }
.skbt__date:focus-within { border-color: var(--bt-navy); }
.skbt__date input {
  flex: 1;
  min-width: 0;
  padding: 0 14px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  color: var(--bt-ink);
}
.skbt__date input:focus { outline: none; }
/* the browser's own picker glyph steps aside for the block beside it */
.skbt__date input::-webkit-calendar-picker-indicator { opacity: 0; width: 0; margin: 0; }
.skbt__date button {
  flex: none;
  display: grid;
  place-items: center;
  width: 50px;
  border: 0;
  border-left: 1px solid var(--bt-line);
  background: var(--bt-soft);
  color: var(--bt-navy);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.skbt__date button:hover { background: var(--bt-navy); color: #FFFFFF; }
.skbt__date button svg { width: 22px; height: 22px; }

/* a stepper: the number, then its buttons in a navy block */
.skbt__step { display: flex; height: 50px; border: 1px solid var(--bt-line); }
.skbt__step input {
  flex: 1;
  min-width: 0;
  padding: 0 14px;
  border: 0;
  font: inherit;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--bt-ink);
  -moz-appearance: textfield;
}
.skbt__step input::-webkit-outer-spin-button,
.skbt__step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.skbt__step input:focus { outline: 2px solid var(--bt-gold); outline-offset: -2px; }
.skbt__step-btns { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 10px; background: var(--bt-navy); }
.skbt__step-btns button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #FFFFFF;
  cursor: pointer;
  transition: color .2s, transform .15s;
}
.skbt__step-btns button svg { width: 30px; height: 30px; }
.skbt__step-btns button:hover { color: var(--bt-gold); }
.skbt__step-btns button:active { transform: scale(.9); }
.skbt__step-btns button:disabled { opacity: .35; cursor: default; }
.skbt__step-btns button:focus-visible { outline: 2px solid var(--bt-gold); outline-offset: 1px; }

/* a select: filled navy, white words, a chevron */
.skbt__select { position: relative; display: block; }
.skbt__select::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  color: #FFFFFF;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.skbt__select select {
  width: 100%;
  height: 50px;
  padding: 0 44px 0 16px;
  border: 1px solid var(--bt-navy);
  border-radius: 0;
  background: var(--bt-navy);
  font: inherit;
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #FFFFFF;
  cursor: pointer;
  -webkit-appearance: none;
          appearance: none;
  transition: background-color .2s;
}
.skbt__select select:hover { background: var(--bt-navy-2); }
.skbt__select select:focus-visible { outline: 2px solid var(--bt-gold); outline-offset: 2px; }
.skbt__select select option { background: #FFFFFF; color: var(--bt-ink); text-transform: none; font-weight: 500; }
/* the outlined kind, for the lesson's age and level */
.skbt__select--line::after { color: var(--bt-navy); }
.skbt__select--line select { background: #FFFFFF; color: var(--bt-ink); border-color: var(--bt-line); }
.skbt__select--line select:hover { background: var(--bt-soft); }

/* The button, with its link hanging just below it. The link sits outside the
   flow, so the button — not the link — is what lines up with the bottom edge
   of the fields beside it, and every field and button is the same 50px. */
.skbt__act { position: relative; display: flex; flex-direction: column; align-items: stretch; }
.skbt__pane { padding-bottom: 38px; }
.skbt__go {
  height: 50px;
  padding: 0 24px;
  border: 0;
  background: var(--bt-gold);
  box-shadow: inset 0 -26px 0 rgba(0, 0, 0, .05);
  font: inherit;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #FFFFFF;
  cursor: pointer;
  transition: background-color .2s, transform .2s var(--bt-ease), box-shadow .2s;
}
.skbt__go:hover { background: var(--bt-gold-2); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(189, 131, 13, .28); }
.skbt__go:active { transform: none; }
.skbt__go:focus-visible { outline: 2px solid var(--bt-navy); outline-offset: 3px; }
.skbt__more {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  font-size: .9rem;
  font-weight: 600;
  color: var(--bt-gold);
  text-decoration: none;
}
.skbt__more svg { width: 16px; height: 16px; transition: transform .2s var(--bt-ease); }
.skbt__more:hover { color: var(--bt-navy); }
.skbt__more:hover svg { transform: translateX(3px); }

.skbt__err {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-left: 3px solid #b23b32;
  background: #fbeeed;
  font-size: .88rem;
  color: #7c2a24;
}

/* ------------------------------ snow school ------------------------------ */
.skbt__school {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}
.skbt__school > * { padding-inline: 26px; }
.skbt__school > :first-child { padding-left: 0; }
.skbt__school > :last-child { padding-right: 0; }
.skbt__school > * + * { border-left: 1px solid var(--bt-line); }
.skbt__school-mid,
.skbt__school-end { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }

.skbt__sport-row { display: flex; gap: 8px; }
.skbt__pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.skbt__pick span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  width: 96px;
  height: 138px;
  padding: 16px 6px;
  background: var(--bt-soft);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bt-navy);
  cursor: pointer;
  transition: background-color .25s var(--bt-ease), color .25s var(--bt-ease);
}
.skbt__pick span svg { width: 46px; height: 60px; }
.skbt__pick span:hover { background: #E4EBEE; }
.skbt__pick input:checked + span { background: var(--bt-navy); color: #FFFFFF; }
.skbt__pick input:checked + span svg { color: var(--bt-gold); }
.skbt__pick input:focus-visible + span { outline: 2px solid var(--bt-gold); outline-offset: 2px; }

/* ----------------------------- smaller screens ----------------------------- */
@media (max-width: 1080px) {
  .skbt__in { grid-template-columns: minmax(0, 1fr); }
  .skbt__p { max-width: 60ch; }
}
@media (max-width: 820px) {
  /* the tabs become a row to swipe */
  .skbt__tabs {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-inline: -16px;
    padding-inline: 16px;
  }
  .skbt__tabs::-webkit-scrollbar { display: none; }
  .skbt__tab { flex: 0 0 112px; min-height: 112px; scroll-snap-align: start; }
  .skbt__tab-ic { width: 38px; height: 38px; }

  .skbt__row,
  .skbt__row--3,
  .skbt__row--end,
  .skbt__grid { grid-template-columns: minmax(0, 1fr); }
  .skbt__row--end .skbt__act { grid-column: auto; }
  .skbt__grid { grid-template-areas: "in" "out" "rule" "ad" "ch" "act"; }
  .skbt__grid > .skbt__act--end { padding-top: 0; }

  .skbt__school { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .skbt__school > * { padding-inline: 0; }
  .skbt__school > * + * { border-left: 0; }
  .skbt__sport-row .skbt__pick { flex: 1; }
  .skbt__pick span { width: 100%; height: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  .skbt__say, .skbt__pane { animation: none; }
  .skbt__go, .skbt__tab-ic { transition: none; }
}
