/* Home planner: attached desktop tabs and a compact, shared phone header. */
body[data-search-scheme].page-home .home-quote .quote-form,
body[data-search-scheme].page-home .home-quote .quote-form[data-trip-mode] {
  display: block;
}
body[data-search-scheme].page-home .home-quote .quote-form .quote-topline {
  justify-content: flex-start; padding-bottom: 12px;
}
body[data-search-scheme].page-home .home-quote .quote-form .journey-type {
  position: absolute; top: -39px; right: 17px; z-index: 2;
  display: flex; align-items: flex-end; gap: 4px; width: auto;
  padding: 0; margin: 0; border: 0; border-radius: 0; background: transparent;
}
body[data-search-scheme].page-home .home-quote .quote-form .journey-type button {
  min-height: 40px; padding: 10px 22px; border: 1px solid #cbdbe6;
  border-radius: 9px 9px 0 0; background: #eaf1f6;
  color: #47677c; font-size: 13px; font-weight: 550; line-height: 1.4; box-shadow: none;
}
body[data-search-scheme].page-home .home-quote .quote-form .journey-type button.active {
  position: relative; border-bottom-color: #fff; background: #fff;
  color: #173c53; font-weight: 750; box-shadow: none;
}
body[data-search-scheme].page-home .home-quote .quote-form .journey-type button:not(.active):hover {
  background: #f5f9fc; color: #173c53;
}
body[data-search-scheme].page-home .home-quote .quote-form .quote-actions {
  grid-template-columns: minmax(0, 1fr) 184px; padding-top: 12px;
}
body[data-search-scheme].page-home .home-quote .quote-form .quote-submit {
  width: 184px; min-height: 48px; padding: 12px 16px;
  justify-content: center; border: 1px solid #234b63; border-radius: 8px;
  background: #234b63; box-shadow: none; font-size: 13px; font-weight: 650;
}
.page-home .home-quote .quote-submit > [data-submit-label] { white-space: nowrap; }
body[data-search-scheme].page-home .home-quote .quote-form .quote-submit:hover {
  background: #173a50; filter: none; box-shadow: none;
}
body[data-search-scheme].page-home .home-quote .quote-form .journey-additions { justify-content: flex-start; }
body[data-search-scheme].page-home .home-quote .quote-form .journey-additions > button {
  width: 260px; min-height: 48px; padding: 12px 24px;
  border: 1px dashed #8ca7ba; border-radius: 8px; background: #f3f8fb;
  font-size: 14px; font-weight: 600;
}
body[data-search-scheme].page-home .home-quote .quote-form .airport-icon svg { width: 25px; height: 25px; }
@media (min-width: 761px) {
  body[data-search-scheme].page-home .home-quote .quote-form {
    padding: 14px 17px; background: #fff;
    box-shadow: 0 6px 24px #102b4010;
  }
  body[data-search-scheme].page-home .home-quote .quote-form .quote-topline {
    min-height: 30px; padding: 0 0 10px; gap: 14px;
  }
  body[data-search-scheme].page-home .home-quote .quote-form .quote-title { font-size: 22px; }
  body[data-search-scheme].page-home .home-quote .quote-form .sector-list,
  body[data-search-scheme].page-home .home-quote .quote-form .return-journey { gap: 8px; }
  body[data-search-scheme].page-home .home-quote .quote-form .sector-row {
    border-color: #d6e1e9; box-shadow: none; background: #fff;
  }
  body[data-search-scheme].page-home .home-quote .quote-form .sector-row > .field {
    min-height: 62px; padding: 8px 14px; background: #fff;
  }
  body[data-search-scheme].page-home .home-quote .quote-form .sector-rail {
    background: #eef4f8; color: #365a70;
  }
  body[data-search-scheme].page-home .home-quote .quote-form .airport-field-copy input,
  body[data-search-scheme].page-home .home-quote .quote-form .date-trigger,
  body[data-search-scheme].page-home .home-quote .quote-form .time-trigger { font-size: 15px; }
  body[data-search-scheme].page-home .home-quote .quote-form .airport-name-sizer,
  body[data-search-scheme].page-home .home-quote .quote-form .airport-name-wrap > .airport-input,
  body[data-search-scheme].page-home .home-quote .quote-form .airport-name-wrap > .airport-input::placeholder {
    font-size: 16px;
  }
  body[data-search-scheme].page-home .home-quote .quote-form .field > label,
  body[data-search-scheme].page-home .home-quote .quote-form .airport-field-copy > label {
    font-size: 10px; color: #536f81; letter-spacing: .055em;
  }
  body[data-search-scheme].page-home .home-quote .quote-form .quote-actions { padding-top: 10px; }
  body[data-search-scheme].page-home .home-quote .quote-form .quote-submit { font-size: 14px; }
  body[data-search-scheme].page-home .home-quote .quote-form .journey-additions > button {
    border-style: solid; border-color: #c5d6e2; background: #f7fafc;
    box-shadow: none;
  }
  body[data-search-scheme].page-home .home-quote .quote-form[data-trip-mode=one_way] .journey-panel { display: block; }
  body[data-search-scheme].page-home .home-quote .quote-form .sector-row,
  body[data-search-scheme].page-home .home-quote .quote-form .sector-row.is-multi,
  body[data-search-scheme].page-home .home-quote .quote-form .sector-row.has-remove {
    grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1fr) 170px 148px 48px;
  }
  body[data-search-scheme].page-home .home-quote .quote-form[data-trip-mode=one_way] .sector-row,
  body[data-search-scheme].page-home .home-quote .quote-form .return-journey > .sector-row {
    grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1fr) 170px 148px;
  }
  body[data-search-scheme].page-home .home-quote .quote-form[data-trip-mode=one_way] .sector-rail { display: flex; }
  body[data-search-scheme].page-home .home-quote .quote-form[data-trip-mode=one_way] .quote-actions { display: flex; justify-content: flex-end; padding-top: 10px; }
  body[data-search-scheme].page-home .home-quote .quote-form[data-trip-mode=one_way] .quote-submit { width: 184px; min-height: 48px; padding: 12px 16px; }
  body[data-search-scheme].page-home .home-quote .quote-form .field-time { min-width: 148px; }
  body[data-search-scheme].page-home .home-quote .quote-form:not([data-trip-mode=multi_city]) .field-time { border-radius: 0 10px 10px 0; }
  body[data-search-scheme].page-home .home-quote .quote-form .booking-control-copy { flex: 1 1 auto; min-width: 0; }
  body[data-search-scheme].page-home .home-quote .quote-form .date-trigger,
  body[data-search-scheme].page-home .home-quote .quote-form .time-trigger { flex-wrap: nowrap; }
}
@media (min-width: 761px) and (max-width: 1000px) {
  body[data-search-scheme].page-home .home-quote .quote-form .sector-row,
  body[data-search-scheme].page-home .home-quote .quote-form .sector-row.is-multi,
  body[data-search-scheme].page-home .home-quote .quote-form .sector-row.has-remove {
    grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1fr) 150px 140px 48px;
  }
  body[data-search-scheme].page-home .home-quote .quote-form[data-trip-mode=one_way] .sector-row,
  body[data-search-scheme].page-home .home-quote .quote-form .return-journey > .sector-row {
    grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1fr) 150px 140px;
  }
  body[data-search-scheme].page-home .home-quote .quote-form .field-time { min-width: 140px; }
}
@media (max-width: 1180px) {
  body[data-search-scheme].page-home .home-quote .quote-form,
  body[data-search-scheme].page-home .home-quote .quote-form[data-trip-mode] {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, min(56%, 360px));
    align-items: center; column-gap: 8px; row-gap: 11px;
  }
  body[data-search-scheme].page-home .home-quote .quote-form .quote-topline {
    grid-column: 1; grid-row: 1; min-width: 0; padding: 0;
  }
  body[data-search-scheme].page-home .home-quote .quote-form .quote-title {
    min-width: 0; font-size: clamp(18px, 2.6vw, 22px); line-height: 1.15; letter-spacing: -.045em; white-space: normal;
  }
  body[data-search-scheme].page-home .home-quote .quote-form .quote-title > span { white-space: normal; }
  body[data-search-scheme].page-home .home-quote .quote-form .journey-caption { display: none; }
  body[data-search-scheme].page-home .home-quote .quote-form .journey-type {
    position: static; grid-column: 2; grid-row: 1; width: 100%; max-width: none;
    align-items: center; padding: 0; margin: 0; gap: 0; border: 0;
    border-radius: 12px; background: #edf2f6; box-shadow: inset 0 0 0 1px #dce5ec;
  }
  body[data-search-scheme].page-home .home-quote .quote-form .journey-type button {
    position: relative; isolation: isolate; flex: 1 1 0; min-width: 0; min-height: 44px;
    padding: 8px 3px; border: 0; border-radius: 12px; background: transparent;
    color: #536c7d; font-size: clamp(11.5px, 1.6vw, 13px); font-weight: 550;
    white-space: nowrap;
  }
  body[data-search-scheme].page-home .home-quote .quote-form .journey-type button::before {
    content: ''; position: absolute; inset: 5px 3px; z-index: -1; border-radius: 8px;
    pointer-events: none; background: transparent; transition: background .15s, box-shadow .15s;
  }
  body[data-search-scheme].page-home .home-quote .quote-form .journey-type button.active {
    border-color: transparent; background: transparent; color: #fff; font-weight: 700; box-shadow: none;
  }
  body[data-search-scheme].page-home .home-quote .quote-form .journey-type button.active::before {
    background: #234b63; box-shadow: 0 1px 4px #17384e26;
  }
  body[data-search-scheme].page-home .home-quote .quote-form .journey-type button:not(.active):hover {
    background: transparent; color: #193f57;
  }
  body[data-search-scheme].page-home .home-quote .quote-form .journey-type button:not(.active):hover::before {
    background: #ffffff85;
  }
  body[data-search-scheme].page-home .home-quote .quote-form .journey-panel { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body[data-search-scheme].page-home .home-quote .quote-form .quote-actions { grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 11px; }
  body[data-search-scheme].page-home .home-quote .quote-form .quote-submit { width: 100%; min-height: 48px; padding-inline: 8px; }
  body[data-search-scheme].page-home .home-quote .quote-form .journey-additions > button {
    width: 100%; min-height: 48px; padding: 12px 8px; font-size: 13px; gap: 7px;
  }
  body[data-search-scheme].page-home .home-quote .quote-form .date-trigger,
  body[data-search-scheme].page-home .home-quote .quote-form .time-trigger { font-size: 14px; gap: 6px; }
  body[data-search-scheme].page-home .home-quote .quote-form .field-time { min-width: 0; }
}
/* Tablet legs use a quiet header and readable pairs of fields. */
@media (min-width: 601px) and (max-width: 1180px) {
  body[data-search-scheme].page-home .home-quote .quote-form .sector-list { gap: 10px; }
  body[data-search-scheme].page-home .home-quote .quote-form .sector-row,
  body[data-search-scheme].page-home .home-quote .quote-form .sector-row.is-multi,
  body[data-search-scheme].page-home .home-quote .quote-form .sector-row.has-remove,
  body[data-search-scheme].page-home .home-quote .quote-form[data-trip-mode=one_way] .sector-row {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto; border: 1px solid #d6e1e9; border-radius: 11px;
    background: #fff; box-shadow: none;
  }
  body[data-search-scheme].page-home .home-quote .quote-form .sector-row > .sector-rail {
    display: flex; grid-column: 1; grid-row: 1; flex-direction: row;
    justify-content: flex-start; align-items: center; gap: 5px;
    min-height: 44px; padding: 0 16px; border: 0; border-bottom: 1px solid #d6e1e9;
    border-radius: 10px 0 0 0; background: #f1f6f9; color: #365a70;
  }
  body[data-search-scheme].page-home .home-quote .quote-form .sector-rail small,
  body[data-search-scheme].page-home .home-quote .quote-form .sector-rail strong {
    font-size: 13px; line-height: 1.3; font-weight: 650;
  }
  body[data-search-scheme].page-home .home-quote .quote-form .sector-row > .field {
    display: flex; min-width: 0; min-height: 60px; padding: 9px 16px;
    border: 0; border-radius: 0; background: #fff;
  }
  body[data-search-scheme].page-home .home-quote .quote-form .sector-row > .field-origin {
    grid-column: 1; grid-row: 2; border-right: 1px solid #d6e1e9;
  }
  body[data-search-scheme].page-home .home-quote .quote-form .sector-row > .field-destination {
    grid-column: 2; grid-row: 2;
  }
  body[data-search-scheme].page-home .home-quote .quote-form .sector-row > .field-date {
    grid-column: 1; grid-row: 3; border-top: 1px solid #d6e1e9; border-right: 1px solid #d6e1e9;
    border-radius: 0 0 0 10px; background: #f8fbfd;
  }
  body[data-search-scheme].page-home .home-quote .quote-form .sector-row > .field-time {
    grid-column: 2; grid-row: 3; min-width: 0; border-top: 1px solid #d6e1e9;
    border-radius: 0 0 10px 0; background: #f8fbfd;
  }
  body[data-search-scheme].page-home .home-quote .quote-form .sector-row > .sector-actions,
  body[data-search-scheme].page-home .home-quote .quote-form .sector-row > .sector-actions.is-empty {
    grid-column: 2; grid-row: 1; display: flex; justify-content: flex-end;
    border: 0; border-bottom: 1px solid #d6e1e9; border-radius: 0 10px 0 0;
    background: #f1f6f9;
  }
  body[data-search-scheme].page-home .home-quote .quote-form:not([data-trip-mode=multi_city]) .sector-row > .sector-actions,
  body[data-search-scheme].page-home .home-quote .quote-form:not([data-trip-mode=multi_city]) .sector-rail { display: none; }
  body[data-search-scheme].page-home .home-quote .quote-form .sector-actions .remove-sector {
    width: 44px; min-width: 44px; height: 44px; min-height: 44px;
    border: 0; border-left: 1px solid #d6e1e9; border-radius: 0 10px 0 0; background: transparent;
    color: #7e5961; font-size: 24px;
  }
  body[data-search-scheme].page-home .home-quote .quote-form .sector-actions .remove-sector:hover { background: #f9e9ec; }
  body[data-search-scheme].page-home .home-quote .quote-form .airport-icon { display: grid; }
  body[data-search-scheme].page-home .home-quote .quote-form .airport-name-sizer,
  body[data-search-scheme].page-home .home-quote .quote-form .airport-name-wrap > .airport-input,
  body[data-search-scheme].page-home .home-quote .quote-form .airport-name-wrap > .airport-input::placeholder,
  body[data-search-scheme].page-home .home-quote .quote-form .date-trigger,
  body[data-search-scheme].page-home .home-quote .quote-form .time-trigger { font-size: 16px; }
  body[data-search-scheme].page-home .home-quote .quote-form .field > label,
  body[data-search-scheme].page-home .home-quote .quote-form .airport-field-copy > label {
    margin-bottom: 3px; font-size: 11px; line-height: 1.2;
  }
  body[data-search-scheme].page-home .home-quote .quote-form :is(.field-date, .field-time) { position: relative; }
  body[data-search-scheme].page-home .home-quote .quote-form :is(.field-date, .field-time) > label { padding-left: 42px; }
  body[data-search-scheme].page-home .home-quote .quote-form :is(.date-trigger, .time-trigger) {
    position: static; padding-left: 42px; gap: 8px;
  }
  body[data-search-scheme].page-home .home-quote .quote-form :is(.date-trigger, .time-trigger) > svg {
    display: block; position: absolute; left: 16px; top: calc(50% - .5px); transform: translateY(-50%);
    width: 32px; height: 32px; padding: 7px; border-radius: 8px; background: #eaf2f7;
    stroke: #3a667f; stroke-width: 2;
  }
  body[data-search-scheme].page-home .home-quote .quote-form .quote-actions {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 10px;
  }
  body[data-search-scheme].page-home .home-quote .quote-form:not([data-trip-mode=multi_city]) .quote-actions {
    display: grid;
  }
  body[data-search-scheme].page-home .home-quote .quote-form .quote-submit,
  body[data-search-scheme].page-home .home-quote .quote-form[data-trip-mode] .quote-submit {
    grid-column: 2; width: 100%; min-height: 48px; font-size: 14px;
  }
  body[data-search-scheme].page-home .home-quote .quote-form .journey-additions { grid-column: 1; min-width: 0; }
  body[data-search-scheme].page-home .home-quote .quote-form .journey-additions > button {
    width: 100%; min-height: 48px; font-size: 14px;
    border-style: solid; background: #f7fafc;
  }

  body[data-search-scheme].page-home .home-quote .quote-form[data-trip-mode=one_way] .field-origin {
    grid-row: 1; border-radius: 10px 0 0 0;
  }
  body[data-search-scheme].page-home .home-quote .quote-form[data-trip-mode=one_way] .field-destination {
    grid-row: 1; border-radius: 0 10px 0 0;
  }
  body[data-search-scheme].page-home .home-quote .quote-form[data-trip-mode=one_way] .field-date,
  body[data-search-scheme].page-home .home-quote .quote-form[data-trip-mode=one_way] .field-time { grid-row: 2; }

  /* One route, followed by outbound and return dates; reverse inputs stay bound in the DOM. */
  body[data-search-scheme].page-home .home-quote .quote-form .return-journey {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0;
    padding: 0; border: 1px solid #d6e1e9; border-radius: 11px; background: #fff;
  }
  body[data-search-scheme].page-home .home-quote .quote-form .return-journey > .sector-row { display: contents; }
  body[data-search-scheme].page-home .home-quote .quote-form .is-return-dates > .field-origin,
  body[data-search-scheme].page-home .home-quote .quote-form .is-return-dates > .field-destination { display: none; }
  body[data-search-scheme].page-home .home-quote .quote-form .is-return-outbound > .field-origin {
    grid-column: 1; grid-row: 1; border-radius: 10px 0 0 0;
  }
  body[data-search-scheme].page-home .home-quote .quote-form .is-return-outbound > .field-destination {
    grid-column: 2; grid-row: 1; border-radius: 0 10px 0 0;
  }
  body[data-search-scheme].page-home .home-quote .quote-form .is-return-outbound > .field-date {
    grid-column: 1; grid-row: 2; border-radius: 0;
  }
  body[data-search-scheme].page-home .home-quote .quote-form .is-return-outbound > .field-time {
    grid-column: 2; grid-row: 2; border-radius: 0;
  }
  body[data-search-scheme].page-home .home-quote .quote-form .is-return-dates > .field-date { grid-column: 1; grid-row: 3; }
  body[data-search-scheme].page-home .home-quote .quote-form .is-return-dates > .field-time { grid-column: 2; grid-row: 3; }
}
@media (min-width: 1050px) and (max-width: 1180px) {
  body[data-search-scheme].page-home .home-quote .quote-form .return-journey { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body[data-search-scheme].page-home .home-quote .quote-form .is-return-outbound > .field-origin { grid-column: 1 / 3; }
  body[data-search-scheme].page-home .home-quote .quote-form .is-return-outbound > .field-destination { grid-column: 3 / 5; }
  body[data-search-scheme].page-home .home-quote .quote-form .is-return-outbound > .field-date { grid-column: 1; grid-row: 2; border-radius: 0 0 0 10px; }
  body[data-search-scheme].page-home .home-quote .quote-form .is-return-outbound > .field-time { grid-column: 2; grid-row: 2; border-right: 1px solid #c6d7e3; }
  body[data-search-scheme].page-home .home-quote .quote-form .is-return-dates > .field-date { grid-column: 3; grid-row: 2; border-radius: 0; }
  body[data-search-scheme].page-home .home-quote .quote-form .is-return-dates > .field-time { grid-column: 4; grid-row: 2; }
}
/* Align laptop actions with the route columns above. */
@media (min-width: 1181px) {
  body[data-search-scheme].page-home .home-quote .quote-form .quote-actions,
  body[data-search-scheme].page-home .home-quote .quote-form[data-trip-mode] .quote-actions {
    display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1fr) 170px 148px 48px;
    gap: 0; padding: 10px 1px 0;
  }
  body[data-search-scheme].page-home .home-quote .quote-form:not([data-trip-mode=multi_city]) .quote-actions {
    grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1fr) 170px 148px;
  }
  body[data-search-scheme].page-home .home-quote .quote-form .quote-submit,
  body[data-search-scheme].page-home .home-quote .quote-form[data-trip-mode] .quote-submit {
    grid-column: 4 / 6; width: 100%;
  }
  body[data-search-scheme].page-home .home-quote .quote-form .journey-additions { grid-column: 1 / 4; }
  body[data-search-scheme].page-home .home-quote .quote-form .journey-additions > button { width: min(318px, 100%); }
}
/* Phones share the tablet icon-and-copy layout at a compact scale. */
@media (max-width: 600px) {
  body[data-search-scheme].page-home .home-quote .quote-form .airport-icon {
    width: 28px; height: 28px; flex-basis: 28px; border-radius: 7px;
  }
  body[data-search-scheme].page-home .home-quote .quote-form .airport-input-wrap { gap: 8px; }
  body[data-search-scheme].page-home .home-quote .quote-form .field > label,
  body[data-search-scheme].page-home .home-quote .quote-form .airport-field-copy > label { margin-bottom: 3px; }
  body[data-search-scheme].page-home .home-quote .quote-form :is(.field-date, .field-time) { position: relative; }
  body[data-search-scheme].page-home .home-quote .quote-form :is(.field-date, .field-time) > label { padding-left: 36px; }
  body[data-search-scheme].page-home .home-quote .quote-form :is(.date-trigger, .time-trigger) {
    position: static; padding-left: 36px; gap: 6px;
  }
  body[data-search-scheme].page-home .home-quote .quote-form .date-trigger .booking-control-copy {
    white-space: normal; line-height: 1.25;
  }
  body[data-search-scheme].page-home .home-quote .quote-form :is(.date-trigger, .time-trigger) > svg {
    display: block; position: absolute; left: 12px; top: calc(50% - .5px); transform: translateY(-50%);
    width: 28px; height: 28px; padding: 5px; border-radius: 7px;
    background: #eaf2f7; stroke: #3a667f; stroke-width: 2;
  }
}
@media (max-width: 359px) {
  body[data-search-scheme].page-home .home-quote .quote-form .quote-title { font-size: 17px; }
  body[data-search-scheme].page-home .home-quote .quote-form .quote-submit,
  body[data-search-scheme].page-home .home-quote .quote-form .journey-additions > button { font-size: 12px; gap: 5px; }
  body[data-search-scheme].page-home .home-quote .quote-form .sector-row > .field { padding-inline: 7px; }
  body[data-search-scheme].page-home .home-quote .quote-form :is(.date-trigger, .time-trigger) { font-size: 13px; }
  body[data-search-scheme].page-home .home-quote .quote-form :is(.date-trigger, .time-trigger) > svg { left: 7px; }
  body[data-search-scheme].page-home .home-quote .quote-form :is(.date-trigger, .time-trigger) > span[aria-hidden] { display: none; }
  body[data-search-scheme].page-home .home-quote .quote-form[data-trip-mode=multi_city] .quote-actions { grid-template-columns: 1.12fr 1fr; gap: 8px; }
  body[data-search-scheme].page-home .home-quote .quote-form .journey-additions > button { padding-inline: 6px; }
  body[data-search-scheme].page-home .home-quote .quote-form[aria-busy=true] .quote-submit { font-size: 11px; padding-inline: 4px; }
}
