/* Stille Booking - Public CSS
 * All selectors use .stille- prefix to avoid clashes with the theme. */

.stille-booking {
  --stille-bg: #f4f0e8;
  --stille-bg-card: #fbf8f2;
  --stille-ink: #2a2620;
  --stille-ink-soft: #6b6358;
  --stille-accent: #8b6f47;
  --stille-accent-deep: #5d4a30;
  --stille-line: #d9cfbe;
  --stille-success: #6b8b5a;
  --stille-error: #b85a4a;

  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--stille-bg);
  color: var(--stille-ink);
  padding: 48px 24px;
  border-radius: 8px;
  max-width: 980px;
  margin: 24px auto;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(139, 111, 71, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(93, 74, 48, 0.05) 0%, transparent 50%);
  line-height: 1.5;
}

.stille-booking *, .stille-booking *::before, .stille-booking *::after {
  box-sizing: border-box;
}

.stille-header { text-align: center; margin-bottom: 48px; }
.stille-logo {
  font-family: 'Fraunces', serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.18em;
  margin-bottom: 8px;
  color: var(--stille-ink);
}
.stille-logo span { font-style: italic; font-weight: 300; }
.stille-tagline {
  font-size: 13px;
  color: var(--stille-ink-soft);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Progress */
.stille-progress {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.stille-step-dot {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--stille-ink-soft);
  transition: color 0.4s ease;
}
.stille-step-dot .num {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--stille-line);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-size: 13px;
  transition: all 0.4s ease;
}
.stille-step-dot.active { color: var(--stille-ink); }
.stille-step-dot.active .num {
  background: var(--stille-ink); color: var(--stille-bg-card);
  border-color: var(--stille-ink);
}
.stille-step-dot.done .num {
  background: var(--stille-accent); border-color: var(--stille-accent); color: white;
}
.stille-step-line { width: 32px; height: 1px; background: var(--stille-line); }

/* Steps */
.stille-step { display: none; animation: stilleFadeUp 0.5s ease; }
.stille-step.active { display: block; }
@keyframes stilleFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.stille-step-title {
  font-family: 'Fraunces', serif;
  font-size: 36px;
  font-weight: 400;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  color: var(--stille-ink);
}
.stille-step-title em { font-style: italic; color: var(--stille-accent); }
.stille-step-sub {
  color: var(--stille-ink-soft);
  margin-bottom: 32px;
  font-size: 15px;
}

/* Service cards */
.stille-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.stille-service-card {
  background: var(--stille-bg-card);
  border: 1px solid var(--stille-line);
  border-radius: 4px;
  padding: 28px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.stille-service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(42, 38, 32, 0.10);
  border-color: var(--stille-accent);
}
.stille-service-card.selected {
  border-color: var(--stille-ink);
  background: var(--stille-ink);
  color: var(--stille-bg-card);
}
.stille-service-card.selected .stille-service-price,
.stille-service-card.selected .stille-service-meta {
  color: rgba(251, 248, 242, 0.7);
}
.stille-service-name {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  margin-bottom: 6px;
}
.stille-service-meta {
  font-size: 13px; color: var(--stille-ink-soft);
  letter-spacing: 0.05em; margin-bottom: 16px;
}
.stille-service-desc { font-size: 14px; line-height: 1.6; margin-bottom: 20px; }
.stille-service-price {
  font-family: 'Fraunces', serif;
  font-size: 20px; color: var(--stille-accent);
}

/* Therapists */
.stille-therapists {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.stille-therapist-card {
  background: var(--stille-bg-card);
  border: 1px solid var(--stille-line);
  border-radius: 4px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}
.stille-therapist-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(42, 38, 32, 0.10);
}
.stille-therapist-card.selected {
  border-color: var(--stille-ink);
  border-width: 2px;
  padding: 23px;
}
.stille-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 28px; color: var(--stille-bg-card);
  letter-spacing: 0.05em;
}
.stille-avatar.av-1 { background: linear-gradient(135deg, #b89968, #8b6f47); }
.stille-avatar.av-2 { background: linear-gradient(135deg, #7d8870, #5d6b50); }
.stille-avatar.av-3 { background: linear-gradient(135deg, #a08868, #7d6b48); }
.stille-avatar.av-4 { background: linear-gradient(135deg, #8b7a6b, #5d4a30); }
.stille-therapist-name { font-family: 'Fraunces', serif; font-size: 20px; margin-bottom: 4px; }
.stille-therapist-spec {
  font-size: 12px; color: var(--stille-ink-soft);
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* Date / time - stacked vertically so neither panel gets cramped */
.stille-datetime-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.stille-panel-label {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  margin-bottom: 16px;
  font-style: italic;
  color: var(--stille-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stille-date-pager {
  display: flex;
  gap: 8px;
}
.stille-date-arrow {
  background: var(--stille-bg-card);
  border: 1px solid var(--stille-line);
  border-radius: 4px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
  padding: 0 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: var(--stille-ink);
}
.stille-date-arrow:hover:not(:disabled) {
  border-color: var(--stille-ink);
  background: var(--stille-ink);
  color: var(--stille-bg-card);
}
.stille-date-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.stille-dates {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
@media (max-width: 600px) {
  .stille-dates { grid-template-columns: repeat(4, 1fr); }
  .stille-dates .stille-date-pill:nth-child(n+5) { display: none; }
}
.stille-date-pill {
  background: var(--stille-bg-card);
  border: 1px solid var(--stille-line);
  border-radius: 4px;
  padding: 14px 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}
.stille-date-pill:hover { border-color: var(--stille-accent); }
.stille-date-pill.selected {
  background: var(--stille-ink);
  color: var(--stille-bg-card);
  border-color: var(--stille-ink);
}
.stille-date-day {
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--stille-ink-soft);
  margin-bottom: 4px;
}
.stille-date-pill.selected .stille-date-day { color: rgba(251, 248, 242, 0.7); }
.stille-date-num { font-family: 'Fraunces', serif; font-size: 22px; }

.stille-times {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 8px;
}
.stille-time-slot {
  background: var(--stille-bg-card);
  border: 1px solid var(--stille-line);
  border-radius: 4px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}
.stille-time-slot:hover { border-color: var(--stille-accent); }
.stille-time-slot.selected {
  background: var(--stille-ink);
  color: var(--stille-bg-card);
  border-color: var(--stille-ink);
}
.stille-time-slot.unavailable {
  opacity: 0.35; cursor: not-allowed; text-decoration: line-through;
}

/* Form */
.stille-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 600px) {
  .stille-form-grid { grid-template-columns: 1fr; }
}
.stille-field { display: flex; flex-direction: column; }
.stille-field.full { grid-column: 1 / -1; }
.stille-field label {
  font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--stille-ink-soft);
  margin-bottom: 8px;
}
.stille-field input, .stille-field textarea {
  background: var(--stille-bg-card);
  border: 1px solid var(--stille-line);
  border-radius: 4px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--stille-ink);
  transition: border-color 0.2s ease;
  width: 100%;
}
.stille-field input:focus, .stille-field textarea:focus {
  outline: none;
  border-color: var(--stille-ink);
}
.stille-field textarea { resize: vertical; min-height: 80px; }

/* Summary */
.stille-summary {
  background: var(--stille-bg-card);
  border: 1px solid var(--stille-line);
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 24px;
}
.stille-summary-row {
  display: flex; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--stille-line);
  font-size: 14px;
}
.stille-summary-row:last-child { border-bottom: none; }
.stille-summary-row .label {
  color: var(--stille-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}
.stille-summary-row .value {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  text-align: right;
}
.stille-summary-row.total .value { color: var(--stille-accent); font-size: 20px; }

/* Buttons */
.stille-nav {
  display: flex; justify-content: space-between;
  margin-top: 40px; gap: 16px;
}
.stille-booking button {
  font-family: inherit;
  font-size: 14px;
  padding: 14px 32px;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.25s ease;
  border: 1px solid var(--stille-ink);
}
.stille-btn-primary { background: var(--stille-ink); color: var(--stille-bg-card); }
.stille-btn-primary:hover { background: var(--stille-accent-deep); border-color: var(--stille-accent-deep); }
.stille-btn-primary:disabled {
  background: var(--stille-line);
  border-color: var(--stille-line);
  color: var(--stille-ink-soft);
  cursor: not-allowed;
}
.stille-btn-ghost { background: transparent; color: var(--stille-ink); }
.stille-btn-ghost:hover { background: var(--stille-ink); color: var(--stille-bg-card); }

/* Confirmation */
.stille-confirm-wrap { text-align: center; }
.stille-confirm-icon {
  width: 80px; height: 80px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--stille-success);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 36px;
  animation: stillePop 0.5s ease;
}
@keyframes stillePop {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.stille-confirm-note { font-size: 13px; color: var(--stille-ink-soft); margin-top: 16px; }

/* Error */
.stille-error {
  background: #fff0ed;
  border: 1px solid var(--stille-error);
  color: var(--stille-error);
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 16px;
}

/* =====================================================
   Customer account UI
   ===================================================== */
.stille-account-tabs {
  display: flex;
  border-bottom: 1px solid var(--stille-line);
  margin-bottom: 32px;
  gap: 4px;
}
.stille-account-tab {
  background: none;
  border: none;
  padding: 14px 24px;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--stille-ink-soft);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  border-radius: 0;
  text-transform: none;
}
.stille-account-tab:hover { color: var(--stille-ink); background: none; }
.stille-account-tab.active {
  color: var(--stille-ink);
  border-bottom-color: var(--stille-accent);
  font-weight: 500;
}
.stille-account-panel { display: none; animation: stilleFadeUp 0.4s ease; }
.stille-account-panel.active { display: block; }

.stille-account-card {
  background: var(--stille-bg-card);
  border: 1px solid var(--stille-line);
  border-radius: 4px;
  padding: 40px;
  text-align: center;
}
.stille-account-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}
.stille-as-link {
  display: inline-block;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.stille-account-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--stille-bg-card);
  border: 1px solid var(--stille-line);
  border-radius: 4px;
  padding: 14px 20px;
  margin-bottom: 24px;
  font-size: 14px;
}
.stille-link-soft {
  color: var(--stille-ink-soft);
  text-decoration: none;
  font-size: 13px;
}
.stille-link-soft:hover { color: var(--stille-ink); }

/* My-bookings cards */
.stille-my-bookings {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stille-booking-card {
  background: var(--stille-bg-card);
  border: 1px solid var(--stille-line);
  border-left: 4px solid var(--stille-accent);
  border-radius: 4px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  transition: opacity 0.3s ease;
  flex-wrap: wrap;
}
.stille-booking-card.stille-status-card-cancelled {
  border-left-color: var(--stille-error);
  opacity: 0.7;
}
.stille-booking-card.stille-status-card-completed {
  border-left-color: var(--stille-success);
}
.stille-booking-card-main {
  display: flex;
  gap: 32px;
  flex: 1;
  min-width: 0;
}
.stille-booking-when {
  text-align: center;
  border-right: 1px solid var(--stille-line);
  padding-right: 32px;
  min-width: 140px;
}
.stille-booking-date {
  font-size: 12px;
  color: var(--stille-ink-soft);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.stille-booking-time {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  color: var(--stille-ink);
}
.stille-booking-info { flex: 1; min-width: 0; }
.stille-booking-service {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  margin-bottom: 4px;
}
.stille-booking-meta {
  font-size: 13px;
  color: var(--stille-ink-soft);
  margin-bottom: 8px;
}
.stille-booking-price {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  color: var(--stille-accent);
}
.stille-booking-card-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

/* Reusable status pill (was admin-only; promote to public) */
.stille-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
}
.stille-status-confirmed { background: rgba(107, 139, 90, 0.15); color: var(--stille-success); }
.stille-status-completed { background: rgba(139, 111, 71, 0.15); color: var(--stille-accent); }
.stille-status-cancelled { background: rgba(184, 90, 74, 0.15); color: var(--stille-error); }

.stille-link {
  background: none;
  border: none;
  color: var(--stille-error);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px 8px;
  letter-spacing: 0;
  text-transform: none;
}
.stille-link:hover { color: var(--stille-accent-deep); }

@media (max-width: 600px) {
  .stille-booking-card-main { flex-direction: column; gap: 16px; }
  .stille-booking-when {
    border-right: none;
    border-bottom: 1px solid var(--stille-line);
    padding-right: 0;
    padding-bottom: 16px;
    text-align: left;
  }
  .stille-booking-card-side { flex-direction: row; align-items: center; }
}
