/* Plan My Trip Form Styles - SPCT */
:root {
  --pmt-deep: #005F5A;
  --pmt-deep-hover: #004a46;
  --pmt-aqua: #77C9C5;
  --pmt-mint: #CFEDEA;
  --pmt-footer: #2E4552;
  --pmt-ink: #1a1a1a;
  --pmt-grey: #595959;
  --pmt-line: #8a8a8a;
  --pmt-err: #9b1c1c;
  --pmt-white: #ffffff;
}

/* Hero focal point: 70% horizontal, 5% vertical */
.hero--plan-my-trip {
  background-position: 70% 5%;
  background-size: cover !important;
}

/* Page Section */
.plan-my-trip-section {
  background: var(--pmt-white);
  padding: 64px 0;
}
@media (max-width: 700px) {
  .plan-my-trip-section {
    padding: 40px 0;
  }
}

/* Card */
.plan-my-trip-card {
  background: var(--pmt-white);
  border: 2px solid var(--pmt-deep);
  border-radius: 12px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 40px 40px 32px;
  position: relative;
}
@media (max-width: 900px) {
  .plan-my-trip-card {
    max-width: 720px;
    padding: 36px 24px;
  }
}
@media (max-width: 700px) {
  .plan-my-trip-card {
    padding: 22px 16px;
  }
}

/* Layout: 2 columns above 900px */
.plan-my-trip-layout {
  display: block;
}
@media (min-width: 901px) {
  .plan-my-trip-layout {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 44px;
  }
}

/* Step Rail (Desktop > 900px) */
.plan-my-trip-rail {
  display: none;
}
@media (min-width: 901px) {
  .plan-my-trip-rail {
    display: block;
    padding: 6px 0 0;
    background: transparent !important;
    color: inherit !important;
    border: 0 !important;
  }
  .plan-my-trip-rail ol {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .plan-my-trip-rail li {
    position: relative;
    padding-bottom: 38px;
  }
  .plan-my-trip-rail li:last-child {
    padding-bottom: 0;
  }
  .plan-my-trip-rail li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 38px;
    bottom: 4px;
    width: 2px;
    background: #c9c9c9;
  }
  .plan-my-trip-rail li.done:not(:last-child)::after {
    background: var(--pmt-deep);
  }
  .plan-my-trip-rail button,
  .plan-my-trip-rail .ri {
    all: unset;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    width: 100%;
    text-align: right;
  }
  .plan-my-trip-rail button {
    cursor: pointer;
    border-radius: 8px;
  }
  .plan-my-trip-rail button:focus-visible {
    outline: 3px solid var(--pmt-deep);
    outline-offset: 3px;
  }
  .plan-my-trip-rail button:hover .rn {
    text-decoration: underline;
  }
  .plan-my-trip-rail .rt {
    display: block;
  }
  .plan-my-trip-rail .rn {
    display: block;
    font-family: var(--spct-font-body);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.3;
    color: var(--pmt-ink);
  }
  .plan-my-trip-rail .rs {
    display: block;
    font-family: var(--spct-font-body);
    font-weight: 400;
    font-size: 13px;
    line-height: 1.4;
    color: var(--pmt-grey);
  }
  .plan-my-trip-rail .rc {
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--pmt-line);
    background: var(--pmt-white);
    display: grid;
    place-items: center;
    position: relative;
    z-index: 1;
  }
  .plan-my-trip-rail .rc b {
    font-family: var(--spct-font-body);
    font-weight: 600;
    font-size: 14px;
    color: var(--pmt-grey);
  }
  .plan-my-trip-rail .rc svg {
    display: none;
    width: 15px;
    height: 15px;
  }
  .plan-my-trip-rail li.done .rc {
    border-color: var(--pmt-deep);
  }
  .plan-my-trip-rail li.done .rc b {
    display: none;
  }
  .plan-my-trip-rail li.done .rc svg {
    display: block;
  }
  .plan-my-trip-rail li.current .rc {
    background: var(--pmt-deep);
    border-color: var(--pmt-deep);
  }
  .plan-my-trip-rail li.current .rc b {
    color: var(--pmt-white);
  }
  .plan-my-trip-rail li.current .rn {
    font-weight: 700;
  }
}

/* Compact Progress Bar (<= 900px) */
.plan-my-trip-progress {
  display: flex;
  align-items: center;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.plan-my-trip-progress li {
  display: flex;
  align-items: center;
  flex: 1;
}
.plan-my-trip-progress li:last-child {
  flex: 0;
}
.plan-my-trip-progress .dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--pmt-grey);
  background: var(--pmt-white);
  display: grid;
  place-items: center;
  flex: none;
  font-size: 0;
}
.plan-my-trip-progress .dot svg {
  display: none;
  width: 14px;
  height: 14px;
}
.plan-my-trip-progress .done .dot {
  background: var(--pmt-deep);
  border-color: var(--pmt-deep);
}
.plan-my-trip-progress .done .dot svg {
  display: block;
}
.plan-my-trip-progress .current .dot {
  border-color: var(--pmt-deep);
  box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 20px var(--pmt-deep); /* taste-skill-ignore: radio control */
}
.plan-my-trip-progress .bar {
  flex: 1;
  height: 2px;
  background: #c9c9c9;
  margin-inline: 6px;
}
.plan-my-trip-progress .done .bar {
  background: var(--pmt-deep);
}
.mobname {
  display: none;
  margin: -10px 0 18px;
  font-family: var(--spct-font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--pmt-grey);
}
@media (max-width: 900px) {
  .mobname {
    display: block;
  }
}
@media (min-width: 901px) {
  .plan-my-trip-progress,
  .mobname {
    display: none !important;
  }
}

/* Screen Reader Only Utility */
.sr {
  position: absolute;
  width: 1px;
  height: 1px; /* taste-skill-ignore: screen-reader utility */
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Headings & Typography */
.plan-my-trip-pane h2 {
  font-family: var(--spct-font-heading);
  font-weight: 600;
  font-size: clamp(24px, 3.4vw, 30px);
  line-height: 1.25;
  color: var(--pmt-ink);
  margin: 0 0 8px;
}
.plan-my-trip-pane h2:focus {
  outline: none;
}
.plan-my-trip-pane .intro {
  font-family: var(--spct-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--pmt-grey);
  margin: 0 0 24px;
}
.plan-my-trip-pane .grp {
  font-family: var(--spct-font-heading);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  color: var(--pmt-ink);
  margin: 0 0 12px;
}

/* Form Fields */
.plan-my-trip-pane fieldset {
  border: 0;
  margin: 0 0 22px;
  padding: 0;
  min-width: 0;
}
.plan-my-trip-pane legend,
.plan-my-trip-pane .lbl {
  font-family: var(--spct-font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  color: var(--pmt-ink);
  padding: 0;
  margin-bottom: 10px;
  display: block;
}
.plan-my-trip-pane .opt {
  font-weight: 500;
  font-size: 14px;
  color: var(--pmt-grey);
  margin-left: 6px;
}
.plan-my-trip-pane .help {
  font-family: var(--spct-font-body);
  font-size: 14px;
  line-height: 1.4;
  color: var(--pmt-grey);
  margin: -4px 0 10px;
}
.plan-my-trip-pane input[type="text"],
.plan-my-trip-pane input[type="email"],
.plan-my-trip-pane input[type="tel"],
.plan-my-trip-pane input[type="number"],
.plan-my-trip-pane textarea,
.plan-my-trip-pane select {
  width: 100%;
  font-family: var(--spct-font-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--pmt-ink);
  background: var(--pmt-white);
  border: 1px solid var(--pmt-line);
  border-radius: 8px;
  padding: 12px 14px;
  min-height: 48px;
  box-sizing: border-box;
}
.plan-my-trip-pane textarea {
  resize: vertical;
}
.plan-my-trip-pane input[type="number"] {
  max-width: 140px;
}
.plan-my-trip-pane .field {
  margin-bottom: 22px;
}
.plan-my-trip-pane .row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 700px) {
  .plan-my-trip-pane .row2 {
    grid-template-columns: 1fr;
  }
}

/* Choice Rows */
.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  min-height: 44px;
  margin-bottom: 2px;
  cursor: pointer;
  font-family: var(--spct-font-body);
  font-weight: 500;
  font-size: 16px;
  color: var(--pmt-ink);
  box-sizing: border-box;
  transition: background-color 150ms ease;
}
.choice:hover {
  background-color: #eef8f7;
}
.choice input {
  width: 22px;
  height: 22px;
  accent-color: var(--pmt-deep);
  flex: none;
  margin: 0;
}
.choice:has(input:checked) {
  background-color: var(--pmt-mint);
}
.choice:has(input:focus-visible) {
  outline: 3px solid var(--pmt-deep);
  outline-offset: 2px;
}
.choice:has(input:disabled) {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Choice SMS Row */
.choice--sms {
  align-items: flex-start;
  cursor: default;
}
.choice--sms input {
  margin-top: 3px;
  cursor: pointer;
}
.smsl {
  font-weight: 600;
  cursor: pointer;
  display: block;
}
.disc {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--pmt-grey);
  font-weight: 400;
}
.disc a {
  color: var(--pmt-deep);
  font-weight: 600;
  text-decoration: underline;
}

/* Grid layout for options above 900px */
@media (min-width: 901px) {
  .pane-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 12px;
    align-items: start;
  }
  .pane-options-grid > legend,
  .pane-options-grid > .err,
  .pane-options-grid > .help {
    grid-column: 1 / -1;
  }
  section[data-step="5"]:not([hidden]) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
  }
  section[data-step="5"] > * {
    grid-column: 1 / -1;
  }
  section[data-step="5"] > .half {
    grid-column: auto;
  }
}

/* Dynamic Traveler Age Grid */
.agesfs {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.agesfs legend {
  padding: 0;
  margin-bottom: 4px;
}
.agesgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 16px;
}
@media (max-width: 700px) {
  .agesgrid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.agef label {
  display: block;
  font-family: var(--spct-font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--pmt-ink);
  margin-bottom: 4px;
}
.ages.invalid .agesgrid input[type="number"] {
  border: 1px solid var(--pmt-line);
}
.ages .agesgrid input[aria-invalid="true"] {
  border: 2px solid var(--pmt-err);
}

/* Progressive enhancement: No-JS traveler age fields */
.no-js-ages {
  display: none;
}
.no-js .no-js-ages {
  display: block;
}
.no-js .ages {
  display: none;
}
.no-js section[data-step] {
  display: block !important;
  margin-bottom: 40px;
  padding-bottom: 30px;
}
.no-js .plan-my-trip-actions {
  display: block !important;
  position: static !important;
}

/* Error Messages */
.err {
  display: none;
  align-items: flex-start;
  gap: 8px;
  color: var(--pmt-err);
  font-size: 14px;
  font-weight: 600;
  margin-top: 6px;
}
.err svg {
  flex: none;
  margin-top: 3px;
}
.invalid .err {
  display: flex;
}
.invalid input[type="text"],
.invalid input[type="email"],
.invalid input[type="tel"],
.invalid input[type="number"],
.invalid textarea,
.invalid select {
  border: 2px solid var(--pmt-err);
}

/* Section flow root */
section[data-step]:not([hidden]) {
  display: flow-root;
}

/* Actions Row & Sticky Bar */
.plan-my-trip-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 16px 0 0;
}
@media (max-width: 900px) {
  .plan-my-trip-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: var(--pmt-white);
    margin: 16px -24px 0;
    padding: 12px 24px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 2px solid #d9d9d9;
    box-shadow: 0 -4px 12px rgba(26, 26, 26, 0.08); /* taste-skill-ignore: sticky bar */
  }
}
@media (max-width: 700px) {
  .plan-my-trip-actions {
    margin: 16px -16px 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  }
}
.plan-my-trip-actions .btn {
  font-family: var(--spct-font-body);
  font-weight: 600;
  font-size: 15px;
  background: var(--pmt-deep);
  color: var(--pmt-white);
  border: 0;
  border-radius: 5px;
  padding: 14px 26px;
  min-height: 48px;
  min-width: 150px;
  cursor: pointer;
  margin-left: auto;
  flex: none;
  transition: background-color 150ms ease;
}
.plan-my-trip-actions .btn:hover {
  background: var(--pmt-deep-hover);
}
.plan-my-trip-actions .back {
  background: none;
  border: 0;
  color: var(--pmt-deep);
  font-family: var(--spct-font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 4px;
  min-height: 48px;
  cursor: pointer;
}
.plan-my-trip-actions .back:hover {
  text-decoration: underline;
}
.plan-my-trip-actions .back[hidden] {
  display: block;
  visibility: hidden;
}

/* Honeypot */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px; /* taste-skill-ignore: honeypot */
  overflow: hidden;
}

/* Confirmation Card */
.conf {
  max-width: 720px;
  margin: 0 auto;
  background: var(--pmt-white);
  border: 2px solid var(--pmt-deep);
  border-radius: 12px;
  padding: 48px 36px;
  text-align: center;
}
@media (max-width: 700px) {
  .conf {
    padding: 36px 20px;
  }
}
.conf .ok {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--pmt-deep);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
}
.conf h2 {
  font-family: var(--spct-font-heading);
  font-weight: 600;
  font-size: 30px;
  color: var(--pmt-ink);
  margin: 0 0 16px;
}
.conf p {
  font-family: var(--spct-font-body);
  font-size: 16px;
  max-width: 48ch;
  margin: 0 auto 14px;
}
.turnstile-field {
  margin-top: 20px;
  margin-bottom: 20px;
}
