/* TALKK Trip Planner - Travel Buddies theme
   Headings use Degular (loaded by the site via Adobe Fonts / Bricks).
   Tokens can be overridden from Bricks global CSS on .tp */

.tp {
  --tp-cream: #faf7f2;
  --tp-cream-2: #f3efe7;
  --tp-ink: #1c1c1c;
  --tp-muted: #6b6b6b;
  --tp-line: #dbefec;
  --tp-teal: #0d6f6b;
  --tp-teal-deep: #0f3f3d;
  --tp-teal-tint: #e6f3f1;
  --tp-coral: #f9744f;
  --tp-coral-deep: #e8613d;
  --tp-coral-tint: #ffe1d6;
  --tp-yellow: var(--yellow, #f3f372); /* site global */
  --tp-sky: #b8e6f2;
  --tp-lavender: #ead0f8;
  --tp-white: #fff;
  --tp-radius: 20px;
  --tp-radius-sm: 14px;
  --tp-pill: 999px;
  --tp-font-heading: "Degular", "Degular Display", system-ui, sans-serif;
  --tp-font-body: inherit;
  --tp-focus: 0 0 0 3px rgba(13, 111, 107, 0.25);
  --tp-scroll-offset: 40px; /* space above the stepper when a step change scrolls the page; increase for a sticky header */

  font-family: var(--tp-font-body);
  scroll-margin-top: var(--tp-scroll-offset);
  color: var(--tp-ink);
  line-height: 1.5;
  container-type: inline-size;
}

.tp *, .tp *::before, .tp *::after { box-sizing: border-box; }
.tp button { font: inherit; cursor: pointer; }
.tp input, .tp select, .tp textarea { font: inherit; color: inherit; }
.tp :focus-visible { outline: none; box-shadow: var(--tp-focus); }

/* ---------- Stepper ---------- */
.tp-stepper {
  display: flex;
  align-items: flex-start;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}
.tp-step { flex: 1; position: relative; text-align: center; min-width: 0; }
.tp-step::before {
  content: "";
  position: absolute;
  top: 17px;
  left: -50%;
  right: 50%;
  height: 2px;
  background: var(--tp-line);
}
.tp-step:first-child::before { display: none; }
.tp-step.is-done::before, .tp-step.is-current::before { background: var(--tp-teal); }
.tp-step__pill {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--tp-line);
  background: var(--tp-white);
  color: var(--tp-muted);
  font-weight: 600;
  font-size: 14px;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.tp-step.is-done .tp-step__pill { background: var(--tp-teal); border-color: var(--tp-teal); color: var(--tp-white); }
.tp-step.is-current .tp-step__pill { background: var(--tp-coral); border-color: var(--tp-coral); color: var(--tp-white); transform: scale(1.1); }
button.tp-step__pill { cursor: pointer; }
button.tp-step__pill:hover { background: var(--tp-teal-deep); border-color: var(--tp-teal-deep); color: var(--tp-white); }
.tp-step:has(button.tp-step__pill:hover) .tp-step__label { color: var(--tp-ink); }
.tp-step__pill svg { width: 14px; height: 14px; }
.tp-step__label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--tp-muted);
  transition: color .2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tp-step.is-current .tp-step__label { color: var(--tp-ink); font-weight: 600; }

/* Mobile progress */
.tp-progress { display: none; margin-bottom: 24px; }
.tp-progress__meta { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--tp-muted); margin-bottom: 8px; }
.tp-progress__meta strong { color: var(--tp-ink); }
.tp .tp-progress__label {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0; padding: 4px 0; border: 0; background: transparent; box-shadow: none;
  font-size: 14px; font-weight: 500; color: var(--tp-ink); line-height: 1.2;
}
.tp .tp-progress__label svg { width: 16px; height: 16px; transition: transform .2s; }
.tp .tp-progress__label[aria-expanded="true"] svg { transform: rotate(180deg); }
.tp-progress__bar { height: 8px; border-radius: var(--tp-pill); background: var(--tp-line); overflow: hidden; }
.tp-progress__fill { height: 100%; background: var(--tp-coral); border-radius: var(--tp-pill); transition: width .3s ease; }
.tp-progress__list {
  list-style: none; margin: 12px 0 0; padding: 6px;
  border: 1.5px solid var(--tp-line); border-radius: var(--tp-radius); background: var(--tp-white);
}
.tp-progress__list.is-hidden { display: none; }
.tp-progress__item > button, .tp-progress__item > span {
  display: flex; align-items: center; gap: 12px; width: 100%;
  margin: 0; padding: 10px 12px; border: 0; border-radius: var(--tp-radius-sm);
  background: transparent; box-shadow: none; text-align: left;
  font-size: 15px; font-weight: 500; color: var(--tp-ink); line-height: 1.3;
}
.tp-progress__item > span { color: var(--tp-muted); }
.tp-progress__item > button:hover { background: var(--tp-cream-2); }
.tp-progress__item.is-current > button { background: var(--tp-teal-tint); font-weight: 600; }
.tp-progress__pill {
  display: inline-grid; place-items: center; flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--tp-line); background: var(--tp-white); color: var(--tp-muted);
  font-size: 12px; font-weight: 600;
}
.tp-progress__pill svg { width: 12px; height: 12px; }
.tp-progress__item.is-done .tp-progress__pill { background: var(--tp-teal); border-color: var(--tp-teal); color: var(--tp-white); }
.tp-progress__item.is-current .tp-progress__pill { background: var(--tp-coral); border-color: var(--tp-coral); color: var(--tp-white); }

/* ---------- Layout ---------- */
.tp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: start;
}
.tp-main { min-width: 0; }

/* ---------- Step icon badge ---------- */
.tp-panel__head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 32px; }
.tp-panel__head .tp-lead { margin-bottom: 0; }
.tp-badge {
  flex: none;
  display: grid; place-items: center;
  width: 60px; height: 60px;
  border-radius: 18px;
  color: var(--tp-ink);
  transform: rotate(-4deg);
}
.tp-badge svg { width: 30px; height: 30px; }
.tp-badge--0 { background: var(--tp-yellow); }
.tp-badge--1 { background: var(--tp-sky); }
.tp-badge--2 { background: var(--tp-lavender); }
.tp-badge--3 { background: #ffb59e; }

/* ---------- Headings ---------- */
.tp-heading {
  font-family: var(--tp-font-heading);
  font-weight: 700;
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--tp-ink);
  margin: 0 0 8px;
}
.tp-lead { margin: 0 0 32px; color: var(--tp-muted); font-size: 16px; }

.tp-field { margin-bottom: 30px; }
.tp-field.is-hidden { display: none; }
.tp-label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: var(--tp-ink);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.tp-label .tp-optional {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: var(--tp-pill);
  background: var(--tp-lavender);
  font-size: 12px;
  font-weight: 500;
  color: var(--tp-ink);
  vertical-align: middle;
}
.tp-hint { display: block; font-size: 14px; color: var(--tp-muted); margin-bottom: 12px; }

.tp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tp-row .tp-field { margin-bottom: 0; }
.tp-row + .tp-field, .tp-row + .tp-row { margin-top: 30px; }

/* ---------- Inputs (pill shaped like the site) ---------- */
.tp-input, .tp-select, .tp-textarea {
  width: 100%;
  padding: 13px 20px;
  border: 1.5px solid var(--tp-line);
  border-radius: var(--tp-pill);
  background: var(--tp-white);
  transition: border-color .15s;
  appearance: none;
}
.tp-input::placeholder, .tp-textarea::placeholder { color: #a5a29c; }
.tp-input:hover, .tp-select:hover, .tp-textarea:hover { border-color: #cdc6ba; }
.tp-input:focus, .tp-select:focus, .tp-textarea:focus { border-color: var(--tp-teal); }
.tp-textarea { min-height: 130px; resize: vertical; border-radius: var(--tp-radius); }
.tp-select-wrap { position: relative; }
.tp-select-wrap::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--tp-ink);
  border-bottom: 2px solid var(--tp-ink);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.tp-select { padding-right: 44px; }
.tp-inline { display: flex; gap: 12px; align-items: center; }
.tp-inline .tp-input { max-width: 120px; text-align: center; }
.tp-inline .tp-select-wrap { flex: 1; }

/* Number stepper */
.tp-count { display: inline-flex; align-items: center; border: 1.5px solid var(--tp-line); border-radius: var(--tp-pill); background: var(--tp-white); overflow: hidden; }
.tp-count button {
  width: 46px; height: 48px;
  border: 0; background: transparent; color: var(--tp-teal);
  font-size: 22px; font-weight: 500;
}
.tp-count button:hover { background: var(--tp-teal-tint); }
.tp-count input {
  width: 64px; height: 48px; text-align: center;
  border: 0; font-weight: 700; font-size: 17px; background: transparent;
  -moz-appearance: textfield;
}
.tp-count input::-webkit-inner-spin-button { display: none; }

/* ---------- Choice cards ---------- */
.tp-options { display: grid; gap: 12px; }
.tp-options--2 { grid-template-columns: repeat(2, 1fr); }
.tp-options--3 { grid-template-columns: repeat(3, 1fr); }
.tp-options--4 { grid-template-columns: repeat(4, 1fr); }
.tp-options--list { grid-template-columns: 1fr; }
.tp-options--chips { display: flex; flex-wrap: wrap; gap: 10px; }

.tp-opt {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1.5px solid var(--tp-line);
  border-radius: var(--tp-radius);
  background: var(--tp-white);
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.tp-opt:hover { border-color: var(--tp-teal); }
.tp-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tp-opt:has(input:focus-visible) { box-shadow: var(--tp-focus); }
.tp-opt:has(input:checked) { border-color: var(--tp-teal); background: var(--tp-teal-tint); }
.tp-opt__mark {
  flex: 0 0 22px;
  width: 22px; height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  border: 1.5px solid var(--tp-line);
  display: grid; place-items: center;
  background: var(--tp-white);
  transition: background .15s, border-color .15s;
}
.tp-opt--check .tp-opt__mark { border-radius: 7px; }
.tp-opt__mark svg { width: 12px; height: 12px; opacity: 0; color: var(--tp-white); }
.tp-opt:has(input:checked) .tp-opt__mark { background: var(--tp-teal); border-color: var(--tp-teal); }
.tp-opt:has(input:checked) .tp-opt__mark svg { opacity: 1; }
.tp-opt__body { min-width: 0; }
.tp-opt--icon { align-items: center; }
.tp-opt--icon .tp-opt__mark { order: 3; margin: 0 0 0 auto; }
.tp-opt__icon {
  flex: none; order: 1;
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--tp-teal-tint);
  color: var(--tp-teal);
  transition: background .15s, color .15s;
}
.tp-opt__icon svg { width: 22px; height: 22px; }
.tp-opt--icon .tp-opt__body { order: 2; }
.tp-opt:has(input:checked) .tp-opt__icon { background: var(--tp-teal); color: var(--tp-white); }
.tp-opt__title { display: block; font-weight: 400; font-size: 15px; color: var(--tp-ink); }
.tp-opt__hint { display: block; font-size: 13px; color: var(--tp-muted); margin-top: 2px; }

.tp-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border: 1.5px solid var(--tp-line);
  border-radius: var(--tp-pill);
  background: var(--tp-white);
  font-size: 14px; font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: border-color .15s, background .15s, color .15s;
}
.tp-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tp-chip:hover { border-color: #cdc6ba; }
.tp-chip:has(input:focus-visible) { box-shadow: var(--tp-focus); }
.tp-chip:has(input:checked) { background: var(--tp-teal); border-color: var(--tp-teal); color: var(--tp-white); }
.tp-chip svg { width: 12px; height: 12px; display: none; }
.tp-chip:has(input:checked) svg { display: block; }

/* Photo cards (locations and activities with images) */
.tp-options--cards { grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tp-card {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--tp-radius);
  overflow: hidden;
  background: var(--tp-teal-deep);
  cursor: pointer;
  isolation: isolate;
  box-shadow: 0 0 0 0 var(--tp-teal);
  transition: box-shadow .15s, transform .15s;
}
.tp-card:hover { transform: translateY(-2px); }
.tp-card input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tp-card:has(input:focus-visible) { box-shadow: var(--tp-focus); }
.tp-card:has(input:checked) { box-shadow: 0 0 0 2px #ff704e; }
.tp-card__img {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.tp-card:hover .tp-card__img { transform: scale(1.04); }
.tp-card::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(to top, rgb(0 0 0 / 55%) 0%, rgb(11 11 11 / 10%) 55%, rgba(15, 63, 61, 0) 100%);
}
.tp-card--plain { background: #97edb2; }
.tp-card--plain::after { display: none; }
.tp-card__icon { position: absolute; inset: 0; display: grid; place-items: center; color: var(--tp-teal-deep); }
.tp-card__icon svg { width: 36px; height: 36px; }
.tp-card__mark {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--tp-white);
  background: rgba(255, 255, 255, .15);
  display: grid; place-items: center;
  transition: background .15s, border-color .15s;
}
.tp-card--plain .tp-card__mark { border-color: var(--tp-teal-deep); background: transparent; }
.tp-card__mark svg { width: 12px; height: 12px; color: var(--tp-white); opacity: 0; }
.tp-card:has(input:checked) .tp-card__mark { background: #ff704e; border-color: #ff704e; }
.tp-card:has(input:checked) .tp-card__mark svg { opacity: 1; }
.tp-card__body { position: absolute; left: 14px; right: 14px; bottom: 9px; z-index: 1; color: var(--tp-white); }
.tp-card--plain .tp-card__body { color: var(--tp-teal-deep); }
.tp-card__title { display: block; font-weight: 400; font-size: 14px; line-height: 1.2; }
.tp-card__hint { display: block; font-size: 12px; opacity: .85; margin-top: 2px; }

/* Route picker (start + finish on one grid) */
.tp-route__roles { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin-bottom: 16px; }
.tp-route__arrow {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--tp-white);
  border: 1.5px solid var(--tp-line);
  color: var(--tp-ink);
}
.tp-route__arrow svg { width: 18px; height: 18px; }
.tp .tp-route__role {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  margin: 0; padding: 12px 16px;
  border: 1.5px solid var(--tp-line); border-radius: var(--tp-radius-sm);
  background: var(--tp-white); color: var(--tp-ink); text-align: left; line-height: 1.3;
  cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s;
}
.tp .tp-route__role:hover { border-color: var(--tp-teal); }
.tp .tp-route__role--start.is-active { border-color: var(--tp-teal); background: var(--tp-teal-tint); }
.tp .tp-route__role--finish.is-active { border-color: #ff704e; background: var(--tp-coral-tint); }
.tp .tp-route__role--finish:hover { border-color: #ff704e; }
.tp-route__role-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--tp-muted); }
.tp-route__role--start.is-active .tp-route__role-label { color: var(--tp-teal); }
.tp-route__role--finish.is-active .tp-route__role-label { color: var(--tp-coral-deep); }
.tp-route__role-value { font-size: 15px; font-weight: 600; }
.tp .tp-card--route, .tp .tp-chip--route { margin: 0; font: inherit; text-align: left; border-color: var(--tp-line); }
.tp .tp-card--route { padding: 0; border: 0; color: var(--tp-white); }
.tp .tp-card--route.tp-card--plain { color: var(--tp-teal-deep); }
.tp-card--route.is-start { box-shadow: 0 0 0 2px var(--tp-teal); }
.tp-card--route.is-finish { box-shadow: 0 0 0 2px #ff704e; }
.tp-card--route.is-start.is-finish { box-shadow: 0 0 0 2px var(--tp-teal), 0 0 0 4px #ff704e; }
.tp-route__tags { position: absolute; top: 10px; left: 10px; z-index: 1; display: flex; gap: 6px; }
.tp-route__tag {
  display: inline-block; padding: 3px 10px;
  border-radius: var(--tp-pill);
  font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--tp-white);
}
.tp-route__tag--start { background: var(--tp-teal); }
.tp-route__tag--finish { background: #ff704e; }
.tp .tp-chip--route { gap: 8px; }
.tp .tp-chip--route.is-start { border-color: var(--tp-teal); }
.tp .tp-chip--route.is-finish { border-color: #ff704e; }
.tp .tp-chip--route .tp-route__tag { padding: 1px 8px; font-size: 11px; }

/* Follow-up box (the yellow from the departures section) */
.tp-followup {
  margin-top: 14px;
  padding: 18px;
  border-radius: var(--tp-radius);
  background: var(--tp-yellow);
}
.tp-followup.is-hidden { display: none; }
.tp-followup .tp-label { font-size: 14px; }
.tp-followup .tp-field:last-child { margin-bottom: 0; }
.tp-followup .tp-opt { border-color: transparent; }
.tp-followup .tp-opt:has(input:checked) { border-color: var(--tp-teal); }

/* ---------- Date picker (Flatpickr) ---------- */
.tp-date-display { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1c1c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; background-size: 18px; padding-right: 48px; }
.flatpickr-calendar {
  font-family: inherit;
  border: 1.5px solid var(--tp-line, #dbefec);
  border-radius: 20px;
  box-shadow: 0 14px 36px rgba(28, 28, 28, .12);
  padding: 8px;
  width: 322px;
  background: #fff;
}
.flatpickr-calendar.arrowTop::before, .flatpickr-calendar.arrowTop::after,
.flatpickr-calendar.arrowBottom::before, .flatpickr-calendar.arrowBottom::after { display: none; }
.flatpickr-months { padding: 6px 4px 10px; }
.flatpickr-months .flatpickr-month { height: 36px; color: #1c1c1c; }
.flatpickr-current-month { font-size: 15px; font-weight: 700; padding-top: 4px; letter-spacing: -0.01em; }
.flatpickr-current-month .numInputWrapper { width: 5.5ch; }
.flatpickr-current-month input.cur-year { font-weight: 700; }
.flatpickr-months .flatpickr-prev-month, .flatpickr-months .flatpickr-next-month { top: 4px; padding: 8px; color: #0d6f6b; fill: #0d6f6b; }
.flatpickr-months .flatpickr-prev-month:hover svg, .flatpickr-months .flatpickr-next-month:hover svg { fill: #0f3f3d; }
.flatpickr-weekdays { height: 30px; }
span.flatpickr-weekday { font-size: 12px; font-weight: 600; color: #6b6b6b; }
.dayContainer { width: 306px; min-width: 306px; max-width: 306px; padding: 4px 0 6px; }
.flatpickr-days { width: 306px; }
.flatpickr-day { height: 40px; line-height: 40px; max-width: 40px; margin: 1px 0; border-radius: 50%; color: #1c1c1c; font-weight: 500; }
.flatpickr-day:hover, .flatpickr-day.prevMonthDay:hover, .flatpickr-day.nextMonthDay:hover { background: #f3f372; border-color: #f3f372; }
.flatpickr-day.today { border-color: #0d6f6b; color: #0d6f6b; }
.flatpickr-day.today:hover { background: #f3f372; color: #1c1c1c; }
.flatpickr-day.selected, .flatpickr-day.selected:hover, .flatpickr-day.selected.today { background: #f9744f; border-color: #f9744f; color: #fff; font-weight: 700; }
.flatpickr-day.flatpickr-disabled, .flatpickr-day.flatpickr-disabled:hover { color: #cdc9c1; }
.flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay { color: #bdb8ae; }

/* ---------- Errors ---------- */
.tp-error { display: none; margin-top: 8px; font-size: 13px; font-weight: 500; color: var(--tp-coral-deep); }
.tp-field.has-error .tp-error { display: block; }
.tp-field.has-error .tp-input, .tp-field.has-error .tp-select, .tp-field.has-error .tp-textarea { border-color: var(--tp-coral); }
.tp-alert {
  margin-bottom: 20px;
  padding: 14px 20px;
  border-radius: var(--tp-radius-sm);
  background: var(--tp-coral-tint);
  color: #8a3a22;
  font-size: 14px;
}
.tp-alert.is-hidden { display: none; }

/* ---------- Footer nav ---------- */
.tp-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1.5px solid var(--tp-line);
}
.tp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px;
  padding: 12px 28px;
  border-radius: var(--tp-pill);
  border: 1.5px solid transparent;
  font-weight: 500;
  font-size: 15px;
  transition: background .15s, border-color .15s, transform .1s;
}
.tp-btn svg { width: 18px; height: 18px; }
.tp-btn:active { transform: translateY(1px); }
.tp-btn--ghost { background: transparent; border-color: var(--tp-ink); color: var(--tp-ink); }
.tp-btn--ghost:hover { background: var(--tp-white); }
.tp-btn--primary { background: var(--tp-coral); color: var(--tp-white); }
.tp-btn--primary:hover { background: var(--tp-coral-deep); }
.tp-btn--submit { background: var(--tp-teal); }
.tp-btn--submit:hover { background: var(--tp-teal-deep); }
.tp-btn[disabled] { opacity: .6; cursor: wait; }
.tp-btn--ghost.is-hidden { visibility: hidden; }

/* ---------- Overview panel (the dark teal tour card) ---------- */
.tp-aside { position: sticky; top: 24px; }
.tp-overview {
  border-radius: 24px;
  overflow: hidden;
  background: var(--tp-teal-deep);
  color: var(--tp-white);
}
.tp-overview__head { padding: 26px 26px 18px; }
.tp-overview__eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--tp-pill);
  background: var(--tp-yellow);
  color: var(--tp-ink);
  font-size: 12px;
  font-weight: 500;
}
.tp-overview__title {
  font-family: var(--tp-font-heading);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 14px 0 4px;
}
.tp-overview__sub { font-size: 14px; opacity: .75; }
.tp-overview__body { padding: 4px 26px 8px; }
.tp-overview__row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  align-items: start;
}
.tp-overview__row:last-child { border-bottom: 0; }
.tp-overview__row svg { width: 18px; height: 18px; color: var(--tp-yellow); margin-top: 2px; }
.tp-overview__row.is-empty svg { color: rgba(255, 255, 255, .3); }
.tp-overview__k { display: block; font-size: 12px; color: rgba(255, 255, 255, .6); }
.tp-overview__v { display: block; font-size: 15px; font-weight: 600; color: var(--tp-white); word-wrap: break-word; letter-spacing: -0.01em; }
.tp-overview__row.is-empty .tp-overview__v { font-weight: 400; color: rgba(255, 255, 255, .4); }
.tp-overview__foot {
  display: flex; gap: 10px; align-items: center;
  margin: 12px 14px 14px;
  padding: 12px 16px;
  border-radius: var(--tp-radius-sm);
  background: rgba(255, 255, 255, .08);
  font-size: 13px; color: rgba(255, 255, 255, .8);
}
.tp-overview__foot svg { width: 18px; height: 18px; color: var(--tp-yellow); flex: none; }

.tp-aside__toggle { display: none; }

/* ---------- Success ---------- */
.tp-success {
  text-align: center;
  padding: 56px 24px;
  border-radius: 24px;
  background: var(--tp-yellow);
}
.tp-success__icon {
  width: 68px; height: 68px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--tp-coral);
  color: var(--tp-white);
  display: grid; place-items: center;
}
.tp-success__icon svg { width: 32px; height: 32px; }
.tp-success p { max-width: 46ch; margin: 0 auto; color: var(--tp-ink); }

/* ---------- Theme overrides ----------
   Bricks and most themes style bare input/button/label elements. These rules
   carry enough specificity to win without !important. */
.tp .tp-input, .tp .tp-select, .tp .tp-textarea {
  height: auto; min-height: 0; margin: 0;
  box-shadow: none; line-height: 1.5; color: var(--tp-ink);
  font-size: 16px; /* never below 16px: iOS Safari zooms the page when focusing smaller inputs */
}
.tp .tp-textarea { min-height: 130px; }
.tp .tp-input { border-radius: var(--tp-pill); }
.tp .tp-select { border-radius: var(--tp-pill); }
.tp .tp-count > input[type="number"] {
  width: 64px; height: 48px; min-height: 0; margin: 0; padding: 0;
  border: 0; border-radius: 0; box-shadow: none; background: transparent;
  text-align: center; font-weight: 700; font-size: 17px; color: var(--tp-ink); /* 16px+ for iOS */
}
.tp .tp-count > button {
  width: 46px; height: 48px; min-height: 0; margin: 0; padding: 0;
  border: 0; border-radius: 0; box-shadow: none; background: transparent;
  color: var(--tp-teal); font-size: 22px; font-weight: 500; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
}
.tp .tp-count > button:hover { background: var(--tp-teal-tint); }
.tp .tp-btn { margin: 0; line-height: 1.2; text-decoration: none; letter-spacing: 0; text-transform: none; }
.tp .tp-chip, .tp .tp-opt { margin: 0; color: var(--tp-ink); line-height: 1.4; font-weight: 500; text-transform: none; }
.tp .tp-chip:has(input:checked) { color: var(--tp-white); }
.tp .tp-label { margin: 0 0 4px; text-transform: none; }
.tp .tp-label + .tp-input, .tp .tp-label + .tp-select-wrap, .tp .tp-label + .tp-textarea, .tp .tp-label + .tp-options, .tp .tp-label + .tp-count, .tp .tp-label + .tp-inline, .tp .tp-label + .tp-route { margin-top: 10px; }
.tp .tp-hint { margin: 0 0 12px; }
.tp .tp-step__pill { margin: 0; padding: 0; line-height: 1; }

/* iOS Safari zooms the page when it focuses a field under 16px. This is the one
   place !important is justified: nothing on the site should be allowed to shrink
   these on a phone, whatever its specificity. */
@media (max-width: 767px) {
  .tp input:not([type="radio"]):not([type="checkbox"]),
  .tp select,
  .tp textarea { font-size: 16px !important; }
}

/* ---------- Honeypot ---------- */
.tp-hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Motion ---------- */
.tp-panel { animation: tp-in .25s ease; }
@keyframes tp-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .tp-panel { animation: none; }
  .tp * { transition: none !important; }
}

/* ---------- Responsive ---------- */
@container (max-width: 900px) {
  .tp-layout { grid-template-columns: 1fr; gap: 28px; }
  .tp-aside { position: static; order: 2; }
  .tp-aside__toggle {
    display: flex; width: 100%; justify-content: space-between; align-items: center;
    padding: 14px 22px;
    border: 1.5px solid var(--tp-ink);
    border-radius: var(--tp-pill);
    background: transparent;
    font-weight: 500; color: var(--tp-ink);
  }
  .tp-aside__toggle svg { width: 18px; height: 18px; transition: transform .2s; }
  .tp-aside.is-open .tp-aside__toggle svg { transform: rotate(180deg); }
  .tp-aside .tp-overview { display: none; margin-top: 12px; }
  .tp-aside.is-open .tp-overview { display: block; }
  .tp-options--4 { grid-template-columns: repeat(2, 1fr); }
  .tp-options--3 { grid-template-columns: repeat(2, 1fr); }
  .tp-options--cards { grid-template-columns: repeat(3, 1fr); }
}
@container (max-width: 640px) {
  .tp-panel__head { gap: 14px; margin-bottom: 24px; }
  .tp-badge { width: 48px; height: 48px; border-radius: 14px; }
  .tp-badge svg { width: 24px; height: 24px; }
  .tp-stepper { display: none; }
  .tp-progress { display: block; }
  .tp-row { grid-template-columns: 1fr; }
  .tp-options--2, .tp-options--3, .tp-options--4 { grid-template-columns: 1fr; }
  .tp-options--cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tp-route__roles { grid-template-columns: 1fr auto 1fr; gap: 6px; }
  .tp-route__arrow { width: 28px; height: 28px; }
  .tp-route__arrow svg { width: 14px; height: 14px; }
  .tp .tp-route__role { padding: 10px 12px; }
  .tp-route__role-value { font-size: 14px; }
  .tp-card__hint { display: none; }
  .tp-nav { flex-direction: column-reverse; align-items: stretch; }
  .tp-btn { width: 100%; }
  .tp-btn--ghost.is-hidden { display: none; }
}
