:root {
  --ink: #102a43;
  --muted: #66788a;
  --primary: #087f9c;
  --primary-dark: #075d75;
  --primary-bright: #20b5cc;
  --primary-pale: #eaf8fb;
  --navy-pale: #eef5fb;
  --surface: #ffffff;
  --surface-soft: #f7fafc;
  --line: #dce7ef;
  --success: #248653;
  --success-pale: #e9f8ef;
  --warning: #b76b08;
  --warning-pale: #fff8df;
  --danger: #c74c53;
  --danger-pale: #fff0f0;
  --shadow-sm: 0 2px 8px rgba(16, 42, 67, 0.07);
  --shadow-md: 0 14px 38px rgba(16, 42, 67, 0.12);
  --radius: 16px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: #edf4fb;
  font-size: 15px;
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.shell {
  width: min(1450px, calc(100% - 40px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid rgba(220, 231, 239, 0.9);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 8px rgba(16, 42, 67, 0.04);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand img,
.brand-mark {
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  border-radius: 13px;
}

.brand img {
  object-fit: contain;
}

.brand-mark {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--primary-bright), var(--primary-dark));
  box-shadow: 0 7px 18px rgba(8, 127, 156, 0.24);
  font-weight: 850;
  letter-spacing: -0.04em;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.25;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.74rem;
}

.contact-strip {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.contact-strip a {
  min-width: 138px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--primary-dark);
  background: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.25;
}

.contact-strip a:hover {
  border-color: #9edbe5;
  background: var(--primary-pale);
}

.contact-strip a span {
  display: block;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-strip .emergency {
  color: #a9323a;
  border-color: #f0ced1;
  background: #fffafa;
}

.availability-hero {
  padding: 34px 0 26px;
  border-bottom: 1px solid #dce7ef;
  background:
    radial-gradient(circle at 15% 0%, rgba(113, 191, 223, 0.16), transparent 29rem),
    linear-gradient(180deg, #e4eefb 0%, #f2f7fc 100%);
}

.availability-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.availability-heading h1 {
  margin: 0;
  color: #0b3550;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.availability-heading > div:first-child > p:last-child {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.availability-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.availability-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid #d7e5ef;
  border-radius: 999px;
  color: #496679;
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  font-weight: 750;
  white-space: nowrap;
}

.availability-meta .live-indicator {
  color: var(--success);
  border-color: #bde7cd;
  background: #f2fbf5;
}

.live-indicator i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38ad6a;
  box-shadow: 0 0 0 4px rgba(56, 173, 106, 0.12);
}

.schedule-console {
  overflow: hidden;
  border: 1px solid rgba(208, 223, 234, 0.96);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: var(--shadow-md);
}

.date-control {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid #e1ebf2;
  background: linear-gradient(180deg, #fff, #fbfdff);
}

.button,
.icon-button,
.calendar-header-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-weight: 780;
}

.button {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, #159fba, #087894);
  box-shadow: 0 6px 14px rgba(8, 127, 156, 0.18);
}

.button-primary:hover:not(:disabled) {
  box-shadow: 0 9px 20px rgba(8, 127, 156, 0.25);
}

.button-outline {
  color: var(--primary-dark);
  border: 1px solid #b9dfe7;
  background: #fff;
}

.button-soft {
  color: var(--primary-dark);
  border: 1px solid #d9e8ef;
  background: #eef7fa;
}

.button:disabled {
  cursor: not-allowed;
  color: #8d9ba6;
  background: #e9eef2;
  box-shadow: none;
}

.today-button {
  min-height: 38px;
  color: #fff;
  background: linear-gradient(135deg, #53c8da, #19a6bd);
  box-shadow: 0 5px 13px rgba(25, 166, 189, 0.2);
}

.icon-button {
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  border: 1px solid #d8e5ee;
  border-radius: 50%;
  color: var(--primary-dark);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.icon-button:hover {
  border-color: #9cd9e4;
  background: var(--primary-pale);
}

.selected-date {
  min-width: 225px;
  padding: 0 12px;
  text-align: center;
}

.selected-date span,
.selected-date strong {
  display: block;
}

.selected-date span {
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.selected-date strong {
  margin-top: 1px;
  color: #123d57;
  font-size: 1rem;
}

.date-picker {
  position: relative;
}

.date-picker input {
  width: 142px;
  min-height: 39px;
  padding: 0 10px;
  border: 1px solid #d7e4ed;
  border-radius: 10px;
  color: #294c61;
  background: #fff;
  outline: 0;
}

.date-picker input:focus {
  border-color: #65c3d3;
  box-shadow: 0 0 0 3px rgba(32, 181, 204, 0.13);
}

.alerts {
  margin: 14px;
  padding: 14px 18px;
  border: 1px solid #ecc759;
  border-radius: 14px;
  background: var(--warning-pale);
  text-align: center;
}

.alerts-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0 0 6px;
  color: #976009;
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.alerts-title span {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #e5a927;
}

.alerts-list {
  display: grid;
  gap: 5px;
}

.alert strong,
.alert p {
  display: inline;
  margin: 0;
}

.alert {
  color: #9b4f34;
  font-size: 0.85rem;
}

.alert strong::after {
  content: " - ";
}

.alert-urgent {
  color: #b4363f;
}

.schedule-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 14px;
  padding: 12px 16px;
  border: 1px solid #c8e5ec;
  border-radius: 13px;
  color: #315d70;
  background: #f1fafc;
  text-align: left;
}

.schedule-note-icon {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  font-weight: 800;
}

.schedule-note p,
.schedule-note strong,
.schedule-note p span {
  display: block;
  margin: 0;
}

.schedule-note strong {
  color: #1d5065;
  font-size: 0.82rem;
}

.schedule-note p span {
  color: var(--muted);
  font-size: 0.76rem;
}

.directory-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 18px 18px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: min(560px, 100%);
}

.search-icon {
  position: absolute;
  left: 14px;
  width: 14px;
  height: 14px;
  border: 2px solid #7994a4;
  border-radius: 50%;
  pointer-events: none;
}

.search-icon::after {
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 6px;
  height: 2px;
  border-radius: 2px;
  background: #7994a4;
  content: "";
  transform: rotate(45deg);
}

.search-box input {
  width: 100%;
  height: 44px;
  padding: 0 78px 0 40px;
  border: 1px solid #d1e0e9;
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(16, 42, 67, 0.03);
  outline: none;
}

.search-box input:focus {
  border-color: #73cad8;
  box-shadow: 0 0 0 4px rgba(32, 181, 204, 0.12);
}

.search-box kbd {
  position: absolute;
  right: 8px;
  padding: 4px 8px;
  border: 1px solid #dae5ec;
  border-radius: 7px;
  color: #748695;
  background: #f5f8fa;
  font: 650 0.66rem/1 ui-sans-serif, sans-serif;
}

#result-count {
  min-width: 80px;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.filter-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  padding: 18px 0 0;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid #d6e3ec;
  border-radius: 999px;
  color: #405e72;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 740;
}

.filter-pill:hover {
  border-color: #9edbe5;
  color: var(--primary-dark);
}

.filter-pill.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #3ec1d4, #139cb5);
  box-shadow: 0 6px 14px rgba(19, 156, 181, 0.2);
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a9c5d3;
}

.filter-pill.active .pill-dot {
  background: #fff;
}

.directory-shell {
  padding-top: 24px;
  padding-bottom: 54px;
}

.doctor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 282px));
  justify-content: center;
  align-items: stretch;
  gap: 14px;
}

.doctor-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 455px;
  flex-direction: column;
  overflow: hidden;
  padding: 15px 14px 13px;
  border: 1px solid #e3ebf1;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 7px 19px rgba(16, 42, 67, 0.08);
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.doctor-card:hover {
  border-color: #bcdde5;
  box-shadow: 0 13px 28px rgba(16, 42, 67, 0.13);
  transform: translateY(-3px);
}

.card-accent {
  position: absolute;
  top: 10px;
  left: 12px;
  width: 34px;
  height: 3px;
  border-radius: 3px;
  background: #48bf78;
}

.card-status-row {
  display: flex;
  min-height: 32px;
  align-items: flex-start;
  justify-content: flex-end;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.status-available,
.status-starts_later,
.status-between_shifts {
  color: #2e7448;
  border-color: #bfe4ca;
  background: #f3fbf5;
}

.status-available::before {
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: #42b96e;
  content: "";
}

.status-leave,
.status-closed,
.status-ended,
.status-not_scheduled {
  color: #9e4c50;
  border-color: #f0cdd0;
  background: #fff5f5;
}

.doctor-photo {
  position: relative;
  display: grid;
  width: 86px;
  height: 86px;
  flex: 0 0 86px;
  place-items: center;
  align-self: center;
  margin: 4px auto 9px;
  border: 2px solid #5fc5d7;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #9edce6, #177e9b);
  box-shadow: 0 0 0 5px #eef9fb;
  font-size: 2rem;
  font-weight: 850;
}

.doctor-photo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.featured-badge {
  position: absolute;
  right: 50%;
  bottom: -10px;
  padding: 3px 7px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #704b05;
  background: #f9d66a;
  font-size: 0.56rem;
  text-transform: uppercase;
  transform: translateX(50%);
}

.doctor-body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  text-align: center;
}

.doctor-heading h2 {
  margin: 0;
  color: #152d3d;
  font-size: 0.95rem;
  line-height: 1.28;
  text-transform: uppercase;
}

.qualifications {
  margin: 2px 0 0;
  color: #7a8792;
  font-size: 0.68rem;
  font-weight: 650;
}

.department-label {
  margin: 7px 0 0;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
}

.speciality {
  min-height: 18px;
  margin: 2px 0 8px;
  color: #75828e;
  font-size: 0.7rem;
  line-height: 1.35;
}

.doctor-facts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 9px;
}

.doctor-facts div {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 3px 7px;
  border: 1px solid #e2ebf0;
  border-radius: 6px;
  background: #fafcfd;
  font-size: 0.64rem;
}

.doctor-facts dt {
  color: #81909b;
}

.doctor-facts dd {
  margin: 0;
  color: #425e70;
  font-weight: 780;
}

.slot-preview {
  margin-top: auto;
}

.slot-title {
  display: block;
  margin-bottom: 5px;
  color: #81909b;
  font-size: 0.62rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.slot-list {
  display: grid;
  gap: 5px;
}

.slot-list > span {
  display: block;
  padding: 6px 8px;
  border-radius: 6px;
  color: #315e76;
  background: #edf5fb;
  font-size: 0.68rem;
  font-weight: 780;
}

.slot-list > .slot-empty {
  color: #8a5960;
  background: #fff3f3;
}

.card-actions {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 7px;
  margin-top: 12px;
}

.card-actions .button {
  min-height: 37px;
  padding-inline: 9px;
  font-size: 0.72rem;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 48px 22px;
  border: 1px dashed #bfd2df;
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.empty-state strong {
  display: block;
  color: var(--ink);
}

.empty-state p {
  margin: 4px 0 0;
}

.toast {
  margin: 0 0 14px;
  padding: 12px 16px;
  border: 1px solid #f0b9bd;
  border-radius: 10px;
  color: #a1343d;
  background: #fff3f4;
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid #d9e5ed;
  color: #5a7180;
  background: #f8fbfd;
}

.footer-grid {
  display: flex;
  min-height: 118px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-grid strong {
  color: #193b50;
}

.footer-grid p {
  max-width: 620px;
  margin: 4px 0 0;
  font-size: 0.78rem;
}

.footer-grid nav {
  display: flex;
  gap: 18px;
}

.footer-grid a {
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--primary);
}

.modal {
  width: min(670px, calc(100% - 26px));
  max-height: calc(100vh - 28px);
  overflow: auto;
  padding: 0;
  border: 0;
  border-radius: 20px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 30px 80px rgba(8, 30, 45, 0.28);
}

.modal::backdrop {
  background: rgba(15, 28, 39, 0.64);
  backdrop-filter: blur(3px);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid #e4ebf0;
}

.modal-header h2 {
  margin: 0;
  color: #12384f;
  font-size: 1.3rem;
}

.close-button {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #c33a43;
  background: #fff1f1;
  cursor: pointer;
  font-size: 1.3rem;
}

.calendar-modal {
  width: min(1040px, calc(100% - 26px));
  padding: 14px;
  border-radius: 22px;
}

.calendar-modal-header {
  padding: 4px 2px 14px;
  border: 0;
}

.calendar-modal-header h2 {
  font-size: 1.4rem;
}

.calendar-header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.calendar-header-actions > button:not(.close-button) {
  min-height: 35px;
  padding: 0 12px;
  border: 1px solid #8dcfdd;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #62c7dd, #399bc8);
  font-size: 0.74rem;
}

.calendar-doctor-strip {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 84px;
  padding: 13px 16px;
  border: 1px solid #d7ebf2;
  border-radius: 15px;
  background: linear-gradient(135deg, #effafe, #f3f7fc);
}

.calendar-avatar {
  display: grid;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  place-items: center;
  border: 2px solid #70c8d8;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #89d5e2, #137d9b);
  font-size: 1.35rem;
  font-weight: 850;
}

.calendar-doctor-strip strong,
.calendar-doctor-strip span,
.calendar-doctor-strip small {
  display: block;
}

.calendar-doctor-strip strong {
  font-size: 0.96rem;
  text-transform: uppercase;
}

.calendar-doctor-strip div > span {
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
}

.calendar-doctor-strip small {
  margin-top: 2px;
  color: var(--muted);
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}

.calendar-weekdays {
  margin-top: 10px;
}

.calendar-weekdays span {
  padding: 8px 3px;
  border: 1px solid #cbe7ef;
  border-radius: 10px;
  color: #325d73;
  background: #eaf6fb;
  font-size: 0.67rem;
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
}

.calendar-weekdays span:nth-child(6) {
  color: #b3474e;
  border-color: #f0cfd1;
  background: #fff1f1;
}

.calendar-grid {
  margin-top: 7px;
}

.calendar-day {
  display: flex;
  min-width: 0;
  min-height: 82px;
  flex-direction: column;
  align-items: stretch;
  padding: 7px;
  border: 1px solid #edf1f4;
  border-radius: 11px;
  color: #17394e;
  background: #fff;
  box-shadow: 0 5px 13px rgba(16, 42, 67, 0.07);
  cursor: pointer;
  text-align: left;
}

.calendar-day:nth-child(7n + 6) {
  border-color: #f1d1d4;
  background: #fff5f5;
}

.calendar-day.blank {
  border-color: transparent;
  background: #fafcfd;
  box-shadow: none;
  cursor: default;
}

.calendar-day strong {
  font-size: 0.84rem;
}

.calendar-day-slots {
  display: grid;
  gap: 3px;
  margin-top: 8px;
}

.calendar-day small {
  display: block;
  overflow: hidden;
  padding: 4px 5px;
  border-radius: 5px;
  color: #315e76;
  background: #eaf5fa;
  font-size: 0.55rem;
  font-weight: 750;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-day:not(.available) {
  cursor: default;
}

.calendar-day:not(.available) small {
  color: #788a96;
  border: 1px dashed #d5e0e7;
  background: #f8fafb;
}

.calendar-day.today strong {
  display: grid;
  width: 27px;
  height: 25px;
  place-items: center;
  border-radius: 7px;
  color: #74550a;
  background: #f9d66a;
}

.calendar-day.available:hover {
  border-color: #81ccda;
  background: #f4fcfd;
  transform: translateY(-1px);
}

.calendar-legend {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.67rem;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.available-dot {
  background: #3ab56a;
}

.leave-dot {
  background: #d65c63;
}

.off-dot {
  background: #a9b8c2;
}

.enquiry-modal form {
  padding-bottom: 20px;
}

.form-notice {
  margin: 16px 22px;
  padding: 11px 13px;
  border: 1px solid #cbe5ec;
  border-radius: 9px;
  color: #315e70;
  background: #f1fafc;
  font-size: 0.78rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  padding: 0 22px;
}

.field {
  display: grid;
  gap: 5px;
}

.field > span {
  color: #465e6e;
  font-size: 0.72rem;
  font-weight: 760;
}

.field input,
.field select {
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid #cfdee7;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  outline: 0;
}

.field input:focus,
.field select:focus {
  border-color: #69c4d4;
  box-shadow: 0 0 0 3px rgba(32, 181, 204, 0.12);
}

.span-2 {
  grid-column: span 2;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 16px 22px 0;
  color: #536a78;
  font-size: 0.74rem;
}

.consent input {
  margin-top: 3px;
}

.consent a {
  color: var(--primary);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 18px 22px 0;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.confirmation-page,
.legal-page {
  min-height: 100vh;
  padding-top: 58px;
  padding-bottom: 58px;
}

.confirmation-page {
  display: grid;
  place-items: center;
}

.confirmation-card,
.legal-page article {
  width: min(720px, calc(100% - 30px));
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.confirmation-card {
  text-align: center;
}

.confirmation-card h1,
.legal-page h1 {
  margin: 7px 0 13px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.success-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 50%;
  color: #fff;
  background: var(--success);
  font-size: 1.6rem;
}

.reference {
  display: inline-flex;
  gap: 7px;
  margin: 8px 0 20px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #557080;
  background: var(--navy-pale);
}

.confirmation-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 20px;
}

.confirmation-summary div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: left;
}

.confirmation-summary span,
.confirmation-summary strong {
  display: block;
}

.confirmation-summary span {
  color: var(--muted);
  font-size: 0.68rem;
}

.confirmation-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.button-whatsapp {
  color: #fff;
  background: #1d9b5a;
}

.quiet-note {
  color: var(--muted);
  font-size: 0.76rem;
}

.legal-page {
  width: min(900px, calc(100% - 40px));
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--primary);
  font-weight: 750;
  text-decoration: none;
}

.legal-page article {
  width: 100%;
  line-height: 1.75;
}

.legal-page h2 {
  margin-top: 28px;
}

@media (max-width: 900px) {
  .availability-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .availability-meta {
    justify-content: flex-start;
  }

  .doctor-grid {
    grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  }

  .doctor-card {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 24px, 1450px);
  }

  .header-inner {
    min-height: 64px;
  }

  .contact-strip a {
    display: none;
  }

  .availability-hero {
    padding-top: 24px;
  }

  .availability-heading h1 {
    font-size: 2.1rem;
  }

  .availability-meta span:not(.live-indicator) {
    display: none;
  }

  .date-control {
    flex-wrap: wrap;
  }

  .selected-date {
    min-width: 160px;
    flex: 1;
  }

  .date-picker {
    width: 100%;
    order: 5;
  }

  .date-picker input {
    width: 100%;
  }

  .schedule-note {
    justify-content: flex-start;
  }

  .directory-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  #result-count {
    text-align: center;
  }

  .filter-pills {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .filter-pills::-webkit-scrollbar {
    display: none;
  }

  .filter-pill {
    flex: 0 0 auto;
  }

  .doctor-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .doctor-card {
    width: 100%;
    min-height: 430px;
  }

  .calendar-modal {
    padding: 10px;
  }

  .calendar-modal-header {
    align-items: flex-start;
  }

  .calendar-header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .calendar-header-actions > button:not(.close-button) {
    width: 35px;
    overflow: hidden;
    padding: 0;
    color: transparent;
  }

  #calendar-prev::first-letter,
  #calendar-next::first-letter {
    color: #fff;
  }

  .calendar-weekdays,
  .calendar-grid {
    gap: 3px;
  }

  .calendar-weekdays span {
    padding-inline: 0;
    font-size: 0.55rem;
  }

  .calendar-day {
    min-height: 62px;
    padding: 4px;
  }

  .calendar-day small {
    padding: 3px 1px;
    font-size: 0.46rem;
  }

  .calendar-day-slots {
    margin-top: 4px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: span 1;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 28px;
  }

  .confirmation-summary {
    grid-template-columns: 1fr;
  }

  .confirmation-actions {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
