/* Monza — public booking widget */

.booking-widget {
  --booking-accent: var(--color-gold, #A6824A);
  --booking-surface: rgba(22, 24, 24, 0.95);
  --booking-border: rgba(166, 130, 74, 0.2);
  background: var(--booking-surface);
  border: 1px solid var(--booking-border);
  border-radius: 12px;
  padding: clamp(1rem, 3vw, 1.75rem);
  max-width: 720px;
  margin: 0 auto;
}

.booking-progress {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.booking-progress-step {
  flex: 1;
  text-align: center;
  font-size: var(--text-sm, 0.875rem);
  color: rgba(230, 226, 218, 0.45);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(230, 226, 218, 0.15);
}

.booking-progress-step.is-active,
.booking-progress-step.is-done {
  color: var(--color-cream, #E6E2DA);
  border-bottom-color: var(--booking-accent);
}

.booking-step {
  display: none;
}

.booking-step.is-active {
  display: block;
}

.booking-field {
  margin-bottom: 1rem;
}

.booking-field label {
  display: block;
  font-size: var(--text-sm, 0.875rem);
  margin-bottom: 0.35rem;
  color: rgba(230, 226, 218, 0.85);
}

.booking-field input,
.booking-field select,
.booking-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--booking-border);
  border-radius: 8px;
  background: rgba(16, 17, 17, 0.8);
  color: var(--color-cream, #E6E2DA);
  font: inherit;
}

.booking-field textarea {
  min-height: 100px;
  resize: vertical;
}

.booking-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1rem 0;
}

.booking-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-height: 44px;
  cursor: pointer;
}

.booking-check input {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.booking-price {
  font-size: var(--text-lg, 1.125rem);
  color: var(--booking-accent);
  margin: 1rem 0;
}

.booking-price-note {
  font-size: var(--text-sm, 0.875rem);
  color: rgba(230, 226, 218, 0.55);
  margin-top: 0.25rem;
}

.booking-price-strike {
  text-decoration: line-through;
  opacity: 0.65;
}

.booking-price-line {
  margin: 0.25rem 0;
  font-size: var(--text-base, 1rem);
}

.booking-price-total {
  margin: 0.35rem 0 0;
  font-size: var(--text-lg, 1.125rem);
  font-weight: 600;
}

.booking-discount-hint,
.booking-duration-hint {
  font-size: var(--text-sm, 0.875rem);
  color: rgba(230, 226, 218, 0.65);
  margin-top: 0.35rem;
}

.booking-calendar {
  margin: 1rem 0;
}

.booking-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.booking-calendar-header button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--booking-border);
  border-radius: 8px;
  background: transparent;
  color: var(--color-cream, #E6E2DA);
  cursor: pointer;
}

.booking-calendar-title {
  font-family: var(--font-display, Georgia, serif);
  font-size: var(--text-lg, 1.125rem);
}

.booking-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.booking-calendar-dow {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(230, 226, 218, 0.45);
  padding: 0.25rem;
}

.booking-calendar-day {
  aspect-ratio: 1;
  min-height: 40px;
  min-width: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(230, 226, 218, 0.06);
  color: var(--color-cream, #E6E2DA);
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.booking-calendar-day:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.booking-calendar-day.is-selected {
  border-color: var(--booking-accent);
  background: rgba(166, 130, 74, 0.25);
}

.booking-calendar-day.load-0 { background: rgba(230, 226, 218, 0.06); }
.booking-calendar-day.load-1,
.booking-calendar-day.load-2 { background: rgba(21, 66, 48, 0.35); }
.booking-calendar-day.load-3,
.booking-calendar-day.load-4 { background: rgba(180, 100, 0, 0.35); }
.booking-calendar-day.load-5 { background: rgba(93, 30, 33, 0.35); }

.booking-slots-loading {
  text-align: center;
  padding: 1rem;
  color: rgba(230, 226, 218, 0.55);
}

.booking-slot-groups {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}

.booking-slot-group-title {
  font-size: var(--text-sm, 0.875rem);
  color: var(--booking-accent);
  margin-bottom: 0.5rem;
}

.booking-slots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .booking-slots {
    grid-template-columns: repeat(3, 1fr);
  }
}

.booking-slot {
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--booking-border);
  border-radius: 999px;
  background: transparent;
  color: var(--color-cream, #E6E2DA);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.booking-slot:hover,
.booking-slot.is-selected {
  border-color: var(--booking-accent);
  background: rgba(166, 130, 74, 0.15);
}

.booking-slot-meta {
  font-size: var(--text-sm, 0.875rem);
  color: rgba(230, 226, 218, 0.65);
  margin-top: 0.75rem;
}

.booking-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  padding: 1rem;
  border: 1px solid var(--booking-border);
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: var(--text-sm, 0.875rem);
}

.booking-summary dt {
  color: rgba(230, 226, 218, 0.55);
}

.booking-summary dd {
  margin: 0;
  text-align: right;
}

.booking-nav {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.booking-nav .btn {
  flex: 1;
  min-height: 44px;
}

.booking-honeypot {
  display: none !important;
}

.booking-message {
  margin-top: 1rem;
  font-size: var(--text-sm, 0.875rem);
}

.booking-message.is-error {
  color: #e8a0a0;
}

.booking-footnote {
  margin-top: 0.75rem;
  font-size: var(--text-sm, 0.875rem);
  color: rgba(230, 226, 218, 0.55);
  text-align: center;
}

@media (max-width: 639px) {
  .booking-widget.is-mobile-steps .booking-nav {
    position: sticky;
    bottom: 0;
    background: var(--booking-surface);
    padding: 0.75rem 0 0;
    margin-left: -0.25rem;
    margin-right: -0.25rem;
  }
}

/* Step 1 — category & service selection (Update 17) */
.booking-step-label {
  font-family: var(--font-display, Georgia, serif);
  font-size: var(--text-lg, 1.125rem);
  margin: 0 0 0.75rem;
}

.booking-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.booking-category-card {
  border: 1px solid rgba(230, 226, 218, 0.15);
  border-radius: 6px;
  padding: 1rem;
  min-height: 80px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: transparent;
  color: var(--color-cream, #E6E2DA);
  text-align: left;
  font: inherit;
}

.booking-category-card.is-active {
  border-color: #5D1E21;
  background: rgba(93, 30, 33, 0.08);
}

.booking-category-icon {
  color: var(--booking-accent);
  line-height: 0;
}

.booking-category-title {
  font-family: var(--font-display, Georgia, serif);
  font-size: 1rem;
}

.booking-category-copy {
  font-size: 12px;
  color: rgba(230, 226, 218, 0.6);
  line-height: 1.35;
}

.booking-service-section {
  margin-bottom: 1rem;
  animation: bookingFadeIn 0.25s ease;
}

.booking-service-section[hidden] {
  display: none !important;
}

.booking-change-category {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0;
  margin-bottom: 0.5rem;
  border: none;
  background: none;
  color: rgba(230, 226, 218, 0.7);
  font: inherit;
  font-size: var(--text-sm, 0.875rem);
  cursor: pointer;
  text-decoration: underline;
}

.booking-service-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.booking-service-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  min-height: 48px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}

.booking-service-row:hover {
  background: rgba(230, 226, 218, 0.04);
}

.booking-service-row.is-selected {
  background: rgba(93, 30, 33, 0.08);
  border-color: rgba(93, 30, 33, 0.4);
}

.booking-service-row input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.booking-service-row-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.booking-service-row-text strong {
  font-weight: 600;
  font-size: 0.9375rem;
}

.booking-service-row-desc {
  font-size: 0.8125rem;
  color: rgba(230, 226, 218, 0.6);
}

.booking-fields-section {
  animation: bookingFadeIn 0.25s ease;
  margin-top: 1rem;
}

@keyframes bookingFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .booking-category-grid {
    grid-template-columns: 1fr;
  }

  .booking-category-card {
    min-height: 72px;
  }

  .booking-service-row {
    min-height: 52px;
    font-size: 15px;
  }
}

.booking-field .vehicle-count-input {
  width: 80px;
  text-align: center;
  font-size: 1.1rem;
  -moz-appearance: textfield;
}

.booking-field .vehicle-count-input::-webkit-outer-spin-button,
.booking-field .vehicle-count-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

@media (max-width: 768px) {
  .booking-field .vehicle-count-input {
    width: 100%;
    font-size: 1.2rem;
    padding: 0.75rem;
    text-align: left;
  }
}
