:root {
  --ink: #132033;
  --muted: #657186;
  --line: #d9e0ea;
  --surface: #ffffff;
  --soft: #f3f7fb;
  --brand: #0f7a8a;
  --brand-dark: #075463;
  --accent: #ff5100;
  --accent-dark: #d94400;
  --accent-soft: #fff0e8;
  --danger: #b63c3c;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(15, 122, 138, 0.15), transparent 36%),
    linear-gradient(315deg, rgba(242, 165, 65, 0.18), transparent 38%),
    #eef4f8;
}

button,
input {
  font: inherit;
}

.back-link {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(19, 32, 51, 0.18);
}

.back-link:hover {
  background: #26354a;
}

.app-shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  gap: 28px;
  align-items: center;
  padding: 32px 0;
}

.brand-panel {
  padding: 42px 10px;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.logo-row a {
  display: inline-flex;
}

.atm-logo {
  display: block;
  width: min(260px, 100%);
  height: auto;
}

.exitours-logo {
  display: block;
  width: min(300px, 100%);
  height: auto;
}

.eyebrow {
  margin: 30px 0 12px;
  color: var(--brand-dark);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.82rem;
}

h1 {
  margin: 0;
  max-width: 620px;
  font-size: clamp(2.1rem, 4vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.lead {
  max-width: 570px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 34px;
}

.summary-strip div {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(15, 122, 138, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.dollar-widget {
  width: fit-content;
  max-width: 100%;
  margin-top: 18px;
  padding: 10px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.dollar-widget img {
  display: block;
  max-width: 100%;
  height: auto;
}

.summary-strip span,
.result-label,
label > span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
}

.summary-strip strong {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 6px;
  font-size: 1.15rem;
}

.quote-panel {
  padding: 26px;
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 80px rgba(19, 32, 51, 0.14);
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 12px;
  font-weight: 800;
  font-size: 1.06rem;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.plan-card {
  position: relative;
  min-height: 112px;
  display: flex;
  align-items: stretch;
  cursor: pointer;
}

.plan-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.plan-card span {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.plan-card strong {
  font-size: 1rem;
  line-height: 1.18;
}

.plan-card small {
  color: var(--muted);
  line-height: 1.35;
  font-weight: 600;
}

.plan-card input:checked + span {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.plan-card input:focus-visible + span,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(242, 165, 65, 0.45);
  outline-offset: 2px;
}

.date-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 24px;
}

label > span {
  margin-bottom: 8px;
}

input[type='date'],
input[type='number'],
input[type='text'],
input[type='email'],
input[type='tel'] {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: white;
  color: var(--ink);
  font-weight: 700;
}

.passenger-control {
  display: block;
  margin-top: 20px;
}

.stepper {
  display: grid;
  grid-template-columns: 52px minmax(90px, 1fr) 52px;
  gap: 8px;
}

.stepper button {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  background: #032b76;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  cursor: pointer;
}

.stepper button:hover {
  background: #021f56;
}

.result-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 26px;
  padding: 20px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
}

.result-box div {
  min-width: 0;
}

.result-box .result-label {
  color: rgba(255, 255, 255, 0.72);
}

.result-box strong {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 8px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1;
}

#priceNote {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #032b76;
  color: #ffffff;
  font-weight: 600;
  line-height: 1.45;
}

.coverage-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--accent-soft);
}

.coverage-box span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.coverage-box strong {
  display: block;
  margin-top: 5px;
  line-height: 1.35;
}

.coverage-box a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  background: #032b76;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.coverage-box a:hover {
  background: #021f56;
}

.coverage-box a:focus {
  background: #021f56;
}
.primary-action {
  width: 100%;
  min-height: 54px;
  margin-top: 16px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.primary-action:hover {
  background: var(--accent-dark);
}

.client-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.client-panel h2 {
  margin: 0 0 14px;
  font-size: 1.15rem;
}

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

.wide-field {
  grid-column: 1 / -1;
}

.secondary-action {
  background: var(--ink);
  color: white;
}

.secondary-action:hover {
  background: #26354a;
}

.pdf-document {
  display: none;
}

.pdf-header {
  display: flex;
  gap: 18px;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--line);
}

.pdf-header .eyebrow {
  margin: 0 0 5px;
}

.pdf-document h2,
.pdf-document h3 {
  margin: 0;
}

.pdf-document h3 {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.pdf-total {
  margin: 24px 0;
  padding: 20px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
}

.pdf-total span,
.pdf-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.pdf-total span {
  color: rgba(255, 255, 255, 0.72);
}

.pdf-total strong {
  display: block;
  margin-top: 8px;
  font-size: 2.4rem;
}

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

.pdf-grid div {
  min-height: 74px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pdf-grid strong {
  display: block;
  margin-top: 7px;
  overflow-wrap: anywhere;
}

.coverage-image-wrap {
  margin: 18px 0 0;
  page-break-inside: avoid;
}

.coverage-image-wrap img {
  display: block;
  width: 100%;
  max-height: 900px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: 22px;
  }

  .brand-panel {
    padding: 8px 0 0;
  }

  .back-link {
    position: static;
    margin: 12px 0 0 12px;
  }
}

@media (max-width: 620px) {
  .app-shell {
    width: min(100% - 22px, 1120px);
  }

  .summary-strip,
  .plan-grid,
  .date-grid,
  .result-box,
  .client-grid,
  .coverage-box {
    grid-template-columns: 1fr;
  }

  .quote-panel {
    padding: 18px;
  }

  .plan-card {
    min-height: 88px;
  }
}

@media print {
  @page {
    margin: 18mm;
  }

  body {
    min-height: auto;
    background: white;
  }

  .app-shell {
    display: none;
  }

  .pdf-document {
    display: block;
    color: var(--ink);
    font-family: Arial, sans-serif;
  }

  .pdf-document .atm-logo {
    max-width: 220px;
  }

  .back-link {
    display: none;
  }

  .coverage-image-wrap {
    page-break-before: always;
  }

  .coverage-image-wrap img {
    max-height: none;
    border: 0;
    border-radius: 0;
  }
}
