.phone-complete {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #b9cbcc;
  border-radius: 7px;
  background: #fff;
}

.phone-complete:focus-within {
  outline: 3px solid #ca8c30;
  outline-offset: 4px;
}

.phone-complete input[type="text"] {
  min-width: 0;
  flex: 1;
  border: 0;
  border-radius: 0;
  outline: 0;
}

.phone-complete input[type="text"]:focus-visible {
  outline: 0;
}

.phone-suffix {
  display: flex;
  align-items: center;
  padding: 0 17px;
  background: #edf6f4;
  color: var(--accent);
  font-size: 20px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.registered-ending {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: 7px;
  background: #f4f8f8;
  color: #526b70;
  font-size: 14px;
  line-height: 1.5;
}

.registered-ending strong {
  color: var(--accent);
  letter-spacing: 1px;
}

.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;
}

.choice-grid .primary {
  margin-top: 0;
}

.coverage-card {
  margin: 0 0 24px;
  padding: 14px 16px;
  border-radius: 7px;
  background: #edf6f4;
  color: #526b70;
  font-size: 14px;
}

.coverage-card strong {
  display: block;
  margin-top: 5px;
  color: var(--accent);
  font-size: 16px;
}

.specialty-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

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

.specialty-grid label {
  position: relative;
  cursor: pointer;
}

.specialty-grid input {
  position: absolute;
  opacity: 0;
}

.specialty-grid span,
.unit-card,
.professional-card {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid #b9cbcc;
  border-radius: 7px;
  color: #36545a;
  font-size: 14px;
  line-height: 1.35;
}

.professional-card {
  width: 100%;
  cursor: pointer;
  background: #fff;
  font-family: inherit;
  text-align: left;
}

.professional-card:focus-visible {
  outline: 3px solid #ca8c30;
  outline-offset: 3px;
}

.specialty-grid input:checked + span {
  border-color: var(--accent);
  background: #edf6f4;
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.specialty-grid input:focus-visible + span {
  outline: 3px solid #ca8c30;
  outline-offset: 3px;
}

.pricing-summary {
  margin: 4px 0 8px;
  padding: 20px;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #edf6f4;
  color: #294e53;
  font-size: 18px;
  line-height: 1.55;
}

.price-product-grid {
  margin: 0;
  padding: 0;
  border: 0;
}

#pricing-products {
  display: grid;
  gap: 10px;
}

.price-product-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.price-product-option input {
  position: absolute;
  opacity: 0;
}

.price-product-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 14px 16px;
  border: 1px solid #c7d5d6;
  border-radius: 9px;
  background: #fff;
  color: #294e53;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.price-product-card strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.price-product-card small {
  flex: none;
  padding: 7px 9px;
  border-radius: 999px;
  background: #edf6f4;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.price-product-option input:checked + .price-product-card {
  border-color: var(--accent);
  background: #f3f9f8;
  box-shadow: inset 0 0 0 1px var(--accent);
}

.price-product-option input:focus-visible + .price-product-card {
  outline: 3px solid #ca8c30;
  outline-offset: 3px;
}

.pricing-explanation-link {
  margin: 15px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.pricing-payment-note {
  margin: 14px 0 -8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.pricing-dialog {
  width: min(480px, calc(100% - 32px));
  padding: 0;
  border: 1px solid #c7d5d6;
  border-radius: 10px;
  box-shadow: 0 22px 70px #173b4230;
  color: #203c42;
}

.pricing-dialog::backdrop {
  background: #173b4266;
}

.pricing-dialog-content {
  position: relative;
  padding: 30px;
}

.pricing-dialog h3 {
  max-width: 360px;
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.3;
}

.pricing-dialog p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.pricing-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #edf6f4;
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
}

.unit-grid > div {
  display: contents;
}

.unit-grid span,
.unit-grid .unit-card {
  flex-direction: column;
  align-items: flex-start;
}

.unit-card {
  width: 100%;
  background: #fff;
  text-align: left;
}

.unit-card:hover:not(:disabled),
.unit-card[aria-busy="true"] {
  border-color: var(--accent);
  background: #edf6f4;
  color: var(--accent);
}

.unit-grid strong {
  color: inherit;
}

.unit-grid small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

textarea {
  width: 100%;
  min-height: 110px;
  padding: 14px 16px;
  resize: vertical;
  border: 1px solid #b9cbcc;
  border-radius: 7px;
  color: #203c42;
  background: #fff;
  font: inherit;
  line-height: 1.5;
}

textarea:focus-visible {
  outline: 3px solid #ca8c30;
  outline-offset: 3px;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

.selection-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.selection-summary p {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: 13px;
}

.selection-summary strong {
  display: block;
  margin-top: 5px;
  color: var(--accent);
  font-size: 15px;
}

.availability-calendar {
  margin: 4px 0 22px;
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.calendar-title,
.available-times h3 {
  margin: 0;
  color: #27474d;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
}

.calendar-nav {
  width: 42px;
  height: 42px;
  border: 1px solid #c7d5d5;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  font-size: 27px;
  line-height: 1;
}

.calendar-nav:hover:not(:disabled) {
  background: #edf6f4;
}

.calendar-nav:disabled {
  cursor: default;
  color: #bdc8ca;
  background: #f7f9f9;
  opacity: .65;
}

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

.calendar-weekdays {
  margin-bottom: 8px;
}

.calendar-weekdays span {
  color: #7a8c90;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  text-align: center;
}

.calendar-spacer,
.calendar-date {
  aspect-ratio: 1;
}

.calendar-date {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 0;
  border: 1px solid #edf1f1;
  border-radius: 9px;
  background: #f5f7f7;
  color: #a4b0b2;
  font-size: 14px;
  font-weight: 600;
}

.calendar-date:disabled {
  cursor: default;
  opacity: .62;
}

.calendar-date.available {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  opacity: 1;
  box-shadow: 0 4px 10px rgba(24, 108, 112, .16);
}

.calendar-date.available:hover,
.calendar-date.available.selected {
  background: #11585c;
  transform: translateY(-1px);
}

.calendar-date.available.selected {
  box-shadow: 0 0 0 3px #d8ece9, 0 5px 12px rgba(24, 108, 112, .2);
}

.calendar-prompt,
.time-selection-status {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.booking-confirm {
  margin-top: 16px;
}

.available-times {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.available-times h3 {
  margin-bottom: 14px;
  text-align: left;
}

.time-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.time-card {
  min-height: 48px;
  padding: 10px;
  border: 1px solid #b9cbcc;
  border-radius: 8px;
  background: #fff;
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
}

.time-card:hover,
.time-card.selected {
  border-color: var(--accent);
  background: #edf6f4;
}

.time-card.selected {
  box-shadow: inset 0 0 0 1px var(--accent);
}

.available-times .note {
  margin-top: 15px;
}

@media (max-width: 640px) {
  .steps li {
    gap: 0;
  }

  .steps li div {
    display: none;
  }

  .steps li > span {
    width: 30px;
    height: 30px;
  }

  .panel {
    min-height: 440px;
  }

  .phone-suffix {
    padding: 0 12px;
    font-size: 18px;
  }

  .specialty-grid,
  .selection-summary {
    grid-template-columns: 1fr;
  }

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

  .calendar-date {
    border-radius: 7px;
    font-size: 13px;
  }

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