/* Static-hosting fallbacks for the preserved HB Windows site. */
@media screen and (min-width: 1280px) {
  #MainstageV1 .anm_hlf-r,
  #MainstageV1 .anm_seq-itm > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

.hb-appt {
  padding-top: 92px;
  padding-bottom: 112px;
}

.hb-appt > .mn_wd {
  width: 86%;
  max-width: 1640px;
  background: #fff;
}

.hb-appt .pd_h {
  padding-left: clamp(34px, 5.4vw, 130px);
  padding-right: clamp(34px, 5.4vw, 130px);
}

.hb-appt .scd-hd {
  padding-top: 24px;
  padding-bottom: 18px;
}

.hb-appt .scd-rs {
  min-height: 420px;
  padding-top: 40px;
  padding-bottom: 24px;
}

.hb-appt button {
  border: 0;
  cursor: pointer;
}

.hb-appt button[hidden] {
  display: none !important;
}

.hb-appt button svg {
  width: 22px;
  height: 22px;
  margin-left: 16px;
}

.hb-appt .hb-appt-back svg {
  margin: 0 16px 0 0;
}

.hb-appt-progress {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.hb-appt-progress li {
  position: relative;
  padding: 16px 10px;
  border-bottom: 3px solid #e1e1e1;
  color: #aaa;
  text-align: center;
}

.hb-appt-progress li.is-active,
.hb-appt-progress li.is-complete {
  border-bottom-color: #426bd0;
  color: #426bd0;
}

.hb-appt-panel {
  display: none;
  max-width: 1030px;
  margin: 0 auto;
}

.hb-appt-panel.is-active {
  display: block;
}

.hb-appt-panel h1 {
  max-width: 760px;
  margin: 0 auto 28px;
  padding-bottom: 21px;
  border-bottom: 4px solid #dedede;
  font-size: 2.85rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.hb-appt-fields {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px 16px;
  max-width: 1030px;
  margin: 0 auto;
  text-align: left;
}

.hb-appt-fields-compact {
  max-width: 760px;
  margin: 0 auto;
}

.hb-appt-field {
  display: grid;
  grid-column: span 3;
  gap: 8px;
}

.hb-appt-field-wide {
  grid-column: span 6;
}

.hb-appt-field-third {
  grid-column: span 2;
}

.hb-appt-field b {
  color: #d43b45;
}

.hb-appt-field span {
  font-size: 0.9rem;
  line-height: 1.35;
}

.hb-appt-field input,
.hb-appt-field select,
.hb-appt-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 15px;
  border: 3px solid #dedede;
  border-radius: 4px;
  background: #fff;
  color: #292929;
  font: inherit;
}

.hb-appt-field textarea {
  min-height: 108px;
  resize: vertical;
}

.hb-appt-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.hb-appt-options label {
  position: relative;
}

.hb-appt-options input {
  position: absolute;
  opacity: 0;
}

.hb-appt-options span {
  display: flex;
  min-height: 62px;
  align-items: center;
  padding: 14px 18px;
  border: 3px solid #dedede;
  border-radius: 4px;
  background: #fff;
  color: #17328f;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.hb-appt-options input:checked + span {
  border-color: #426bd0;
  background: #426bd0;
  color: #fff;
}

.hb-appt-note {
  max-width: 760px;
  margin: 28px auto 0;
}

.hb-appt-summary {
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid #ddd;
  text-align: left;
}

.hb-appt-summary div {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid #ddd;
}

.hb-appt-consent {
  display: flex;
  gap: 12px;
  max-width: 900px;
  margin: 28px auto 0;
  text-align: left;
}

.hb-appt-consent input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.hb-appt-actions {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  padding: 0 0 28px;
}

.hb-appt-actions button,
.hb-appt-top-next {
  display: inline-flex;
  align-items: center;
}

.hb-appt-status {
  min-height: 28px;
  margin: 20px 0 0;
  color: #17328f;
  font-weight: 700;
}

.pac-container {
  z-index: 100000 !important;
  font-family: var(--fnt-m), Arial, sans-serif;
}

body.hb-appt-hide-places .pac-container {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media screen and (max-width: 1279px) {
  .hb-appt-top-next {
    display: none !important;
  }

  .hb-appt-progress {
    overflow-x: auto;
    grid-template-columns: repeat(5, minmax(130px, 1fr));
  }

  .hb-appt .scd-rs {
    min-height: 0;
  }
}

@media screen and (max-width: 700px) {
  .hb-appt-fields,
  .hb-appt-options {
    grid-template-columns: 1fr;
  }

  .hb-appt-field,
  .hb-appt-field-wide,
  .hb-appt-field-third {
    grid-column: 1;
  }

  .hb-appt-summary div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .hb-appt-actions {
    justify-content: space-between;
  }
}
