* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f4f2;
  color: #222;
}

.page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 32px 16px;
}

.card {
  width: 100%;
  max-width: 540px;
  background: #ffffff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.brand,
.public-brand-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
  gap: 12px;
}

.public-brand-bar {
  padding-bottom: 18px;
  border-bottom: 1px solid #eeeeec;
}

.restaurant-brand,
.seatsync-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.restaurant-public-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 230px;
}

.restaurant-public-brand[hidden] {
  display: none;
}

.restaurant-public-logo {
  display: block;
  max-height: 48px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.restaurant-public-name {
  font-size: 15px;
  font-weight: 800;
  color: #222;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
}

.seatsync-logo-text {
  font-size: 15px;
  font-weight: 800;
  color: #666;
  white-space: nowrap;
}

.logo {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1px;
}

.badge {
  font-size: 13px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #e8f4ff;
  color: #0066aa;
  font-weight: 600;
  white-space: nowrap;
}

.restaurant-name {
  font-size: 15px;
  color: #777;
  margin-bottom: 6px;
  font-weight: 700;
}

h1 {
  font-size: 28px;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}

.subtitle {
  color: #666;
  line-height: 1.5;
  margin-bottom: 26px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 14px;
  font-size: 16px;
  outline: none;
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #222;
}

.field {
  margin-bottom: 18px;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.choice {
  border: 1px solid #ddd;
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  background: #fff;
  transition: 0.2s;
}

.choice strong {
  display: block;
  margin-bottom: 4px;
}

.choice span {
  font-size: 13px;
  color: #666;
  line-height: 1.35;
}

.choice.selected {
  border-color: #111;
  background: #f1f1ee;
}

.people-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #ddd;
  border-radius: 14px;
  padding: 8px;
}

.people-control button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  font-size: 22px;
  cursor: pointer;
  background: #eee;
}

.people-number {
  font-size: 22px;
  font-weight: 800;
}

.button {
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 16px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  background: #111;
  color: #fff;
  margin-top: 4px;
}

.button.secondary {
  background: #ededed;
  color: #111;
  margin-top: 12px;
}

.message {
  display: none;
  padding: 16px;
  border-radius: 16px;
  margin: 18px 0;
  line-height: 1.45;
}

.message.success {
  display: block;
  background: #eaf8ee;
  color: #17692f;
}

.message.error {
  display: block;
  background: #fdecec;
  color: #9b1c1c;
}

.message.warning {
  display: block;
  background: #fff4df;
  color: #7a4a00;
}

.booking-disabled-message {
  display: block;
  margin: 0 0 22px;
  padding: 16px;
  border-radius: 16px;
  background: #fff4df;
  color: #7a4a00;
  line-height: 1.45;
  font-weight: 700;
}

.booking-disabled-message[hidden] {
  display: none;
}

.is-disabled {
  opacity: 0.58;
  pointer-events: none;
}

button:disabled,
input:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.hidden {
  display: none !important;
}

.summary {
  background: #f7f7f5;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.6;
}

.human-check {
  margin-bottom: 16px;
}

.public-form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.checkbox-row input {
  width: auto;
}

.small-note {
  color: #777;
  font-size: 13px;
  line-height: 1.4;
  margin-top: 18px;
  text-align: center;
}

@media (max-width: 520px) {
  .card {
    padding: 22px;
  }

  .row,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 25px;
  }

  .brand,
  .public-brand-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .seatsync-brand {
    align-self: flex-end;
  }

  .restaurant-public-brand,
  .restaurant-public-logo {
    max-width: 100%;
  }
}
.alternative-times-box {
  margin: 12px 0;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #eee;
}

.alternative-times-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.alternative-time-button {
  width: auto;
}

.alternative-times-empty {
  margin: 12px 0;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #eee;
  font-size: 14px;
  color: #555;
}
