/* ============================================================
   KIKWETU CULTURAL ADVENTURES — BOOKING WIZARD STYLES
   ============================================================ */

/* ── PROGRESS BAR ── */
.booking-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  background: var(--sand);
  padding: 1.5rem 2rem;
  border-radius: 4px;
  border: 1px solid rgba(15,11,7,0.06);
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.progress-step.active {
  opacity: 1;
}

.progress-step.completed {
  opacity: 0.85;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.progress-step.active .step-number {
  background: var(--ochre);
  color: var(--bone);
  border-color: var(--ochre);
}

.progress-step.completed .step-number {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}

.step-details {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.step-label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 500;
}

.step-sub {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.progress-line {
  flex: 0.5;
  height: 1px;
  background: rgba(15,11,7,0.15);
  margin: 0 1rem;
}

.progress-step.completed + .progress-line {
  background: var(--ochre);
}

@media (max-width: 768px) {
  .booking-progress {
    padding: 1rem;
    gap: 0.5rem;
  }
  .progress-line {
    margin: 0 0.25rem;
  }
  .step-sub {
    display: none;
  }
  .step-label {
    font-size: 0.8rem;
  }
}

/* ── FORM PANELS ── */
.form-panel {
  display: none;
  animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.form-panel.active {
  display: block;
}

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

.booking-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

@media (max-width: 992px) {
  .booking-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* ── FORM FIELD GROUP ── */
.form-section-group {
  margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(15,11,7,0.08);
  padding-bottom: 2rem;
}

.form-section-group:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.field-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.field-subtitle {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

/* ── DESTINATION CARDS & ACCOMMODATION CARDS ── */
.selection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.accommodation-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.selection-card {
  background: var(--bone);
  border: 1px solid rgba(15,11,7,0.12);
  border-radius: 4px;
  padding: 1.15rem;
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease;
  user-select: none;
}

.selection-card:hover {
  border-color: var(--ochre-soft);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15,11,7,0.05);
}

.selection-card.selected {
  border-color: var(--ochre);
  background: var(--sand);
}

.selection-card .card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1.2;
}

.selection-card .card-subtitle {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--ochre);
  font-weight: 500;
  margin-top: 0.35rem;
  letter-spacing: 0.02em;
}

.selection-card .card-desc {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.5rem;
  line-height: 1.4;
}

.selection-card .select-indicator {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(15,11,7,0.2);
  background: var(--white);
  transition: all 0.2s ease;
}

.selection-card.selected .select-indicator {
  border-color: var(--ochre);
  background: var(--ochre);
  box-shadow: inset 0 0 0 3px var(--white);
}

@media (max-width: 768px) {
  .selection-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .accommodation-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .selection-grid {
    grid-template-columns: 1fr;
  }
  .accommodation-grid {
    grid-template-columns: 1fr;
  }
}

/* ── STEPPER INPUTS ── */
.stepper-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.stepper-card {
  border: 1px solid rgba(15,11,7,0.12);
  background: var(--bone);
  border-radius: 4px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.stepper-label {
  display: flex;
  flex-direction: column;
}

.stepper-label-text {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.stepper-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  line-height: 1;
  margin-top: 0.25rem;
}

.stepper-controls {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stepper-btn {
  width: 22px;
  height: 22px;
  border-radius: 3px;
  border: 1px solid rgba(15,11,7,0.15);
  background: var(--white);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
  user-select: none;
}

.stepper-btn:hover {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}

.stepper-btn:active {
  transform: scale(0.92);
}

@media (max-width: 768px) {
  .stepper-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── INTERACTIVE TAGS ── */
.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-chip {
  padding: 0.45rem 1rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid rgba(15,11,7,0.2);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.tag-chip:hover {
  border-color: var(--ink);
  background: rgba(15,11,7,0.03);
}

.tag-chip.selected {
  background: var(--ochre);
  color: var(--white);
  border-color: var(--ochre);
}

.tag-chip.black.selected {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

/* ── DUAL HANDLE RANGE SLIDER ── */
.range-slider-wrapper {
  position: relative;
  padding: 1.5rem 0 1rem;
}

.slider-container {
  position: relative;
  height: 4px;
  width: 100%;
  background: rgba(15,11,7,0.15);
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

.slider-track {
  position: absolute;
  height: 100%;
  background: var(--ochre);
  border-radius: 2px;
  left: 10%;
  right: 50%;
}

.range-inputs {
  position: absolute;
  width: 100%;
  height: 0;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  margin: 0;
}

.range-inputs input[type="range"] {
  position: absolute;
  width: 100%;
  height: 0;
  -webkit-appearance: none;
  appearance: none;
  background: none;
  pointer-events: none;
  outline: none;
  margin: 0;
  top: 0;
}

/* Webkit Thumbs */
.range-inputs input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--ochre);
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 4px rgba(15,11,7,0.15);
  transition: transform 0.15s ease;
}

.range-inputs input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.range-inputs input[type="range"]::-webkit-slider-thumb:active {
  background: var(--ochre);
}

/* Firefox Thumbs */
.range-inputs input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--ochre);
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 4px rgba(15,11,7,0.15);
  transition: transform 0.15s ease;
}

.range-inputs input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.15);
}

.range-inputs input[type="range"]::-moz-range-thumb:active {
  background: var(--ochre);
}

.slider-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.5rem;
}

.slider-values {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 1rem;
}

.slider-price-label {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
}

.slider-price-meta {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ── BUTTON NAVIGATION ── */
.panel-nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(15,11,7,0.08);
}

.autosave-text {
  font-size: 0.72rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

/* ── SIDEBAR TRIP DRAFT ── */
.booking-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.sidebar-card {
  background: var(--espresso);
  color: var(--bone);
  padding: 2rem;
  border-radius: 4px;
}

.sidebar-title-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ochre-soft);
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.sidebar-card h3 {
  font-size: 1.6rem;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.summary-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.summary-item {
  display: grid;
  grid-template-columns: 85px 1fr;
  gap: 1rem;
  border-bottom: 1px solid rgba(246,239,227,0.08);
  padding-bottom: 0.85rem;
}

.summary-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.summary-label {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246,239,227,0.5);
  font-weight: 500;
  padding-top: 0.15rem;
}

.summary-val {
  font-size: 0.82rem;
  color: var(--bone);
  line-height: 1.4;
}

.estimated-price-box {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(246,239,227,0.12);
}

.estimated-price-title {
  font-size: 0.72rem;
  color: rgba(246,239,227,0.65);
  margin-bottom: 0.25rem;
}

.estimated-price-range {
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--ochre-soft);
  line-height: 1.1;
}

.estimated-price-sub {
  font-size: 0.68rem;
  color: rgba(246,239,227,0.45);
  margin-top: 0.25rem;
}

/* ── SIDEBAR WHAT HAPPENS NEXT ── */
.timeline-card {
  background: var(--sand);
  border: 1px solid rgba(15,11,7,0.08);
  border-radius: 4px;
  padding: 1.75rem;
}

.timeline-title-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: block;
}

.timeline-flow {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.timeline-step {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 0.85rem;
  align-items: start;
}

.timeline-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ochre);
  color: var(--bone);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.78rem;
}

.timeline-content h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.2;
}

.timeline-content p {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.15rem;
  line-height: 1.35;
}

/* ── SIDEBAR EXPERT CARD ── */
.expert-card {
  background: var(--bone);
  border: 1px solid rgba(15,11,7,0.1);
  border-radius: 4px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.expert-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--ochre);
  flex-shrink: 0;
}

.expert-info {
  flex-grow: 1;
}

.expert-eyebrow {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  display: block;
}

.expert-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
  margin-top: 0.1rem;
}

.expert-meta {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.expert-chat-btn {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  border-radius: 99px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.expert-chat-btn:hover {
  background: var(--ochre);
  color: var(--white);
}

/* ── CLIENT-SIDE INTERACTION VALIDATION (MODERN WEB GUIDANCE) ── */
.form-input.user-invalid-fallback,
.form-select.user-invalid-fallback,
.form-textarea.user-invalid-fallback {
  border-color: #d93025 !important;
  background-color: #fce8e6 !important;
}

.error-hint-msg {
  display: none;
  color: #d93025;
  font-size: 0.72rem;
  font-weight: 500;
  margin-top: 0.25rem;
}

.form-group:has(.user-invalid-fallback) .error-hint-msg {
  display: block;
}

/* Native styling support */
@supports (selector(:user-invalid)) {
  .form-input:user-invalid,
  .form-select:user-invalid,
  .form-textarea:user-invalid {
    border-color: #d93025 !important;
    background-color: #fce8e6 !important;
  }
  
  .form-input:user-invalid + .error-hint-msg,
  .form-select:user-invalid + .error-hint-msg,
  .form-textarea:user-invalid + .error-hint-msg {
    display: block;
  }
}
