.schedule-open {
  font-family: inherit;
  color: inherit;
  cursor: pointer;
}

nav .schedule-open {
  background: rgba(255, 255, 255, .04);
}

.nav-contact-group {
  position: relative;
  display: block;
}

.nav-phone {
  position: absolute;
  top: calc(100% + 22px);
  right: 10px;
  white-space: nowrap;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .025em;
  transition: color .2s ease;
}

.nav-phone:hover {
  color: #c9b2ff;
}

.hero .schedule-open {
  color: #fff;
}

.hero .button {
  min-height: 54px;
  align-items: center;
  font-size: 14px;
  line-height: 1;
}

.hero .eyebrow {
  color: #287383;
}

.schedule-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 0;
  background: #eef2f1;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

.schedule-modal.open {
  opacity: 1;
  visibility: visible;
}

.schedule-window {
  position: relative;
  width: 100%;
  height: 100svh;
  max-height: none;
  overflow: hidden;
  border-radius: 0;
  background: #eef2f1;
  color: #17313a;
  transform: translateY(14px) scale(.985);
  transition: transform .25s ease;
}

.schedule-modal.open .schedule-window {
  transform: none;
}

.schedule-scroll {
  width: min(980px, 100%);
  height: 100svh;
  max-height: none;
  margin: 0 auto;
  overflow-y: auto;
  padding: 42px 46px 48px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.schedule-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.schedule-close {
  position: fixed;
  z-index: 5;
  top: 22px;
  right: 22px;
  width: 43px;
  height: 43px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .4);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.schedule-close:hover {
  background: #17313a;
  transform: rotate(90deg);
}

.schedule-modal h2 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.02;
}

.schedule-intro {
  max-width: 720px;
  margin: 12px 0 20px;
  color: #587078;
}

.scheduler {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 10px;
}

.calendar-panel,
.time-panel,
.conversation-form {
  border-radius: 21px;
  background: #edf4f3;
}

.calendar-panel,
.time-panel {
  padding: 20px;
}

.calendar-header {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.calendar-header strong {
  text-align: center;
  font-size: 17px;
  font-weight: 600;
}

.calendar-header button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #17313a;
  font-size: 23px;
  cursor: pointer;
}

.calendar-header button:hover:not(:disabled) {
  background: #c9b2ff;
}

.calendar-header button:disabled {
  opacity: .28;
  cursor: default;
}

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

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

.calendar-weekdays span {
  text-align: center;
  color: #789097;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.calendar-day {
  aspect-ratio: 1;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, .8);
  color: #17313a;
  font-size: 12px;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.calendar-day:hover:not(:disabled) {
  background: #c9b2ff;
  transform: translateY(-1px);
}

.calendar-day.selected {
  background: #c9b2ff;
  font-weight: 600;
}

.calendar-day:disabled {
  opacity: .24;
  cursor: default;
}

.calendar-day.empty {
  background: transparent;
}

.time-panel {
  display: flex;
  flex-direction: column;
}

.schedule-step {
  display: block;
  margin-bottom: 8px;
  color: #287383;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .13em;
}

.selected-date,
.conversation-form > strong {
  display: block;
  font-size: 19px;
  font-weight: 500;
}

.schedule-time-zone {
  margin: 7px 0 0;
  color: #71868c;
  font-size: 11px;
  line-height: 1.35;
}

.time-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.time-slot {
  border: 1px solid rgba(23, 49, 58, .14);
  border-radius: 999px;
  padding: 11px 8px;
  background: rgba(255, 255, 255, .72);
  color: #17313a;
  font-size: 11px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.time-slot:hover,
.time-slot.selected {
  border-color: #c9b2ff;
  background: #c9b2ff;
}

.time-placeholder {
  grid-column: 1 / -1;
  color: #71868c;
  font-size: 13px;
}

.conversation-form {
  margin-top: 12px;
  padding: 20px;
}

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

.conversation-form label {
  color: #287383;
}

.conversation-form input,
.conversation-form textarea {
  border-bottom-color: rgba(23, 49, 58, .2);
  color: #17313a;
}

.conversation-form input:focus,
.conversation-form textarea:focus {
  border-bottom-color: #c58f61;
}

.schedule-summary {
  margin: 16px 0;
  color: #526a72;
  font-size: 13px;
}

.schedule-confirmation {
  margin-top: 16px;
  color: #287383;
  font-size: 13px;
  font-weight: 600;
}

.schedule-expectation {
  max-width: 680px;
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(23, 49, 58, .13);
  color: #526a72;
  font-size: 12px;
  line-height: 1.55;
}

body.schedule-modal-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .schedule-modal {
    width: 100vw;
    max-width: 100vw;
    padding: 0;
    overflow: hidden;
  }
  .schedule-window {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 100svh;
    max-height: none;
    border-radius: 0;
    transform: none !important;
  }
  .schedule-scroll {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 100svh;
    max-height: none;
    padding: 48px 18px 24px;
    overflow-x: hidden;
  }
  .schedule-close { top: 11px; right: 11px; }
  .scheduler {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }
  .calendar-panel,
  .time-panel,
  .conversation-form {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 18px;
    transform: none !important;
    translate: none !important;
  }
  .calendar-header,
  .calendar-weekdays,
  .calendar-days,
  .time-list,
  .form-grid {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .calendar-weekdays,
  .calendar-days {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
  .calendar-day {
    width: 100%;
    min-width: 0;
    padding: 0;
  }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .schedule-modal h2,
  .schedule-modal p,
  .schedule-modal strong,
  .schedule-modal label {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .schedule-modal h2 { font-size: 36px; }
}
