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

.portal-patient .booking-experience {
  display: grid;
  gap: 1.35rem;
}

.booking-flow-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 1.35rem;
  border-radius: 16px;
  background: #f2f9fc;
}

.booking-flow-intro > div {
  max-width: 42rem;
}

.booking-flow-intro h2 {
  margin: 0;
  color: #173d59;
  font-size: 1.38rem;
  font-weight: 650;
}

.booking-flow-intro > div > p:not(.eyebrow) {
  margin: 0.48rem 0 0;
  color: #5e7c90;
  font-size: 0.9rem;
  line-height: 1.55;
}

.booking-flow-steps {
  display: flex;
  flex: 0 0 auto;
  gap: 0.65rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.booking-flow-steps li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #6a8495;
  font-size: 0.76rem;
  font-weight: 700;
}

.booking-flow-steps span {
  display: inline-grid;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  border-radius: 999px;
  color: #5d778a;
  background: #dcecf3;
  font-size: 0.7rem;
}

.booking-flow-steps .active {
  color: #0d75b4;
}

.booking-flow-steps .active span {
  color: #ffffff;
  background: #0f7ccf;
}

.portal-patient .booking-experience > .panel,
.portal-patient .booking-scheduling-grid > .panel {
  padding: 1.2rem;
  border: 1px solid rgba(215, 231, 239, 0.72);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(25, 83, 125, 0.07);
}

.portal-patient .booking-experience .panel-head {
  margin-bottom: 1rem;
  padding-bottom: 0.78rem;
}

.portal-patient .booking-experience .panel-head h2 {
  color: #183e59;
  font-size: 1.1rem;
  font-weight: 650;
}

.booking-scheduling-grid {
  display: grid;
  grid-template-columns: minmax(19rem, 0.42fr) minmax(0, 0.58fr);
  gap: 1.35rem;
  align-items: start;
}

.doctor-discovery {
  display: grid;
  gap: 0.95rem;
}

.doctor-discovery-tools {
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) repeat(3, minmax(9rem, 0.3fr));
  gap: 0.6rem;
}

.doctor-search-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.6rem;
  padding: 0 0.72rem;
  border: 1px solid #d7e6ed;
  border-radius: 9px;
  background: #ffffff;
}

.doctor-search-field:focus-within {
  border-color: #73b8db;
  box-shadow: 0 0 0 3px rgba(15, 124, 207, 0.1);
}

.doctor-search-field svg {
  width: 1rem;
  height: 1rem;
  color: #6c8798;
}

.doctor-search-field input,
.doctor-filter-field select {
  width: 100%;
  min-height: 2.35rem;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #183e59;
  font-size: 0.84rem;
}

.doctor-filter-field {
  display: block;
  min-width: 0;
  padding: 0 0.72rem;
  border: 1px solid #d7e6ed;
  border-radius: 9px;
  background: #ffffff;
}

.doctor-filter-field:focus-within {
  border-color: #73b8db;
  box-shadow: 0 0 0 3px rgba(15, 124, 207, 0.1);
}

.doctor-discovery-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: #6a8495;
  font-size: 0.78rem;
}

.doctor-discovery-meta span:first-child {
  color: #345a70;
  font-weight: 700;
}

.doctor-selector-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.booking-doctor-option {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid #dceaf0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(29, 83, 112, 0.045);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.booking-doctor-option:hover,
.booking-doctor-option.active {
  border-color: #9bcce2;
  box-shadow: 0 13px 26px rgba(29, 83, 112, 0.1);
  transform: translateY(-2px);
}

.booking-doctor-option.active {
  box-shadow: inset 3px 0 0 #0f7ccf, 0 13px 26px rgba(29, 83, 112, 0.1);
}

.booking-doctor-option-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.62rem;
  align-items: start;
}

.booking-doctor-option .doctor-avatar {
  width: 2.7rem;
  height: 2.7rem;
  border: 0;
}

.booking-doctor-copy {
  min-width: 0;
}

.booking-doctor-copy > span {
  display: block;
  color: #678295;
  font-size: 0.75rem;
}

.booking-doctor-copy h3 {
  margin: 0.12rem 0;
  overflow: hidden;
  color: #183e59;
  font-size: 0.95rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-doctor-copy small {
  display: block;
  color: #698496;
  font-size: 0.73rem;
  line-height: 1.35;
}

.doctor-selected-state {
  padding: 0.22rem 0.42rem;
  border-radius: 999px;
  color: #087758;
  background: #e5f6ef;
  font-size: 0.68rem;
  font-weight: 700;
}

.booking-doctor-bio {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #547184;
  font-size: 0.8rem;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.booking-doctor-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem 0.72rem;
}

.doctor-availability-indicator,
.doctor-online-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #5c7688;
  font-size: 0.72rem;
  line-height: 1.25;
}

.doctor-availability-indicator > span,
.doctor-online-indicator > span {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: #7c99aa;
}

.doctor-availability-indicator.available,
.doctor-online-indicator {
  color: #177956;
}

.doctor-availability-indicator.available > span,
.doctor-online-indicator > span {
  background: #28a475;
}

.doctor-availability-indicator.unavailable {
  color: #9a675d;
}

.doctor-availability-indicator.unavailable > span {
  background: #c17c6e;
}

.doctor-availability-indicator.scheduled {
  color: #0d75b4;
}

.doctor-availability-indicator.scheduled > span {
  background: #0f7ccf;
}

.doctor-online-indicator.offline {
  color: #6e7f8d;
}

.doctor-online-indicator.offline > span {
  background: #8798a3;
}

.booking-doctor-details {
  display: grid;
  gap: 0.25rem;
  color: #527085;
  font-size: 0.75rem;
}

.booking-doctor-details span:last-child {
  color: #177956;
}

.booking-doctor-languages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
}

.booking-doctor-languages span,
.booking-provider-languages span {
  display: inline-flex;
  min-height: 1.45rem;
  align-items: center;
  padding: 0.16rem 0.42rem;
  border-radius: 999px;
  color: #4f6e81;
  background: #f0f7fa;
  font-size: 0.7rem;
}

.booking-doctor-cta {
  width: 100%;
  margin-top: auto;
  color: #0d75b4;
  background: #edf8fd;
}

.booking-calendar-shell {
  display: grid;
  gap: 0.75rem;
}

.calendar-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
}

.calendar-title {
  display: grid;
  justify-items: center;
  gap: 0.08rem;
  text-align: center;
}

.calendar-title strong {
  color: #183e59;
  font-size: 1rem;
}

.calendar-title span,
.calendar-selection {
  color: #698496;
  font-size: 0.77rem;
}

.calendar-nav-button {
  width: 2.15rem;
  height: 2.15rem;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.calendar-nav-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

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

.calendar-weekdays span {
  color: #7890a0;
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
}

.calendar-day {
  display: grid;
  min-height: 3.4rem;
  aspect-ratio: 1;
  align-content: center;
  justify-items: center;
  gap: 0.08rem;
  border: 1px solid #e0ecf1;
  border-radius: 9px;
  background: #ffffff;
  color: #24475f;
  font-size: 0.83rem;
  font-weight: 700;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.calendar-day small {
  color: #0f7ccf;
  font-size: 0.58rem;
}

.calendar-day:hover:not(:disabled),
.calendar-day.is-selected {
  border-color: #0f7ccf;
  background: #0f7ccf;
  color: #ffffff;
  transform: translateY(-1px);
}

.calendar-day:hover:not(:disabled) small,
.calendar-day.is-selected small {
  color: #ffffff;
}

.calendar-day.is-today:not(.is-selected) {
  border-color: #8dc9e5;
  background: #edf8fd;
  color: #0d75b4;
}

.calendar-day.outside-month {
  color: #a1b1bb;
  background: #f8fbfc;
}

.calendar-day.is-disabled {
  cursor: not-allowed;
  color: #a7b6c0;
  background: #f2f6f8;
  opacity: 0.65;
}

.calendar-selection {
  margin: 0;
  padding: 0.62rem 0.7rem;
  border-radius: 9px;
  background: #f4fafc;
}

.calendar-selection strong {
  color: #24475f;
}

.booking-note-field {
  display: grid;
  gap: 0.36rem;
  margin-bottom: 1rem;
  color: #24475f;
  font-size: 0.84rem;
  font-weight: 700;
}

.booking-note-field .optional-field {
  display: inline;
  color: #7890a0;
  font-size: 0.74rem;
  font-weight: 400;
}

.booking-note-field textarea {
  min-height: 5.4rem;
  resize: vertical;
}

.booking-note-field > span:last-child {
  color: #6e8797;
  font-size: 0.74rem;
  font-weight: 400;
  line-height: 1.4;
}

.booking-slot-panel {
  display: grid;
}

.booking-slot-panel > .availability-card {
  box-shadow: none;
}

.booking-confirmation-card {
  display: grid;
  gap: 1rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.booking-provider-header {
  display: flex;
  justify-content: space-between;
  gap: 0.9rem;
  align-items: start;
}

.booking-provider-header .doctor-identity {
  align-items: flex-start;
}

.booking-provider-header .doctor-avatar {
  width: 3rem;
  height: 3rem;
  border: 0;
}

.booking-provider-specialty {
  display: block;
  color: #0d75b4;
  font-size: 0.76rem;
  font-weight: 700;
}

.booking-provider-header h3 {
  margin: 0.12rem 0;
  color: #183e59;
  font-size: 1.02rem;
}

.booking-provider-header p {
  display: -webkit-box;
  max-width: 32rem;
  margin: 0;
  overflow: hidden;
  color: #668194;
  font-size: 0.78rem;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.booking-provider-fee {
  flex: 0 0 auto;
  color: #173d59;
  font-size: 0.96rem;
  font-weight: 700;
}

.booking-provider-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.booking-provider-details span {
  padding: 0.27rem 0.46rem;
  border-radius: 7px;
  color: #557286;
  background: #f2f7f9;
  font-size: 0.73rem;
}

.booking-provider-languages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
}

.booking-provider-credentials {
  display: grid;
  gap: 0.08rem;
  padding: 0.68rem 0.74rem;
  border-radius: 9px;
  background: #f5f9fb;
}

.booking-provider-credentials > span,
.booking-provider-credentials small {
  color: #6a8495;
  font-size: 0.72rem;
}

.booking-provider-credentials strong {
  color: #31576f;
  font-size: 0.8rem;
  font-weight: 650;
}

.booking-date-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.2rem 0.75rem;
  padding: 0.82rem;
  border-radius: 10px;
  background: #f4fafc;
}

.booking-date-summary span,
.booking-date-summary small {
  color: #6a8495;
  font-size: 0.74rem;
}

.booking-date-summary strong {
  color: #183e59;
  font-size: 0.9rem;
}

.booking-date-summary small {
  grid-column: 1 / -1;
}

.booking-slot-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem;
}

.booking-slot-heading span,
.booking-slot-heading small {
  color: #6b8596;
  font-size: 0.75rem;
}

.booking-slot-heading h4 {
  margin: 0.12rem 0 0;
  color: #183e59;
  font-size: 0.92rem;
  font-weight: 650;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.slot-button {
  display: inline-flex;
  min-height: 2.35rem;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.5rem;
  border: 1px solid #bfdeeb;
  border-radius: 8px;
  background: #f7fcfe;
  color: #0d75b4;
  font-size: 0.78rem;
  font-weight: 700;
}

.slot-button:hover,
.slot-button.active {
  border-color: #0f7ccf;
  background: #e6f5fc;
}

.slot-button.active {
  box-shadow: inset 0 0 0 1px #0f7ccf;
}

.slot-button.unavailable {
  border-color: #ead0cc;
  background: #fdf6f5;
  color: #a25a53;
}

.slot-button.readonly {
  cursor: default;
}

.booking-selection-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  padding: 0.76rem;
  border: 1px solid #d7e6ed;
  border-radius: 10px;
  background: #fbfdfe;
}

.booking-selection-summary.is-ready {
  border-color: #a5d5bb;
  background: #f4fbf7;
}

.booking-selection-icon {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 8px;
  color: #0d75b4;
  background: #e8f5fb;
}

.booking-selection-summary.is-ready .booking-selection-icon {
  color: #177956;
  background: #e3f5ea;
}

.booking-selection-icon svg {
  width: 0.95rem;
  height: 0.95rem;
}

.booking-selection-summary span:not(.booking-selection-icon),
.booking-selection-summary strong {
  display: block;
}

.booking-selection-summary span:not(.booking-selection-icon) {
  color: #708899;
  font-size: 0.73rem;
}

.booking-selection-summary strong {
  margin-top: 0.1rem;
  color: #21465e;
  font-size: 0.84rem;
}

.booking-submit {
  width: 100%;
  min-height: 2.65rem;
}

.tiny-spinner {
  width: 0.9rem;
  height: 0.9rem;
  border-width: 2px;
}

@media (max-width: 1080px) {
  .doctor-discovery-tools {
    grid-template-columns: minmax(14rem, 1fr) repeat(2, minmax(9rem, 0.36fr));
  }

  .doctor-discovery-tools .doctor-filter-field:last-child {
    grid-column: 2 / -1;
  }

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

  .booking-scheduling-grid {
    grid-template-columns: minmax(17rem, 0.4fr) minmax(0, 0.6fr);
  }
}

@media (max-width: 820px) {
  .booking-flow-intro {
    align-items: start;
    flex-direction: column;
  }

  .booking-scheduling-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .booking-flow-intro,
  .portal-patient .booking-experience > .panel,
  .portal-patient .booking-scheduling-grid > .panel {
    padding: 1rem;
  }

  .doctor-discovery-tools {
    grid-template-columns: 1fr;
  }

  .doctor-discovery-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .doctor-selector-list {
    grid-template-columns: 1fr;
  }

  .booking-flow-steps {
    width: 100%;
    justify-content: space-between;
  }

  .calendar-day {
    min-height: 2.8rem;
  }

  .booking-provider-header {
    align-items: stretch;
    flex-direction: column;
  }

  .booking-provider-fee {
    align-self: flex-start;
  }

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