/* Website layout and form refinements. */

/*
 * The header was already asking to stay put — the build gives it
 * position: sticky and top: 0 — but it is the first child of the hero, and a
 * sticky element cannot travel outside its parent's box. The hero is around
 * seven hundred pixels tall, so the header held its place to the foot of the
 * hero and then scrolled away with it, which reads as sticky being broken
 * rather than confined.
 *
 * Fixed to the viewport instead, it is bound by nothing. Leaving the flow
 * would let the hero rise by the height the header gave up, so that height is
 * handed back as padding — the hero still begins at the top of the page, so
 * its background goes on filling the strip behind the header exactly as it
 * did, and nothing moves at rest. The height is measured and published as
 * --mx-nav-height; the fallback covers the layout the build ships with, so the
 * page is still correct if the script never runs.
 */
.site-header-wrap {
  position: fixed;
  inset-inline: 0;
  top: 0;
}

.hero-surface {
  padding-top: var(--mx-nav-height, 78px);
}

.claim-field .mx-identifier-help {
  display: block;
  margin-top: 7px;
  color: #74869d;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}

.claim-field input:invalid:not(:placeholder-shown) {
  color: #b94832;
}

.mx-demo-verification-badge {
  border-color: #f1d49d !important;
  background: #fff7e8 !important;
  color: #8b5a00 !important;
}

.mx-demo-verification-source {
  border-color: #f0d5a5 !important;
  background: #fffaf0 !important;
  color: #815912 !important;
}

.mx-amadeus-disclosure {
  width: min(720px, 100%);
  margin: 0 auto 18px;
  border: 1px solid #efcf91;
  border-radius: 15px;
  background: #fff9eb;
  color: #72501a;
  padding: 13px 16px;
  font-size: 13.5px;
  font-weight: 750;
  line-height: 1.75;
  text-align: start;
}

.mx-demo-flight-summary {
  position: relative;
  border-color: #b9d2ef !important;
}

.mx-demo-data-note {
  width: fit-content;
  margin: 0 auto 14px !important;
  border: 1px solid #c8dcf3;
  border-radius: 999px;
  background: #edf5ff;
  color: #2868b5 !important;
  padding: 6px 12px;
  font-size: 12px !important;
  font-weight: 800;
  line-height: 1.4 !important;
  text-align: center;
}

.platform-main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.platform-main-nav button {
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  padding: 9px 13px;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: color .15s, background-color .15s;
}

.platform-main-nav button:hover,
.platform-main-nav button:focus-visible {
  background: #3078d014;
  color: var(--heading);
}

.platform-main-nav button:focus-visible {
  outline: 2px solid #3078d0;
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .platform-topbar-inner {
    flex-wrap: wrap;
  }

  .platform-main-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 8px;
  }

  .platform-main-nav button {
    flex: 1 1 auto;
    padding-inline: 8px;
    font-size: 13px;
  }
}

@media (max-width: 420px) {
  .platform-main-nav {
    gap: 1px;
  }

  .platform-main-nav button {
    padding-inline: 4px;
    font-size: 12px;
  }
}

/* Equal columns remain centered when the claim type changes. */
.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  width: min(1200px, 100%);
  box-sizing: border-box;
  padding-inline: clamp(18px, 4vw, 40px);
  gap: clamp(32px, 5vw, 64px);
}

.hero-grid > .hero-copy { min-width: 0; margin: 0; }
.hero-copy h1 strong { display: block; }
.hero-grid > .claim-wrap { width: min(466px, 100%); min-width: 0; justify-self: center; }
.claim-card .field-control input { min-width: 0; width: 100%; font-size: 14px; font-weight: 400; }
.hero-grid .claim-type-grid + .claim-field .field-control input { font-size: 14px; letter-spacing: normal; }
.hero-grid .claim-card .claim-field:first-of-type > span { display: flex; align-items: flex-end; min-height: 21px; line-height: 21px; }
.hero-grid .claim-card .mx-identifier-help { min-height: 36px; font-size: 11.5px; font-weight: 400; line-height: 18px; margin: 0; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-grid > .hero-copy { width: 100%; margin-inline: auto; }
}

@media (max-width: 600px) {
  .hero-grid .claim-card .claim-field:first-of-type > span { min-height: 42px; }
  .hero-grid .claim-card .mx-identifier-help { min-height: 54px; }
  .claim-card .field-control input,
  .hero-grid .claim-type-grid + .claim-field .field-control input { font-size: 16px; }
}

.claim-passengers { display: grid; gap: 14px; margin-block: 22px; }
.claim-passenger-card { min-width: 0; padding: 18px; border: 1px solid #dce5f1; border-radius: 16px; background: #fff; }
.claim-passenger-card.selected { border-color: #7aafe9; }
.claim-passenger-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.claim-passenger-select { display: flex; align-items: start; gap: 10px; min-width: 0; }
.claim-passenger-select input { flex: none; width: 18px; height: 18px; margin-block-start: 5px; accent-color: #2579d4; }
.claim-passenger-select span { display: grid; gap: 5px; min-width: 0; }
.claim-passenger-select strong { font-size: 16px; overflow-wrap: anywhere; }
.claim-passenger-select small { color: #70829b; font-size: 12px; }
.claim-passenger-remove,.claim-passenger-add { border: 1px solid #dce5f1; border-radius: 10px; background: transparent; color: #226cb7; padding: 8px 12px; font: inherit; font-size: 12px; cursor: pointer; }
.claim-passenger-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-block-start: 16px; }
.claim-passenger-fields label { display: grid; gap: 7px; min-width: 0; }
.claim-passenger-fields label:last-child { grid-column: 1/-1; }
.claim-passenger-fields label>span { font-size: 12px; color: #70829b; }
.claim-passenger-fields input,.claim-passenger-fields select { width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid #dce5f1; border-radius: 10px; background: #f7faff; color: inherit; font: inherit; font-size: 16px; }
.claim-passenger-fields input:focus-visible,.existing-account input:focus-visible { outline: 2px solid #347ed1; outline-offset: 2px; }
.claim-passenger-add { justify-self: start; min-height: 42px; }
.claim-date-error { margin: 0; color: #a13232; font-size: 12px; line-height: 1.6; }
.claim-funnel .funnel-panel.existing-account { display: grid; gap: 14px; }
.claim-funnel .funnel-panel.existing-account>.claim-login-challenge { display: block; padding: 0; border: 0; background: transparent; min-width: 0; }
.claim-login-challenge p { margin: 8px 0; font-size: 12px; line-height: 1.7; }
.claim-login-challenge button { border: 0; background: transparent; color: #226cb7; font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
.claim-funnel[data-theme="dark"] .claim-passenger-card { background: #10243b; border-color: #37516f; }
.claim-funnel[data-theme="dark"] .claim-passenger-card.selected { border-color: #70aeef; }
.claim-funnel[data-theme="dark"] .claim-passenger-fields input,.claim-funnel[data-theme="dark"] .claim-passenger-fields select { background: #0b1d32; border-color: #37516f; }
@media(max-width:480px) { .claim-passenger-card { padding: 14px; } .claim-passenger-fields { grid-template-columns: minmax(0,1fr); } .claim-passenger-select strong { font-size: 15px; } }
