/* =====================================================================
   KOHWAN — "Design my trip" modal (.tdm) and its header button (.gdmt)

   Laid out to the reference: a white sheet over a dimmed page, a navy hero
   band with the logo, the phone and a condensed headline over faint peaks,
   then seven numbered steps — a heading column on the left, the controls on
   the right — on a pale blue-grey page, closing with a thin footer.

   Markup: resources/views/frontend/partials/trip-designer.blade.php
   Script: js/trip-designer.js
   ===================================================================== */
.tdm {
  --td-navy:   #0b3a5b;
  --td-ink:    #0c3a5a;
  --td-sub:    #1f5f8b;
  --td-blue:   #1e98d6;
  --td-blue-d: #1683bb;
  --td-tint:   #dff2fb;
  --td-page:   #f4f6fa;
  --td-line:   #d5dde6;
  --td-hair:   #e3e8ee;
  --td-muted:  #6b7f93;
  --td-head:   'Bebas Neue', 'Barlow Condensed', 'Oswald', 'Arial Narrow', system-ui, sans-serif;
  --td-body:   'Lato', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  position: fixed;
  inset: 0;
  z-index: 13000;
  display: grid;
  place-items: center;
  padding: clamp(10px, 4.5vh, 54px) clamp(8px, 3vw, 40px);
  font-family: var(--td-body);
  color: var(--td-ink);
}
.tdm[hidden] { display: none; }
.tdm *, .tdm *::before, .tdm *::after { box-sizing: border-box; }

.tdm__scrim {
  position: absolute;
  inset: 0;
  background: rgba(20, 28, 38, .55);
  animation: tdm-fade .2s ease;
}
.tdm__sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1154px, 100%);
  height: min(975px, 100%);
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .35);
  animation: tdm-rise .28s cubic-bezier(.22, .61, .36, 1);
}
@keyframes tdm-fade { from { opacity: 0; } }
@keyframes tdm-rise { from { opacity: 0; transform: translateY(14px) scale(.985); } }

/* The white strip the close button sits in, above the hero. */
.tdm__bar {
  flex: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  background: #fff;
}
.tdm__x {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eef1f5;
  color: #333;
  cursor: pointer;
}
.tdm__x svg { width: 12px; height: 12px; stroke-width: 2.4; }
.tdm__x:hover { background: #dfe5ec; }

.tdm__scroll {
  position: relative;   /* offsetParent for the steps, so scroll-to-error lands right */
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--td-page);
  scrollbar-width: thin;
}

/* ------------------------------------------------------------------ hero */
.tdm__hero {
  position: relative;
  overflow: hidden;
  padding: 26px clamp(22px, 5vw, 56px) clamp(40px, 6vw, 66px);
  background: var(--td-navy);
  color: #fff;
}
.tdm__peaks {
  position: absolute;
  inset: auto 0 0 0;
  height: 78%;
  background:
    linear-gradient(135deg, transparent 49.6%, rgba(255, 255, 255, .045) 50%) 18% 100% / 42% 70% no-repeat,
    linear-gradient(225deg, transparent 49.6%, rgba(255, 255, 255, .045) 50%) 38% 100% / 42% 70% no-repeat,
    linear-gradient(135deg, transparent 49.6%, rgba(255, 255, 255, .035) 50%) 58% 100% / 30% 95% no-repeat,
    linear-gradient(225deg, transparent 49.6%, rgba(255, 255, 255, .035) 50%) 73% 100% / 30% 95% no-repeat,
    linear-gradient(135deg, transparent 49.6%, rgba(255, 255, 255, .03) 50%) 92% 100% / 34% 60% no-repeat;
  pointer-events: none;
}
.tdm__top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
/* The logo is drawn in green and gold for a white page; on the navy band it
   is turned solid white so it reads clearly. */
.tdm__brand img { display: block; height: 44px; width: auto; filter: brightness(0) invert(1); }
.tdm__brand b { font-family: var(--td-head); font-size: 1.4rem; letter-spacing: .04em; }
.tdm__tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff !important;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.tdm__tel svg { width: 15px; height: 15px; }
.tdm__eyebrow {
  position: relative;
  margin: 44px 0 10px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.tdm__title {
  position: relative;
  margin: 0;
  font-family: var(--td-head);
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .005em;
  text-transform: uppercase;
  color: #fff;
}
.tdm__intro {
  position: relative;
  max-width: 44ch;
  margin: 26px 0 0;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .88);
}

/* ------------------------------------------------------------------ steps */
.tdm__form { padding: 0 clamp(18px, 3.5vw, 40px); }
.tdm__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.tdm__step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.13fr);
  gap: 24px clamp(24px, 5vw, 64px);
  padding: 30px 0 clamp(48px, 7vw, 78px);
  border-bottom: 1px solid var(--td-hair);
}
.tdm__step--last { border-bottom: 0; }
.tdm__num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--td-tint);
  font-family: var(--td-head);
  font-size: 1.5rem;
  color: var(--td-ink);
}
.tdm__h {
  margin: 0;
  font-family: var(--td-head);
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  font-weight: 400;
  line-height: .98;
  text-transform: uppercase;
  color: var(--td-ink);
}
.tdm__step--last .tdm__h { max-width: 12ch; }
.tdm__sub {
  max-width: 34ch;
  margin: 18px 0 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--td-sub);
}

/* ------------------------------------------------------------- controls */
.tdm__ctl { min-width: 0; }
.tdm__seg { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tdm__pill { position: relative; cursor: pointer; }
.tdm__pill input,
.tdm__chip input,
.tdm__tile input,
.tdm__card input,
.tdm__opt input { position: absolute; opacity: 0; pointer-events: none; }
.tdm__pill span {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--td-line);
  border-radius: 999px;
  background: #fff;
  font-size: .9rem;
  font-weight: 600;
  color: var(--td-ink);
  transition: background-color .15s, color .15s, border-color .15s;
}
.tdm__pill:hover span { border-color: var(--td-blue); }
.tdm__pill input:checked + span { background: var(--td-blue); border-color: var(--td-blue); color: #fff; }
.tdm__pill input:focus-visible + span { outline: 2px solid var(--td-blue); outline-offset: 2px; }

.tdm__label {
  display: block;
  margin: 20px 0 8px;
  font-size: .86rem;
  font-weight: 400;
  color: var(--td-ink);
}
.tdm__label span { color: var(--td-muted); }
.tdm__seg + [data-td-pane] > .tdm__label:first-child,
.tdm__ctl > .tdm__label:first-child { margin-top: 0; }
.tdm__hint { margin: 8px 0 0; font-size: .74rem; color: var(--td-sub); }

.tdm__field { position: relative; }
.tdm__in {
  display: block;
  width: 100%;
  height: 50px;
  padding: 0 40px 0 16px;
  border: 1px solid var(--td-line);
  border-radius: 2px;
  background: #fff;
  font: inherit;
  font-size: .95rem;
  color: var(--td-ink);
  appearance: none;
  -webkit-appearance: none;
}
.tdm__in::placeholder { color: #22384b; opacity: .9; }
.tdm__in--lg {
  height: 56px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 1.05rem;
}
.tdm__in--lg::placeholder { color: #8a9bab; }
.tdm__in:focus { outline: none; border-color: var(--td-blue); box-shadow: 0 0 0 3px rgba(30, 152, 214, .15); }
.tdm__ta { height: auto; padding: 12px 16px; border-radius: 8px; resize: vertical; }
select.tdm__in { cursor: pointer; }
.tdm__caret {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: #445;
  pointer-events: none;
}

/* Resort picker: tags ride inside the box, ahead of the text. */
.tdm__combo {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 50px;
  padding: 6px 40px 6px 10px;
  border: 1px solid var(--td-line);
  border-radius: 2px;
  background: #fff;
}
.tdm__combo:focus-within { border-color: var(--td-blue); box-shadow: 0 0 0 3px rgba(30, 152, 214, .15); }
.tdm__tags { display: contents; }
.tdm__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 6px 0 12px;
  border-radius: 999px;
  background: var(--td-tint);
  font-size: .85rem;
  font-weight: 600;
  color: var(--td-ink);
}
.tdm__tag button {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(12, 58, 90, .12);
  color: var(--td-ink);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
}
.tdm__combo .tdm__in {
  flex: 1 1 160px;
  width: auto;
  height: 36px;
  padding: 0 6px;
  border: 0;
  box-shadow: none;
}
.tdm__list {
  position: absolute;
  top: calc(100% + 4px);
  left: -1px;
  right: -1px;
  z-index: 5;
  max-height: 240px;
  margin: 0;
  padding: 6px 0;
  overflow-y: auto;
  list-style: none;
  border: 1px solid var(--td-line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(12, 58, 90, .14);
}
.tdm__list li { padding: 10px 16px; font-size: .92rem; cursor: pointer; }
.tdm__list li:hover,
.tdm__list li.is-active { background: var(--td-tint); }
.tdm__list li[aria-selected="true"] { font-weight: 700; }
.tdm__list li[aria-disabled="true"] { color: #9aa8b5; cursor: default; background: none; }
.tdm__list .tdm__none { color: var(--td-muted); cursor: default; }

/* Dates: two cells in one box. */
.tdm__dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--td-line);
  border-radius: 2px;
  background: #fff;
}
.tdm__date {
  display: block;
  padding: 16px 20px 10px;
  cursor: pointer;
}
.tdm__date + .tdm__date { border-left: 1px solid var(--td-line); }
.tdm__dl {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--td-ink);
}
.tdm__dl svg { width: 18px; height: 18px; }
.tdm__date input {
  display: block;
  width: 100%;
  height: 32px;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: .95rem;
  color: var(--td-ink);
  cursor: pointer;
}
.tdm__date input::placeholder { color: #8a9bab; }
.tdm__date input:focus { outline: none; }
.tdm__date:focus-within { box-shadow: inset 0 0 0 2px var(--td-blue); }

.tdm__row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }

/* Counters */
.tdm__count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--td-line);
  background: #fff;
}
.tdm__count + .tdm__count { border-top: 0; }
.tdm__count b { display: block; font-size: .92rem; font-weight: 600; }
.tdm__count small { display: block; margin-top: 2px; font-size: .74rem; color: var(--td-muted); }
.tdm__stepper { display: inline-flex; align-items: center; gap: 4px; }
.tdm__stepper button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--td-line);
  border-radius: 50%;
  background: #fff;
  color: var(--td-ink);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}
.tdm__stepper button:hover:not(:disabled) { border-color: var(--td-blue); color: var(--td-blue); }
.tdm__stepper button:disabled { opacity: .35; cursor: default; }
.tdm__stepper input {
  width: 34px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  color: var(--td-ink);
  -moz-appearance: textfield;
}
.tdm__stepper input::-webkit-inner-spin-button,
.tdm__stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Chips & tiles */
.tdm__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tdm__chip { position: relative; cursor: pointer; }
.tdm__chip span {
  display: inline-block;
  padding: 9px 14px;
  border: 1px solid var(--td-line);
  border-radius: 999px;
  background: #fff;
  font-size: .85rem;
}
.tdm__chip input:checked + span { background: var(--td-blue); border-color: var(--td-blue); color: #fff; }

.tdm__grid { display: grid; gap: 8px; }
.tdm__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tdm__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tdm__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tdm__grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.tdm__tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 6px;
  border: 1px solid var(--td-line);
  border-radius: 4px;
  background: #fff;
  font-size: .78rem;
  line-height: 1.25;
  text-align: center;
  color: var(--td-ink);
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.tdm__tile--ic { min-height: 70px; }
.tdm__tile svg { width: 18px; height: 18px; color: var(--td-sub); }
.tdm__tile:hover { border-color: var(--td-blue); }
.tdm__tile:has(input:checked) { background: var(--td-blue); border-color: var(--td-blue); color: #fff; }
.tdm__tile:has(input:checked) svg { color: #fff; }
.tdm__tile:has(input:focus-visible),
.tdm__card:has(input:focus-visible),
.tdm__opt:has(input:focus-visible) { outline: 2px solid var(--td-blue); outline-offset: 2px; }

/* Budget */
.tdm__budget {
  padding: 18px 20px 14px;
  border: 1px solid var(--td-line);
  border-radius: 8px;
  background: #fff;
}
.tdm__money {
  display: block;
  margin-bottom: 12px;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--td-ink);
}
.tdm__budget input[type="range"] {
  width: 100%;
  height: 6px;
  margin: 0;
  border-radius: 3px;
  background: linear-gradient(to right, var(--td-blue) var(--td-fill, 12%), var(--td-hair) var(--td-fill, 12%));
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.tdm__budget input[type="range"]::-webkit-slider-thumb {
  width: 22px; height: 22px; border: 3px solid #fff; border-radius: 50%;
  background: var(--td-blue); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); -webkit-appearance: none;
}
.tdm__budget input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border: 3px solid #fff; border-radius: 50%;
  background: var(--td-blue); box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
.tdm__scale { display: flex; justify-content: space-between; margin-top: 10px; font-size: .7rem; color: var(--td-muted); }

/* Add-on cards */
.tdm__card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 12px 18px;
  border: 1px solid var(--td-line);
  border-radius: 6px;
  background: #fff;
  font-size: .95rem;
  font-weight: 600;
  color: var(--td-ink);
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.tdm__card svg { flex: none; width: 20px; height: 20px; color: var(--td-sub); }
.tdm__card:hover { border-color: var(--td-blue); }
.tdm__card:has(input:checked) { background: var(--td-blue); border-color: var(--td-blue); color: #fff; }
.tdm__card:has(input:checked) svg { color: #fff; }

/* Contact method */
.tdm__opt {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 158px;
  padding: 16px 10px;
  border: 2px solid var(--td-line);
  border-radius: 10px;
  background: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  color: var(--td-ink);
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.tdm__opt svg { width: 30px; height: 30px; stroke-width: 1.6; }
.tdm__opt:hover { border-color: var(--td-blue); }
.tdm__opt:has(input:checked) { background: var(--td-blue); border-color: var(--td-blue); color: #fff; }

.tdm__submit {
  display: block;
  width: 100%;
  height: 58px;
  margin-top: 42px;
  border: 0;
  border-radius: 6px;
  background: var(--td-blue);
  color: #fff;
  font: inherit;
  font-size: 1.3rem;
  font-weight: 400;
  cursor: pointer;
  transition: background-color .15s, opacity .15s;
}
.tdm__submit:hover { background: var(--td-blue-d); }
.tdm__submit:disabled { opacity: .6; cursor: progress; }
.tdm__submit--auto { width: auto; min-width: 180px; margin: 30px auto 0; padding: 0 30px; }
.tdm__fine { margin: 38px 0 0; font-size: .95rem; color: var(--td-sub); }
.tdm__fine a { color: inherit; }

.tdm__err { margin: 8px 0 0; font-size: .82rem; font-weight: 600; color: #c0392b; }
.tdm__err:empty { display: none; }
.tdm__err--form { margin-top: 14px; }
.tdm .is-invalid,
.tdm .is-invalid.tdm__dates,
.tdm .is-invalid.tdm__combo { border-color: #d9534f; }

/* ------------------------------------------------------------------ sent */
.tdm__done { padding: clamp(50px, 9vw, 110px) 24px; text-align: center; }
.tdm__done .tdm__sub { max-width: 46ch; margin-inline: auto; }
.tdm__doneic {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--td-tint);
  color: var(--td-blue);
}
.tdm__doneic svg { width: 34px; height: 34px; stroke-width: 2.4; }

/* ---------------------------------------------------------------- footer */
.tdm__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 clamp(18px, 3.5vw, 40px);
  padding: 26px 0 22px;
  border-top: 1px solid var(--td-hair);
  font-size: .92rem;
  color: var(--td-sub);
}
.tdm__badges { display: flex; flex-wrap: wrap; gap: 10px; }
.tdm__badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--td-hair);
  border-radius: 999px;
  background: #fff;
}
.tdm__badges svg { width: 14px; height: 14px; color: #d4a017; }

/* ------------------------------------------------------------ small screens */
@media (max-width: 860px) {
  .tdm__step { grid-template-columns: minmax(0, 1fr); padding-bottom: 44px; }
  .tdm__num { width: 46px; height: 46px; margin-bottom: 12px; font-size: 1.25rem; }
  .tdm__sub { margin-top: 10px; }
  .tdm__grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .tdm { padding: 0; }
  .tdm__sheet { height: 100%; border-radius: 0; }
  .tdm__grid--4,
  .tdm__grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tdm__grid--2,
  .tdm__row2,
  .tdm__dates { grid-template-columns: minmax(0, 1fr); }
  .tdm__date + .tdm__date { border-left: 0; border-top: 1px solid var(--td-line); }
  .tdm__opt { min-height: 96px; font-size: .95rem; }
  .tdm__tel span, .tdm__eyebrow { letter-spacing: .14em; }
  .tdm__submit { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tdm__scrim, .tdm__sheet { animation: none; }
}
body.tdm-open { overflow: hidden; }

/* =====================================================================
   The header button — the site's gold, white keyline inside a lighter
   gold ring. Takes the Tickets button's slot (.gtix) in the header grid.
   ===================================================================== */
.gtix.gdmt,
:root[data-nav="top"] .ghead .gtix.gdmt {
  height: 44px;
  padding: 0 20px;
  border: 2px solid #fff;
  border-radius: 12px;
  background: #BD830D;
  box-shadow: 0 0 0 3px #D69C1E;
  color: #fff !important;
  font-family: 'Montserrat', 'Poppins', 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  cursor: pointer;
}
.gtix.gdmt:hover,
:root[data-nav="top"] .ghead .gtix.gdmt:hover { background: #a8740b; }
.gtix.gdmt:focus-visible { outline: 2px solid #0b3a5b; outline-offset: 4px; }
@media (max-width: 600px) {
  .gtix.gdmt { height: 38px; padding: 0 12px; font-size: 11px; border-radius: 10px; }
  .gtix.gdmt span { display: inline; }
}
