/* ===========================================================
   RSM Medicals Ltd — booking wizard styles
   =========================================================== */

.booking-hero {
  padding: 200px 0 90px;
  background:
    linear-gradient(120deg, rgba(7, 26, 63, 0.92), rgba(11, 46, 107, 0.82) 55%, rgba(11, 46, 107, 0.6)),
    url("images/2378359_medium2000.jpg") center / cover no-repeat;
  text-align: center;
  position: relative;
}

.booking-hero .eyebrow { justify-content: center; color: #a9c2f0; }
.booking-hero .eyebrow::before { background: #a9c2f0; }
.booking-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.booking-hero p { color: #d7e0f5; max-width: 560px; margin: 0 auto; }
.booking-hero p a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.wizard-section {
  position: relative;
  z-index: 1;
  padding: 0 0 100px;
  margin-top: -64px;
}

.wizard-shell {
  max-width: 880px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 40px 44px 44px;
}

/* progress */

.wizard-progress { display: flex; align-items: flex-start; margin-bottom: 44px; }

.step-node { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 96px; flex-shrink: 0; }

.step-node .circle {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}

.step-node .label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.01em;
}

.step-node.active .circle { border-color: var(--navy); color: var(--navy); box-shadow: 0 0 0 4px #eef2fc; }
.step-node.active .label { color: var(--navy-dark); }

.step-node.done .circle { background: var(--navy); border-color: var(--navy); color: #fff; }
.step-node.done .label { color: var(--navy-dark); }

.connector { flex: 1; height: 2px; background: var(--line); margin-top: 18px; transition: background 0.2s ease; }
.connector.filled { background: var(--navy); }

/* steps */

.step-panel { display: none; }
.step-panel.active { display: block; animation: fadein 0.35s ease; }

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

.step-panel h2 { font-size: 1.35rem; color: var(--navy-dark); margin-bottom: 6px; }
.step-panel > p.step-intro { color: var(--muted); margin: 0 0 28px; font-size: 0.95rem; }

.option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.option-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.option-card input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }

.option-card .emoji {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.option-card strong { display: block; color: var(--navy-dark); font-size: 0.98rem; }
.option-card small { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 2px; }

.option-card:hover { border-color: var(--navy-light); }

.option-card:has(input:checked) {
  border-color: var(--navy);
  background: #eef2fc;
  box-shadow: 0 0 0 3px rgba(11, 46, 107, 0.08);
}

.option-card:has(input:checked) .emoji { background: var(--navy); color: #fff; }

.field-block { margin-top: 30px; }

.field-block .form-grid { margin-top: 4px; }

.field-block h3 {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-light);
  margin: 0 0 16px;
}

[hidden] { display: none !important; }

.error-text {
  color: #c0334a;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 12px;
  display: none;
}

.error-text.show { display: block; }

.helper-note {
  margin-top: 20px;
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 0.88rem;
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.helper-note strong { color: var(--navy-dark); }

/* summary */

.summary-list { display: grid; gap: 16px; margin-bottom: 8px; }

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  background: var(--bg-soft);
  border-radius: 12px;
  border: 1px solid var(--line);
}

.summary-row dt { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 0 0 6px; }
.summary-row dd { margin: 0; font-weight: 700; color: var(--navy-dark); font-size: 0.95rem; text-align: right; }

/* nav buttons */

.wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.wizard-actions .btn[disabled] { opacity: 0.4; cursor: not-allowed; transform: none; }

/* success state */

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

.booking-success .check-circle {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: #e9f6ec;
  color: var(--green);
  font-size: 2rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}

.booking-success h2 { color: var(--navy-dark); }

.booking-success .ref {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 800;
  color: var(--navy);
  font-size: 1.05rem;
  margin: 18px 0 26px;
  letter-spacing: 0.02em;
}

@media (max-width: 720px) {
  .wizard-shell { padding: 28px 20px 32px; }
  .step-node { width: auto; }
  .step-node .label { display: none; }
  .option-grid { grid-template-columns: 1fr; }
  .summary-row { flex-direction: column; }
  .summary-row dd { text-align: left; }
}
