/* ============================
   Appointment Page Styles
   (de-duplicated & modernized)
   ============================ */

/* ----- Page background & fonts ----- */
body {
  background: linear-gradient(135deg, #f0f9ff, #e0f7fa);
  font-family: 'Inter', 'Battambang', sans-serif;
  color: #111827;
}

/* ----- Hero & Info Sections ----- */
.hero-image {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 1.25rem;
  object-fit: cover;
}
.info-section {
  background: #fff;
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 6px 22px rgba(20,20,20,.06);
}
.info-section.success { /* optional success variant */
  border-left: 4px solid #22c55e;
}

/* ----- Accordion (Locations) ----- */
.accordion-container {
  border: 1px solid #e8e8ef;
  border-radius: 12px;
  overflow: hidden;
}
.accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafbff;
  padding: .9rem 1rem;
  border: 0;
  cursor: pointer;
  font-weight: 600;
}
.accordion-toggle .accordion-icon {
  font-size: 1.25rem;
  line-height: 1;
}
.accordion-toggle.active { background: #f0f4ff; }
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  padding: 0 .75rem;
}
.location-item {
  padding: .75rem 0;
  border-bottom: 1px dashed #eee;
}
.location-item:last-child { border-bottom: 0; }
.location-detail {
  font-size: .95rem;
  color: #546072;
  margin: .25rem 0;
}

/* ----- Booking Card (wrapper around form) ----- */
.booking-card {
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(17,24,39,.08);
}
.card-header {
  border-bottom: 1px solid #eef0f5;
  padding: 1rem 1.25rem;
}
.card-title {
  font-size: 1.15rem;
  margin: .25rem 0 0 0;
}
.card-body {
  padding: 1.25rem;
}

/* ----- Progress Bar ----- */
.progress-bar-container {
  position: relative;
  height: 10px;
  background: #f2f4f8;
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2563eb, #22c55e);
  transition: width .25s ease;
}
.progress-bar-percentage {
  display: block;
  text-align: right;
  font-size: .85rem;
  color: #64748b;
  margin-bottom: .25rem;
}

/* ============================
   Label-over Appointment Form
   ============================ */
.appointment-form {
  background: #ffffff;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05),
              0 4px 6px rgba(0, 0, 0, 0.03),
              0 0 0 1px rgba(0, 0, 0, 0.02); /* multi-layer shadow */
  max-width: 880px;
  margin: 1.5rem auto; /* slightly higher up */
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.appointment-form:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.06),
              0 6px 10px rgba(0,0,0,0.04);
}

.appointment-form:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

/* Modern Heading (Khmer Battambang + gradient) */
.appointment-form h2 {
  font-family: 'Battambang', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  text-align: center;
  margin: 0 0 0.8rem 0; /* Less space above, slightly smaller below */
  background: linear-gradient(90deg, #16a34a, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}
.appointment-form {
  margin: 1rem auto; /* Reduce space around the form */
  padding-top: 1.2rem; /* Less top padding */
}


/* Grid rows for paired fields */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (min-width: 640px) {
  .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Form groups & labels */
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 600;
  font-size: 1.1rem;  /* Increased from .95rem */
  line-height: 1.2;
  color: #374151;
}

/* Unified form controls */
.form-control,
select.form-control,
textarea.form-control {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  font-size: 16px;           /* prevents iOS zoom */
  line-height: 1.4;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  outline: 0;
  background: #fff;
  min-height: 42px;
  color: #111827;
  transition: all 0.2s ease-in-out;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.form-control:focus,
select.form-control:focus,
textarea.form-control:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22,163,74,.15);
}

/* Textarea sizing */
textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* Select arrow (pure CSS) */
select.form-control {
  background-image:
    linear-gradient(45deg, transparent 50%, #6b7280 50%),
    linear-gradient(135deg, #6b7280 50%, transparent 50%),
    linear-gradient(to right, #e5e7eb, #e5e7eb);
  background-position:
    calc(100% - 1.4rem) center,
    calc(100% - 1rem) center,
    calc(100% - 2rem) center;
  background-size: 6px 6px, 6px 6px, 1px 70%;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

/* Errors & helpers */
.error-message {
  color: #dc2626;
  font-size: .86rem;
  margin-top: .35rem;
}

/* Submit button (Khmer Battambang, green gradient) */
.submit-btn {
  font-family: 'Battambang', sans-serif;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  border: none;
  padding: .9rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .5px;
  cursor: pointer;
  width: 100%;
  transition: all .25s ease;
  box-shadow: 0 4px 12px rgba(34,197,94,.3);
}
.submit-btn:hover {
  background: linear-gradient(135deg, #15803d, #16a34a);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(34,197,94,.4);
}
.submit-btn:active { transform: translateY(0); }

/* Alert (success) */
.alert.success {
  background: #ecfdf5;
  border: 1px solid #10b981;
  color: #065f46;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  text-align: center;
}

/* Flatpickr fixes (ensure alt input fills width) */
.flatpickr-input[readonly] { cursor: text; }
input.flatpickr-input,
input.flatpickr-input + input {
  width: 100%;
  box-sizing: border-box;
}

/* ----- Print: keep it simple ----- */
@media print {
  .accordion-container,
  .progress-bar-container,
  .submit-btn,
  .hero-image { display: none; }
  .booking-card,
  .info-section {
    box-shadow: none;
    border: 1px solid #e5e7eb;
  }
}
/* === Stepper (numbered, with connectors) === */
.stepper{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:2rem;
  margin: .4rem 0 1.25rem;
  flex-wrap:wrap;
}
.stepper-item{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:.4rem;
  color:#94a3b8;
}
.stepper-item .step-index{
  width:42px;height:42px;border-radius:999px;
  display:flex;align-items:center;justify-content:center;
  background:#f8fafc;border:2px solid #e2e8f0;
  font-weight:800;color:#1e293b;
  box-shadow:0 2px 6px rgba(0,0,0,.06);
}
.stepper-item .step-line{
  position:absolute;top:21px;left:calc(100% + .7rem);height:2px;width:66px;background:#e5e7eb;
}
.stepper-item:last-child .step-line{ display:none; }
.stepper-item .step-label{
  font-weight:600;font-size:.95rem;white-space:nowrap;
}

/* Done & current states */
.stepper-item.is-complete .step-index{
  background:#0ea5e9;color:#fff;border-color:#0ea5e9;
}
.stepper-item.is-complete .step-line{
  background: linear-gradient(90deg,#0ea5e9 0%, #fbbf24 100%);
}
.stepper-item.is-current .step-index{
  background:#fbbf24;color:#0b1220;border-color:#fbbf24;
}
.stepper-item.is-current .step-label{ color:#0b1220; }

/* === Service preview card (soft floating) === */
.service-preview{
  position:relative;
  display:flex;gap:.9rem;align-items:flex-start;
  background:#fff;border-radius:16px;padding:1rem 1.1rem;
  box-shadow:
    0 16px 30px rgba(2,132,199,.08),
    0 2px 8px rgba(2,132,199,.06);
  border:1px solid rgba(14,165,233,.08);
  margin-bottom:1rem;
}
.service-preview .svc-icon{
  width:56px;height:56px;border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  background:#f0f9ff;
  flex:0 0 auto;
}
.service-preview .svc-icon img{ max-width:32px;max-height:32px; }
.service-preview .svc-body{ flex:1; }
.service-preview .svc-title{
  margin:0 0 .2rem 0;font-weight:800;color:#0b1220;
}
.service-preview .svc-desc{
  margin:0;color:#475569;font-size:.95rem;line-height:1.45;
}
.service-preview .svc-accent{
  position:absolute;left:78px;top:10px;width:4px;height:32px;
  background: linear-gradient(180deg,#0ea5e9,#fbbf24);
  border-radius:4px;
}

/* === Blue label style (thin bar) === */
.field-label{
  font-family:'Battambang',sans-serif;
  font-weight:700;font-size:1.05rem;color:#0b5fae;
  display:inline-block;margin-bottom:.35rem;
  position:relative;padding-left:.4rem;
}
.field-label::before{
  content:"";
  position:absolute;left:0;top:.35rem;
  width:3px;height:1.15rem;border-radius:3px;background:#0ea5e9;
}

/* Inputs: rounded, airy, subtle shadow on focus */
.form-control{
  border-radius:14px;border:1px solid #dbe2ea;
  box-shadow:0 1px 0 rgba(0,0,0,.02);
}
.form-control:focus{
  border-color:#0ea5e9;
  box-shadow:0 0 0 4px rgba(14,165,233,.15);
}

/* Card shadow like the screenshot */
.appointment-form{
  box-shadow:0 10px 25px rgba(0, 0, 0, 0.05),
             0 4px 6px rgba(0, 0, 0, 0.03),
             0 0 0 1px rgba(0, 0, 0, 0.02);
  margin: 1.25rem auto;
}
/* Page title + small underline ribbon (matches screenshot vibe) */
.page-title-wrap{margin:12px 0 6px}
.page-title{
  font-weight:800;
  font-size:2.2rem;
  margin:0;
}
.title-underline{
  display:inline-block;
  width:120px;height:6px;border-radius:6px;
  background:
    linear-gradient(90deg,#0b72b8 0 70%, #f3b318 70% 100%);
  margin:.45rem 0 8px 6px;
}

/* Slightly reduce gap above the card and title */
.appointment-form{ margin-top:.5rem; }

/* Put the stepper a bit closer to the title, with air under it */
.stepper.stepper--header-gap{ margin: .25rem 0 1rem; }

/* --- Make every field full width & separated --- */
.field-block{ margin: 0 0 14px; }
.field-label{
  display:inline-block;
  font-family:'Battambang',sans-serif;
  font-weight:700;
  font-size:1.05rem;
  color:#0b5fae;
  margin:0 0 .3rem 2px;
  position:relative;
  padding-left:.45rem;
}
.field-label::before{
  content:"";
  position:absolute;left:0;top:.38rem;
  width:3px;height:1.05rem;border-radius:3px;background:#0ea5e9;
}

/* Inputs look like the screenshot: rounded, comfy, clearly separated */
.form-control{
  border-radius:16px;
  border:1px solid #dbe2ea;
  padding:.9rem 1rem;
  font-size:1rem;
  box-shadow:0 1px 0 rgba(0,0,0,.02);
}
.form-control:focus{
  border-color:#0ea5e9;
  box-shadow:0 0 0 4px rgba(14,165,233,.15);
}

/* Select dropdown chevron spacing (so text isn't too close) */
select.form-control{ padding-right:2.6rem; }

/* Keep fields single-column even on desktop (no pairs) */
.form-row{ grid-template-columns:1fr !important; }
/* Actions */
.form-actions { display:flex; gap:1rem; margin-top:.5rem; }
.form-actions.center { justify-content:center; }
.form-actions.between { justify-content:space-between; }

/* Back/Next buttons */
.back-btn {
  background:#e5e7eb; color:#111827; padding:.8rem 1.25rem; border-radius:12px;
  font-weight:700; text-decoration:none; display:inline-block;
}
.back-btn:hover { background:#d1d5db; }
.next-btn {
  background:#0ea5e9; color:#fff; padding:.9rem 1.6rem; border:none; border-radius:12px;
  font-weight:700; cursor:pointer; box-shadow:0 4px 12px rgba(14,165,233,.15);
}
.next-btn:hover { background:#0284c7; transform:translateY(-2px); }

/* Review card */
.review-card {
  background:#fff; border-radius:16px; padding:1rem 1.2rem;
  box-shadow:0 16px 30px rgba(2,132,199,.08), 0 2px 8px rgba(2,132,199,.06);
  border:1px solid rgba(14,165,233,.08); margin-bottom:1rem;
}
.review-card h3 { margin:0 0 .6rem 0; }
.review-grid {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem 1.2rem;
}
.review-grid .full { grid-column:1 / -1; }

/* Radio cards (already present; ensure selected state looks bolder) */
.radio-card input:checked + span, .radio-card input:checked ~ span {
  color:#0b5fae;
}
.radio-card {
  border:1px solid #cbd5e1;
}
.radio-card:has(input:checked) {
  border-color:#0ea5e9;
  box-shadow:0 4px 12px rgba(14,165,233,.12);
}
/* ===== Appointment Acknowledgement Modal ===== */
.appt-modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;z-index:1100}
.appt-modal[aria-hidden="false"]{display:flex}
.appt-modal__backdrop{position:absolute;inset:0;background:rgba(15,23,42,.55);backdrop-filter:saturate(1.2) blur(2px)}
.appt-modal__card{
  position:relative;z-index:1;background:#fff;max-width:560px;width:min(92vw,560px);
  border-radius:20px;padding:1rem 1.1rem;
  box-shadow:0 30px 60px rgba(2,6,23,.25), 0 2px 10px rgba(2,6,23,.1);
  border:1px solid rgba(15,23,42,.06);
}
.appt-modal__title{font-family:'Battambang','Inter',sans-serif;font-weight:800;font-size:1.15rem;margin:.25rem 0 .35rem}
.appt-modal__body p{margin:.45rem 0;color:#334155;line-height:1.6}
.appt-modal__body .link{color:#0ea5e9;text-decoration:underline}
.appt-modal__actions{display:flex;justify-content:space-between;gap:.75rem;margin-top:.8rem}
.btn{border:0;border-radius:12px;padding:.8rem 1.15rem;font-weight:700;cursor:pointer}
.btn-primary{background:#0ea5e9;color:#fff}.btn-primary:hover{background:#0284c7}
.btn-secondary{background:#eef2f7;color:#111827}.btn-secondary:hover{background:#e2e8f0}
/* Centered title inside the appointment form */
.appointment-form .form-title{
  text-align:center;
  margin: 6px 0 10px;        /* small top gap, tight bottom gap */
  font-family: 'Battambang','Inter',sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 1.1rem + 1.2vw, 2.2rem);
  line-height: 1.15;
  background: linear-gradient(90deg,#16a34a,#2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.appointment-form .form-title-underline{
  display:block;
  width: 72px;
  height: 4px;
  margin: 6px auto 14px;     /* keep it tight under the title */
  border-radius: 999px;
  background: linear-gradient(90deg,#22c55e,#3b82f6);
  opacity: .9;
}
/* --- Wizard action row: center the button --- */
.appointment-form .wz-actions,
.appointment-form .btn-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .75rem;
  margin-top: 1rem;
}

/* --- Primary button: larger, rounded, Khmer font --- */
.appointment-form .btn-primary {
  font-family: 'Battambang','Inter',sans-serif;
  background: linear-gradient(135deg,#0ea5e9,#2563eb);
  color: #fff;
  border: 0;
  padding: .95rem 1.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .2px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  box-shadow: 0 8px 22px rgba(37,99,235,.25);
  outline: none;
}

.appointment-form .btn-primary:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(37,99,235,.32);
}

.appointment-form .btn-primary:active {
  transform: translateY(0);
}

/* bigger hit-area / min width */
.appointment-form .btn-next {
  min-width: 220px;
}

/* little arrow spacing */
.appointment-form .btn-primary .ico {
  margin-left: .55rem;
  font-size: 1.05em;
  line-height: 1;
}
/* =========================
   RESPONSIVE: phones, tablets (iPad), desktop
   ========================= */

/* Container breathing room on small screens */
.container { padding-left: 12px; padding-right: 12px; }

/* Card: fluid width + responsive padding */
.appointment-form{
  width: min(100%, 960px);
  margin: 1rem auto 2rem;
  padding: clamp(16px, 2.5vw, 28px);
  border-radius: 20px;
}

/* Centered title scales smoothly */
.appointment-form .form-title{
  text-align: center;
  font-family: 'Battambang','Inter',sans-serif;
  font-weight: 800;
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
  line-height: 1.15;
}

/* Subtle underline stays proportional */
.appointment-form .form-title-underline{
  width: 72px; height: 4px; margin: 6px auto 14px; border-radius: 999px;
}

/* Grid layout: 1 col on phones, 2 cols on tablets/desktop */
.form-row{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 1rem;
}
@media (min-width: 600px){      /* small tablets & big phones in landscape */
  .form-row{ grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
}
@media (min-width: 1024px){     /* iPad landscape & desktop */
  .form-row{ grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
}

/* Labels: Battambang + larger for readability */
.appointment-form label,
.appointment-form .field-label,
.appointment-form .form-label{
  font-family: 'Battambang','Inter',sans-serif;
  font-weight: 700;
  font-size: clamp(1.02rem, 0.96rem + 0.35vw, 1.28rem);
  line-height: 1.25;
  color: #111827;
}

/* Inputs: 16px to prevent iOS zoom, comfy padding */
.form-control,
select.form-control,
textarea.form-control{
  width: 100%;
  font-size: 16px;                 /* avoids iOS zoom-on-focus */
  min-height: 46px;
  padding: 12px 14px;
  line-height: 1.4;
  border-radius: 12px;
  box-sizing: border-box;
}
textarea.form-control{ min-height: 110px; }

/* Select arrow spacing stays tidy on small screens */
@media (max-width: 480px){
  select.form-control{
    padding-right: 2.2rem;
    background-position:
      calc(100% - 1.2rem) 50%,
      calc(100% - .8rem) 50%,
      calc(100% - 2rem) 50%;
  }
}

/* Stepper: wrap & center on phones */
.wz-stepper{
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.wz-stepper .step{ flex: 1 1 auto; min-width: 120px; }
@media (max-width: 480px){
  .wz-stepper .step-label{ font-size: .88rem; }
}

/* Actions: center CTA; full width on phones, auto on tablets+ */
.appointment-form .wz-actions,
.appointment-form .btn-row{
  display: flex; justify-content: center; align-items: center; gap: .75rem; margin-top: 1rem;
}
.appointment-form .btn-primary,
.appointment-form .submit-btn,
.appointment-form .btn-next{
  font-family: 'Battambang','Inter',sans-serif;
  font-weight: 800;
  font-size: clamp(1.12rem, 1.02rem + 0.6vw, 1.45rem);
  padding: clamp(14px, 2.8vw, 18px) clamp(18px, 3.4vw, 26px);
  border-radius: 999px;
  width: 100%;
  max-width: 520px;               /* phones: big, centered button */
  min-width: 240px;
}
@media (min-width: 768px){
  .appointment-form .btn-primary,
  .appointment-form .submit-btn,
  .appointment-form .btn-next{
    width: auto;                   /* tablets & desktop: natural width */
  }
}

/* Modal card scales on mobile & tablet */
.appt-modal__card{
  width: min(92vw, 560px);
  padding: clamp(16px, 3vw, 22px);
}

/* Small-screen spacing tweaks */
@media (max-width: 480px){
  .appointment-form{ margin-top: .75rem; }
  .form-group{ margin-bottom: .85rem; }
}

/* Optional banner (Step 2) stays readable on all devices */
.service-banner{
  display:flex; gap:12px; align-items:center;
  padding:12px 14px; border-radius:14px; background:#f8fafc;
}
.banner-title{
  font-family: 'Battambang','Inter',sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, .95rem + .6vw, 1.3rem);
}


/* Mobile: make it full width and still centered */
@media (max-width: 640px){
  .appointment-form .btn-next {
    width: 100%;
    max-width: 480px;
  }
}
/* ===============================
   TUNING: labels → SiemReap + smaller
   Banner title → a bit bigger + attractive color
   =============================== */

/* Input labels (only inside the appointment form) */
.appointment-form label,
.appointment-form .field-label,
.appointment-form .form-label{
  font-family: 'Siemreap','Inter',sans-serif;   /* switch to SiemReap */
  font-weight: 600;                              /* SiemReap looks good slightly bold */
  font-size: clamp(.98rem, .92rem + .28vw, 1.14rem);  /* a bit smaller than before */
  line-height: 1.28;
  color: #0f172a;                                /* slate-900 for contrast */
  letter-spacing: .1px;
}

/* Optional: helper text stays readable but subtle */
.appointment-form .hint,
.appointment-form .form-help{
  font-family: 'Siemreap','Inter',sans-serif;
  font-size: .92rem;
  color: #475569; /* slate-600 */
}

/* Step 2 banner title: slightly bigger + attractive color */
.service-banner .banner-title{
  font-family: 'Battambang','Inter',sans-serif; /* keep hero look here */
  font-weight: 800;
  font-size: clamp(1.1rem, 1rem + .8vw, 1.55rem); /* little bigger */
  color: #0ea5e9;                                 /* sky-500: bright and friendly */
  text-shadow: 0 1px 0 rgba(255,255,255,.6);      /* subtle pop on light bg */
}

/* If you’d prefer a gradient title instead of solid color, uncomment:
.service-banner .banner-title{
  background: linear-gradient(90deg,#22c55e,#0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
*/

/* Keep responsive grid & spacing tight on small screens */
@media (max-width: 480px){
  .appointment-form .form-group{ margin-bottom: .8rem; }
}
/* --- Labels: smaller + SiemReap --- */
.appointment-form label,
.appointment-form .field-label,
.appointment-form .form-label{
  font-family: 'Siemreap','Inter',sans-serif !important;
  font-weight: 600;
  /* smaller than banner-title */
  font-size: clamp(.88rem, .84rem + .18vw, 1.02rem) !important;
  line-height: 1.28;
  color: #0f172a;
  letter-spacing: .1px;
}

/* --- Banner title: a bit larger + attractive color --- */
.service-banner .banner-title{
  font-family: 'Battambang','Inter',sans-serif !important;
  font-weight: 800;
  font-size: clamp(1.2rem, 1.05rem + .9vw, 1.6rem) !important; /* bigger than labels */
  color: #0ea5e9 !important; /* sky-500 */
  text-shadow: 0 1px 0 rgba(255,255,255,.55);
}

/* --- Remove the thin blue vertical line on the banner --- */
/* In case it was a border-left or a ::before accent */
.service-banner{
  border-left: none !important;
}
.service-banner::before{
  content: none !important;
  display: none !important;
}
/* If a helper class was used for the bar, hide it too */
.service-banner .left-accent,
.service-banner .accent,
.service-banner .bar{
  display: none !important;
  border: 0 !important;
}

/* Keep banner padding neat after removing the line */
.service-banner{
  padding-left: 14px !important;
}
/* Actions row: Back left, Next right */
.appointment-form .form-actions{
  display:flex;
  align-items:center;
  gap:12px;
  margin-top: 1rem;
}
.appointment-form .form-actions.between{ justify-content:space-between; }

/* Buttons */
.appointment-form .btn-primary.btn-next{
  font-family:'Battambang','Inter',sans-serif;
  font-weight:800;
  font-size:clamp(1.02rem, .98rem + .5vw, 1.25rem);
  padding:.95rem 1.6rem;
  border-radius:999px;
  min-width:200px;
}
.appointment-form .btn-ghost.back-btn{
  font-family:'Battambang','Inter',sans-serif;
  font-weight:700;
  font-size:clamp(.98rem, .94rem + .4vw, 1.1rem);
  padding:.85rem 1.2rem;
  border-radius:999px;
  border:1px solid #dbeafe;         /* blue-100 */
  color:#0ea5e9;                     /* sky-500 */
  background:#f8fbff;
  text-decoration:none;
}

/* Mobile: stack, Next on top */
@media (max-width:640px){
  .appointment-form .form-actions{
    flex-direction:column-reverse;
    align-items:stretch;
  }
  .appointment-form .form-actions.between{ justify-content:initial; }
  .appointment-form .btn-ghost.back-btn,
  .appointment-form .btn-primary.btn-next{
    width:100%;
  }
}
/* Step 3 two-column rows (stack on phones) */
.appointment-form .form-row{
  display:grid !important;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 1rem;
}
@media (min-width: 640px){ /* tablet & up */
  .appointment-form .form-row{
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }
}
.appointment-form .form-group{ width:100%; }
.appointment-form .wz-form{ width:100%; max-width:100%; padding:0; } /* keep inner form fluid */

/* ==== Remove the blue vertical bar inside the appointment form ==== */

/* strip borders/gradients/inset shadows that may draw the bar */
.appointment-form .form-group > label,
.appointment-form label.field-label,
.appointment-form .form-label,
.appointment-form .section-title,
.appointment-form .banner-title {
  border-left: 0 !important;
  border-inline-start: 0 !important;
  box-shadow: none !important;
  background: none !important;
  background-image: none !important;
  padding-left: 0 !important;   /* remove left space reserved for the bar */
  margin-left: 0 !important;
}

/* nuke any pseudo-element used for the bar */
.appointment-form .form-group > label::before,
.appointment-form .form-group > label::after,
.appointment-form label.field-label::before,
.appointment-form label.field-label::after,
.appointment-form .form-label::before,
.appointment-form .form-label::after,
.appointment-form .section-title::before,
.appointment-form .section-title::after,
.appointment-form .banner-title::before,
.appointment-form .banner-title::after {
  content: none !important;
  display: none !important;
}

/* if a helper element is used as the bar, hide it too */
.appointment-form .left-accent,
.appointment-form .accent,
.appointment-form .accent-bar,
.appointment-form .bar {
  display: none !important;
  border: 0 !important;
}
/* ===========================
   ELEVATED CARDS + POP-IN FX
   =========================== */

/* Reusable shadows */
.card-shadow        { box-shadow: 0 6px 22px rgba(17, 24, 39, .08); }
.card-shadow-lg     { box-shadow: 0 12px 42px rgba(17, 24, 39, .14); }
.card-shadow-soft   { box-shadow: 0 8px 30px rgba(17, 24, 39, .10); }

/* Lift on hover (desktops) */
@media (hover:hover){
  .hover-lift{ transition: transform .18s ease, box-shadow .18s ease; }
  .hover-lift:hover{
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(17, 24, 39, .18);
  }
}

/* Enter animation */
.pop-in{
  animation: apptPop .38s cubic-bezier(.2,.8,.25,1) both;
}
@keyframes apptPop{
  from{ opacity:0; transform: translateY(8px) scale(.98); }
  to  { opacity:1; transform: translateY(0) scale(1); }
}

/* Staggered appearance for fields */
.appointment-form .wz-form .form-group{
  opacity: 0;
  transform: translateY(8px);
  animation: apptPop .38s cubic-bezier(.2,.8,.25,1) both;
}
.appointment-form .wz-form .form-group:nth-child(1){ animation-delay: .03s; }
.appointment-form .wz-form .form-group:nth-child(2){ animation-delay: .06s; }
.appointment-form .wz-form .form-group:nth-child(3){ animation-delay: .09s; }
.appointment-form .wz-form .form-group:nth-child(4){ animation-delay: .12s; }
.appointment-form .wz-form .form-group:nth-child(5){ animation-delay: .15s; }

/* Focus halo on inputs for a premium feel */
.appointment-form .form-control:focus{
  border-color:#22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,.15), 0 2px 16px rgba(2,6,23,.08);
}

/* Stepper card/banners get nicer elevation */
.wz-stepper,
.service-banner{
  border-radius: 16px;
  background: #fff;
}
.service-banner{
  padding: 12px 14px;
  box-shadow: 0 10px 36px rgba(2,6,23,.12);
}

/* ===========================
   MODAL (confirm) – glossy
   =========================== */
.appt-modal{
  position: fixed; inset: 0; z-index: 999;
  display: grid; place-items: center;
  background: rgba(15, 23, 42, .38);   /* slate-900 / 38% */
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: opacity .18s ease, visibility .18s ease;
}
.appt-modal[aria-hidden="true"]{ opacity:0; visibility:hidden; }
.appt-modal[aria-hidden="false"]{ opacity:1; visibility:visible; }

.appt-modal__card{
  width: min(92vw, 560px);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 24px 64px rgba(2,6,23,.28);
  padding: 20px;
  animation: apptPop .32s ease both;
}
.appt-modal__header{
  font-family: 'Battambang','Inter',sans-serif;
  font-weight: 800; font-size: 1.2rem;
  margin-bottom: .35rem;
}
.appt-modal__body{ color:#334155; line-height:1.5; margin-bottom: 1rem; }
.appt-modal__actions{
  display:flex; gap:.6rem; justify-content:flex-end; flex-wrap:wrap;
}
.appt-modal .btn{
  border-radius: 999px; padding:.75rem 1.2rem; font-weight:700;
}
.appt-modal .btn.ghost{
  background:#f8fafc; border:1px solid #e2e8f0; color:#0f172a;
}
.appt-modal .btn.primary{
  background: linear-gradient(135deg,#16a34a,#22c55e);
  color:#fff; box-shadow: 0 10px 28px rgba(34,197,94,.35);
}

/* ===========================
   ACTION BUTTONS – add glow
   =========================== */
.appointment-form .btn-primary.btn-next{
  box-shadow: 0 10px 28px rgba(37,99,235,.28);
}
.appointment-form .btn-primary.btn-next:hover{
  box-shadow: 0 14px 36px rgba(37,99,235,.36);
}

/* Keep mobile perfect */
@media (max-width:640px){
  .appt-modal__card{ width: calc(100vw - 28px); padding: 16px; }
}
/* ==== MOBILE FIT PATCH (appointment only) ==== */

/* safety: never let this page scroll sideways */
html, body { max-width: 100%; overflow-x: hidden; }

/* keep everything boxed */
.appointment-form, .appointment-form * { box-sizing: border-box; }

/* card spacing on phones */
@media (max-width: 640px){
  .appointment-form{
    margin: 12px auto !important;
    padding: 14px !important;
    border-radius: 14px;
    max-width: 100% !important;
    width: 100% !important;
  }
  /* container padding if your theme has a tight container */
  .main-content .container{ padding-left: 12px; padding-right: 12px; }
}

/* STEPper: wrap + shrink nicely on phones */
.wz-stepper{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;        /* allow line wrap */
  overflow: hidden;       /* avoid bleeding */
  padding: 8px 10px;
  border-radius: 14px;
}
.wz-stepper .step{ flex: 1 1 auto; min-width: 0; }
.wz-stepper .num{ width: 34px; height: 34px; font-size: 1rem; }
.wz-stepper .title{ font-size: .9rem; line-height: 1.1; }

/* On very small screens hide long connector lines */
@media (max-width: 420px){
  .wz-stepper .line{ display: none !important; }
}

/* banner/icon */
.service-banner img{ max-width: 100%; height: auto; }

/* fields */
.appointment-form .form-control,
.appointment-form select.form-control,
.appointment-form textarea.form-control{
  width: 100% !important;
}

/* actions row: stack buttons on mobile, full width */
.appointment-form .form-actions{
  display: flex; gap: 12px; align-items: center;
}
@media (max-width: 640px){
  .appointment-form .form-actions{
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .appointment-form .btn-ghost.back-btn,
  .appointment-form .btn-primary.btn-next{
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* big Next button must not overflow */
.appointment-form .btn-primary.btn-next{
  width: 100%;
  min-width: 0;
  border-radius: 999px;
  padding: .95rem 1.1rem;
}

/* selects with custom arrow: keep arrow inside and no overflow */
select.form-control{
  padding-right: 2.4rem;
  background-position:
    calc(100% - 1.4rem) center,
    calc(100% - 1rem) center,
    calc(100% - 2rem) center !important;
}

/* extra margin under stepper so first field isn't squeezed */
.wz-stepper{ margin-bottom: 10px; }
/* ===============================
   DENSER LAYOUT (height savings)
   =============================== */
.appointment-page .appointment-form{
  padding: 1.1rem 1.1rem;          /* was ~2rem */
  border-radius: 14px;
}

/* Field rows & groups */
.appointment-page .appointment-form .form-row{
  gap: 10px;                        /* was 14+ */
  margin-bottom: .75rem;            /* was 1rem */
}
.appointment-page .appointment-form .form-group{
  margin-bottom: .75rem;            /* was ~1rem */
}

/* Labels – keep readable, reduce spacing */
.appointment-page .appointment-form .field-label,
.appointment-page .appointment-form label{
  margin-bottom: .35rem;            /* was ~.5rem */
  line-height: 1.2;
}

/* Inputs / selects / textareas */
.appointment-page .appointment-form .form-control,
.appointment-page .appointment-form select.form-control,
.appointment-page .appointment-form textarea.form-control{
  padding: .58rem .85rem;           /* was ~.75rem 1rem */
  min-height: 40px;                 /* good tap target */
  font-size: .98rem;
}
.appointment-page .appointment-form textarea.form-control{
  min-height: 80px;                 /* was 100+ */
  resize: vertical;
}

/* Select arrow stays inside despite smaller padding */
.appointment-page select.form-control{
  padding-right: 2.1rem;
  background-position:
    calc(100% - 1.2rem) center,
    calc(100% - .85rem) center,
    calc(100% - 1.8rem) center !important;
}

/* Buttons: compact but comfy */
.appointment-page .appointment-form .btn-primary.btn-next{
  padding: .8rem 1.2rem;            /* was ~.95rem 1.6rem */
  min-width: 180px;
}
.appointment-page .appointment-form .btn-ghost.back-btn{
  padding: .7rem 1rem;
}

/* Stepper: lighter footprint */
.appointment-page .wz-stepper{
  gap: 8px;
  padding: 6px 8px;
  margin-bottom: 8px;
}
.appointment-page .wz-stepper .num{ width: 30px; height: 30px; font-size: .95rem; }
.appointment-page .wz-stepper .title{ font-size: .9rem; }

/* Service banner: tighter */
.appointment-page .service-banner{ padding: 10px 12px; }

/* Mobile-only tightening */
@media (max-width: 640px){
  .appointment-page .appointment-form{ padding: .9rem; }
  .appointment-page .appointment-form .form-row{ gap: 8px; margin-bottom: .65rem; }
  .appointment-page .appointment-form .form-control,
  .appointment-page .appointment-form select.form-control,
  .appointment-page .appointment-form textarea.form-control{
    padding: .55rem .8rem;
    font-size: .95rem;
    min-height: 38px;               /* still safe for touch */
  }
  .appointment-page .appointment-form .btn-primary.btn-next,
  .appointment-page .appointment-form .btn-ghost.back-btn{
    width: 100%;
  }
}
/* Red asterisk for required labels */
.appointment-form label .req,
.appointment-form .field-label .req{
  color:#dc2626;
  margin-left:6px;
  font-weight:700;
  font-size: 1em; /* matches label size */
}

/* (optional) screen-reader only helper */
.sr-only{
  position:absolute !important;
  width:1px !important; height:1px !important;
  padding:0 !important; margin:-1px !important;
  overflow:hidden !important; clip:rect(0,0,0,0) !important;
  white-space:nowrap !important; border:0 !important;
}
/* invalid highlight */
.appointment-form .form-control.is-invalid,
.appointment-form select.form-control.is-invalid,
.appointment-form textarea.form-control.is-invalid{
  border-color:#dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220,38,38,.10);
}

/* red star */
.appointment-form label .req,
.appointment-form .field-label .req{
  color:#dc2626; margin-left:6px; font-weight:700; font-size:1em;
}
.sr-only{ position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
/* ============ STEP 4: REVIEW MODERN STYLE ============ */
.review-header{
  margin: .4rem 0 1rem 0;
  text-align: left;
}
.review-title{
  font-family: 'Battambang','Inter',sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.1;
  margin: 0 0 .25rem 0;
  background: linear-gradient(90deg,#16a34a,#2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.review-sub{
  color:#475569;
  font-size:.95rem;
  margin: 0;
}

/* Top summary tiles */
.summary-grid{
  display:grid; gap:12px; margin: 12px 0 14px 0;
  grid-template-columns: 1fr;
}
@media (min-width: 680px){
  .summary-grid{ grid-template-columns: repeat(3,minmax(0,1fr)); }
}
.summary-card{
  border-radius:14px; background:#fff;
  box-shadow: 0 10px 28px rgba(2,6,23,.10);
  padding:12px 12px 10px 12px;
  border: 1px solid #eef2f7;
  transition: transform .18s ease, box-shadow .18s ease;
}
.sum-head{
  display:flex; align-items:center; gap:8px; margin-bottom:6px;
}
.sum-ico{ font-size:1.15rem; }
.sum-title{
  font-weight:700; color:#0f172a; font-size:1rem;
  flex:1;
}
.sum-edit{
  font-size:.9rem; color:#2563eb; text-decoration:none; font-weight:600;
}
.sum-edit:hover{ text-decoration:underline; }
.sum-body{ display:flex; flex-direction:column; gap:8px; }

.chip{
  display:inline-flex; align-items:center; gap:6px;
  padding: .35rem .6rem; border-radius:999px; font-weight:700; font-size:.92rem;
}
.chip-accent{
  background:linear-gradient(90deg,#e6fff2,#eef7ff);
  border:1px solid #cce7ff;
  color:#0f172a;
}

/* Review card (patient/info) */
.review-card{
  border-radius:16px; background:#fff;
  border:1px solid #eef2f7;
  box-shadow: 0 12px 38px rgba(2,6,23,.12);
  padding: 12px 12px 14px 12px;
  margin-top: 8px;
}
.review-card__head{
  display:flex; align-items:center; justify-content:space-between;
  border-bottom:1px dashed #e9eef5;
  padding-bottom:8px; margin-bottom:10px;
}
.head-left{ display:flex; align-items:center; gap:8px; }
.head-ico{ font-size:1.2rem; }
.head-title{
  font-weight:800; font-size:1.05rem;
  color:#0f172a;
}

/* key-value grid */
.kv-grid{
  display:grid; gap:10px;
  grid-template-columns: 1fr;
}
@media (min-width:640px){
  .kv-grid{ grid-template-columns: repeat(2,minmax(0,1fr)); }
}
.kv{
  display:grid;
  grid-template-columns: 160px 1fr;
  gap:8px;
  padding: 8px 10px;
  border-radius:12px;
  background: linear-gradient(180deg,#fafcff,#ffffff);
  border:1px solid #eef2f7;
}
.kv .k{
  font-family: 'Siemreap','Battambang','Inter',sans-serif;
  color:#64748b; font-size:.94rem; line-height:1.2;
}
.kv .v{
  font-family: 'Battambang','Inter',sans-serif;
  color:#0f172a; font-weight:700; font-size:1.02rem;
}

/* Notes block */
.notes-box{
  margin-top: 12px;
  border:1px solid #e5f4ea;
  background:#f7fffb;
  border-radius:12px;
  padding:10px 12px;
}
.notes-title{
  font-weight:800; color:#065f46; margin-bottom:6px;
  font-family: 'Battambang','Inter',sans-serif;
}
.notes-body{ color:#0f172a; }

/* Actions */
.review-actions{
  margin-top: 14px;
  display:flex; gap:12px; justify-content:space-between; flex-wrap:wrap;
}
.review-actions .btn-ghost.back-btn{
  padding:.75rem 1rem; border-radius:999px; border:1px solid #e2e8f0; background:#f8fafc; color:#0f172a; font-weight:700;
}
.review-actions .btn-primary.submit-btn{
  padding:.9rem 1.5rem; border-radius:999px; font-weight:800;
  background:linear-gradient(135deg,#16a34a,#22c55e); color:#fff;
  box-shadow: 0 12px 30px rgba(34,197,94,.32);
}
.review-actions .btn-primary.submit-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(34,197,94,.42);
}

/* Mobile tightening */
@media (max-width:640px){
  .kv{ grid-template-columns: 120px 1fr; }
  .review-title{ font-size:1.15rem; }
  .sum-title{ font-size:.98rem; }
}
/* Keep the gradient title for non-Khmer locales */
:not(.lang-km) .review-title{
  background: linear-gradient(90deg,#16a34a,#2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Khmer-specific fixes: avoid clipped vowels/diacritics */
.lang-km .review-title{
  /* Khmer-friendly font stack */
  font-family: 'Battambang','Siemreap','Noto Sans Khmer','Khmer OS', system-ui, sans-serif;

  /* More breathing room so glyph stacks render correctly */
  line-height: 1.35;
  letter-spacing: 0;

  /* Use solid color instead of gradient to prevent WebKit clipping */
  color: #15803d;
  -webkit-text-fill-color: currentColor !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  text-shadow: none;

  /* Prevent paint clipping of top marks on some engines */
  display: inline-block;
  padding-top: 2px;
  padding-bottom: 2px;
}

/* Also use Khmer stack for labels/subtitles in review */
.lang-km .review-sub,
.lang-km .kv .k,
.lang-km .kv .v{
  font-family: 'Siemreap','Battambang','Noto Sans Khmer','Khmer OS', system-ui, sans-serif;
  line-height: 1.35;
}
/* --- Step 4 title row must not overlap data --- */
.summary-card{
  padding: 12px 12px 10px 12px;
  border-radius: 14px;
  background:#fff;
  border:1px solid #eef2f7;
  box-shadow: 0 10px 28px rgba(2,6,23,.10);
}

/* Head row: title / edit */
.sum-head{
  display:flex;
  align-items:center;
  gap:10px;
  min-height: 40px;               /* ensure enough head height */
  padding-bottom: 8px;             /* breathing room */
  margin-bottom: 10px;             /* visible gap before data */
  border-bottom: 1px dashed #e9eef5;
}

.sum-ico{
  font-size: 1.05rem;
  flex: 0 0 auto;
}

.sum-title{
  font-weight: 800;
  color:#0f172a;
  font-size: 1.05rem;
  line-height: 1.25;
  flex: 1 1 auto;                  /* take remaining space */
  min-width: 0;                    /* prevent overflow */
  white-space: nowrap;
  overflow: hidden;                /* avoid wrapping onto data */
  text-overflow: ellipsis;
}

.sum-edit{
  flex: 0 0 auto;
  white-space: nowrap;
  color:#2563eb;
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
}
.sum-edit:hover{ text-decoration: underline; }

/* --- Data rows: left label + right value --- */
.kv{
  display: grid;
  grid-template-columns: 1fr auto; /* label grows, value hugs right */
  align-items: start;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 12px;
}

.kv .k{
  color:#64748b;
  font-size:.94rem;
  line-height: 1.35;
  font-family: 'Siemreap','Battambang','Inter',sans-serif;
}

.kv .v{
  color:#0f172a;
  font-weight: 800;
  font-size: 1.02rem;
  text-align: right;               /* values aligned to the right */
  line-height: 1.35;
  white-space: normal;             /* allow Khmer to wrap naturally */
}

/* Khmer-specific legibility (avoid clipped diacritics) */
.lang-km .sum-title,
.lang-km .kv .k,
.lang-km .kv .v{
  line-height: 1.45;
  font-family: 'Battambang','Siemreap','Noto Sans Khmer','Khmer OS',system-ui,sans-serif;
}

/* Compact on very small screens */
@media (max-width: 480px){
  .sum-title{ font-size: 1rem; }
  .kv .v{ font-size: .98rem; }
}
