/* Book Consultation wizard */
.booking-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: rgba(30, 15, 5, 0.72);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.booking-overlay.is-open {
  display: flex;
}

.booking-modal {
  background: var(--color-bg-light, #faf5f0);
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.25);
  animation: bookingSlideUp 0.35s ease;
}

@media (min-width: 600px) {
  .booking-overlay {
    align-items: center;
    padding: 20px;
  }
  .booking-modal {
    border-radius: 16px;
    max-height: 88vh;
  }
}

@keyframes bookingSlideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.booking-header {
  background: #422006;
  color: #fff;
  padding: 16px 20px;
  border-radius: 16px 16px 0 0;
  flex-shrink: 0;
}

.booking-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.booking-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}

.booking-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.booking-steps {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

.booking-step-dot {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
}

.booking-step-dot.is-active,
.booking-step-dot.is-done {
  background: var(--color-accent, #d4a574);
}

.booking-body {
  padding: 16px 20px 20px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.booking-trust {
  background: #fff;
  border: 1px solid rgba(66, 32, 6, 0.12);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.8rem;
  color: var(--color-text);
  margin-bottom: 14px;
  line-height: 1.45;
}

.booking-trust strong {
  color: #422006;
}

.booking-help {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.booking-help a {
  font-size: 0.8rem;
  padding: 6px 10px;
  border-radius: 6px;
  background: #422006;
  color: #fff !important;
  text-decoration: none !important;
}

.booking-help a.booking-help-wa {
  background: #25d366;
}

.booking-field {
  margin-bottom: 14px;
}

.booking-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: #422006;
}

.booking-field select,
.booking-field input,
.booking-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
  box-sizing: border-box;
}

.booking-service-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.booking-service-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  min-height: 44px;
  border: 2px solid rgba(66, 32, 6, 0.15);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-family: inherit;
}

.booking-service-item.is-selected {
  border-color: #422006;
  background: rgba(212, 165, 116, 0.15);
}

.booking-service-item:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.booking-service-name {
  font-weight: 600;
  color: #422006;
  font-size: 0.95rem;
}

.booking-service-price {
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

.booking-service-meta {
  font-size: 0.75rem;
  color: var(--color-text-light);
  margin-top: 4px;
}

.booking-slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

@media (max-width: 380px) {
  .booking-slot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.booking-slot {
  padding: 10px 6px;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: center;
}

.booking-slot.is-selected {
  border-color: #422006;
  background: rgba(212, 165, 116, 0.25);
  font-weight: 700;
}

.booking-slot.is-booked {
  background: #f0f0f0;
  color: #888;
  cursor: not-allowed;
  border-color: #ddd;
  font-size: 0.7rem;
  line-height: 1.2;
}

.booking-footer {
  padding: 12px 20px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  background: var(--color-bg-light, #faf5f0);
}

.booking-btn-row {
  display: flex;
  gap: 10px;
}

.booking-btn {
  flex: 1;
  padding: 14px 16px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 48px;
}

.booking-btn-primary {
  background: #422006;
  color: #fff;
}

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

.booking-btn-secondary {
  background: transparent;
  border: 2px solid #422006;
  color: #422006;
}

.booking-summary {
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(66, 32, 6, 0.12);
}

.booking-summary dt {
  font-weight: 600;
  color: #422006;
  font-size: 0.8rem;
}

.booking-summary dd {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.booking-success {
  text-align: center;
  padding: 20px 10px;
}

.booking-success-icon {
  font-size: 3rem;
  color: #2e7d32;
  line-height: 1;
}

.booking-success h3 {
  color: #422006;
  margin: 12px 0 8px;
}

.booking-ref {
  font-family: monospace;
  font-size: 1.1rem;
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  display: inline-block;
  margin: 8px 0;
}

.booking-loader-global {
  position: fixed;
  inset: 0;
  z-index: 13000;
  background: rgba(255, 255, 255, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}

.booking-loader-global.is-visible {
  display: flex;
}

.booking-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(66, 32, 6, 0.2);
  border-top-color: #422006;
  border-radius: 50%;
  animation: bookingSpin 0.8s linear infinite;
}

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

.booking-loader-text {
  font-weight: 600;
  color: #422006;
}

.booking-region-select {
  margin-bottom: 12px;
}

.booking-error {
  color: #b71c1c;
  font-size: 0.85rem;
  margin-top: 8px;
}

/* Header CTA group */
.header-cta-group {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.5vw, 12px);
  flex-shrink: 0;
}

.header-cta-group .request-call-btn,
.header-cta-group .book-consultation-btn {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  padding: 6px 10px;
  font-size: clamp(0.65rem, 2vw, 0.85rem);
}

.book-consultation-btn {
  background-color: var(--color-accent, #d4a574) !important;
  color: #422006 !important;
  border: 1px solid #422006 !important;
}

.book-consultation-btn:hover,
.book-consultation-btn:focus {
  background-color: #e8c9a0 !important;
}

@media screen and (max-width: 767px) {
  .main-nav .container {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
  }

  .nav-brand {
    grid-column: 1 !important;
    justify-self: start !important;
  }

  .header-cta-group {
    grid-column: 2 !important;
    justify-self: center !important;
    align-self: center !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: clamp(10px, 3vw, 16px) !important;
    width: 100%;
    max-width: min(260px, 64vw);
    min-width: 0;
    flex-shrink: 1;
  }

  .header-cta-group .book-consultation-btn {
    margin-right: auto !important;
  }

  .header-cta-group .request-call-btn {
    margin-left: auto !important;
  }

  .header-cta-group .request-call-btn,
  .header-cta-group .book-consultation-btn {
    flex: 0 1 auto;
    min-width: 0;
    margin: 0;
    padding: 6px 10px !important;
    font-size: clamp(0.62rem, 2.6vw, 0.75rem) !important;
    line-height: 1.2 !important;
    text-align: center;
    border-radius: 6px;
    white-space: nowrap;
  }

  #openCallbackModal {
    grid-column: unset !important;
    justify-self: unset !important;
  }

  .mobile-menu-toggle {
    grid-column: 3 !important;
    justify-self: end !important;
  }

  .nav-distribute {
    display: contents !important;
  }

  .nav-distribute .search-component.desktop-search {
    display: none !important;
  }

  .main-nav .nav-menu {
    display: flex !important;
    flex-direction: column;
  }

  .main-nav .nav-menu.active {
    right: 0 !important;
    visibility: visible !important;
    z-index: 1100 !important;
  }
}

@media screen and (max-width: 374px) {
  .header-cta-group {
    max-width: min(220px, 70vw) !important;
    gap: 8px !important;
  }
  .header-cta-group .request-call-btn,
  .header-cta-group .book-consultation-btn {
    padding: 5px 6px !important;
    font-size: 0.62rem !important;
  }
}

@media (min-width: 1025px) {
  .header-cta-group {
    order: -1;
    margin-right: 8px;
  }

  .nav-distribute {
    display: flex;
    align-items: center;
    flex: 1;
    gap: clamp(8px, 1.5vw, 20px);
    min-width: 0;
  }

  .header-cta-group .request-call-btn,
  .header-cta-group .book-consultation-btn {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}

.booking-trust-lock {
  margin-right: 4px;
}

.paid-services-book-cta {
  text-align: center;
  margin: 24px 0 8px;
}

.paid-services-book-cta--secondary {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(66, 32, 6, 0.15);
}

.paid-services-book-cta .book-consultation-btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}

.paid-services-book-cta .booking-cta-note {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #5c4a32;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Pre-Footer Feature Section (split layout)
   Used by hub pages (e.g. numerology-expert-in-kuwait)
   ============================================ */
.prefooter-feature {
  background-color: var(--color-bg-soft, #fdf6ec);
  padding: clamp(28px, 5vw, 56px) 0;
  border-top: 1px solid rgba(66, 32, 6, 0.08);
}

.prefooter-feature .prefooter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
}

.prefooter-feature .prefooter-copy h2 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  color: var(--color-text, #422006);
  margin: 0 0 12px;
  line-height: 1.25;
}

.prefooter-feature .prefooter-copy p {
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.7;
  color: #5c4a32;
  margin: 0 0 12px;
}

.prefooter-feature .prefooter-cta {
  display: inline-block;
  margin-top: 4px;
  padding: 10px 22px;
  background-color: var(--color-accent, #d4a574);
  color: #422006;
  border: 1px solid #422006;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.prefooter-feature .prefooter-cta:hover,
.prefooter-feature .prefooter-cta:focus {
  background-color: #e8c9a0;
}

.prefooter-feature .prefooter-media {
  display: flex;
  justify-content: center;
}

.prefooter-feature .prefooter-media .city-hero-wrap {
  margin: 0;
  max-width: 420px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(66, 32, 6, 0.08);
}

.prefooter-feature .prefooter-media .city-hero-img {
  border-radius: 12px;
}

@media (min-width: 768px) {
  .prefooter-feature .prefooter-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .prefooter-feature .prefooter-copy {
    padding-right: clamp(8px, 2vw, 24px);
  }
  .prefooter-feature .prefooter-media {
    justify-content: flex-end;
  }
}

@media (max-width: 767px) {
  .prefooter-feature .prefooter-copy {
    text-align: center;
  }
  .prefooter-feature .prefooter-media .city-hero-wrap {
    max-width: 320px;
  }
}
