/* consultation-calendar.css
   Calendar booking widget for /consultation
   Palette: --pearl #FFFEF9, --gold #C9A96E, --navy #1A1A2E, --warm-gray #2C2C3E, --linen #F5F0E8
*/

/* ── Layout: 2-step flow ───────────────────────────────────────────── */
.booking-widget {
  background: #FFFEF9;
  border: 1px solid #E8DCC4;
  border-radius: 16px;
  padding: 48px;
  max-width: 860px;
  margin: 0 auto;
}

.booking-steps {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  align-items: center;
}

.booking-step-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #999;
  font-weight: 500;
}

.booking-step-indicator.active {
  color: #1A1A2E;
}

.booking-step-indicator.completed {
  color: #C9A96E;
}

.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid #E8DCC4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #999;
  background: #FFFEF9;
  flex-shrink: 0;
  transition: all 0.2s;
}

.booking-step-indicator.active .step-dot {
  border-color: #1A1A2E;
  background: #1A1A2E;
  color: #C9A96E;
}

.booking-step-indicator.completed .step-dot {
  border-color: #C9A96E;
  background: #C9A96E;
  color: #1A1A2E;
}

.step-connector {
  flex: 1;
  height: 1px;
  background: #E8DCC4;
  max-width: 60px;
}

/* ── Step 1: Date + Time picker ─────────────────────────────────────── */
#booking-step-1 { display: block; }
#booking-step-2 { display: none; }
#booking-confirmed { display: none; }

.calendar-section-label {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #C9A96E;
  margin-bottom: 16px;
}

.calendar-section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  color: #1A1A2E;
  margin: 0 0 8px;
  line-height: 1.2;
}

.calendar-tz-note {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  color: #999;
  margin-bottom: 32px;
}

.calendar-tz-detected {
  color: #C9A96E;
  font-weight: 500;
}

/* Day picker */
.day-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.day-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 12px;
  border: 1.5px solid #E8DCC4;
  border-radius: 10px;
  background: #FFFEF9;
  cursor: pointer;
  min-width: 74px;
  transition: all 0.15s;
  font-family: 'Jost', sans-serif;
  position: relative;
}

.day-btn:hover:not(.disabled):not(.selected) {
  border-color: #1A1A2E;
  background: #F5F0E8;
}

.day-btn.selected {
  border-color: #C9A96E;
  background: #1A1A2E;
}

.day-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: #F5F0E8;
}

.day-btn-dow {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 4px;
}

.day-btn.selected .day-btn-dow {
  color: #C9A96E;
}

.day-btn-date {
  font-size: 20px;
  font-weight: 500;
  color: #1A1A2E;
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.day-btn.selected .day-btn-date {
  color: #FFFEF9;
}

.day-btn-avail {
  font-size: 10px;
  color: #999;
  margin-top: 4px;
  font-family: 'Jost', sans-serif;
}

.day-btn.selected .day-btn-avail {
  color: #C9A96E;
}

/* Time slot grid */
.time-slot-section {
  margin-top: 8px;
}

.time-slot-label {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 12px;
}

.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
  margin-bottom: 32px;
}

.time-slot-btn {
  padding: 12px 8px;
  border: 1.5px solid #E8DCC4;
  border-radius: 8px;
  background: #FFFEF9;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #1A1A2E;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.time-slot-btn:hover:not(.selected) {
  border-color: #1A1A2E;
  background: #F5F0E8;
}

.time-slot-btn.selected {
  border-color: #C9A96E;
  background: #C9A96E;
  color: #1A1A2E;
  font-weight: 600;
}

.no-slots-msg {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  color: #999;
  padding: 16px 0;
}

.slot-loading {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  color: #C9A96E;
  padding: 12px 0;
  display: none;
}

/* Step 1 CTA */
.booking-next-btn {
  display: inline-block;
  background: #1A1A2E;
  color: #C9A96E;
  padding: 16px 48px;
  border: none;
  border-radius: 10px;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.15s;
  margin-top: 8px;
}

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

.booking-next-btn:hover:not(:disabled) {
  opacity: 0.88;
}

/* ── Step 2: Intake form ────────────────────────────────────────────── */
.booking-back-btn {
  background: none;
  border: none;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  color: #999;
  cursor: pointer;
  padding: 0;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.05em;
}

.booking-back-btn:hover { color: #1A1A2E; }

.booking-selected-slot-summary {
  background: #F5F0E8;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.slot-summary-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.slot-summary-text {
  font-family: 'Jost', sans-serif;
}

.slot-summary-date {
  font-size: 15px;
  font-weight: 600;
  color: #1A1A2E;
}

.slot-summary-time {
  font-size: 13px;
  color: #C9A96E;
  margin-top: 2px;
}

/* Intake form fields */
.booking-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.booking-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.booking-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.booking-label {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2C2C3E;
  font-weight: 500;
}

.booking-input,
.booking-select,
.booking-textarea {
  background: #FFFEF9;
  border: 1.5px solid #E8DCC4;
  border-radius: 8px;
  padding: 12px 16px;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  color: #1A1A2E;
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  box-sizing: border-box;
}

.booking-input:focus,
.booking-select:focus,
.booking-textarea:focus {
  border-color: #C9A96E;
}

.booking-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.booking-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Submit button */
.booking-submit-btn {
  background: #C9A96E;
  color: #1A1A2E;
  border: none;
  border-radius: 10px;
  padding: 18px 48px;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.15s;
  margin-top: 8px;
  align-self: flex-start;
}

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

.booking-submit-btn:hover:not(:disabled) {
  opacity: 0.88;
}

.booking-form-status {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  padding: 12px 0;
}

.booking-form-status.error { color: #c0392b; }
.booking-form-status.success { color: #2d7a4f; }

/* ── Confirmation state ─────────────────────────────────────────────── */
.booking-confirmed-inner {
  text-align: center;
  padding: 16px 0;
}

.booking-confirmed-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #C9A96E;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.booking-confirmed-icon svg {
  width: 28px;
  height: 28px;
  stroke: #1A1A2E;
}

.booking-confirmed-h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 36px;
  font-weight: 400;
  color: #1A1A2E;
  margin: 0 0 12px;
}

.booking-confirmed-p {
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  color: #2C2C3E;
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 24px;
}

.booking-confirmed-time {
  background: #F5F0E8;
  border-radius: 10px;
  padding: 20px 32px;
  display: inline-block;
  margin-bottom: 28px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  color: #1A1A2E;
}

.booking-confirmed-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.booking-confirmed-link {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  color: #999;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

/* ── Fallback form (JS disabled / widget failed) ────────────────────── */
.booking-fallback {
  display: none;
  background: #F5F0E8;
  border-radius: 12px;
  padding: 24px 32px;
  margin-top: 24px;
}

.booking-fallback-notice {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  color: #2C2C3E;
  margin-bottom: 16px;
}

.booking-widget-loading {
  text-align: center;
  padding: 48px;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  color: #999;
}

/* ── Tier selector cards ────────────────────────────────────────────── */
.consult-tiers {
  max-width: 960px;
  margin: 0 auto 48px;
  padding: 0 24px;
}

.consult-tiers-label {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #C9A96E;
  margin-bottom: 16px;
  text-align: center;
}

.consult-tiers-headline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  color: #1A1A2E;
  text-align: center;
  margin-bottom: 32px;
}

.tier-cards-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.tier-select-card {
  flex: 1 1 160px;
  max-width: 190px;
  border: 1.5px solid #E8DCC4;
  border-radius: 12px;
  padding: 20px 16px;
  background: #FFFEF9;
  cursor: pointer;
  transition: all 0.18s;
  text-align: center;
  -webkit-user-select: none;
  user-select: none;
  position: relative;
}

.tier-select-card:hover:not(.tier-selected) {
  border-color: #1A1A2E;
}

.tier-selected {
  border-color: #C9A961;
  border-width: 2px;
  background: #FEF0E5;
}

.tier-select-card-name {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1A1A2E;
  margin-bottom: 6px;
}

.tier-select-card-price {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  color: #1A1A2E;
  line-height: 1;
  margin-bottom: 4px;
}

.tier-select-card-period {
  font-size: 13px;
  font-family: 'Jost', sans-serif;
  color: #999;
}

.tier-select-card-tagline {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  color: #999;
  margin-top: 8px;
  line-height: 1.4;
}

.tier-selected .tier-select-card-name { color: #C9A961; }
.tier-selected .tier-select-card-price { color: #1A1A2E; }

.tier-selected-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 18px;
  height: 18px;
  background: #C9A961;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
}

.tier-selected .tier-selected-check {
  display: flex;
}

.tier-selected-check svg {
  width: 10px;
  height: 10px;
  stroke: #1A1A2E;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* ── Scarcity counter ───────────────────────────────────────────────── */
.consult-scarcity {
  max-width: 860px;
  margin: 0 auto 32px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.consult-scarcity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #C9A961;
  flex-shrink: 0;
  animation: pulse-gold 2s ease-in-out infinite;
}

@keyframes pulse-gold {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.consult-scarcity-text {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: #2C2C3E;
}

.consult-scarcity-count {
  color: #C9A961;
  font-weight: 600;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .booking-widget {
    padding: 28px 20px;
    border-radius: 12px;
  }

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

  .day-picker {
    gap: 6px;
  }

  .day-btn {
    min-width: 60px;
    padding: 12px 8px;
  }

  .day-btn-date {
    font-size: 17px;
  }

  .time-slots-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .booking-next-btn,
  .booking-submit-btn {
    width: 100%;
    text-align: center;
  }

  .booking-steps {
    gap: 8px;
  }

  .step-connector {
    max-width: 24px;
  }

  .booking-step-indicator span:not(.step-dot) {
    display: none;
  }

  .booking-confirmed-h2 {
    font-size: 28px;
  }

  .tier-cards-row {
    gap: 8px;
  }

  .tier-select-card {
    flex: 1 1 130px;
    max-width: 160px;
    padding: 16px 12px;
  }

  .tier-select-card-price {
    font-size: 18px;
  }
}
