/* Clinic v4.8.0 — Booking Experience
   Presentation layer for the public booking flow. No slot/payment/ownership business rules. */

body.public-shell.booking-page-v4320{
  --booking480-border:rgba(148,163,184,.28);
  --booking480-soft:#f7fafb;
  --booking480-soft-accent:#eef8f8;
  --booking480-text:#17364a;
  --booking480-muted:#64748b;
}

/* Four explicit stages: appointment, patient, payment, final review. */
body.public-shell.booking-page-v4320 .booking-progress-v480{
  grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr) 24px minmax(0,1fr) 24px minmax(0,1fr)!important;
  gap:6px!important;
}
body.public-shell.booking-page-v4320 .booking-progress-v480>button{
  min-height:52px;
  border-radius:13px;
}
body.public-shell.booking-page-v4320 .booking-progress-v480>button.is-complete{
  background:#f3fbf7;
}
body.public-shell.booking-page-v4320 .booking-progress-v480>button.is-complete>span::after{
  content:'✓';
  font-size:11px;
  margin-inline-start:2px;
}

/* The summary stays useful on desktop now that the flow has a dedicated final review. */
body.public-shell.booking-page-v4320 .booking-side-card--summary{
  border-color:rgba(17,120,184,.22);
  box-shadow:0 14px 34px rgba(15,95,145,.07);
}
body.public-shell.booking-page-v4320 .booking-side-card--summary .booking-side-summary{
  grid-template-columns:1fr 1fr;
}
body.public-shell.booking-page-v4320 .booking-side-card--summary .booking-side-summary>div{
  min-height:58px;
  align-content:center;
  background:var(--booking480-soft);
  border:1px solid rgba(148,163,184,.12);
}
body.public-shell.booking-page-v4320 .booking-side-card--summary .booking-side-summary>div:nth-child(1),
body.public-shell.booking-page-v4320 .booking-side-card--summary .booking-side-summary>div:nth-child(6){
  grid-column:1/-1;
}
body.public-shell.booking-page-v4320 .booking-side-card--summary .booking-side-summary strong{
  color:var(--booking480-text);
  line-height:1.65;
}

/* Appointment selection is visually calm and explicit. */
body.public-shell.booking-page-v4320 .booking-slot-hint-v480{
  display:block;
  color:var(--booking480-muted);
  font-size:10px;
  line-height:1.6;
  font-weight:600;
}
body.public-shell.booking-page-v4320 .booking-redesign-slot-field .clinic-slot-field__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:8px;
}
body.public-shell.booking-page-v4320 .booking-redesign-slot-grid .slot-btn{
  border-width:1px;
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,background-color .16s ease;
}
body.public-shell.booking-page-v4320 .booking-redesign-slot-grid .slot-btn:not(:disabled):hover{
  transform:translateY(-1px);
}
body.public-shell.booking-page-v4320 .booking-redesign-slot-grid .slot-btn:focus-visible{
  outline:3px solid rgba(17,120,184,.2);
  outline-offset:2px;
}
body.public-shell.booking-page-v4320 .booking-redesign-slot-grid .slot-btn.is-selected{
  box-shadow:0 7px 18px rgba(17,120,184,.18);
}

/* Payment gets its own stage; final submission only lives in stage four. */
body.public-shell.booking-page-v4320 .booking-payment-next-v480{
  margin-top:16px;
}
body.public-shell.booking-page-v4320 .booking-confirm-panel-v480{
  min-height:420px;
}
body.public-shell.booking-page-v4320 .booking-confirm-card-v480{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  padding:12px;
  border:1px solid var(--booking480-border);
  border-radius:18px;
  background:var(--booking480-soft);
}
body.public-shell.booking-page-v4320 .booking-confirm-card-v480>div{
  position:relative;
  display:grid;
  align-content:center;
  gap:4px;
  min-height:78px;
  padding:12px 13px 12px 62px;
  border:1px solid rgba(148,163,184,.18);
  border-radius:14px;
  background:#fff;
}
body.public-shell.booking-page-v4320 .booking-confirm-card-v480>div.is-price{
  grid-column:1/-1;
  min-height:68px;
  background:#f1faf6;
}
body.public-shell.booking-page-v4320 .booking-confirm-card-v480 small{
  color:var(--booking480-muted);
  font-size:11px;
  font-weight:650;
}
body.public-shell.booking-page-v4320 .booking-confirm-card-v480 strong{
  color:var(--booking480-text);
  font-size:14px;
  line-height:1.7;
  overflow-wrap:anywhere;
}
body.public-shell.booking-page-v4320 .booking-confirm-card-v480 .is-price strong{
  color:#087b56;
  font-size:16px;
}
body.public-shell.booking-page-v4320 .booking-confirm-card-v480 button{
  position:absolute;
  inset-inline-end:10px;
  top:50%;
  transform:translateY(-50%);
  min-height:34px;
  padding:4px 9px;
  border:1px solid rgba(17,120,184,.18);
  border-radius:9px;
  background:#f3f9fc;
  color:#0f6f9f;
  font-size:10px;
  font-weight:900;
}
body.public-shell.booking-page-v4320 .booking-confirm-card-v480 button:focus-visible{
  outline:3px solid rgba(17,120,184,.18);
  outline-offset:2px;
}
body.public-shell.booking-page-v4320 .booking-confirm-message-v480{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-top:12px;
  padding:13px 14px;
  border:1px solid rgba(8,123,86,.18);
  border-radius:14px;
  background:#f2fbf7;
  color:#205a49;
}
body.public-shell.booking-page-v4320 .booking-confirm-message-v480>span{
  flex:0 0 28px;
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#dff4ea;
  color:#087b56;
  font-weight:950;
}
body.public-shell.booking-page-v4320 .booking-confirm-message-v480 p{
  margin:2px 0 0;
  font-size:12px;
  line-height:1.85;
  font-weight:700;
}
body.public-shell.booking-page-v4320 .booking-confirm-submitbar-v480{
  margin-top:14px!important;
}
body.public-shell.booking-page-v4320 .booking-confirm-submitbar-v480 #submitBtn{
  min-width:250px;
}

/* Keep interactive state obvious without relying on color only. */
body.public-shell.booking-page-v4320 .booking-service-option:has(input:checked){
  box-shadow:0 0 0 2px rgba(17,120,184,.16),0 9px 24px rgba(17,120,184,.08);
}
body.public-shell.booking-page-v4320 .booking-payment-choice__options>label:has(input:checked),
body.public-shell.booking-page-v4320 .booking-patient-target__choices>label:has(input:checked),
body.public-shell.booking-page-v4320 .booking-insurance-choice__options>label:has(input:checked){
  box-shadow:0 0 0 2px rgba(17,120,184,.12);
}

@media(max-width:767.98px){
  body.public-shell.booking-page-v4320 .booking-progress-v480{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:4px!important;
    padding:6px!important;
  }
  body.public-shell.booking-page-v4320 .booking-progress-v480>i{display:none!important}
  body.public-shell.booking-page-v4320 .booking-progress-v480>button{
    display:grid!important;
    grid-template-columns:30px minmax(0,1fr)!important;
    grid-template-rows:auto!important;
    gap:5px!important;
    min-height:48px!important;
    padding:5px!important;
    text-align:right!important;
    background:#f7f9fa!important;
  }
  body.public-shell.booking-page-v4320 .booking-progress-v480>button.is-active{background:#edf6fb!important}
  body.public-shell.booking-page-v4320 .booking-progress-v480>button.is-complete{background:#f2faf5!important}
  body.public-shell.booking-page-v4320 .booking-progress-v480>button>span{
    grid-row:auto!important;
    width:30px!important;
    height:30px!important;
    border-radius:9px!important;
    font-size:12px!important;
  }
  body.public-shell.booking-page-v4320 .booking-progress-v480>button>b{
    font-size:10px!important;
    white-space:normal!important;
    line-height:1.35!important;
  }
  body.public-shell.booking-page-v4320 .booking-progress-v480>button>small{display:none!important}

  body.public-shell.booking-page-v4320 .booking-confirm-panel-v480{min-height:0}
  body.public-shell.booking-page-v4320 .booking-confirm-card-v480{
    grid-template-columns:1fr;
    gap:7px;
    padding:8px;
    border-radius:15px;
  }
  body.public-shell.booking-page-v4320 .booking-confirm-card-v480>div,
  body.public-shell.booking-page-v4320 .booking-confirm-card-v480>div.is-price{
    grid-column:auto;
    min-height:64px;
    padding:9px 10px 9px 58px;
    border-radius:12px;
  }
  body.public-shell.booking-page-v4320 .booking-confirm-card-v480 strong{font-size:13px}
  body.public-shell.booking-page-v4320 .booking-confirm-card-v480 button{min-height:32px;font-size:9px}
  body.public-shell.booking-page-v4320 .booking-confirm-message-v480{padding:11px 12px;margin-bottom:6px}
  body.public-shell.booking-page-v4320 .booking-confirm-message-v480 p{font-size:11px}

  body.public-shell.booking-page-v4320 .booking-confirm-submitbar-v480,
  body.public-shell.booking-page-v4320 .booking-payment-next-v480{
    padding-bottom:max(8px,env(safe-area-inset-bottom))!important;
  }
  body.public-shell.booking-page-v4320 .booking-confirm-submitbar-v480 #submitBtn{min-width:0!important}
}

@media(max-width:430px){
  body.public-shell.booking-page-v4320 .booking-progress-v480>button{
    grid-template-columns:26px minmax(0,1fr)!important;
    gap:3px!important;
    padding-inline:3px!important;
  }
  body.public-shell.booking-page-v4320 .booking-progress-v480>button>span{
    width:26px!important;
    height:26px!important;
    font-size:10px!important;
  }
  body.public-shell.booking-page-v4320 .booking-progress-v480>button>b{font-size:9px!important}
  body.public-shell.booking-page-v4320 .booking-slot-hint-v480{font-size:9px}
}

@media(max-width:350px){
  body.public-shell.booking-page-v4320 .booking-progress-v480>button{
    grid-template-columns:1fr!important;
    justify-items:center!important;
    text-align:center!important;
  }
  body.public-shell.booking-page-v4320 .booking-progress-v480>button>b{display:none!important}
  body.public-shell.booking-page-v4320 .booking-progress-v480>button>span{
    width:30px!important;
    height:30px!important;
  }
}

@media(prefers-reduced-motion:reduce){
  body.public-shell.booking-page-v4320 .booking-redesign-slot-grid .slot-btn{transition:none!important}
}
