/* Shared customer surface — whymytrip (trust / brand) */
:root {
  --ink: #0b1f3a;
  --muted: #5a6b7d;
  --paper: #e8eef5;
  --paper-2: #f5f8fc;
  --card: #ffffff;
  --accent: #e71c23;
  --accent-hover: #c41218;
  --accent-ink: #ffffff;
  --navy: #0b1f3a;
  --navy-soft: #143154;
  --line: #d0dae6;
  --line-strong: #b8c5d4;
  --ok-bg: #e8f5ef;
  --ok-line: #a8d4be;
  --ok: #1a7a4c;
  --warn-bg: #fff4e5;
  --warn-line: #efc48a;
  --err: #b42318;
  --err-bg: #fef3f2;
  --err-line: #f5c2c0;
  --focus: #e71c2333;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(11, 31, 58, 0.04), 0 12px 32px rgba(11, 31, 58, 0.08);
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, 0.06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Sora", "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #0b1f3a 0px, #0b1f3a 4px, transparent 4px),
    radial-gradient(ellipse 90% 55% at 50% -20%, #c5d5ea 0%, transparent 55%),
    linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--navy-soft); font-weight: 500; }
a:hover { color: var(--accent); }

.shell {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem clamp(1rem, 3.5vw, 2.5rem) 3.5rem;
}
.shell.narrow { max-width: 480px; }
.shell.comfort { max-width: 920px; }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 1rem clamp(1rem, 3.5vw, 2.5rem) 0.35rem;
}
.site-bar .site-brand {
  margin: 0;
}
.site-bar .topnav {
  margin: 0;
}

.page-title {
  font-family: "Sora", system-ui, sans-serif;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: var(--ink);
  max-width: 18ch;
}

.intake-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
.intro-pane .lede { margin-bottom: 1rem; }
.intro-pane .trust-row { margin: 0; flex-direction: column; gap: 0.55rem; }
.form-pane { min-width: 0; }

.form-section-split {
  display: grid;
  gap: 1.15rem;
}
.fee-col {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

@media (min-width: 880px) {
  .intake-layout {
    grid-template-columns: minmax(280px, 0.85fr) minmax(480px, 1.25fr);
    gap: 2.5rem 3.25rem;
    padding-top: 0.75rem;
  }
  .intro-pane {
    position: sticky;
    top: 1.5rem;
    padding-top: 0.5rem;
  }
  .intro-pane .page-title { max-width: 12ch; }
  .form-section-split {
    grid-template-columns: 1.2fr 0.9fr;
    gap: 1.5rem 1.75rem;
    align-items: start;
  }
  .fee-col {
    padding: 1rem;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 8px;
  }
}

@media (min-width: 1100px) {
  .shell.shell-wide,
  .site-bar { max-width: 1200px; }
}

/* Status / account: use mid width on tablet, wider on desktop */
@media (min-width: 720px) {
  .case-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }
  .case-list .case-card { margin-top: 0; }
  .status-panel .stack {
    grid-template-columns: 1fr 1fr;
  }
  .status-panel .stack > .btn,
  .status-panel .stack > .err,
  .status-panel .stack > details,
  .status-panel .stack > .field-err,
  .status-panel .stack > label.check {
    grid-column: 1 / -1;
  }
}

.topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.topnav a {
  color: var(--navy-soft);
  text-decoration: none;
  font-weight: 600;
}
.topnav a:hover { color: var(--accent); text-decoration: none; }

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.85rem;
  text-decoration: none;
  color: inherit;
}
.brand-lockup img.brand-logo {
  display: block;
  height: clamp(2.4rem, 7vw, 3.1rem);
  width: auto;
}
.brand-lockup img.brand-mark {
  display: block;
  height: 2.5rem;
  width: 2.5rem;
}
.brand-lockup .brand-word {
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.55rem, 4.5vw, 1.9rem);
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.brand-lockup .brand-word .why {
  font-family: "Brush Script MT", "Segoe Script", "Apple Chancery", cursive;
  color: var(--accent);
  font-weight: 400;
  font-size: 1.35em;
  margin-right: 0.02em;
}
/* Keep .brand for pages that still use text fallback */
.brand {
  font-family: "Sora", system-ui, sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.2rem);
  font-weight: 700;
  margin: 0 0 0.35rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}
.brand.sm { font-size: clamp(1.4rem, 4vw, 1.7rem); }

.lede {
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-size: 1.02rem;
  max-width: 34rem;
  font-weight: 400;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: -0.5rem 0 1.35rem;
  padding: 0;
  list-style: none;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}
.trust-row li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.trust-row li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  flex-shrink: 0;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem 1.5rem;
  box-shadow: var(--shadow);
}
form.panel { display: grid; gap: 1.15rem; }

.form-section {
  display: grid;
  gap: 0.85rem;
  padding-top: 0.2rem;
}
.form-section + .form-section {
  border-top: 1px solid var(--line);
  padding-top: 1.15rem;
  margin-top: 0.1rem;
}
.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-soft);
  margin: 0;
  opacity: 0.85;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}
.hint { font-size: 0.75rem; color: var(--muted); font-weight: 400; }
.row { display: grid; gap: 0.9rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }

input, select, textarea {
  font: inherit;
  font-weight: 400;
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fafcfe;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
input:hover, select:hover, textarea:hover {
  border-color: #9aafc4;
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px var(--focus);
}
textarea { min-height: 120px; resize: vertical; }

.btn {
  font: inherit;
  font-weight: 700;
  border: 0;
  border-radius: 8px;
  padding: 0.95rem 1.15rem;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, var(--shadow-sm);
}
.btn:hover:not(:disabled) { background: var(--accent-hover); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: wait; }
.btn.secondary {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  box-shadow: none;
}
.btn.secondary:hover:not(:disabled) {
  background: var(--navy);
  color: #fff;
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  font-weight: 600;
  padding: 0.45rem 0.8rem;
  box-shadow: none;
}

.consent {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: start;
  font-weight: 400;
}
.consent input { margin-top: 0.15rem; }

.issue-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
.issue-fieldset legend {
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0;
  margin-bottom: 0.55rem;
}
.issue-grid {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: 1fr;
}
@media (min-width: 520px) {
  .issue-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.issue-card {
  display: grid;
  gap: 0.2rem;
  text-align: left;
  font: inherit;
  padding: 0.8rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fafcfe;
  cursor: pointer;
  color: var(--ink);
  font-weight: 400;
  transition: border-color 0.12s, background 0.12s;
}
.issue-card strong { font-size: 0.88rem; line-height: 1.25; font-weight: 600; }
.issue-card:hover { border-color: #9aafc4; background: #fff; }
.issue-card.active {
  border-color: var(--accent);
  background: #fff5f5;
  box-shadow: inset 0 0 0 1px var(--accent);
}
.issue-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.price-card {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #0b1f3a 0%, #143154 100%);
  border: 0;
  color: #dce6f2;
  font-size: 0.9rem;
  font-weight: 500;
}
.price-card strong {
  font-size: 1.25rem;
  color: #fff;
  font-weight: 700;
}

.banner {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 8px;
  font-size: 0.92rem;
  display: none;
}
.banner.show {
  display: block;
  animation: fade-in 0.25s ease;
}
.banner.ok { background: var(--ok-bg); border: 1px solid var(--ok-line); color: var(--ok); }
.banner.warn { background: var(--warn-bg); border: 1px solid var(--warn-line); }
.banner.err { background: var(--err-bg); border: 1px solid var(--err-line); color: var(--err); }
.banner a { color: var(--accent); font-weight: 600; }

.chip {
  display: inline-block;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  background: #e8eef8;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 600;
}
.chip.unpaid { background: #fff1e6; color: #9a4b1b; }
.chip.closed { background: #e8ecf0; color: #445566; }

.muted { color: var(--muted); }
.err { color: var(--err); }

.footer {
  margin-top: 2.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

.timeline { list-style: none; padding: 0; margin: 0.75rem 0 0; }
.timeline li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.timeline li:last-child { border-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.case-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-top: 0.75rem;
  box-shadow: var(--shadow-sm);
}
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.stack {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.5rem;
}
.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: start;
  font-size: 0.9rem;
  font-weight: 500;
}
.check input { margin-top: 0.2rem; }
.check .sub {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 0.15rem;
}
.confirm-summary {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 0.85rem;
  line-height: 1.45;
}
.confirm-block {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.confirm-block h2 {
  font-size: 1.05rem;
  margin: 0 0 0.65rem;
  color: var(--ink);
}
details.more {
  margin-top: 0.35rem;
  border-top: 1px dashed var(--line);
  padding-top: 0.75rem;
}
details.more summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  list-style: none;
}
details.more summary::-webkit-details-marker { display: none; }
details.more[open] summary { margin-bottom: 0.75rem; }
.field-err {
  font-size: 0.8rem;
  color: var(--err);
  margin: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  vertical-align: -0.15rem;
  margin-right: 0.4rem;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; }
  .banner.show { animation: none; }
  html { scroll-behavior: auto; }
}
