/* ============================================
   Lare Labs Booking — Style
   Colors: bg #f6f2ed, text #1a1614, accent #a0522d
   ============================================ */

:root {
  --bg: #f6f2ed;
  --bg-card: #ffffff;
  --text: #1a1614;
  --text-muted: #6b6560;
  --accent: #a0522d;
  --accent-hover: #8b4726;
  --accent-light: #c4885f;
  --border: #e0d9d1;
  --success: #2d7a4f;
  --error: #c0392b;
  --shadow: 0 2px 12px rgba(26, 22, 20, 0.08);
  --shadow-lg: 0 8px 30px rgba(26, 22, 20, 0.12);
  --radius: 10px;
  --radius-sm: 6px;
  --serif: 'Playfair Display', 'Georgia', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.2s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* --- Layout --- */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

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

.header h1 {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.header .accent-bar {
  width: 50px;
  height: 3px;
  background: var(--accent);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* --- Step Indicator --- */
.steps {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  transition: var(--transition);
}

.step-dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

.step-dot.done {
  background: var(--accent-light);
}

/* --- Service Selector --- */
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.service-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.service-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.service-card.selected {
  border-color: var(--accent);
  background: linear-gradient(135deg, #fdf8f4 0%, #f6f2ed 100%);
  box-shadow: var(--shadow);
}

.service-card h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.service-card .duration {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.service-card .price {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(160, 82, 45, 0.08);
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
}

/* --- Calendar --- */
.calendar-section {
  margin-bottom: 2rem;
}

.calendar-section h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

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

.day-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.4rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.day-card:hover {
  border-color: var(--accent-light);
  box-shadow: var(--shadow);
}

.day-card.selected {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.day-card .day-name {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.day-card.selected .day-name {
  color: rgba(255,255,255,0.8);
}

.day-card .day-num {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0.15rem 0;
  color: var(--text);
}

.day-card.selected .day-num {
  color: white;
}

.day-card .day-month {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.day-card.selected .day-month {
  color: rgba(255,255,255,0.8);
}

.day-card .no-slots {
  font-size: 0.6rem;
  color: var(--error);
  margin-top: 0.15rem;
}

.day-card.selected .no-slots {
  color: rgba(255,255,255,0.8);
}

/* --- Time Slots --- */
.slots-section {
  margin-bottom: 2rem;
}

.slots-section h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.5rem;
}

.slot-btn {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  color: var(--text);
}

.slot-btn:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.slot-btn.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* --- Booking Form --- */
.form-section {
  margin-bottom: 2rem;
}

.form-section h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
}

.form-row {
  margin-bottom: 1.2rem;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.form-row input,
.form-row select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  transition: var(--transition);
}

.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(160, 82, 45, 0.1);
}

.form-row input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.form-row .optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* --- Submit Button --- */
.btn-primary {
  display: block;
  width: 100%;
  padding: 0.9rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--sans);
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- Success State --- */
.success-section {
  display: none;
}

.success-section.visible {
  display: block;
}

.success-card {
  background: var(--bg-card);
  border: 2px solid var(--success);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.success-icon {
  width: 64px;
  height: 64px;
  background: rgba(45, 122, 79, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 2rem;
  color: var(--success);
}

.success-card h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--success);
  margin-bottom: 0.5rem;
}

.success-card .booking-details {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.success-card .booking-details strong {
  color: var(--text);
}

.zoom-link {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: #2D8CFF;
  color: white;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.zoom-link:hover {
  background: #1a75e0;
  box-shadow: var(--shadow);
}

.zoom-password {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
}

/* --- Error Toast --- */
.error-toast {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--error);
  color: white;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  transform: translateX(120%);
  transition: transform 0.3s ease;
}

.error-toast.visible {
  transform: translateX(0);
}

/* --- Sections visibility --- */
.section {
  display: none;
}

.section.visible {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Footer --- */
.footer {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* --- Loading spinner --- */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 0.4rem;
}

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

/* --- Responsive --- */
@media (max-width: 640px) {
  .container {
    padding: 1.2rem 1rem 3rem;
  }

  .header h1 {
    font-size: 1.8rem;
  }

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

  .calendar-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 0.3rem;
  }

  .day-card {
    padding: 0.5rem 0.2rem;
  }

  .day-card .day-name {
    font-size: 0.6rem;
  }

  .day-card .day-num {
    font-size: 1rem;
  }

  .day-card .day-month {
    font-size: 0.55rem;
  }

  .slots-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  }

  .form-card {
    padding: 1.2rem;
  }
}
