@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
  font-family: 'Poppins', system-ui, sans-serif;
  background: #f3f4f6;
  color: #111827;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f3f4f6;
}

#booking-widget {
  min-height: 100vh;
  padding: 2.5rem 1.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.booking-panel {
  width: min(1120px, 100%);
  background: #ffffff;
  border-radius: 32px;
  padding: 32px;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.15);
}

.booking-status {
  text-align: center;
  font-size: 0.95rem;
  color: #475467;
}

.stepper {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  margin-bottom: 12px;
}

.stepper-step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.85rem 1rem;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  color: #475467;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.stepper-step .stepper-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #475467;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.stepper-step.active {
  border-color: #2563eb;
  background: #eef2ff;
  color: #1d4ed8;
}

.stepper-step.active .stepper-circle {
  background: #2563eb;
  color: #ffffff;
}

.stepper-step.completed {
  border-color: #10b981;
  background: #d1fae5;
  color: #0f766e;
}

.stepper-step.completed .stepper-circle {
  background: #0f766e;
  color: #ffffff;
}

.stepper-label {
  margin: 0;
  font-weight: 600;
  color: inherit;
}

.stepper-desc {
  margin: 0;
  font-size: 0.75rem;
  color: inherit;
  opacity: 0.75;
}

.booking-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
}

#availability[data-step='1'] .slots-panel {
  display: none;
}

#availability[data-step='2'] .calendar-panel {
  display: none;
}

#availability[data-step='2'] .booking-grid {
  grid-template-columns: 260px minmax(0, 320px);
}

#availability[data-step='3'] .calendar-panel,
#availability[data-step='3'] .slots-panel {
  display: none;
}

#availability[data-step='3'] .booking-grid {
  grid-template-columns: minmax(0, 1fr);
}

.info-panel {
  padding: 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.info-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.7rem;
  font-weight: 600;
  color: #2563eb;
  margin: 0;
}

.info-panel h1 {
  margin: 0;
  font-size: 1.75rem;
  color: #111827;
}

.booking-subtitle {
  margin: 0;
  color: #4b5563;
  line-height: 1.4;
  font-size: 0.95rem;
}

.info-row {
  display: flex;
  gap: 14px;
  align-items: center;
}

.info-icon {
  font-size: 1.5rem;
}

.info-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  color: #94a3b8;
}

.info-value {
  margin: 0;
  font-size: 0.95rem;
  color: #111827;
  font-weight: 600;
}

.calendar-panel {
  padding: 1.5rem;
  background: transparent;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calendar-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calendar-controls button {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  font-size: 1.25rem;
  color: #2563eb;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.calendar-controls button:hover {
  border-color: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.calendar-month-label {
  font-weight: 600;
  color: #111827;
  letter-spacing: 0.01em;
}

.weekday-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-size: 0.7rem;
  font-weight: 600;
  color: #94a3b8;
  text-align: center;
  letter-spacing: 0.2em;
}

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

.calendar-day {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: #475467;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.calendar-day.empty {
  background: transparent;
  border: none;
  cursor: default;
}

.calendar-day.no-slots {
  color: #cbd5f5;
  border-color: transparent;
}

.calendar-day.has-slots {
  background: #e0f2ff;
  color: #1d4ed8;
  border-color: transparent;
}

.calendar-day.has-slots:hover {
  background: #c7e5ff;
}

.calendar-day.has-slots::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.16);
  z-index: -1;
}

.calendar-day.selected::after {
  display: none;
}

.calendar-day.selected {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.3);
}

.timezone-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #475467;
}

.timezone-icon {
  font-size: 1rem;
}

.timezone-caret {
  font-size: 0.7rem;
  color: #94a3b8;
}

.slots-panel {
  padding: 1.5rem;
  background: transparent;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.slots-header {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slots-actions {
  display: flex;
  gap: 8px;
}

.slots-header p {
  margin: 0;
  font-weight: 600;
  color: #111827;
}

.slots-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.slots-list p {
  margin: 0;
  color: #6b7280;
  font-size: 0.95rem;
}

.time-button {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #c7d2fe;
  background: #ffffff;
  color: #2563eb;
  padding: 0.9rem 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  text-align: center;
}

.time-button:hover {
  border-color: #1d4ed8;
  background: #eef2ff;
}

.time-button.selected {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.booking-form-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-actions {
  margin-bottom: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ghost-button {
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  background: transparent;
  color: #2563eb;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ghost-button:hover {
  border-color: #1d4ed8;
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.08);
}

.slot-summary {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #4b5563;
  font-size: 0.95rem;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

label span {
  display: block;
  font-size: 0.75rem;
  margin-bottom: 0.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

input,
textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
  font-size: 1rem;
  font-family: inherit;
}

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

button.primary {
  border: none;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: white;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.35);
}

.booking-result {
  margin: 0;
  font-size: 0.9rem;
}

.hidden {
  display: none;
}

@media (max-width: 1024px) {
  #booking-widget {
    padding: 2rem 1rem;
  }

  .booking-grid {
    grid-template-columns: 1fr;
  }

  .calendar-panel,
  .slots-panel {
    padding: 1.25rem;
  }
}

@media (max-width: 640px) {
  .booking-panel {
    padding: 24px;
    border-radius: 24px;
  }

  .calendar-panel,
  .slots-panel {
    padding: 1rem;
  }
}
