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

:root {
  --primary: #7C5CFC;
  --primary-hover: #6B4AEF;
  --primary-light: rgba(124, 92, 252, 0.08);
  --primary-lighter: rgba(124, 92, 252, 0.04);
  --body-bg: #f8f9fc;
  --card-bg: #ffffff;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-tertiary: #9ca3af;
  --border-color: #e5e7eb;
  --border-light: #f3f4f6;
  --success: #10b981;
  --danger: #ef4444;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 16px -4px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --transition: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

body {
  background: var(--body-bg);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--border-light);
  border-radius: 999px;
  padding: 3px;
  position: relative;
}

.lang-btn {
  position: relative;
  z-index: 1;
  background: none;
  border: none;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-tertiary);
  cursor: pointer;
  border-radius: 999px;
  transition: color var(--transition);
  font-family: inherit;
  letter-spacing: 0.02em;
}

.lang-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(124, 92, 252, 0.3);
}

/* Container */
.booking-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

/* Header */
.booking-header {
  text-align: center;
  margin-bottom: 2rem;
}

.booking-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #7C5CFC, #a78bfa);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  margin: 0 auto 1rem;
}

.booking-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.booking-header p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.9rem;
}

/* Step Indicator */
.booking-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
}

.step {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.step-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  flex-shrink: 0;
}

.step.active .step-number {
  background: var(--primary);
  color: #fff;
}

.step.active {
  color: var(--text-primary);
}

.step.completed .step-number {
  background: var(--success);
  color: #fff;
}

.step-connector {
  width: 32px;
  height: 1px;
  background: var(--border-color);
  margin: 0 0.25rem;
}

.step-connector.completed {
  background: var(--success);
}

/* Cards (meeting type selection) */
.type-card {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.25rem;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.type-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.type-card.selected {
  border-color: var(--primary);
  background: var(--primary-lighter);
}

.type-card .type-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.type-card .type-duration {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.type-card .type-desc {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: 0.5rem;
}

/* Calendar */
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.calendar-header h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.calendar-nav {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.calendar-nav:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

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

.calendar-day-label {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  padding: 0.5rem 0;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.calendar-day:hover:not(.unavailable):not(.empty) {
  background: var(--primary-light);
  border-color: var(--primary);
}

.calendar-day.selected {
  background: var(--primary);
  color: #fff;
}

.calendar-day.today {
  border-color: var(--primary);
}

.calendar-day.unavailable {
  color: var(--text-tertiary);
  opacity: 0.4;
  cursor: not-allowed;
}

.calendar-day.empty {
  cursor: default;
}

/* Time Slots */
.time-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.time-slot {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.6rem;
  text-align: center;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all var(--transition);
}

.time-slot:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.time-slot.selected {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Form */
.booking-form .form-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.booking-form .form-control {
  border-radius: var(--radius-sm);
  border-color: var(--border-color);
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
}

.booking-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.1);
}

/* Buttons */
.btn-booking {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-booking:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(124, 92, 252, 0.25);
}

.btn-booking:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-back {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.btn-back:hover {
  background: var(--border-light);
}

.booking-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
}

/* Confirmation */
.booking-confirmed {
  text-align: center;
  padding: 2rem 0;
}

.booking-confirmed .check-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--success);
  font-size: 1.75rem;
}

.booking-confirmed h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.booking-confirmed .details-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1.5rem 0;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.booking-confirmed .detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
}

.booking-confirmed .detail-row:last-child {
  border-bottom: none;
}

.booking-confirmed .detail-label {
  color: var(--text-tertiary);
  font-size: 0.8rem;
}

.booking-confirmed .detail-value {
  font-weight: 500;
  font-size: 0.85rem;
}

.calendar-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.calendar-actions a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all var(--transition);
}

.calendar-actions a:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* Loading */
.booking-loading {
  text-align: center;
  padding: 3rem 0;
  color: var(--text-tertiary);
}

.booking-loading .spinner {
  width: 2rem;
  height: 2rem;
  border: 2.5px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin: 0 auto 1rem;
}

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

/* Error */
.booking-error {
  text-align: center;
  padding: 2rem 0;
  color: var(--danger);
}

/* Section headers */
.section-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

/* Honeypot */
.hp-field { position: absolute; left: -9999px; }

/* Responsive */
@media (max-width: 480px) {
  .booking-container { padding: 1.25rem 0.75rem 2rem; }
  .booking-header h1 { font-size: 1.25rem; }
  .time-slots { grid-template-columns: repeat(2, 1fr); }
  .step span:not(.step-number) { display: none; }
  .step-connector { width: 20px; }
}
