/* ── Google Fonts ─────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

/* ── RESET: prevent theme interference ─────────── */
#eezit-booking-wizard,
#eezit-booking-wizard * {
  box-sizing: border-box;
}

/* ── Outer Wrapper ──────────────────────────────── */
#eezit-booking-wizard {
  width: 100%;
  padding: 16px;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  scroll-margin-top: 220px;
  overflow-anchor: none;
}

/* ── Shell (dark blue card) ─────────────────────── */
#eezit-booking-wizard .shell {
  background: rgb(50, 70, 111);
  border-radius: 24px;
  padding: 40px 72px 32px;
  max-width: 1412px;
  margin: 0 auto;
  color: #ffffff;
  position: relative;
  width: 100%;
}

/* ── Header ─────────────────────────────────────── */
#eezit-booking-wizard .header {
  text-align: center;
  margin-bottom: 32px;
}

#eezit-booking-wizard .header-title {
  font-size: 32px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  margin: 0 0 8px 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
  background: none !important;
  border: none !important;
  text-align: center !important;
}

#eezit-booking-wizard .header-subtitle {
  font-size: 14px !important;
  color: rgb(213, 222, 255) !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
  line-height: 1.5 !important;
}

/* ── Progress Bar ───────────────────────────────── */
#eezit-booking-wizard .progress-wrapper {
  margin-bottom: 32px;
}

#eezit-booking-wizard .progress-track {
  background: rgb(72, 89, 127);
  height: 6px;
  border-radius: 999px;
  position: relative;
  margin-bottom: 16px;
  overflow: hidden;
}

#eezit-booking-wizard .progress-fill {
  background: linear-gradient(90deg, rgb(254, 254, 254), rgb(213, 222, 255));
  height: 6px;
  border-radius: 999px;
  transition: width 0.4s ease;
  position: absolute;
  top: 0;
  left: 0;
}

/* ── Step Labels ────────────────────────────────── */
#eezit-booking-wizard .step-labels {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#eezit-booking-wizard .step-label {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  margin: 0 !important;
  padding: 0 !important;
}

#eezit-booking-wizard .step-label-title {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: rgb(213, 222, 255) !important;
  line-height: 1.3 !important;
  display: block !important;
}

#eezit-booking-wizard .step-label-sub {
  font-size: 12px !important;
  color: rgb(213, 222, 255) !important;
  line-height: 1.3 !important;
  display: block !important;
}

#eezit-booking-wizard .step-label.active .step-label-title,
#eezit-booking-wizard .step-label.active .step-label-sub {
  color: #ffffff !important;
}

/* ── Content area ───────────────────────────────── */
#eezit-booking-wizard .content {
  display: flex;
  flex-direction: column;
}

/* ── Step panels ────────────────────────────────── */
#eezit-booking-wizard .step-view {
  display: none;
}

#eezit-booking-wizard .step-view.active {
  display: block;
}

/* ── Section Title ──────────────────────────────── */
#eezit-booking-wizard .section-title {
  font-size: 24px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  margin: 0 0 20px 0 !important;
  padding: 0 !important;
  line-height: 1.3 !important;
  background: none !important;
  border: none !important;
  text-align: left !important;
}

/* ── Section Hint ───────────────────────────────── */
#eezit-booking-wizard .section-hint {
  font-size: 14px !important;
  color: rgb(213, 222, 255) !important;
  margin: -12px 0 20px 0 !important;
  padding: 0 !important;
  line-height: 1.5 !important;
}

/* ── Choice Grid (2-column card grid) ──────────── */
#eezit-booking-wizard .choice-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 260px)) !important;
  gap: 24px !important;
  margin-bottom: 26px !important;
  list-style: none !important;
  padding: 0 !important;
}

/* ── Choice Cards ───────────────────────────────── */
#eezit-booking-wizard .choice-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 14px !important;
  background: rgb(59, 82, 128) !important;
  border: 2px solid transparent !important;
  border-radius: 18px !important;
  padding: 24px 28px !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  font-family: inherit !important;
  cursor: pointer !important;
  text-align: left !important;
  transition: background 0.2s, border-color 0.2s !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  outline: none !important;
  width: 100% !important;
  line-height: 1.3 !important;
}

#eezit-booking-wizard .choice-card:hover {
  background: rgb(102, 123, 138) !important;
}

#eezit-booking-wizard .choice-card.selected {
  background: rgb(102, 123, 138) !important;
  border-color: #ffffff !important;
}

#eezit-booking-wizard .choice-card-icon {
  font-size: 20px !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

#eezit-booking-wizard .choice-card span {
  flex: 1 !important;
}

/* ── Field Groups ───────────────────────────────── */
#eezit-booking-wizard .field-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

#eezit-booking-wizard .field-label {
  font-size: 13px !important;
  color: rgb(213, 222, 255) !important;
  margin-bottom: 6px !important;
  display: block !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
}

#eezit-booking-wizard .field {
  display: block !important;
  width: 100% !important;
}

/* ── Inputs, Selects, Textarea ──────────────────── */
#eezit-booking-wizard .ebw-input,
#eezit-booking-wizard input.ebw-input,
#eezit-booking-wizard select.ebw-select,
#eezit-booking-wizard .ebw-select,
#eezit-booking-wizard textarea.ebw-input {
  background: #ffffff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 12px 14px !important;
  color: rgb(27, 36, 57) !important;
  font-size: 14px !important;
  font-family: inherit !important;
  width: 100% !important;
  display: block !important;
  box-sizing: border-box !important;
  outline: none !important;
  appearance: auto !important;
  line-height: 1.4 !important;
}

#eezit-booking-wizard .ebw-input:focus,
#eezit-booking-wizard .ebw-select:focus {
  outline: 2px solid rgba(213, 222, 255, 0.6) !important;
  outline-offset: 2px !important;
}

#eezit-booking-wizard textarea.ebw-input {
  min-height: 120px !important;
  resize: vertical !important;
}

/* ── Dynamic note (type count) ──────────────────── */
#eezit-booking-wizard .dynamic-note {
  font-size: 13px !important;
  color: rgb(213, 222, 255) !important;
  margin-top: 10px !important;
  line-height: 1.4 !important;
}

/* ── Schedule Grid (Step 3) ─────────────────────── */
#eezit-booking-wizard .schedule-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 18px !important;
}

/* ── Form Panel (Step 4) ────────────────────────── */
#eezit-booking-wizard .form-panel {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px 24px !important;
}

#eezit-booking-wizard .form-panel .full-width {
  grid-column: 1 / -1 !important;
}

/* ── Footer (Back / Next) ───────────────────────── */
#eezit-booking-wizard .footer {
  display: flex !important;
  flex-direction: row !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 32px !important;
  padding: 0 !important;
}

/* ── Buttons ────────────────────────────────────── */
#eezit-booking-wizard .btn {
  border-radius: 999px !important;
  padding: 10px 26px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  font-family: inherit !important;
  cursor: pointer !important;
  transition: opacity 0.2s, background 0.2s !important;
  line-height: 1.4 !important;
  display: inline-block !important;
  text-decoration: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  white-space: nowrap !important;
}

#eezit-booking-wizard .btn-back {
  background: transparent !important;
  border: 1px solid #ffffff !important;
  color: #ffffff !important;
}

#eezit-booking-wizard .btn-back:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}

#eezit-booking-wizard .btn-back:disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
}

#eezit-booking-wizard .btn-next {
  background: #ffffff !important;
  border: 1px solid #ffffff !important;
  color: rgb(49, 69, 105) !important;
}

#eezit-booking-wizard .btn-next:hover {
  opacity: 0.9 !important;
}

#eezit-booking-wizard .btn-next:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

/* ── Success View ───────────────────────────────── */
#eezit-booking-wizard .success-view {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 0;
}

#eezit-booking-wizard .success-view.active {
  display: flex !important;
}

#eezit-booking-wizard .success-icon {
  width: 120px !important;
  height: 120px !important;
  border: 10px solid rgb(31, 158, 59) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 28px !important;
  position: relative !important;
  flex-shrink: 0 !important;
}

#eezit-booking-wizard .success-check {
  display: block !important;
  position: absolute !important;
  width: 44px !important;
  height: 24px !important;
  border-left: 5px solid rgb(31, 158, 59) !important;
  border-bottom: 5px solid rgb(31, 158, 59) !important;
  transform: rotate(-45deg) translate(4px, -4px) !important;
  border-radius: 2px !important;
}

#eezit-booking-wizard .success-title {
  font-size: 24px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  margin: 0 0 8px 0 !important;
  padding: 0 !important;
  text-align: center !important;
}

#eezit-booking-wizard .success-text {
  font-size: 14px !important;
  color: rgb(213, 222, 255) !important;
  max-width: 520px !important;
  margin: 0 0 32px 0 !important;
  padding: 0 !important;
  text-align: center !important;
  line-height: 1.6 !important;
}

#eezit-booking-wizard .success-summary {
  background: rgba(255, 255, 255, 0.07) !important;
  border-radius: 12px !important;
  padding: 20px 28px !important;
  text-align: left !important;
  width: 100% !important;
  max-width: 560px !important;
  margin-bottom: 28px !important;
  font-size: 13px !important;
  color: rgb(213, 222, 255) !important;
  line-height: 1.8 !important;
}

#eezit-booking-wizard .success-summary strong {
  color: #ffffff !important;
  font-weight: 500 !important;
}

/* ── Error Banner ───────────────────────────────── */
#eezit-booking-wizard .error-banner {
  display: none;
  background: rgba(255, 89, 94, 0.95) !important;
  border-radius: 10px !important;
  padding: 10px 16px !important;
  color: #ffffff !important;
  font-size: 14px !important;
  margin-top: 12px !important;
  line-height: 1.4 !important;
}

#eezit-booking-wizard .error-banner.visible {
  display: block !important;
}

/* ── Loading spinner on Next button ─────────────── */
#eezit-booking-wizard .btn-next.loading {
  opacity: 0.7 !important;
  cursor: wait !important;
}

/* ── Close icon hidden for inline mode ──────────── */
#eezit-booking-wizard .close-icon {
  display: none !important;
}

/* ── Responsive: tablet ─────────────────────────── */
@media (max-width: 1024px) {
  #eezit-booking-wizard .shell {
    padding: 32px 32px 24px !important;
  }
  #eezit-booking-wizard .form-panel {
    grid-template-columns: 1fr !important;
  }
  #eezit-booking-wizard .form-panel .full-width {
    grid-column: auto !important;
  }
}

/* ── Responsive: mobile ─────────────────────────── */
@media (max-width: 600px) {
  #eezit-booking-wizard .shell {
    padding: 24px 16px 20px !important;
    border-radius: 16px !important;
  }
  #eezit-booking-wizard .header-title {
    font-size: 20px !important;
  }
  #eezit-booking-wizard .section-title {
    font-size: 18px !important;
  }
  #eezit-booking-wizard .choice-grid {
    grid-template-columns: 1fr !important;
  }
  #eezit-booking-wizard .footer {
    flex-direction: column-reverse !important;
    align-items: stretch !important;
  }
  #eezit-booking-wizard .btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    display: block !important;
  }
  #eezit-booking-wizard .step-label-title {
    font-size: 11px !important;
  }
  #eezit-booking-wizard .step-label-sub {
    font-size: 10px !important;
  }
}
