:root {
  --ink: #1d1d1f;
  --muted: #62646a;
  --line: #dedbd3;
  --paper: #faf8f4;
  --card: #ffffff;
  --navy: #1f2a44;
  --navy-soft: #e8ebf2;
  --gold: #a8843a;
  --gold-soft: #f6efe0;
  --error: #b42318;
  --error-soft: #fdecea;
  --ok: #1e7a46;
  --ok-soft: #e7f5ec;
  --radius: 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-wrap: anywhere;
}

main {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 16px;
}

h1 {
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 8px 0 16px;
  color: var(--navy);
}

a {
  color: var(--navy);
}

[hidden] {
  display: none !important;
}

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

.small {
  font-size: 0.875rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--navy);
  color: #fff;
}

.brand {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  min-width: 0;
}

.site-nav {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.nav-book,
.lang-switch {
  font: inherit;
  font-size: 0.875rem;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}

.nav-book {
  background: var(--gold);
  color: #fff;
  border: 1px solid var(--gold);
  font-weight: 600;
}

.lang-switch {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  min-width: 44px;
}

.sample-banner {
  margin: 0;
  padding: 6px 16px;
  background: var(--gold-soft);
  color: #6a4b00;
  font-size: 0.8rem;
  text-align: center;
}

.hero {
  padding: 24px 0 8px;
}

.kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 700;
}

.lead {
  font-size: 1.05rem;
}

.points {
  padding-left: 20px;
  margin: 16px 0;
}

.points li {
  margin: 6px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font: inherit;
  font-weight: 600;
  border-radius: 10px;
  padding: 10px 16px;
  border: 1px solid var(--navy);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  max-width: 100%;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-primary:disabled {
  background: #9aa1b1;
  border-color: #9aa1b1;
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
}

.btn-large {
  font-size: 1.15rem;
  padding: 14px 28px;
  margin: 8px 0;
  background: var(--gold);
  border-color: var(--gold);
}

.btn-small {
  padding: 4px 10px;
  font-size: 0.85rem;
  margin: 0 0 8px;
}

.btn-block {
  width: 100%;
  margin-top: 12px;
}

.link-back {
  background: none;
  border: 0;
  padding: 0;
  color: var(--navy);
  font: inherit;
  cursor: pointer;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin: 0 0 16px;
  min-width: 0;
}

fieldset.card {
  min-inline-size: 0;
}

legend {
  font-weight: 700;
  color: var(--navy);
  padding: 0 6px;
  margin-left: -6px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 12px;
  min-width: 0;
}

.field label {
  font-weight: 600;
  font-size: 0.9rem;
}

input[type='text'],
input[type='email'],
input[type='tel'],
input[type='date'],
input[type='time'],
input[type='number'],
select,
textarea {
  font: inherit;
  font-size: 16px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid #c9c5bb;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

input[type='date'],
input[type='time'] {
  min-height: 44px;
  -webkit-appearance: none;
  appearance: none;
}

input:focus,
select:focus,
textarea:focus,
.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

input[aria-invalid='true'] {
  border-color: var(--error);
}

.required {
  color: var(--error);
}

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

.alert {
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0 0 12px;
  font-size: 0.925rem;
}

.alert-error {
  background: var(--error-soft);
  color: var(--error);
  border: 1px solid #f4c7c3;
}

.field-error {
  color: var(--error);
  font-size: 0.875rem;
  margin: 0;
}

.field-ok {
  color: var(--ok);
  font-size: 0.875rem;
  margin: 0;
}

.notice {
  background: var(--gold-soft);
  color: #6a4b00;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.85rem;
}

.vehicles {
  display: grid;
  gap: 10px;
}

.vehicle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  background: #fff;
}

.vehicle input {
  margin: 0;
  width: 20px;
  height: 20px;
}

.vehicle.is-selected {
  border-color: var(--navy);
  box-shadow: 0 0 0 1px var(--navy);
  background: var(--navy-soft);
}

.vehicle.is-only {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold);
  background: var(--gold-soft);
}

.vehicle.is-disabled {
  cursor: not-allowed;
  background: #f1f0ec;
  color: #8a8a8a;
}

.vehicle.is-disabled .vehicle-amount {
  color: #8a8a8a;
}

.vehicle-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.vehicle-name {
  font-weight: 700;
}

.vehicle-capacity {
  font-size: 0.825rem;
  color: var(--muted);
}

.vehicle-issue {
  font-size: 0.825rem;
  color: var(--error);
  font-weight: 600;
}

.vehicle-badge {
  font-size: 0.8rem;
  color: #6a4b00;
  font-weight: 700;
}

.vehicle-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.vehicle-amount {
  font-size: 1.2rem;
  font-weight: 700;
  white-space: nowrap;
}

.vehicle.is-only .vehicle-amount {
  font-size: 1.4rem;
  color: var(--navy);
}

.vehicle-night {
  font-size: 0.75rem;
  color: var(--muted);
}

.breakdown {
  margin-top: 12px;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}

.breakdown-title {
  margin: 0 0 6px;
  font-weight: 700;
}

.breakdown-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
}

.breakdown-line .amount {
  white-space: nowrap;
}

.breakdown-line.is-night {
  color: #6a4b00;
  font-weight: 600;
}

.breakdown-line.is-total {
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 6px;
  font-weight: 700;
  font-size: 1.05rem;
}

.choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 0 10px;
  cursor: pointer;
}

.choice input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.choice > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.choice:has(input:checked) {
  border-color: var(--navy);
  background: var(--navy-soft);
}

.choice-terms > span {
  display: block;
}

.cancellation {
  margin: 4px 0 12px;
  padding: 12px;
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.cancellation-title {
  margin: 0 0 6px;
  font-weight: 700;
}

.tiers {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tier {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid #eeebe4;
  font-size: 0.9rem;
}

.tier:last-child {
  border-bottom: 0;
}

.tier-label {
  min-width: 0;
}

.tier-amount {
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.tier.is-current {
  color: var(--navy);
}

.tier.is-past {
  color: #9a9a9a;
}

.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 0.72rem;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.tag-muted {
  background: #d8d6d0;
  color: #555;
}

.missing {
  font-size: 0.875rem;
  color: var(--muted);
}

.missing-title {
  margin: 8px 0 2px;
  font-weight: 600;
}

.missing ul {
  margin: 0;
  padding-left: 18px;
}

.confirmation h1 {
  margin-top: 0;
}

.ref-line {
  font-size: 1.1rem;
}

.ref-line strong {
  font-size: 1.3rem;
  color: var(--navy);
  letter-spacing: 0.04em;
  margin-left: 6px;
}

.email-preview {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: #fff;
  margin: 12px 0;
  overflow-x: auto;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer {
  padding: 16px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 4px 0;
}

@media (min-width: 640px) {
  main {
    padding: 24px;
  }

  h1 {
    font-size: 1.85rem;
  }

  .brand {
    font-size: 1.05rem;
  }
}

@media (max-width: 360px) {
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}
