:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #14202e;
  --muted: #637083;
  --line: #d9e0ea;
  --primary: #0a7f8f;
  --primary-strong: #065f6e;
  --accent: #d64b35;
  --ok: #147a4b;
  --shadow: 0 10px 28px rgba(18, 31, 53, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #eef6f8 0%, #f8fafc 48%, #fff4ef 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.booking-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.booking-head img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.booking-head p {
  margin: 0 0 4px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.booking-head h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
}

.booking-card,
.success {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 16px;
}

.section-title span {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--primary);
  font-weight: 800;
}

.section-title h2 {
  margin: 0;
  font-size: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 20px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 11px;
  background: #ffffff;
  color: var(--text);
}

textarea {
  resize: vertical;
}

.slots-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 10px;
}

.slots-head h3 {
  margin: 0;
  font-size: 16px;
}

.slots {
  min-height: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}

.slot {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  font-weight: 800;
}

.slot.active,
.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.slot:disabled {
  cursor: not-allowed;
  color: #9aa5b5;
  background: #f4f7fb;
}

button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 14px;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}

.primary {
  min-width: 170px;
}

.primary:hover {
  background: var(--primary-strong);
}

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.submit-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.submit-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(10, 127, 143, 0.22);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 720ms linear infinite;
}

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

.is-submitting {
  opacity: 0.78;
}

button:disabled {
  cursor: wait;
  opacity: 0.75;
}

.message {
  min-height: 20px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.success {
  margin-bottom: 18px;
  border-color: #b9dfcc;
  background: #effaf4;
}

.success h2 {
  margin: 0 0 8px;
  color: var(--ok);
}

.success p {
  margin: 0 0 14px;
  color: var(--text);
}

.whatsapp-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 8px 0 0;
  padding: 8px 14px;
  border-radius: 6px;
  background: #18a957;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.hidden {
  display: none;
}

@media (max-width: 720px) {
  .booking-shell {
    padding: 16px;
  }

  .booking-head h1 {
    font-size: 26px;
  }

  .form-grid,
  .actions {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }
}
