/* Shared booking / trip2 form — colors/shadows match public old x2-forms */

.booking-form-shell {
  --ep-red: #ef001e;
  --ep-navy: #0d274e;
  --ep-navy-hover: #172a50;
  --ep-border: oklch(0.915 0.012 255);
  --ep-focus-border: #f1c1c1;
  --ep-field-shadow: 0 0 5px rgba(0, 0, 0, 0.12);
  --ep-hover-shadow: 0 16px 30px rgba(193, 6, 6, 0.14);
  --ep-focus-shadow: 0 16px 25px rgba(193, 6, 6, 0.15);
  --ep-divider: #cdc1c1;
  --ep-text: #222222;
  --ep-label: #0d274e;
}

.booking-form-shell .x2f1 {
  box-shadow: none;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  gap: 1.75rem;
}

.booking-form-shell .x2fs1 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.booking-form-shell .x2lg1,
.booking-form-shell .x2h1 {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0 0 0.25rem;
  padding: 0;
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: #000;
}

.booking-form-shell .x2lb2 {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 14px;
  font-weight: 500;
  color: var(--ep-label);
}

.booking-form-shell .x2lb1 {
  padding: 0;
  margin: 0 0 0.5rem;
  font-size: 14px;
  font-weight: 400;
  color: #000;
  text-align: center;
}

.booking-form-shell .x2s1 {
  display: inline;
  font-size: 12px;
  font-weight: 400;
  color: #000;
}

/* Tablet + mobile: put age/weight hints on their own line */
@media (max-width: 1023px) {
  .booking-form-shell .x2d2 .x2lb1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.15rem;
    line-height: 1.25;
  }

  .booking-form-shell .x2d2 .x2s1 {
    display: block;
    width: 100%;
    text-align: center;
    line-height: 1.2;
    white-space: normal;
  }
}

/* Full-width blocks */
.booking-form-shell #x2d15,
.booking-form-shell .x2d3,
.booking-form-shell #x2d24,
.booking-form-shell #x2d16,
.booking-form-shell #zy_err_type {
  grid-column: 1 / -1;
  width: 100%;
}

/* Paired half-width */
.booking-form-shell #x2d25,
.booking-form-shell #x2d26,
.booking-form-shell #x2d27,
.booking-form-shell #x2d28,
.booking-form-shell #x2d29,
.booking-form-shell #x2d30,
.booking-form-shell #x2d31,
.booking-form-shell #x2d32,
.booking-form-shell #x2d33,
.booking-form-shell .x2d19,
.booking-form-shell .x2d20 {
  grid-column: auto;
  width: 100%;
  min-width: 0;
}

.booking-form-shell--trip2 #x2d25,
.booking-form-shell--trip2 #x2d27 {
  grid-column: auto;
}

.booking-form-shell:not(.booking-form-shell--trip2) #x2d26 {
  grid-column: 1 / -1;
}

.booking-form-shell .x2d1 {
  position: relative;
  overflow: visible;
  width: 100%;
  min-height: 52px;
  padding: 7px 10px 7px 5px;
  border: 1px solid var(--ep-border);
  border-radius: 14px;
  box-shadow: var(--ep-field-shadow);
  background: #fff;
  gap: 0.5rem;
  cursor: pointer;
  z-index: 1;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.booking-form-shell .x2d1:hover {
  border-color: var(--ep-focus-border);
  box-shadow: var(--ep-hover-shadow);
}

/* Default: later form blocks stay under open pickers */
.booking-form-shell .x2d19,
.booking-form-shell .x2d20,
.booking-form-shell #x2d15,
.booking-form-shell #x2d25,
.booking-form-shell #x2d26,
.booking-form-shell #x2d27,
.booking-form-shell #x2d28,
.booking-form-shell #x2d29,
.booking-form-shell #x2d30,
.booking-form-shell #x2d31,
.booking-form-shell #x2d32,
.booking-form-shell #x2d33 {
  position: relative;
  z-index: 1;
}

.booking-form-shell .x2d3,
.booking-form-shell .ep-luggage,
.booking-form-shell #x2d24 {
  position: relative;
  z-index: 1;
}

.booking-form-shell .x2fs1 {
  position: relative;
  z-index: 1;
}

/* Raise the whole fieldset that owns an open picker above later fieldsets */
.booking-form-shell .x2fs1:has(.w3u1),
.booking-form-shell .x2fs1:has([data-w3-display]),
.booking-form-shell .x2fs1:has(.w1d1),
.booking-form-shell .x2fs1:has(.w2d1) {
  z-index: 200;
}

/* Sink later fieldsets / blocks while a prior picker is open */
.booking-form-shell .x2f1:has(.x2fs1 .w3u1) .x2fs1:not(:has(.w3u1)):not(:has([data-w3-display])),
.booking-form-shell .x2f1:has(.x2fs1 [data-w3-display]) .x2fs1:not(:has(.w3u1)):not(:has([data-w3-display])),
.booking-form-shell .x2f1:has(.x2fs1 .w1d1) .x2fs1:not(:has(.w1d1)),
.booking-form-shell .x2f1:has(.x2fs1 .w2d1) .x2fs1:not(:has(.w2d1)) {
  z-index: 0;
}

/* Anchor picker portals at the bottom of the field shell */
.booking-form-shell [data-w1-display],
.booking-form-shell [data-w2-display] {
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  width: max-content;
  min-width: 100%;
  z-index: 400;
}

/* Active field with an open panel */
.booking-form-shell .x2d1:focus-within,
.booking-form-shell .x2d1:has(.w3u1),
.booking-form-shell .x2d1:has(.w1d1),
.booking-form-shell .x2d1:has(.w2d1),
.booking-form-shell .x2d1:has([data-w3-display]) {
  z-index: 120;
}

/* Full-width portal for location / hotel lists (avoids thin arrow-anchored panel) */
.booking-form-shell [data-w3-display] {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  width: 100%;
  z-index: 420;
  pointer-events: none;
}

.booking-form-shell [data-w3-display] > .w3u1 {
  position: relative;
  top: 4px;
  left: 0;
  width: 100%;
  pointer-events: auto;
}

.booking-form-shell [data-w3-display]:has(.w3u1.open-up) {
  top: auto;
  bottom: 100%;
}

.booking-form-shell [data-w3-display] > .w3u1.open-up {
  top: auto;
  bottom: 4px;
}

/* Raise the column / block that owns the open picker */
.booking-form-shell .x2d19:has(.w3u1),
.booking-form-shell .x2d19:has([data-w3-display]),
.booking-form-shell .x2d20:has(.w3u1),
.booking-form-shell .x2d20:has([data-w3-display]),
.booking-form-shell #x2d15:has(.w3u1),
.booking-form-shell #x2d15:has([data-w3-display]),
.booking-form-shell #x2d32:has(.w3u1),
.booking-form-shell #x2d32:has([data-w3-display]),
.booking-form-shell #x2d25:has(.w1d1),
.booking-form-shell #x2d26:has(.w2d1),
.booking-form-shell #x2d27:has(.w2d1),
.booking-form-shell .x2d19:focus-within,
.booking-form-shell .x2d20:focus-within,
.booking-form-shell #x2d15:focus-within,
.booking-form-shell #x2d32:focus-within,
.booking-form-shell #x2d25:focus-within,
.booking-form-shell #x2d26:focus-within,
.booking-form-shell #x2d27:focus-within {
  z-index: 100;
}

/* Sink sibling columns / following blocks while any picker is open */
.booking-form-shell .x2fs1:has(.w3u1) .x2d3,
.booking-form-shell .x2fs1:has(.w3u1) .ep-luggage,
.booking-form-shell .x2fs1:has(.w3u1) #x2d24,
.booking-form-shell .x2fs1:has(.w3u1) #x2d16,
.booking-form-shell .x2fs1:has(.w3u1) #x2d28,
.booking-form-shell .x2fs1:has(.w3u1) #x2d29,
.booking-form-shell .x2fs1:has(.w3u1) #x2d30,
.booking-form-shell .x2fs1:has(.w3u1) #x2d31,
.booking-form-shell .x2fs1:has(.w3u1) #x2d33,
.booking-form-shell .x2fs1:has(.w1d1) .x2d3,
.booking-form-shell .x2fs1:has(.w1d1) .ep-luggage,
.booking-form-shell .x2fs1:has(.w1d1) #x2d24,
.booking-form-shell .x2fs1:has(.w1d1) #x2d26,
.booking-form-shell .x2fs1:has(.w1d1) #x2d27,
.booking-form-shell .x2fs1:has(.w1d1) #x2d28,
.booking-form-shell .x2fs1:has(.w1d1) #x2d29,
.booking-form-shell .x2fs1:has(.w2d1) .x2d3,
.booking-form-shell .x2fs1:has(.w2d1) .ep-luggage,
.booking-form-shell .x2fs1:has(.w2d1) #x2d24,
.booking-form-shell .x2fs1:has(.w2d1) #x2d25,
.booking-form-shell .x2fs1:has(.w2d1) #x2d28,
.booking-form-shell .x2fs1:has(.w2d1) #x2d29,
.booking-form-shell .x2fs1:has(.x2d19 .w3u1) .x2d20,
.booking-form-shell .x2fs1:has(.x2d19 [data-w3-display]) .x2d20,
.booking-form-shell .x2fs1:has(.x2d20 .w3u1) .x2d19,
.booking-form-shell .x2fs1:has(.x2d20 [data-w3-display]) .x2d19 {
  z-index: 0 !important;
}

/* Same-column address fields must stay under the open select above them */
.booking-form-shell .x2d19 > .x2d1:has(.w3u1) ~ .x2d1,
.booking-form-shell .x2d19 > .x2d1:has([data-w3-display]) ~ .x2d1,
.booking-form-shell .x2d20 > .x2d1:has(.w3u1) ~ .x2d1,
.booking-form-shell .x2d20 > .x2d1:has([data-w3-display]) ~ .x2d1 {
  z-index: 0 !important;
}

.booking-form-shell .x2fs1:has(.w1d1) #x2d25,
.booking-form-shell .x2fs1:has(#x2d26 .w2d1) #x2d26,
.booking-form-shell .x2fs1:has(#x2d27 .w2d1) #x2d27,
.booking-form-shell .x2fs1:has(.w3u1) #x2d32,
.booking-form-shell .x2fs1:has(.w3u1) #x2d15 {
  z-index: 100;
}

/* Only the active clock field stays above its sibling time field */
.booking-form-shell .x2fs1:has(#x2d27 .w2d1) #x2d26,
.booking-form-shell .x2fs1:has(#x2d26 .w2d1) #x2d27,
.booking-form-shell .x2fs1:has(#x2d27 .w2d1) #x2d25,
.booking-form-shell .x2fs1:has(#x2d26 .w2d1) #x2d25 {
  z-index: 0 !important;
}

.booking-form-shell #x2d16 {
  position: relative;
  z-index: 1;
}

.booking-form-shell .x2f1:has(.w3u1) #x2d34,
.booking-form-shell .x2f1:has(.w1d1) #x2d34,
.booking-form-shell .x2f1:has(.w2d1) #x2d34,
.booking-form-shell .x2f1:has([data-w3-display]) #x2d34 {
  position: relative;
  z-index: 0;
}

.booking-form-shell .w1d1,
.booking-form-shell .w2d1,
.booking-form-shell .w3u1 {
  position: absolute;
  left: 0;
  z-index: 420;
}

.booking-form-shell .w3u1,
.booking-form-shell .w3u1.open-down {
  top: calc(100% + 4px);
  bottom: auto;
}

.booking-form-shell .w1d1,
.booking-form-shell .w2d1,
.booking-form-shell .w1d1.open-down,
.booking-form-shell .w2d1.open-down {
  top: 0;
  bottom: auto;
}

.booking-form-shell .w1d1.open-up,
.booking-form-shell .w2d1.open-up,
.booking-form-shell .w3u1.open-up {
  top: auto;
  bottom: calc(100% + 4px);
}

/* When display wrapper already sits below the field, keep panel at top of wrapper */
.booking-form-shell [data-w1-display] .w1d1.open-down,
.booking-form-shell [data-w2-display] .w2d1.open-down,
.booking-form-shell [data-w1-display] .w1d1,
.booking-form-shell [data-w2-display] .w2d1 {
  top: 0;
  bottom: auto;
}

/* open-up: move the portal above the field so the panel does not cover its own label */
.booking-form-shell [data-w1-display]:has(.w1d1.open-up),
.booking-form-shell [data-w2-display]:has(.w2d1.open-up) {
  top: auto;
  bottom: calc(100% + 4px);
}

.booking-form-shell [data-w1-display] .w1d1.open-up,
.booking-form-shell [data-w2-display] .w2d1.open-up {
  top: auto;
  bottom: 0;
}

.booking-form-shell .w3u1 {
  border: 2px solid #f1c1c1;
  border-radius: 5px;
  box-shadow: 0 12px 28px rgba(42, 15, 15, 0.18);
  background: #fff;
}

.booking-form-shell .w1d1,
.booking-form-shell .w2d1 {
  background: #fff;
  box-shadow: 0 16px 35px rgba(42, 15, 15, 0.18);
}

/* Thin dropdown scrollbars */
.booking-form-shell .w3u1,
.booking-form-shell .w1d1,
.booking-form-shell .w2d1 {
  scrollbar-width: thin;
  scrollbar-color: #c9c9c9 transparent;
}

.booking-form-shell .w3u1::-webkit-scrollbar,
.booking-form-shell .w1d1::-webkit-scrollbar,
.booking-form-shell .w2d1::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.booking-form-shell .w3u1::-webkit-scrollbar-track,
.booking-form-shell .w1d1::-webkit-scrollbar-track,
.booking-form-shell .w2d1::-webkit-scrollbar-track {
  background: transparent;
}

.booking-form-shell .w3u1::-webkit-scrollbar-thumb,
.booking-form-shell .w1d1::-webkit-scrollbar-thumb,
.booking-form-shell .w2d1::-webkit-scrollbar-thumb {
  background: #c9c9c9;
  border-radius: 999px;
}

.booking-form-shell .w3u1::-webkit-scrollbar-thumb:hover,
.booking-form-shell .w1d1::-webkit-scrollbar-thumb:hover,
.booking-form-shell .w2d1::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.booking-form-shell .w3l1 {
  color: #000 !important;
  font-weight: 500;
}

.booking-form-shell .w3l1:hover {
  color: #000 !important;
  background: #dfa1a161;
}

.booking-form-shell .w3l1[data-w3-value="Any Other Hotels Disney Area"] {
  font-weight: 700 !important;
}

.booking-form-shell .w3s1 {
  background: #d33939;
  color: #fff !important;
}

.booking-form-shell .x2d1:focus-within {
  border-color: var(--ep-focus-border);
  box-shadow: var(--ep-focus-shadow);
}

.booking-form-shell .x2in1 {
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ep-text);
  padding: 5px;
  cursor: pointer;
}

.booking-form-shell .x2in1:not([readonly]),
.booking-form-shell textarea.x2in1 {
  cursor: text;
}

.booking-form-shell input[readonly].x2in1,
.booking-form-shell [data-w3-selector],
.booking-form-shell [data-w1-selector],
.booking-form-shell [data-w2-selector] {
  cursor: pointer;
}

.booking-form-shell .x2in1::placeholder {
  color: #888;
  font-weight: 400;
  opacity: 1;
}

.booking-form-shell .x2s3 {
  border-right: 1px solid var(--ep-divider);
  width: 2rem;
  flex-shrink: 0;
}

.booking-form-shell .x2s8 {
  flex-shrink: 0;
  margin-left: auto;
}

.booking-form-shell #zy_type,
.booking-form-shell #zy_from,
.booking-form-shell #zy_to,
.booking-form-shell #zy_date,
.booking-form-shell #zy_time,
.booking-form-shell #zy_flight_time,
.booking-form-shell select.x2in1,
.booking-form-shell input[type="date"].x2in1,
.booking-form-shell input[type="time"].x2in1 {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  background: transparent;
  border: 0;
  outline: none;
}

.booking-form-shell select.x2in1 {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 0.25rem;
}

.booking-form-shell input[type="date"].x2in1,
.booking-form-shell input[type="time"].x2in1 {
  min-height: 1.5rem;
}

.booking-form-shell select[data-hotel-select] {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  outline: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* Passengers */
.booking-form-shell .x2d3 {
  display: block;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.booking-form-shell .x2d5 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
}

.booking-form-shell .x2d2 {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.5rem;
  padding: 0.85rem 0.75rem;
  border: 1px solid var(--ep-border);
  border-radius: 14px;
  box-shadow: var(--ep-field-shadow);
  background: #fff;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.booking-form-shell .x2d2:hover {
  border-color: var(--ep-focus-border);
  box-shadow: var(--ep-hover-shadow);
}

.booking-form-shell .x2d2:focus-within {
  border-color: var(--ep-focus-border);
  box-shadow: var(--ep-focus-shadow);
}

.booking-form-shell .x2d2 .x2s3 {
  border: none;
  width: auto;
  margin: 0 auto;
}

.booking-form-shell .x2d4 {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--ep-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.08);
  padding: 0.35rem 0.45rem;
}

.booking-form-shell .x2d4 > input {
  width: 2.5rem;
  height: 32px;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  line-height: 32px;
  color: #222;
  padding: 0;
  -moz-appearance: textfield;
  appearance: textfield;
}

.booking-form-shell .x2d4 > input::-webkit-outer-spin-button,
.booking-form-shell .x2d4 > input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.booking-form-shell .x2bt1,
.booking-form-shell .x2bt2,
.booking-form-shell .x2bt3,
.booking-form-shell .x2bt4 {
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  border: none;
  background: var(--ep-red) !important;
  color: #fff !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  transform: none !important;
  background-image: none !important;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.booking-form-shell .x2bt1:hover,
.booking-form-shell .x2bt2:hover,
.booking-form-shell .x2bt3:hover,
.booking-form-shell .x2bt4:hover {
  background: var(--ep-navy) !important;
  filter: none;
  box-shadow: 0 4px 10px rgba(13, 39, 78, 0.25);
}

.booking-form-shell .x2bt3::before { content: "−"; }
.booking-form-shell .x2bt4::before { content: "+"; }

/* Actions */
.booking-form-shell .x2e3,
.booking-form-shell #x2d34 {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.booking-form-shell .x2e1 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--ep-red);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 15px 40px;
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(193, 6, 6, 0.12);
  transition: background-color 0.3s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.booking-form-shell .x2e1:hover {
  background: var(--ep-navy);
  filter: none;
  transform: translateY(-1px);
  box-shadow: 0 16px 25px rgba(193, 6, 6, 0.18);
}

.booking-form-shell a.x2e1 {
  background: var(--ep-red);
  color: #fff;
  border: none;
  box-shadow: 0 12px 22px rgba(193, 6, 6, 0.12);
}

.booking-form-shell a.x2e1:hover {
  background: var(--ep-navy);
  filter: none;
  box-shadow: 0 16px 25px rgba(193, 6, 6, 0.18);
}

/* Back + continue pair: keep Back red, continue/next/book in site navy */
.booking-form-shell .x2e3:has(a.x2e1) > button.x2e1,
.booking-form-shell #x2d21:has(a.x2e1) > button.x2e1,
.booking-form-shell #x2d34:has(a.x2e1) > button.x2e1 {
  background: var(--ep-navy);
  box-shadow: 0 12px 22px rgba(13, 39, 78, 0.22);
}

.booking-form-shell .x2e3:has(a.x2e1) > button.x2e1:hover,
.booking-form-shell #x2d21:has(a.x2e1) > button.x2e1:hover,
.booking-form-shell #x2d34:has(a.x2e1) > button.x2e1:hover {
  background: var(--ep-navy-hover);
  box-shadow: 0 16px 25px rgba(13, 39, 78, 0.3);
}

.booking-form-shell .a0 { color: var(--ep-red); }
.booking-form-shell #x2p1 {
  margin-top: 0.5rem;
  font-size: 12px;
  color: #727272;
}
.booking-form-shell #x2p3,
.booking-form-shell #x2p5 {
  margin-top: 0.5rem;
  font-size: 12px;
  color: #727272;
}
.booking-form-shell #x2p5 {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.875rem;
}

/* Person / summary extras */
.booking-form-shell .x2d1.x2e2 {
  min-height: 6rem;
  align-items: flex-start;
}
.booking-form-shell textarea.x2in1 {
  min-height: 4.5rem;
  resize: vertical;
}
.booking-form-shell .summary-confirm-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
  margin-top: 1rem;
  align-items: end;
}
.booking-form-shell #x2d21 {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.booking-form-shell #x2d21 .x2e1 {
  flex: 0 0 auto;
}
.booking-form-shell .x2d17 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.booking-form-shell .x2d18 {
  width: auto;
  min-height: auto;
  padding: 0.5rem;
  flex-shrink: 0;
}
.booking-form-shell #x2p2 {
  margin: 0;
  font-size: 0.875rem;
  color: #727272;
}
.booking-form-shell #x2i2 {
  height: 2.5rem;
  width: auto;
  border-radius: 0.25rem;
}
.booking-form-shell #zy_err_captcha {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.booking-form-shell .ok {
  text-align: center;
  color: #059669;
  font-weight: 600;
  margin-bottom: 1rem;
}
.booking-form-shell .ko0 {
  text-align: center;
  color: #dc2626;
  padding: 0.5rem;
  margin-bottom: 1rem;
}

/* Validation */
.booking-form-shell .ko1,
.ko1 {
  color: #dc2626 !important;
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
  display: block;
}
.booking-form-shell .ko2,
.ko2 {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18) !important;
  background: #fff8f8 !important;
}
.booking-form-shell .ko0,
.ko0 {
  color: #dc2626 !important;
  font-weight: 600;
  margin-bottom: 12px;
}

@media (max-width: 767px) {
  .booking-form-shell .x2fs1 {
    grid-template-columns: 1fr;
  }
  .booking-form-shell .x2d19,
  .booking-form-shell .x2d20,
  .booking-form-shell #x2d15,
  .booking-form-shell .x2d3,
  .booking-form-shell #x2d16,
  .booking-form-shell #x2d24,
  .booking-form-shell #x2d25,
  .booking-form-shell #x2d26,
  .booking-form-shell #x2d27,
  .booking-form-shell #x2d28,
  .booking-form-shell #x2d29,
  .booking-form-shell #x2d30,
  .booking-form-shell #x2d31,
  .booking-form-shell #x2d32,
  .booking-form-shell #x2d33 {
    grid-column: 1 / -1;
  }

  /* Trip 2: stack date + pickup time full width on mobile */
  .booking-form-shell--trip2 .x2fs1 {
    grid-template-columns: 1fr;
  }
  .booking-form-shell--trip2 .x2d19,
  .booking-form-shell--trip2 .x2d20,
  .booking-form-shell--trip2 .x2d3,
  .booking-form-shell--trip2 .ep-luggage,
  .booking-form-shell--trip2 #x2d24,
  .booking-form-shell--trip2 #x2d25,
  .booking-form-shell--trip2 #x2d26,
  .booking-form-shell--trip2 #x2d27,
  .booking-form-shell--trip2 #x2d28,
  .booking-form-shell--trip2 #x2d29,
  .booking-form-shell--trip2 #x2d30,
  .booking-form-shell--trip2 #x2d31,
  .booking-form-shell--trip2 #x2d32,
  .booking-form-shell--trip2 #x2d33,
  .booking-form-shell--trip2 .x2lg1 {
    grid-column: 1 / -1;
  }

  /* Passengers + luggage: keep 3 cards; all +/- on one line */
  .booking-form-shell .x2d5,
  .booking-form-shell .ep-luggage-counts {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.45rem;
    align-items: stretch;
  }
  .booking-form-shell .x2d2 {
    min-width: 0;
    height: 100%;
    padding: 0.55rem 0.3rem;
    gap: 0.4rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .booking-form-shell .x2d2 .x2lb1 {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 2.6em;
  }
  .booking-form-shell .x2d4 {
    flex-wrap: nowrap !important;
    justify-content: space-between;
    gap: 0.25rem;
    padding: 0.28rem 0.3rem;
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    margin-top: auto;
  }
  .booking-form-shell .x2bt1,
  .booking-form-shell .x2bt2,
  .booking-form-shell .x2bt3,
  .booking-form-shell .x2bt4 {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    font-size: 14px;
    flex-shrink: 0;
  }
  .booking-form-shell .x2d4 > input {
    width: 1.35rem;
    min-width: 0;
    flex: 1 1 auto;
    height: 24px;
    line-height: 24px;
    font-size: 13px;
    padding: 0 !important;
  }
  .booking-form-shell .x2lb1 {
    font-size: 11px;
    line-height: 1.25;
    text-align: center;
  }
  .booking-form-shell .x2d2 .x2s3 .x2i1,
  .booking-form-shell .ep-luggage-ico .ep-lug-img {
    width: 1.5rem;
    height: 1.5rem;
  }
  .booking-form-shell .x2e3,
  .booking-form-shell #x2d34 {
    flex-direction: column;
  }
  .booking-form-shell .x2e1,
  .booking-form-shell a.x2e1 {
    width: 100%;
  }
  .booking-form-shell .summary-confirm-row {
    grid-template-columns: 1fr;
  }
  .booking-form-shell #x2d21,
  .booking-form-shell #x2d21.x2e3 {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.75rem;
  }
  .booking-form-shell #x2d21 .x2e1,
  .booking-form-shell #x2d21 a.x2e1 {
    width: 100%;
    flex: 1 1 auto;
  }
}

/* Luggage */
.booking-form-shell .ep-luggage {
  grid-column: 1 / -1;
}

.booking-form-shell .ep-luggage-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.booking-form-shell .ep-lug-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.booking-form-shell .ep-lug-tip__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: #727272;
  cursor: help;
  line-height: 0;
}

.booking-form-shell .ep-lug-tip__btn:hover,
.booking-form-shell .ep-lug-tip__btn:focus-visible {
  color: var(--ep-red);
  outline: none;
}

.booking-form-shell .ep-lug-tip__msg {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.45rem);
  z-index: 30;
  width: min(16.5rem, 70vw);
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: var(--ep-navy);
  color: #fff;
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  box-shadow: 0 10px 24px -12px rgba(13, 39, 78, 0.45);
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.booking-form-shell .ep-lug-tip__msg::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border: 5px solid transparent;
  border-top-color: var(--ep-navy);
}

.booking-form-shell .ep-lug-tip:hover .ep-lug-tip__msg,
.booking-form-shell .ep-lug-tip:focus-within .ep-lug-tip__msg,
.booking-form-shell .ep-lug-tip.is-open .ep-lug-tip__msg {
  opacity: 1;
  visibility: visible;
}

.booking-form-shell .ep-luggage-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.booking-form-shell .ep-luggage-choice {
  cursor: pointer;
  margin: 0;
}

.booking-form-shell .ep-luggage-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.booking-form-shell .ep-luggage-choice__box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--ep-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--ep-field-shadow);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.booking-form-shell .ep-luggage-choice__box:hover {
  border-color: var(--ep-focus-border);
  box-shadow: var(--ep-hover-shadow);
}

.booking-form-shell .ep-luggage-choice input:checked + .ep-luggage-choice__box {
  border-color: var(--ep-focus-border);
  box-shadow: var(--ep-focus-shadow);
  background: #fff;
}

.booking-form-shell .ep-luggage-choice__text {
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #222;
}

.booking-form-shell .ep-luggage-choice__icon,
.booking-form-shell .ep-luggage-choice__icon svg {
  color: var(--ep-red);
}

.booking-form-shell .ep-luggage-counts[hidden] {
  display: none !important;
}

.booking-form-shell .ep-luggage-ico {
  border: none;
  width: auto;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.2rem;
}

.booking-form-shell .ep-luggage-ico .ep-lug-img {
  width: 1em;
  height: 1em;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.booking-form-shell .ep-luggage-ico--sm { font-size: 1.35rem; }
.booking-form-shell .ep-luggage-ico--md { font-size: 1.65rem; }
.booking-form-shell .ep-luggage-ico--lg { font-size: 1.9rem; }

@media (max-width: 767px) {
  .booking-form-shell .ep-luggage-choices {
    grid-template-columns: 1fr;
  }

  /* Keep luggage info tooltip fully on-screen (icon sits near left edge) */
  .booking-form-shell .ep-lug-tip__msg {
    left: 0;
    right: auto;
    transform: none;
    width: min(17rem, calc(100vw - 2.75rem));
    max-width: calc(100vw - 2.75rem);
    z-index: 80;
  }
  .booking-form-shell .ep-lug-tip__msg::after {
    left: 10px;
    margin-left: 0;
  }
}

/* Modern booking summary (page + email-shared markup) */
.booking-form-shell .ep-summary {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.booking-form-shell .ep-sum-card {
  margin: 0 0 1.15rem !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  border-radius: 14px !important;
  overflow: hidden;
  background: #fff !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.booking-form-shell .ep-sum-heading {
  margin: 0 !important;
  padding: 0.95rem 1.15rem !important;
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
  color: #fff !important;
  background-color: #05132a !important;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, #05132a 0%, #331122 100%) !important;
  background-size: 24px 24px, 24px 24px, auto !important;
}

.booking-form-shell .ep-sum-table {
  width: 100%;
  border-collapse: collapse;
}

.booking-form-shell .ep-sum-table tr:first-child td {
  border-top: 0 !important;
}

.booking-form-shell .ep-sum-table tr:hover td {
  background-color: #f1f5f9;
}

.booking-form-shell .ep-sum-label {
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif !important;
  font-size: 0.72rem !important;
}

.booking-form-shell .ep-sum-value {
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif !important;
  font-size: 0.95rem !important;
  word-break: break-word;
}

.booking-form-shell .ep-sum-ico-img {
  display: block;
  height: 16px;
  width: 16px;
  object-fit: contain;
  opacity: 0.85;
}

/* Booking progress stepper */
.ep-booking-steps {
  margin: 0 0 1.5rem;
  padding: 0 0 1.25rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  width: 100%;
}

.ep-booking-steps__track {
  display: flex;
  align-items: flex-start;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  width: 100%;
  max-width: none;
}

.ep-booking-steps__item {
  position: relative;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
  gap: 0.45rem;
}

.ep-booking-steps__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1rem;
  left: calc(50% + 1.15rem);
  width: calc(100% - 2.3rem);
  height: 2px;
  background: #e2e8f0;
  border-radius: 999px;
  pointer-events: none;
}

.ep-booking-steps__item.is-done:not(:last-child)::after,
.ep-booking-steps__item.is-current:not(:last-child)::after {
  background: #fecaca;
}

.ep-booking-steps__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 999px;
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  background: #f1f5f9;
  color: #94a3b8;
  border: 1px solid #e2e8f0;
  position: relative;
  z-index: 1;
}

.ep-booking-steps__caption {
  display: block;
  max-width: 6.5rem;
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.25;
  color: #94a3b8;
}

.ep-booking-steps__item.is-current .ep-booking-steps__dot {
  background: var(--ep-red, #ef001e);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(193, 6, 6, 0.22);
}

.ep-booking-steps__item.is-current .ep-booking-steps__caption {
  color: #0d274e;
  font-weight: 600;
}

.ep-booking-steps__item.is-done .ep-booking-steps__dot {
  background: #0d274e;
  color: #fff;
  border-color: transparent;
}

.ep-booking-steps__item.is-done .ep-booking-steps__caption {
  color: #475569;
}

.booking-form-shell .ep-field-hint {
  margin: 0.45rem 0 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #727272;
}

@media screen and (max-width: 640px) {
  .ep-booking-steps__dot {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.75rem;
  }

  .ep-booking-steps__item:not(:last-child)::after {
    top: 0.875rem;
    left: calc(50% + 1rem);
    width: calc(100% - 2rem);
  }

  .ep-booking-steps__caption {
    font-size: 0.65rem;
    max-width: 4.75rem;
  }
}

/* ============================================================
   Booking process — page-level responsive (all steps)
   ============================================================ */
.ep-booking-page {
  overflow-x: clip;
}

.ep-booking-page .ep-booking-layout {
  min-width: 0;
}

.ep-booking-page .booking-form-shell,
.ep-booking-page aside {
  min-width: 0;
}

.ep-booking-hero-cta a {
  max-width: 100%;
  word-break: break-word;
}

.ep-booking-hero-cta a .truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

/* Tablet */
@media (max-width: 1023px) {
  .ep-booking-page .ep-booking-layout {
    gap: 1.75rem;
  }
}

/* Mobile + small tablet */
@media (max-width: 767px) {
  .ep-booking-page .ep-booking-hero {
    padding-top: 3.25rem !important;
    padding-bottom: 3.25rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .ep-booking-page .ep-booking-hero h1 {
    font-size: 1.875rem !important;
    line-height: 1.15 !important;
  }

  .ep-booking-page .ep-booking-hero p.ep-booking-hero-lead {
    font-size: 1rem !important;
    margin-top: 1rem !important;
  }

  .ep-booking-hero-cta {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.5rem !important;
    margin-top: 1.5rem !important;
  }

  .ep-booking-hero-cta a {
    width: 100%;
    justify-content: center;
    font-size: 0.875rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .ep-booking-page .ep-booking-main {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-top: 2.25rem !important;
    padding-bottom: 2.25rem !important;
  }

  .ep-booking-page .booking-form-shell {
    padding: 1rem !important;
    border-radius: 1rem;
  }

  .ep-booking-page aside > div {
    padding: 1.15rem !important;
  }

  .booking-form-shell .x2lg1,
  .booking-form-shell .x2h1 {
    font-size: 1.25rem;
  }

  .booking-form-shell .x2lg1[style] {
    font-size: 1.15rem !important;
  }

  .booking-form-shell .x2in1,
  .booking-form-shell textarea.x2in1,
  .booking-form-shell input.x2in1 {
    font-size: 16px; /* prevent iOS zoom */
  }

  .booking-form-shell .x2d1 {
    min-height: 3rem;
  }

  .booking-form-shell .w3u1,
  .booking-form-shell .w1d1,
  .booking-form-shell .w2d1 {
    max-width: 100%;
    max-height: min(255px, 56vh);
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .booking-form-shell .w3l1 {
    font-size: 13px;
    padding: 0.55rem 0.75rem;
  }

  .booking-form-shell .x2d17 {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .booking-form-shell #x2i2 {
    max-width: 100%;
    height: auto;
  }

  .booking-form-shell #zy_err_captcha {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .booking-form-shell #zy_err_captcha img {
    max-width: 9rem;
    height: auto;
  }

  /* Summary table: stack label above value */
  .booking-form-shell .ep-sum-table,
  .booking-form-shell .ep-sum-table tbody,
  .booking-form-shell .ep-sum-table tr,
  .booking-form-shell .ep-sum-table td {
    display: block;
    width: 100% !important;
  }

  .booking-form-shell .ep-sum-table tr {
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }

  .booking-form-shell .ep-sum-table tr:last-child {
    border-bottom: 0;
  }

  .booking-form-shell .ep-sum-label {
    padding: 0 0 0.2rem !important;
    border: 0 !important;
    width: 100% !important;
  }

  .booking-form-shell .ep-sum-value {
    padding: 0 !important;
    border: 0 !important;
  }

  .booking-form-shell .ep-sum-heading {
    padding: 0.85rem 1rem !important;
    font-size: 0.9rem !important;
  }

  .booking-form-shell .ep-sum-card {
    margin-bottom: 0.9rem !important;
    border-radius: 12px !important;
  }

  .ep-booking-page .ep-booking-done-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ep-booking-page .ep-booking-done-actions a {
    width: 100%;
    justify-content: center;
  }

  .ep-booking-page .ep-booking-no {
    font-size: 1.35rem !important;
    word-break: break-all;
    max-width: 100%;
  }
}

/* Very small phones */
@media (max-width: 379px) {
  .ep-booking-steps__caption {
    font-size: 0.58rem;
    max-width: 3.6rem;
    line-height: 1.2;
  }

  .ep-booking-steps__dot {
    width: 1.55rem;
    height: 1.55rem;
    font-size: 0.7rem;
  }

  .ep-booking-steps__item:not(:last-child)::after {
    top: 0.75rem;
    left: calc(50% + 0.9rem);
    width: calc(100% - 1.8rem);
  }

  .booking-form-shell .x2d5,
  .booking-form-shell .ep-luggage-counts {
    gap: 0.35rem;
  }

  .booking-form-shell .x2lb1 {
    font-size: 10px;
  }
}

