:root {
  --ink: #222;
  --muted: #62676b;
  --gold: #b48a2c;
  --page: #f8f5f5;
  --line: #d7dce0;
  --blue: #eaf3fa;
}
* {
  box-sizing: border-box;
}
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--page);
}
button,
input,
select,
textarea {
  font: inherit;
}
.simple-header {
  height: 76px;
  background: #fff;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 max(25px, calc((100% - 1140px) / 2));
  border-top: 1px solid #111;
}
.header-back {
  border: 0;
  background: none;
  font-size: 16px;
  padding: 10px 0;
  cursor: pointer;
}
.header-back i {
  font-size: 18px;
}
.clinic-logo {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  border: 1px solid #eadfbd;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #8b671b;
  background: #fffdf8;
}
.clinic-logo i {
  font-size: 25px;
}
.clinic-logo small {
  font-size: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: -14px;
}
.progress-bar {
  height: 59px;
  background: #030303;
  color: #fff;
}
.progress-inner {
  max-width: 520px;
  height: 100%;
  margin: auto;
  display: flex;
  justify-content: space-between;
  position: relative;
}
.progress-inner:before {
  content: "";
  position: absolute;
  top: 17px;
  left: 28px;
  right: 28px;
  border-top: 2px solid #fff;
}
.progress-step {
  position: relative;
  display: flex;
  width: 90px;
  align-items: center;
  flex-direction: column;
  font-size: 12px;
  gap: 5px;
}
.progress-step span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 9px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: #fff;
  color: #1e668a;
  z-index: 1;
}
.progress-step b {
  font-weight: 600;
}
.progress-step.current span {
  background: var(--gold);
  color: #fff;
}
.progress-step:not(.done) span i {
  display: none;
}
.progress-step.current span i {
  display: none;
}
.flow-screen {
  display: none;
  min-height: calc(100vh - 135px);
}
.flow-screen.active {
  display: block;
}
.content {
  width: calc(100% - 48px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 0 70px;
}
.content.narrow {
  width: calc(100% - 48px);
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 20px;
}
.content.narrow > h1,
.content.narrow > .gold-line,
.content.narrow > .large-option {
  max-width: 530px;
}
.screening-content {
  max-width: 600px;
}
.screening-content h1 {
  max-width: 580px;
}
.select-card {
  position: relative;
  padding: 24px;
  margin-top: 18px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 6px #0002;
}
.select-card select {
  width: 100%;
  height: 47px;
  padding: 0 46px 0 16px;
  border: 1px solid #bfc9d2;
  border-radius: 9px;
  background: #fff;
  appearance: none;
}
.select-card > i {
  position: absolute;
  right: 38px;
  top: 40px;
  pointer-events: none;
}
.screening-content .large-option {
  max-width: 530px;
}
.content h1 {
  font-size: 24px;
  line-height: 1.15;
  margin: 0 0 6px;
  font-weight: 600;
}
.gold-line {
  width: 46px;
  height: 5px;
  background: var(--gold);
  margin: 6px 0 18px;
}
.large-option {
  height: 80px;
  border-radius: 44px;
  background: #fff;
  box-shadow: 0 3px 5px #0002;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 25px;
  margin: 0 0 17px;
  font-size: 18px;
  cursor: pointer;
}
.large-option input,
.location-card input {
  position: absolute;
  opacity: 0;
}
.large-option span,
.radio-row span {
  width: 24px;
  height: 24px;
  border: 1px solid #ccd6e2;
  border-radius: 50%;
  display: inline-block;
}
.large-option:has(input:checked) {
  outline: 2px solid var(--gold);
}
.large-option input:checked + span,
.radio-row input:checked + span {
  border: 6px solid var(--gold);
}
.location-list {
  display: grid;
  gap: 15px;
  max-width: 900px;
}
.location-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border-radius: 10px;
  min-height: 105px;
  padding: 18px 24px;
  box-shadow: 0 2px 4px #0002;
  cursor: pointer;
}
.location-card:has(input:checked) {
  outline: 2px solid var(--gold);
}
.location-pin {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #f2ede3;
  color: #87681f;
  font-size: 24px;
}
.location-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}
.location-copy strong {
  font-size: 18px;
}
.location-copy small {
  color: var(--muted);
}
.schedule-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  width: calc(100% - 48px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 0 0;
}
.schedule-toolbar label {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  min-width: 190px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 9px;
  padding: 0 14px;
}
.schedule-toolbar input,
.schedule-toolbar select {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  font-size: 14px;
  appearance: none;
}
.provider-card {
  display: grid;
  grid-template-columns: 44% 56%;
  align-items: stretch;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 4px #0002;
  margin-bottom: 17px;
}
.provider-card.hidden {
  display: none;
}
.provider-profile {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding-right: 20px;
}
.provider-profile img {
  width: 140px;
  height: 140px;
  flex: 0 0 140px;
  object-fit: cover;
  border-radius: 15px;
}
.provider-profile h3 {
  font-size: 18px;
  margin: 8px 0 10px;
}
.provider-profile p {
  font-size: 14px;
}
.provider-profile button {
  margin-top: 48px;
  border: 0;
  background: none;
  padding: 0;
  font-size: 13px;
}
.availability {
  border-left: 1px solid #eee;
  padding-left: 20px;
}
.availability-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 14px;
}
.availability-head span {
  color: var(--muted);
}
.provider-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}
.slot-loading {
  grid-column: 1/-1;
  background: #f1f3f4;
  border-radius: 8px;
  text-align: center;
  padding: 20px;
  color: #72777a;
}
.time-slot input {
  position: absolute;
  opacity: 0;
}
.time-slot span {
  display: block;
  padding: 10px 5px;
  text-align: center;
  background: var(--blue);
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}
.time-slot input:checked + span {
  background: #111;
  color: #fff;
}
.schedule-empty {
  text-align: center;
  padding: 90px 20px;
  color: #62676b;
}
.schedule-empty i {
  font-size: 40px;
}
.info-content {
  max-width: 1180px;
  padding: 20px 0 90px;
}
.form-panel {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 4px #0002;
  margin: 0 0 16px;
  overflow: hidden;
}
.panel-title {
  height: 55px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 600;
  border-bottom: 1px solid #ddd;
}
.panel-body {
  padding: 22px 21px;
}
.summary-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.4fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 25px;
}
.summary-body > *,
.field-grid > *,
.address-row > * {
  min-width: 0;
}
.summary-provider {
  display: flex;
  align-items: center;
  gap: 14px;
}
.summary-provider img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
}
.summary-provider strong,
.summary-provider small {
  display: block;
}
.summary-provider small {
  margin-top: 6px;
  color: var(--muted);
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 30px;
}
.field-grid label,
.panel-body > label,
fieldset {
  font-size: 14px;
  border: 0;
  padding: 0;
  margin: 0;
}
.field-grid label > input,
.panel-body textarea,
.input-icon {
  display: block;
  width: 100%;
  height: 45px;
  border: 1px solid #bfc9d2;
  border-radius: 9px;
  margin-top: 6px;
  padding: 0 13px;
  background: #fff;
  max-width: 100%;
}
.panel-body textarea {
  height: auto;
  padding: 12px;
}
.field-grid em,
.panel-body em,
legend em {
  color: #d00;
  font-style: normal;
}
.radio-row {
  display: flex;
  gap: 15px;
  margin-top: 6px;
}
.radio-row label {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 120px;
  height: 45px;
  border: 1px solid #d3dae0;
  border-radius: 9px;
  padding: 0 16px;
}
.radio-row input {
  position: absolute;
  opacity: 0;
}
.radio-row span {
  width: 18px;
  height: 18px;
}
.input-icon {
  display: flex;
  padding: 0;
}
.input-icon input {
  width: 0;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 13px;
  flex: 1;
}
.input-icon i {
  width: 43px;
  border-left: 1px solid #bfc9d2;
  display: grid;
  place-items: center;
  color: #657078;
}
.contact-grid .consent {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 28px;
  color: #687078;
  width: max-content;
  max-width: 100%;
  align-self: center;
}
.field-grid .consent > input,
.panel-body .terms > input {
  display: inline-block;
  flex: 0 0 17px;
  width: 17px;
  min-width: 17px;
  max-width: 17px;
  height: 17px;
  margin: 0;
  padding: 0;
  border-radius: 3px;
  accent-color: #111;
}
.address-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  grid-column: 1/-1;
}
.terms {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sticky-submit {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 12px 25px;
  background: #faf8f8;
  border-top: 1px solid #ddd;
  z-index: 4;
}
.bottom-back,
.book-button,
.success-page button,
.success-page a {
  border: 0;
  border-radius: 25px;
  padding: 11px 30px;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
}
.book-button,
.success-page a {
  background: #111;
  color: #fff;
}
.success-page {
  text-align: center;
  padding-top: 90px;
}
.success-check {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  background: #e6f5ed;
  color: #168254;
  font-size: 42px;
}
.success-page p {
  color: var(--muted);
}
.booking-number {
  font-size: 25px;
  font-weight: bold;
  margin: 22px;
}
.success-page a {
  text-decoration: none;
  display: inline-block;
}
.hidden {
  display: none !important;
}
@media (max-width: 800px) {
  .content.narrow {
    margin: 0 auto;
  }
  .schedule-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .provider-card {
    grid-template-columns: 1fr;
  }
  .availability {
    border: 0;
    border-top: 1px solid #eee;
    margin-top: 20px;
    padding: 18px 0 0;
  }
  .provider-profile img {
    width: 100px;
    height: 100px;
    flex-basis: 100px;
  }
  .summary-body,
  .field-grid {
    grid-template-columns: 1fr;
  }
  .address-row {
    grid-template-columns: 1fr;
  }
  .progress-inner {
    max-width: 390px;
  }
  .content h1 {
    font-size: 21px;
  }
  .provider-slots {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 500px) {
  .schedule-toolbar {
    grid-template-columns: 1fr;
  }
  .schedule-toolbar label {
    width: 100%;
  }
  .simple-header {
    padding: 0 15px;
  }
  .content {
    width: calc(100% - 30px);
  }
  .content.narrow,
  .schedule-toolbar {
    width: calc(100% - 30px);
  }
  .provider-profile {
    gap: 12px;
  }
  .provider-profile button {
    margin-top: 18px;
  }
  .progress-step {
    width: 75px;
  }
  .book-button {
    padding: 10px 18px;
  }
  .summary-body {
    gap: 14px;
  }
}
