:root {
  color-scheme: light;
  --ink: #12213a;
  --muted: #58677d;
  --line: #d6dee8;
  --paper: #ffffff;
  --soft: #f3f7fb;
  --sky: #d9eef8;
  --sea: #0b6b86;
  --sea-dark: #074f65;
  --sun: #f5b443;
  --good: #147247;
  --bad: #b42318;
  --warn: #9a5b00;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(217, 238, 248, 0.95) 0%, rgba(255, 255, 255, 0.97) 42%),
    var(--paper);
  color: var(--ink);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(18px, 4vw, 48px);
}

.brand {
  color: var(--ink);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
}

.phone {
  color: var(--sea-dark);
  font-weight: 800;
  text-decoration: none;
}

main {
  padding: 0 clamp(14px, 4vw, 48px) 40px;
}

.booking-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.intro {
  max-width: 760px;
  margin: 8px 0 22px;
}

.kicker {
  margin: 0 0 6px;
  color: var(--sea-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 0.98;
  letter-spacing: 0;
}

.intro p:last-child {
  margin: 12px 0 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.booking-form {
  display: grid;
  gap: 18px;
}

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

legend,
.section-head h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
}

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

.boat-picker legend {
  grid-column: 1 / -1;
}

.boat-card {
  position: relative;
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 124px;
  padding: 10px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.boat-card:hover {
  border-color: #91b8c7;
  transform: translateY(-1px);
}

.boat-card:has(input:checked) {
  border-color: var(--sea);
  box-shadow: 0 0 0 3px rgba(11, 107, 134, 0.16);
}

.boat-card input {
  position: absolute;
  inset: 10px auto auto 10px;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--sea);
}

.boat-card img {
  width: 112px;
  height: 84px;
  border-radius: 6px;
  object-fit: cover;
}

.boat-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.boat-copy strong {
  font-size: 18px;
  line-height: 1.15;
}

.boat-copy span {
  color: var(--muted);
  font-size: 14px;
}

.controls,
.customer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

label {
  font-size: 13px;
  font-weight: 850;
  color: #263856;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #b7c4d2;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(11, 107, 134, 0.18);
  border-color: var(--sea);
}

.time-band,
.customer-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

.slots {
  display: grid;
  grid-template-columns: repeat(6, minmax(108px, 1fr));
  gap: 10px;
  min-height: 48px;
}

.slot {
  min-height: 46px;
  border: 1px solid #aac0cf;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.slot:hover {
  border-color: var(--sea);
}

.slot[aria-pressed="true"] {
  background: var(--sea-dark);
  border-color: var(--sea-dark);
  color: #fff;
}

.empty-slots {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--muted);
}

.customer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
  border: 0;
  background: transparent;
}

.customer-grid .field:last-child {
  grid-column: 1 / -1;
}

.checkout-bar {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #b8c7d4;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -10px 30px rgba(18, 33, 58, 0.08);
}

.checkout-bar div {
  display: grid;
  gap: 3px;
}

#price {
  font-size: 24px;
  line-height: 1.1;
}

#checkout-detail {
  color: var(--muted);
  font-size: 13px;
}

#checkout {
  width: min(280px, 44vw);
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  background: var(--sea);
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

#checkout:hover {
  background: var(--sea-dark);
}

#checkout:disabled {
  cursor: not-allowed;
  background: #98a6b7;
}

.status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.status.good {
  color: var(--good);
}

.status.warn {
  color: var(--warn);
}

.status.bad {
  color: var(--bad);
}

@media (max-width: 980px) {
  .boat-picker,
  .controls,
  .customer-grid {
    grid-template-columns: 1fr;
  }

  .boat-card {
    grid-template-columns: 132px 1fr;
  }

  .boat-card img {
    width: 132px;
    height: 92px;
  }

  .slots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .topbar {
    padding: 14px 14px;
  }

  main {
    padding: 0 12px 28px;
  }

  .intro p:last-child {
    font-size: 16px;
  }

  .boat-card {
    grid-template-columns: 108px 1fr;
    gap: 12px;
  }

  .boat-card img {
    width: 108px;
    height: 82px;
  }

  .section-head {
    display: grid;
    gap: 5px;
  }

  .section-head p {
    text-align: left;
  }

  .slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .checkout-bar {
    position: static;
    display: grid;
  }

  #checkout {
    width: 100%;
  }
}
