@font-face {
  font-family: 'Simpler';
  src: url('./fonts/SimplerPro_HLAR-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Simpler';
  src: url('./fonts/SimplerPro_HLAR-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Simpler';
  src: url('./fonts/SimplerPro_HLAR-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

:root {
  --brand-navy: #043273;
  --brand-blue: #2F6FA3;
  --brand-sky: #6E9EC5;
  --brand-soft: #EAF2F9;
  --bg: #F4F7FB;
  --surface: #FFFFFF;
  --surface-2: #FBFCFE;
  --text: #1E2939;
  --muted: #667085;
  --line: #D8E3F0;
  --success-bg: #EDFDF4;
  --success-line: #ABEFC6;
  --success-text: #067647;
  --warn-bg: #FFF8EB;
  --warn-line: #F3DEC1;
  --warn-text: #8A5A10;
  --shadow: 0 20px 45px rgba(4, 50, 115, 0.12);
  --shadow-soft: 0 10px 24px rgba(4, 50, 115, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --info-bg: #EEF4FF;
  --info-line: #C7D7FE;
  --info-text: #1D4ED8;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Simpler', Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(47,111,163,0.08), transparent 22%),
    radial-gradient(circle at top right, rgba(4,50,115,0.08), transparent 20%),
    linear-gradient(180deg, #F8FBFF 0%, var(--bg) 100%);
  color: var(--text);
}

body { min-height: 100vh; }

.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 18px 60px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
  padding: 0 4px;
  color: var(--brand-navy);
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.topbar-pill {
  background: rgba(4,50,115,0.06);
  color: var(--brand-navy);
  border: 1px solid rgba(4,50,115,0.08);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--brand-navy);
  color: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 24px 28px;
  margin-bottom: 24px;
  min-height: 190px;
  border-top: 4px solid var(--brand-navy);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 220px;
  height: 220px;
  left: -60px;
  top: -80px;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 72%);
}

.hero::after {
  width: 260px;
  height: 260px;
  right: -80px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
  padding-top: 42px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 4px;
}

.logo-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  width: auto;
  height: auto;
  border-radius: 0;
  overflow: visible;
}

.logo-card img {
  width: 160px;
  height: auto;
  display: block;
  object-fit: contain;
}

.brand-text { line-height: 1.25; }
.brand-text strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
}
.brand-text span {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.74);
  margin-top: 4px;
}

.hero-kicker {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.82);
  font-size: 12px;
  margin-bottom: 12px;
  position: absolute;
  top: 0;
  left: 0;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.hero p {
  margin: 0;
  max-width: 760px;
  color: rgba(255,255,255,0.9);
  font-size: 15px;
  line-height: 1.7;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(320px, 0.78fr);
  gap: 22px;
  align-items: start;
}

.panel {
  background: var(--surface);
  border: 1px solid rgba(4,50,115,0.08);
  border-top: 4px solid var(--brand-navy);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFCFF 100%);
}

.panel-title-wrap {
  display: flex;
  gap: 12px;
  align-items: center;
}

.panel-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-blue));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 10px 18px rgba(4,50,115,0.14);
}

.panel-title { margin: 0; font-size: 22px; }
.panel-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.panel-body { padding: 22px; }

.flight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.info-card {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--surface-2) 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.info-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-navy));
}
.info-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}
.info-value {
  display: block;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.decision-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.choice { flex: 1 1 240px; position: relative; }
.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choice label {
  display: block;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: #fff;
  cursor: pointer;
  transition: .2s ease;
  min-height: 102px;
}
.choice input:checked + label {
  border-color: var(--brand-blue);
  background: linear-gradient(180deg, #FFFFFF 0%, var(--brand-soft) 100%);
  box-shadow: 0 0 0 4px rgba(47,111,163,0.08);
}
.choice-title {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.choice-text {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.updates-stack { display: grid; gap: 16px; }
.update-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FBFDFF 100%);
  overflow: hidden;
}
.update-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(47,111,163,0.06) 0%, rgba(4,50,115,0.02) 100%);
  flex-wrap: wrap;
}
.update-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-navy);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}
.chip.required {
  background: var(--brand-soft);
  color: var(--brand-navy);
  border-color: rgba(4,50,115,0.08);
}
.chip.optional {
  background: #F8FAFC;
  color: #475467;
  border-color: #E4E7EC;
}
.update-body { padding: 18px; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 13px;
  font-weight: 700;
  color: #24364E;
}
.field select,
.field textarea,
.field input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 14px 14px;
  font: inherit;
  color: var(--text);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field select:focus,
.field textarea:focus,
.field input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(47,111,163,0.10);
}
.field textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.75;
}
.hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.btn {
  border: none;
  border-radius: 16px;
  padding: 14px 20px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-navy));
  color: #fff;
  box-shadow: 0 14px 30px rgba(4,50,115,0.18);
  min-width: 180px;
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-secondary {
  background: #fff;
  color: var(--brand-navy);
  border: 1px solid var(--line);
}
.btn-secondary:hover { background: #F8FBFF; }

.aside-stack {
  display: grid;
  gap: 20px;
  position: sticky;
  top: 16px;
}
.point-list { display: grid; gap: 10px; }
.point-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #FFFFFF 0%, #FBFDFF 100%);
  border-radius: 16px;
}
.point-badge {
  min-width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-navy);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  border: 1px solid rgba(4,50,115,0.08);
}
.point-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.point-meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.message {
  padding: 16px;
  border-radius: 16px;
  line-height: 1.75;
  font-size: 14px;
  border: 1px solid transparent;
}
.message.warn {
  background: var(--warn-bg);
  border-color: var(--warn-line);
  color: var(--warn-text);
}
.message.success {
  background: var(--success-bg);
  border-color: var(--success-line);
  color: var(--success-text);
}
.message.info {
  background: var(--info-bg);
  border-color: var(--info-line);
  color: var(--info-text);
}
.footer-note {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  margin-top: 10px;
  line-height: 1.6;
}
.loading-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #F8FBFF;
  border: 1px solid var(--line);
}
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(4,50,115,0.16);
  border-top-color: var(--brand-navy);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  flex-shrink: 0;
}
.hidden { display: none !important; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
  .shell {
    padding: 18px 14px 44px;
  }

  .main-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .aside-stack {
    position: static;
    gap: 18px;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .topbar-meta {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    padding: 22px 20px;
    border-radius: 22px;
  }

  .hero-grid {
    padding-top: 44px;
  }

  .logo-card img {
    width: 140px;
  }

  .panel-head,
  .panel-body {
    padding: 18px;
  }

  .flight-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column;
  }

  .actions .btn {
    width: 100%;
    min-width: 0;
  }

  .point-list {
    gap: 8px;
  }
}

@media (max-width: 680px) {
  .shell {
    padding: 12px 10px 32px;
  }

  .topbar {
    margin-bottom: 14px;
    padding: 0;
  }

  .topbar-meta {
    gap: 6px;
    font-size: 13px;
  }

  .topbar-pill {
    font-size: 12px;
    padding: 6px 10px;
  }

  .hero {
    padding: 18px 14px;
    margin-bottom: 16px;
    border-radius: 18px;
  }

  .hero::before {
    width: 140px;
    height: 140px;
    left: -40px;
    top: -45px;
  }

  .hero::after {
    width: 170px;
    height: 170px;
    right: -55px;
    bottom: -80px;
  }

  .hero-grid {
    padding-top: 42px;
    gap: 10px;
  }

  .brand-lockup {
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
  }

  .logo-card img {
    width: 118px;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .brand-text span {
    font-size: 12px;
  }

  .hero-kicker {
    position: static;
    margin-bottom: 10px;
    max-width: 100%;
  }

  .hero h1 {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 8px;
  }

  .hero p {
    font-size: 14px;
    line-height: 1.65;
  }

  .panel {
    border-radius: 16px;
  }

  .panel-head,
  .panel-body {
    padding: 14px;
  }

  .panel-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .panel-title-wrap {
    align-items: flex-start;
    gap: 10px;
  }

  .panel-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 16px;
  }

  .panel-title {
    font-size: 18px;
    line-height: 1.25;
  }

  .panel-subtitle {
    font-size: 12px;
    line-height: 1.5;
  }

  .flight-grid,
  .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .info-card {
    padding: 14px;
    border-radius: 15px;
  }

  .info-label {
    font-size: 11px;
    margin-bottom: 6px;
  }

  .info-value {
    font-size: 16px;
    line-height: 1.45;
    word-break: break-word;
  }

  .updates-stack {
    gap: 12px;
  }

  .update-card {
    border-radius: 16px;
  }

  .update-head {
    padding: 12px 14px;
    align-items: flex-start;
  }

  .update-title {
    font-size: 16px;
  }

  .chip {
    font-size: 11px;
    padding: 6px 10px;
  }

  .update-body {
    padding: 14px;
  }

  .field {
    gap: 6px;
  }

  .field label {
    font-size: 13px;
  }

  .field select,
  .field textarea,
  .field input {
    min-height: 50px;
    padding: 13px 12px;
    font-size: 16px;
    border-radius: 12px;
  }

  .field textarea {
    min-height: 150px;
  }

  .hint {
    font-size: 11px;
    line-height: 1.5;
  }

  .loading-preview {
    align-items: flex-start;
    padding: 12px 13px;
    border-radius: 14px;
  }

  .message {
    padding: 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.65;
  }

  .point-row {
    padding: 11px;
    gap: 10px;
    border-radius: 14px;
  }

  .point-badge {
    min-width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 11px;
  }

  .point-name {
    font-size: 14px;
    line-height: 1.4;
  }

  .point-meta {
    font-size: 11px;
    line-height: 1.5;
  }

  .actions {
    gap: 10px;
    margin-top: 14px;
  }

  .btn {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 14px;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 24px;
  }

  .brand-lockup {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo-card img {
    width: 104px;
  }

  .panel-title {
    font-size: 17px;
  }

  .info-value {
    font-size: 15px;
  }
}
