:root {
  --green: #0b4b42;
  --dark: #073a33;
  --gold: #b78a3d;
  --ink: #17332e;
  --muted: #68766f;
  --line: #dce5df;
  --wash: #f4f6f2;
  font-family: Tahoma, Arial, sans-serif;
  color: var(--ink);
  background: var(--wash);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, textarea { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #d7ae61;
  outline-offset: 3px;
}
.page-shell { max-width: 1320px; margin: auto; padding: 12px 28px 32px; }
.clinic-header { display: flex; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.clinic-logo { width: 52px; height: 52px; object-fit: contain; }
.clinic-name, .clinic-specialty { margin: 0; }
.clinic-name { color: var(--dark); font-size: 1.1rem; font-weight: bold; }
.clinic-specialty { margin-top: 3px; color: var(--muted); font-size: .9rem; }
.preview-badge { margin-inline-start: auto; color: #765416; background: #f6ecd7; border: 1px solid #dfc384; padding: 6px 10px; border-radius: 99px; font-size: .8rem; }
.clinic-photo { position: relative; overflow: hidden; height: 210px; margin: 11px 0 15px; border-radius: 17px; background: #e9e2d8; }
.clinic-photo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 70%; }
.clinic-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(7,58,51,.1), rgba(7,58,51,0) 58%); }
.booking-card { background: #fff; border: 1px solid #e4e9e4; border-radius: 18px; box-shadow: 0 8px 26px rgba(15,61,52,.06); padding: clamp(18px, 2.4vw, 29px); margin-bottom: 14px; }
.section-heading { display: flex; justify-content: space-between; gap: 18px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 17px; margin-bottom: 22px; }
.section-heading h2, .step-panel h2 { color: var(--dark); font-size: 1.5rem; margin: 0; }
.eyebrow { color: var(--gold); font-size: .8rem; font-weight: bold; margin: 0 0 6px; }
.week-nav { display: flex; align-items: center; gap: 12px; color: var(--dark); }
.week-nav button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--green); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.week-nav button:disabled { color: #b4c1bb; cursor: not-allowed; }
.weeks { display: grid; gap: 24px; }
.days { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: start; }
.day { align-self: start; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 13px; padding: 14px; background: linear-gradient(150deg, #fff, #fbfcf9); }
.day h3 { margin: 0 0 12px; font-size: .98rem; color: var(--dark); }
.times { display: grid; gap: 8px; }
.slot, .service-option { cursor: pointer; border: 1px solid #bfcfc7; color: var(--dark); background: #fff; transition: transform .15s, border-color .15s, background .15s; }
.slot:hover, .service-option:hover { transform: translateY(-1px); border-color: var(--green); }
.slot { min-height: 45px; border-radius: 9px; font-weight: bold; font-size: 1rem; }
.slot.selected, .service-option.selected { color: #fff; background: var(--green); border-color: var(--green); }
.hidden { display: none !important; }
.loading-state, .empty-state { min-height: 170px; display: grid; place-content: center; justify-items: center; text-align: center; color: var(--muted); gap: 13px; }
.spinner { width: 27px; height: 27px; border: 3px solid #d8e3dc; border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
.empty-state span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--gold); border: 1px solid #e5cf9e; font-size: 1.35rem; }
.empty-state p { line-height: 1.8; }
.selection-summary, .booking-summary { margin: 9px 0 12px; padding: 9px 13px; border-radius: 11px; background: #f2f7f3; border-right: 4px solid var(--gold); color: var(--dark); line-height: 1.75; }
.booking-details-row { display: grid; grid-template-columns: minmax(260px, .67fr) minmax(0, 1.33fr); gap: 14px; align-items: start; }
.booking-details-row > .booking-card { margin-bottom: 14px; }
.service-card { padding-top: 19px; padding-bottom: 16px; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.service-option { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-height: 56px; border-radius: 11px; padding: 8px 11px; text-align: start; }
.service-option strong { font-size: 1rem; }
.service-option small { color: var(--muted); font-size: .78rem; font-weight: normal; }
.service-option.selected small { color: #dcebe4; }
.details-card { padding-top: 19px; padding-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.full-width { grid-column: 1 / -1; }
label { display: block; margin-bottom: 7px; color: var(--dark); font-weight: bold; }
label span { color: var(--muted); font-weight: normal; }
input, textarea { width: 100%; border: 1px solid #bfcfc7; border-radius: 9px; padding: 10px 12px; color: var(--ink); background: #fff; }
.supporting-note { color: var(--muted); font-size: .86rem; margin: 10px 0 0; }
.form-error { min-height: 1.2em; color: #a53a31; margin: 12px 0 0; }
.primary-button, .whatsapp-button { display: inline-flex; justify-content: center; align-items: center; cursor: pointer; text-decoration: none; min-height: 52px; border: 0; border-radius: 10px; padding: 12px 22px; color: #fff; background: var(--green); font-weight: bold; font-size: 1.03rem; }
.primary-button { margin-top: 7px; }
.primary-button:disabled { opacity: .48; cursor: not-allowed; }
.submit-button { width: 100%; min-height: 58px; background: linear-gradient(100deg, var(--dark), var(--green)); font-size: 1.1rem; }
.success-card { text-align: center; padding: 28px; }
.success-card h2 { margin: 0; color: var(--dark); }
.success-card p { color: var(--muted); line-height: 1.75; margin: 8px 0; }
.success-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 12px; color: #fff; background: var(--green); border: 4px solid #d9e8dd; font-size: 1.6rem; }
.whatsapp-button { background: #207a4c; margin-top: 5px; min-width: min(100%, 360px); }
.whatsapp-button:disabled { opacity: .72; cursor: not-allowed; }
.details-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.details-actions .submit-button { flex: 1 1 280px; }
.general-whatsapp { color: #207a4c; border: 1px solid #a8cdb8; border-radius: 9px; min-height: 44px; padding: 10px 13px; text-align: center; text-decoration: none; font-size: .88rem; }
.general-whatsapp:hover { background: #eff7f2; }
.secondary-button { cursor: pointer; color: var(--green); background: transparent; border: 1px solid var(--green); border-radius: 9px; padding: 10px 17px; font-weight: bold; }
footer { text-align: center; color: #76827c; padding: 17px 20px 23px; font-size: .9rem; line-height: 1.7; }
footer span { font-size: .82rem; color: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 681px) and (max-width: 1050px) { .days { grid-template-columns: repeat(3, minmax(0, 1fr)); } .booking-details-row { grid-template-columns: 1fr; gap: 0; } }
@media (min-width: 681px) and (max-width: 820px) { .days { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .page-shell { padding: 14px 12px 24px; }
  .clinic-header { padding-bottom: 9px; }
  .clinic-logo { width: 54px; height: 54px; }
  .clinic-name { font-size: 1rem; }
  .clinic-specialty { font-size: .82rem; }
  .clinic-photo { height: 180px; margin: 10px 0 13px; border-radius: 14px; }
  .clinic-photo img { object-position: center 70%; }
  .booking-card { border-radius: 14px; padding: 18px 15px; margin-bottom: 12px; }
  .section-heading { display: block; padding-bottom: 14px; margin-bottom: 16px; }
  .week-nav { margin-top: 11px; justify-content: space-between; }
  .days { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .day { padding: 10px; }
  .day h3 { font-size: .88rem; margin-bottom: 9px; }
  .times { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .slot { min-height: 44px; font-size: .9rem; }
  .booking-details-row { grid-template-columns: 1fr; gap: 0; }
  .service-grid { gap: 8px; }
  .service-option { min-height: 54px; padding: 8px 10px; }
  .form-grid { grid-template-columns: 1fr; gap: 10px; }
  .full-width { grid-column: auto; }
  .details-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .details-actions .submit-button, .general-whatsapp { width: 100%; min-width: 0; }
  .whatsapp-button { width: 100%; min-width: 0; }
  .success-card { padding: 23px 15px; }
}
