/* =====================================================================
   KOHWAN — booking a consultation (/ski/consultation).
   A booking card after the reference: who you are meeting on the left, and
   on the right the day, the time, your details and the confirmation — in
   the site's navy, gold and pale sky rather than another brand's blue.
   Markup: resources/views/frontend/ski/consult.blade.php
   ===================================================================== */

.skcn { padding: clamp(28px, 4vw, 64px) 0 clamp(44px, 5.5vw, 88px); background: #F4F7F8; }
/* A compact card in the middle of the page, as the reference has it. */
.skcn__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  width: min(900px, 100% - 40px);
  margin-inline: auto;
  transition: width .3s var(--skl-ease);
  background: #FFFFFF;
  border: 1px solid var(--skl-line);
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(20, 34, 44, .1);
  overflow: hidden;
}

/* ------------------------------------------------------------ the left */
.skcn__aside {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.6vw, 34px);
  border-right: 1px solid var(--skl-line);
}
.skcn__back {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border: 1px solid var(--skl-line);
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--skl-navy);
  cursor: pointer;
  transition: border-color .2s var(--skl-ease), color .2s var(--skl-ease);
}
.skcn__back[hidden] { display: none; }
.skcn__back:hover { border-color: var(--skl-gold); color: var(--skl-gold); }
.skcn__back svg { width: 17px; height: 17px; }

.skcn__brand { align-self: flex-start; margin-bottom: 18px; }
.skcn__brand img { height: 46px; width: auto; }
.skcn__who { margin: 0 0 4px; font-size: .84rem; font-weight: 700; color: var(--skl-muted); }
.skcn__title {
  margin: 0 0 14px;
  font-family: var(--skl-head);
  font-size: clamp(1.45rem, 2.1vw, 1.85rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--skl-navy);
}
.skcn__meta { margin: 0 0 18px; padding: 0; list-style: none; }
.skcn__meta li { display: flex; align-items: flex-start; gap: 9px; padding: 4px 0; font-size: .92rem; font-weight: 700; color: var(--skl-ink); }
.skcn__meta li[hidden] { display: none; }
.skcn__meta svg { flex: none; width: 17px; height: 17px; margin-top: 2px; color: var(--skl-muted); }
.skcn__meta-when { color: var(--skl-navy) !important; }

.skcn__text { margin: 0 0 14px; font-size: .9rem; line-height: 1.7; color: var(--skl-muted); }
/* The links sit at the foot of the panel, as the reference has them. */
.skcn__links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: auto 0 0; padding-top: 24px; font-size: .8rem; }
.skcn__links a { color: var(--skl-navy); font-weight: 600; text-decoration: none; }
.skcn__links a:hover { color: var(--skl-gold); text-decoration: underline; }

/* ----------------------------------------------------------- the right */
.skcn__main { padding: clamp(22px, 2.6vw, 34px); }
.skcn__step[hidden] { display: none; }
.skcn__h {
  margin: 0 0 clamp(18px, 2.4vw, 28px);
  font-family: var(--skl-head);
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--skl-navy);
}

/* ---- the calendar and the times side by side ----
   The card widens when the times appear, so the month keeps its room. */
.skcn__card.is-wide { width: min(1140px, 100% - 40px); }
.skcn__pick { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(16px, 2vw, 28px); }
.skcn__pick.is-split { grid-template-columns: minmax(260px, 1fr) minmax(180px, 210px); }

.skcn__calhead { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 10px; }
.skcn__calhead b { font-size: 1rem; font-weight: 700; color: var(--skl-navy); }
.skcn__nav {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--skl-navy);
  cursor: pointer;
  transition: background-color .2s var(--skl-ease), color .2s var(--skl-ease);
}
.skcn__nav svg { width: 18px; height: 18px; }
.skcn__nav:hover:not([disabled]) { background: var(--skl-sky-soft); }
.skcn__nav[disabled] { color: #C4D0D6; cursor: default; }

.skcn__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.skcn__dow { padding: 6px 0; font-size: .78rem; font-weight: 700; color: var(--skl-muted); }
/* Plain numbers, as the reference has them: no filled circle until the day is
   pointed at or picked. */
.skcn__day-btn {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  width: 100%;
  max-width: 42px;
  margin-inline: auto;
  border: 0;
  border-radius: 50%;
  background: none;
  font: inherit;
  font-size: .95rem;
  font-weight: 500;
  color: #B2BFC6;
  cursor: default;
}
.skcn__day-btn.is-open {
  color: var(--skl-navy);
  font-weight: 700;
  cursor: pointer;
  transition: background-color .18s var(--skl-ease), color .18s var(--skl-ease);
}
.skcn__day-btn.is-open:hover { background: var(--skl-sky-soft); }
.skcn__day-btn.is-on { background: var(--skl-navy); color: #FFFFFF; }
.skcn__day-btn.is-today::after {
  content: "";
  position: absolute;
  bottom: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.skcn__day-btn:focus-visible { outline: 2px solid var(--skl-gold); outline-offset: 2px; }

.skcn__zone { margin: 22px 0 0; font-size: .88rem; color: var(--skl-ink); }
.skcn__zone b { display: block; margin-bottom: 6px; font-size: .9rem; color: var(--skl-navy); }
.skcn__zone span { display: inline-flex; align-items: center; gap: 7px; color: var(--skl-muted); }
.skcn__zone svg { width: 15px; height: 15px; }
.skcn__zone em { font-style: normal; }

/* ---- the times ---- */
.skcn__slots[hidden] { display: none; }
.skcn__day { margin: 0 0 12px; font-size: .95rem; font-weight: 600; color: var(--skl-ink); }
.skcn__times {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: clamp(300px, 46vh, 440px);
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: #C9D5DB transparent;
}
.skcn__times::-webkit-scrollbar { width: 5px; }
.skcn__times::-webkit-scrollbar-thumb { border-radius: 999px; background: #C9D5DB; }

.skcn__row { display: flex; gap: 8px; }
.skcn__slot {
  flex: 1 1 auto;
  padding: 14px 10px;
  border: 1.5px solid var(--skl-navy);
  border-radius: 6px;
  background: #FFFFFF;
  font: inherit;
  font-size: .95rem;
  font-weight: 700;
  color: var(--skl-navy);
  cursor: pointer;
  transition: background-color .18s var(--skl-ease), color .18s var(--skl-ease), border-color .18s var(--skl-ease);
}
.skcn__slot:hover { background: var(--skl-sky-soft); }
.skcn__slot:focus-visible { outline: 2px solid var(--skl-gold); outline-offset: 2px; }
.skcn__row.is-on .skcn__slot {
  flex: 0 0 48%;
  border-color: var(--skl-muted);
  background: var(--skl-muted);
  color: #FFFFFF;
}
.skcn__row.is-on .skcn__slot:hover { background: var(--skl-muted); }
.skcn__next {
  flex: 1 1 auto;
  padding: 14px 10px;
  border: 0;
  border-radius: 6px;
  background: var(--skl-gold);
  font: inherit;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: #FFFFFF;
  cursor: pointer;
}
.skcn__next:hover { filter: brightness(1.08); }
.skcn__next:focus-visible { outline: 2px solid var(--skl-navy); outline-offset: 2px; }
.skcn__none { margin: 0; font-size: .9rem; color: var(--skl-muted); }
.skcn__none[hidden] { display: none; }

/* ---- the form ---- */
.skcn__err {
  margin: 0 0 18px;
  padding: 12px 16px;
  border-left: 3px solid #A3564E;
  background: #FCF1F0;
  color: #7A3A34;
  font-size: .9rem;
}
.skcn__err ul { margin: 0; padding-left: 18px; }

.skcn__form { max-width: 520px; }
.skcn__field { margin: 0 0 18px; }
.skcn__field[hidden] { display: none; }
.skcn__field label { display: block; margin-bottom: 7px; font-size: .9rem; font-weight: 700; color: var(--skl-ink); }
.skcn__field label span { color: #A3564E; }
.skcn__field input, .skcn__field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #C6D2D8;
  border-radius: 6px;
  background: #FFFFFF;
  font: inherit;
  font-size: .95rem;
  color: var(--skl-ink);
}
.skcn__field textarea { resize: vertical; }
.skcn__field input:focus, .skcn__field textarea:focus { outline: 0; border-color: var(--skl-navy); box-shadow: 0 0 0 3px rgba(185, 221, 229, .5); }
.skcn__tel { display: flex; align-items: stretch; border: 1.5px solid #C6D2D8; border-radius: 6px; overflow: hidden; }
.skcn__tel:focus-within { border-color: var(--skl-navy); box-shadow: 0 0 0 3px rgba(185, 221, 229, .5); }
.skcn__flag { display: grid; place-items: center; padding: 0 12px; border-right: 1px solid #E1E8EB; font-size: 1.1rem; }
.skcn__tel input { border: 0 !important; border-radius: 0; box-shadow: none !important; }

.skcn__addguests { margin: -6px 0 18px; }
.skcn__addguests button {
  padding: 9px 18px;
  border: 1.5px solid var(--skl-navy);
  border-radius: 999px;
  background: none;
  font: inherit;
  font-size: .86rem;
  font-weight: 700;
  color: var(--skl-navy);
  cursor: pointer;
}
.skcn__addguests button:hover { background: var(--skl-navy); color: #FFFFFF; }
.skcn__addguests[hidden] { display: none; }

.skcn__terms { margin: 0 0 20px; font-size: .82rem; line-height: 1.6; color: var(--skl-muted); }
.skcn__terms a { color: var(--skl-navy); font-weight: 600; }
.skcn__submit { margin: 0; }
.skcn__go {
  padding: 14px 32px;
  border: 0;
  border-radius: 999px;
  background: var(--skl-navy);
  font: inherit;
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #FFFFFF;
  cursor: pointer;
}
.skcn__go:hover { filter: brightness(1.15); }

/* ---- the confirmation ---- */
.skcn__done { max-width: 540px; }
.skcn__tick {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--skl-sky-soft);
  color: #2F7D63;
}
.skcn__tick svg { width: 26px; height: 26px; }
.skcn__donetxt { margin: 0 0 20px; font-size: .96rem; line-height: 1.7; color: var(--skl-muted); }
.skcn__donetxt b { color: var(--skl-navy); }
.skcn__sum { margin: 0 0 24px; padding: 18px 20px; border: 1px solid var(--skl-line); border-radius: 8px; background: #FAFCFD; }
.skcn__sum > div { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 6px 0; font-size: .92rem; }
.skcn__sum dt { min-width: 92px; font-weight: 700; color: var(--skl-navy); }
.skcn__sum dd { margin: 0; color: var(--skl-ink); }
.skcn__donecta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 14px; }
.skcn__donetel { margin: 0; font-size: .86rem; color: var(--skl-muted); }
.skcn__donetel a { color: var(--skl-navy); font-weight: 700; }

@media (max-width: 860px) {
  .skcn__card { grid-template-columns: minmax(0, 1fr); }
  .skcn__aside { border-right: 0; border-bottom: 1px solid var(--skl-line); }
  .skcn__pick.is-split { grid-template-columns: minmax(0, 1fr); }
  .skcn__times { max-height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  .skcn__slot, .skcn__day-btn.is-open, .skcn__nav, .skcn__back { transition: none; }
}
