/**
 * Dredarium Booking - Rebel Botanica Design System
 * Visual styles for the multi-step booking wizard.
 */

:root {
  --db-bg-sand: #F6F4EE;
  --db-bg-card: #FFFFFF;
  --db-text-dark: #111111;
  --db-text-muted: #6B6862;
  --db-accent-olive: #3E4A2B;
  --db-accent-lime: #D2FF00;
  --db-accent-lime-hover: #BEE600;
  --db-border-light: #E5E0D8;
  --db-border-dark: #111111;
  --db-radius-sm: 4px;
  --db-radius-md: 8px;
  --db-radius-lg: 16px;
  --db-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --db-font-serif: Georgia, "Times New Roman", serif;
}

.dredarium-booking-container {
  font-family: var(--db-font-sans);
  color: var(--db-text-dark);
  background: var(--db-bg-sand);
  padding: 32px 20px;
  border-radius: var(--db-radius-lg);
  max-width: 860px;
  margin: 30px auto;
  box-sizing: border-box;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.dredarium-booking-container * {
  box-sizing: border-box;
}

/* Header & Typography */
.db-header {
  text-align: center;
  margin-bottom: 30px;
}

.db-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--db-accent-olive);
  margin-bottom: 8px;
  display: block;
}

.db-title {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 0 0 10px 0;
  color: var(--db-text-dark);
}

.db-title em {
  font-family: var(--db-font-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  color: var(--db-accent-olive);
}

.db-subtitle {
  font-size: 14px;
  color: var(--db-text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* Stepper Progress */
.db-stepper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 35px;
  position: relative;
  padding: 0 10px;
}

.db-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  cursor: default;
}

.db-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--db-border-light);
  background: var(--db-bg-card);
  color: var(--db-text-muted);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.db-step-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 6px;
  color: var(--db-text-muted);
}

.db-step-item.active .db-step-num {
  background: var(--db-accent-lime);
  color: var(--db-text-dark);
  border-color: var(--db-text-dark);
  box-shadow: 0 0 0 3px rgba(210, 255, 0, 0.4);
}

.db-step-item.active .db-step-label {
  color: var(--db-text-dark);
}

.db-step-item.completed .db-step-num {
  background: var(--db-accent-olive);
  color: #FFF;
  border-color: var(--db-accent-olive);
}

.db-stepper-line {
  position: absolute;
  top: 18px;
  left: 30px;
  right: 30px;
  height: 2px;
  background: var(--db-border-light);
  z-index: 1;
}

/* Live Floating Duration Bar */
.db-duration-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #111;
  color: #FFF;
  padding: 8px 16px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 25px;
}

.db-duration-badge span.highlight {
  color: var(--db-accent-lime);
  font-weight: 800;
}

/* Step 1: Service Cards */
.db-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.db-card-service {
  background: var(--db-bg-card);
  border: 1px solid var(--db-border-light);
  border-radius: var(--db-radius-md);
  padding: 22px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

button.db-card-service {
  font-family: inherit;
  font-size: inherit;
  text-align: left;
  width: 100%;
  color: inherit;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.db-card-service > div,
.db-service-content {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.db-card-service:focus-visible {
  outline: 3px solid var(--db-accent-olive);
  outline-offset: 3px;
}

.db-card-service:hover {
  border-color: var(--db-text-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.db-card-service.selected {
  border: 2px solid var(--db-text-dark);
  background: #FFF;
}

.db-card-service.selected::after {
  content: '✓';
  position: absolute;
  top: 16px;
  right: 16px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--db-accent-lime);
  color: var(--db-text-dark);
  font-size: 13px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.db-service-name {
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 8px 0;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.db-service-desc {
  font-size: 13px;
  color: var(--db-text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.db-service-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--db-accent-olive);
}

.db-service-tag {
  background: rgba(62, 74, 43, 0.08);
  padding: 4px 10px;
  border-radius: 20px;
}

.db-service-tag.db-service-tag-deposit {
  background: #111111 !important;
  color: #D2FF00 !important;
  border: 1px solid #111111 !important;
  font-weight: 800 !important;
  font-size: 11px !important;
  letter-spacing: 0.3px !important;
  padding: 4px 12px !important;
  border-radius: 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  text-transform: uppercase !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15) !important;
}

.db-card-service.selected .db-service-tag.db-service-tag-deposit,
.db-service-tag.db-service-tag-deposit.selected {
  background: #D2FF00 !important;
  color: #111111 !important;
  border: 1px solid #D2FF00 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}

/* Step 2: Dynamic Questions */
.db-question-group {
  background: var(--db-bg-card);
  border: 1px solid var(--db-border-light);
  border-radius: var(--db-radius-md);
  padding: 24px;
  margin-bottom: 20px;
}

.db-question-title {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 6px 0;
}

.db-question-desc {
  font-size: 13px;
  color: var(--db-text-muted);
  margin-bottom: 16px;
}

.db-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.db-option-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--db-border-light);
  border-radius: var(--db-radius-sm);
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #FAFAFA;
}

.db-option-label:hover {
  background: #FFF;
  border-color: var(--db-text-dark);
}

.db-option-label input[type="radio"],
.db-option-label input[type="checkbox"] {
  margin-right: 12px;
  accent-color: var(--db-accent-olive);
}

.db-option-label.checked {
  background: #FFF;
  border: 2px solid var(--db-text-dark);
}

.db-opt-text {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.db-opt-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0,0,0,0.06);
  color: var(--db-text-dark);
}

.db-opt-badge.positive {
  background: rgba(210, 255, 0, 0.4);
  color: #243300;
}

/* Step 3: Monthly Calendar & Time Slots */
.db-month-header-bar {
  margin-bottom: 20px;
}

.db-month-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--db-bg-card);
  border: 1px solid var(--db-border-light);
  border-radius: var(--db-radius-md);
  padding: 12px 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.02);
}

.db-month-nav-btn {
  background: #FFF;
  border: 1px solid var(--db-border-light);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--db-text-dark);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.db-month-nav-btn:hover:not(:disabled) {
  border-color: #111;
  background: #FAF9F5;
}

.db-month-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: var(--db-border-light);
}

.db-month-nav-btn:focus-visible {
  outline: 2px solid var(--db-accent-olive);
  outline-offset: 2px;
}

.db-month-nav-center {
  text-align: center;
}

.db-month-title {
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.3px;
  line-height: 1.15;
}

.db-month-subtitle {
  font-size: 11px;
  color: var(--db-text-muted);
  font-weight: 600;
  margin-top: 3px;
}

.db-view-switch {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.db-view-btn {
  background: #FFF;
  border: 1px solid var(--db-border-light);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  color: var(--db-text-dark);
  transition: all 0.15s ease;
}

.db-view-btn:hover {
  border-color: #111;
}

.db-view-btn.active {
  background: #111;
  color: var(--db-accent-lime);
  border-color: #111;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.db-month-loading {
  background: rgba(62, 74, 43, 0.08);
  color: var(--db-accent-olive);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}

.db-step3-container {
  background: var(--db-bg-card);
  border: 1px solid var(--db-border-light);
  border-radius: var(--db-radius-md);
  padding: 18px;
  margin-bottom: 20px;
}

/* Grid View Styles */
.db-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.db-cal-day-header {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--db-accent-olive);
  text-align: center;
  padding-bottom: 8px;
}

.db-cal-cell {
  background: #FAFAF8;
  border: 1px solid var(--db-border-light);
  border-radius: 6px;
  padding: 6px 4px;
  min-height: 84px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: all 0.15s ease;
  position: relative;
  box-sizing: border-box;
}

.db-cal-cell.empty {
  background: transparent;
  border-color: transparent;
  min-height: 0;
}

.db-cal-cell.disabled {
  background: #F9F9F8;
  opacity: 0.5;
  cursor: not-allowed;
}

.db-cal-cell.disabled.booked {
  opacity: 0.75;
  background: #F5F3EE;
}

.db-cal-cell.available {
  background: #FFF;
  border-color: var(--db-border-light);
  cursor: pointer;
}

.db-cal-cell.available:hover {
  border-color: #111;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.db-cal-cell.available.day-selected {
  border: 2px solid #111;
  background: #FAF9F4;
}

.db-cal-cell-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
  padding: 0 2px;
}

.db-cal-day-num {
  font-size: 12px;
  font-weight: 800;
  color: #111;
}

.db-cal-slot-count {
  font-size: 9px;
  font-weight: 700;
  color: var(--db-accent-olive);
  background: rgba(62,74,43,0.1);
  padding: 1px 4px;
  border-radius: 3px;
  display: none;
}

@media (min-width: 600px) {
  .db-cal-slot-count {
    display: inline-block;
  }
}

.db-cal-status-booked {
  font-size: 9px;
  font-weight: 800;
  color: #a33;
  text-transform: uppercase;
  margin-top: auto;
  text-align: center;
}

.db-time-chips-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
}

.db-time-chip {
  background: var(--db-accent-lime);
  color: #111;
  font-family: inherit;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 2px;
  border-radius: 4px;
  border: 1px solid #111;
  cursor: pointer;
  text-align: center;
  line-height: 1.15;
  width: 100%;
  transition: all 0.12s ease;
  box-sizing: border-box;
  text-decoration: none;
  margin: 0;
}

.db-time-chip:hover {
  background: #111;
  color: var(--db-accent-lime);
  transform: translateY(-1px);
}

.db-time-chip.selected {
  background: #111 !important;
  color: var(--db-accent-lime) !important;
  box-shadow: 0 0 0 2px var(--db-accent-lime);
  border-color: #111 !important;
}

.db-time-chip-more {
  background: #E5E0D8;
  color: #111;
  font-family: inherit;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 2px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  text-align: center;
  margin-top: 1px;
  transition: background 0.12s ease;
}

.db-time-chip-more:hover {
  background: #D5D0C8;
}

/* Day Detail Section below grid */
.db-day-all-slots {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--db-border-light);
}

.db-day-all-slots-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.db-day-all-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}

.db-slot-btn {
  background: #FFF;
  border: 1px solid var(--db-border-dark);
  border-radius: var(--db-radius-sm);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.db-slot-btn:hover {
  background: var(--db-accent-lime);
  border-color: #111;
}

.db-slot-btn.selected {
  background: #111 !important;
  color: var(--db-accent-lime) !important;
  border-color: #111 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.db-slot-span {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.8;
  margin-left: 2px;
}

/* Agenda View Styles */
.db-agenda-empty {
  text-align: center;
  padding: 30px 10px;
}

.db-agenda-week {
  margin-bottom: 20px;
}

.db-agenda-week:last-child {
  margin-bottom: 0;
}

.db-agenda-week-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--db-accent-olive);
  background: rgba(62,74,43,0.08);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 8px;
}

.db-agenda-day-row {
  background: #FAF9F5;
  border: 1px solid var(--db-border-light);
  border-radius: var(--db-radius-md);
  padding: 12px 16px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  transition: all 0.15s ease;
}

.db-agenda-day-row:hover {
  border-color: #111;
  background: #FFF;
}

.db-agenda-day-row.selected-day {
  border: 2px solid #111;
  background: #FFF;
}

.db-agenda-day-info {
  min-width: 160px;
}

.db-agenda-day-title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  color: #111;
}

.db-agenda-day-hours {
  font-size: 11px;
  color: var(--db-text-muted);
  font-weight: 600;
  margin-top: 2px;
}

.db-agenda-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
  justify-content: flex-end;
}

.db-agenda-slot-btn {
  background: #FFF;
  border: 1px solid var(--db-border-dark);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.db-agenda-slot-btn:hover {
  background: var(--db-accent-lime);
  border-color: #111;
  transform: translateY(-1px);
}

.db-agenda-slot-btn.selected {
  background: #111 !important;
  color: var(--db-accent-lime) !important;
  border-color: #111 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Selected Term Box */
.db-selected-term-box {
  background: #FFF;
  border: 2px solid #111;
  border-radius: var(--db-radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.db-summary-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--db-text-muted);
  margin-bottom: 4px;
}

.db-summary-value {
  font-size: 17px;
  font-weight: 900;
  color: #111;
}

.db-summary-sub {
  font-size: 12px;
  font-weight: 700;
  color: var(--db-accent-olive);
  margin-top: 2px;
}

.db-summary-empty {
  font-size: 13px;
  color: var(--db-text-muted);
  font-style: italic;
}

@media (max-width: 600px) {
  .db-month-nav {
    padding: 10px;
    gap: 6px;
  }
  .db-month-nav-btn {
    padding: 6px 8px;
    font-size: 11px;
  }
  .db-month-title {
    font-size: 14px;
  }
  .db-cal-cell {
    min-height: 64px;
    padding: 4px 2px;
  }
  .db-time-chip {
    font-size: 9px;
    padding: 2px 1px;
  }
  .db-agenda-day-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .db-agenda-slots {
    justify-content: flex-start;
    width: 100%;
  }
}

.db-slot-btn:focus-visible,
.db-agenda-slot-btn:focus-visible,
.db-time-chip:focus-visible {
  outline: 2px solid var(--db-accent-olive);
  outline-offset: 2px;
}

/* Step 4: Contact Form */
.db-form-box {
  background: var(--db-bg-card);
  border: 1px solid var(--db-border-light);
  border-radius: var(--db-radius-md);
  padding: 24px;
  margin-bottom: 24px;
}

.db-form-row {
  margin-bottom: 16px;
}

.db-form-row label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.db-form-row input[type="text"],
.db-form-row input[type="email"],
.db-form-row input[type="tel"],
.db-form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--db-border-light);
  border-radius: var(--db-radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: #FAFAFA;
  transition: border-color 0.2s;
}

.db-form-row input:focus,
.db-form-row textarea:focus {
  outline: none;
  border-color: #111;
  background: #FFF;
}

.db-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--db-text-muted);
  cursor: pointer;
}

.db-checkbox-label input {
  margin-top: 3px;
  accent-color: var(--db-accent-olive);
}

/* Step 5: Summary Card */
.db-summary-card {
  background: var(--db-bg-card);
  border: 2px solid var(--db-text-dark);
  border-radius: var(--db-radius-md);
  padding: 28px;
  margin-bottom: 24px;
}

.db-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--db-border-light);
  font-size: 14px;
}

.db-summary-row:last-child {
  border-bottom: none;
}

.db-summary-label {
  font-weight: 600;
  color: var(--db-text-muted);
}

.db-summary-val {
  font-weight: 800;
  text-align: right;
}

/* Step 6: Confirmation Success */
.db-success-card {
  background: var(--db-bg-card);
  border: 1px solid var(--db-border-light);
  border-radius: var(--db-radius-md);
  padding: 40px 24px;
  text-align: center;
}

.db-success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--db-accent-lime);
  color: #111;
  font-size: 32px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}

/* Navigation Buttons */
.db-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.db-btn {
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--db-radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.db-btn-prev {
  background: transparent;
  color: var(--db-text-dark);
  border: 1px solid var(--db-border-light);
}

.db-btn-prev:hover {
  border-color: #111;
}

.db-btn-next,
.db-btn-submit {
  background: #111;
  color: #FFF;
}

.db-btn-next:hover,
.db-btn-submit:hover {
  background: var(--db-accent-olive);
}

.db-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.db-btn:focus-visible {
  outline: 3px solid var(--db-accent-olive);
  outline-offset: 2px;
}

/* Notification alerts */
.db-alert {
  padding: 14px 18px;
  border-radius: var(--db-radius-sm);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.4;
}

.db-alert.error {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

.db-alert.info {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FCD34D;
}
