:root {
  --blue: #006bff;
  --blue-dark: #0055cc;
  --navy: #0b1f33;
  --slate: #476078;
  --muted: #6b7c8f;
  --line: #d9e1e8;
  --soft: #f5f8fa;
  --white: #ffffff;
  --brass: #a77e45;
  --danger: #d92d20;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #f7f9fb;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--navy);
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 107, 255, 0.045), transparent 34%),
    #f7f9fb;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(0, 107, 255, 0.28);
  outline-offset: 2px;
}

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

.scheduler {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 64px 32px;
}

.scheduler-card {
  display: grid;
  width: min(1080px, 100%);
  min-height: 700px;
  grid-template-columns: 370px minmax(0, 1fr);
  overflow: hidden;
  background: var(--white);
  border: 1px solid #d7dfe6;
  border-radius: 8px;
  box-shadow: 0 3px 15px rgba(20, 38, 55, 0.12);
}

.event-summary {
  position: relative;
  padding: 34px 31px 40px;
  border-right: 1px solid var(--line);
}

.scheduler-wordmark {
  display: inline-block;
  margin-bottom: 64px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.035em;
}

.scheduler-wordmark span {
  color: var(--brass);
}

.event-kicker {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.event-summary h1 {
  margin: 0;
  color: var(--navy);
  font-size: 28px;
  font-weight: 750;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.event-facts {
  display: grid;
  gap: 16px;
  margin: 28px 0;
}

.event-facts p,
.time-zone div {
  display: flex;
  margin: 0;
  align-items: flex-start;
  gap: 11px;
  color: #334b62;
  font-size: 14px;
  font-weight: 650;
}

.fact-icon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 1px;
}

.icon-clock,
.icon-globe {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.icon-clock::before {
  position: absolute;
  width: 1.5px;
  height: 5px;
  top: 3px;
  left: 7px;
  content: "";
  background: currentColor;
}

.icon-clock::after {
  position: absolute;
  width: 4px;
  height: 1.5px;
  top: 8px;
  left: 7px;
  content: "";
  background: currentColor;
  transform: rotate(25deg);
  transform-origin: left center;
}

.icon-calendar {
  border: 2px solid currentColor;
  border-radius: 2px;
}

.icon-calendar::before {
  position: absolute;
  height: 2px;
  inset: 3px 0 auto;
  content: "";
  background: currentColor;
}

.icon-globe::before {
  position: absolute;
  inset: 3px 6px;
  content: "";
  border-right: 1px solid currentColor;
  border-left: 1px solid currentColor;
  border-radius: 50%;
}

.event-description {
  margin: 30px 0 0;
  color: #31485e;
  font-size: 16px;
  line-height: 1.6;
}

.back-button {
  position: absolute;
  width: 44px;
  height: 44px;
  top: 25px;
  left: 30px;
  padding: 0;
  color: var(--blue);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.event-summary:has(.back-button:not([hidden])) .scheduler-wordmark {
  visibility: hidden;
}

.booking-content {
  min-width: 0;
  padding: 31px 32px 40px;
}

.booking-content h2 {
  margin: 0 0 31px;
  color: var(--navy);
  font-size: 22px;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.date-time-layout {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) 270px;
  gap: 27px;
}

.month-controls {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  margin-bottom: 22px;
}

.month-controls h3 {
  margin: 0;
  text-align: center;
  font-size: 15px;
  font-weight: 750;
}

.month-controls button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  color: var(--blue);
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.month-controls button:hover:not(:disabled) {
  background: #eef5ff;
}

.month-controls button:disabled {
  color: #aab7c3;
  cursor: default;
}

.weekday-row,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.weekday-row {
  margin-bottom: 9px;
}

.weekday-row span {
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  font-weight: 650;
}

.calendar-grid {
  gap: 5px 4px;
}

.calendar-cell {
  display: grid;
  min-width: 0;
  aspect-ratio: 1;
  place-items: center;
}

.calendar-day {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  color: var(--navy);
  background: #f1f6ff;
  border: 0;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.calendar-day:hover {
  background: #dbeaff;
}

.calendar-day.is-selected {
  color: #fff;
  background: var(--blue);
}

.calendar-day:disabled {
  color: #b8c2cb;
  background: transparent;
  cursor: default;
}

.time-zone {
  margin-top: 30px;
}

.time-zone > p {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 750;
}

.time-zone div {
  align-items: center;
  font-weight: 500;
}

.times-pane h3 {
  min-height: 42px;
  margin: 4px 0 18px;
  font-size: 16px;
  font-weight: 500;
}

.time-list {
  display: grid;
  gap: 11px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #c6d2dd transparent;
}

.time-choice {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.time-choice.is-selected {
  grid-template-columns: 1fr 1fr;
}

.time-button,
.next-button {
  min-height: 52px;
  padding: 0 12px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.time-button {
  color: var(--blue);
  background: #fff;
  border: 1px solid var(--blue);
}

.time-button:hover:not(:disabled) {
  background: #f3f8ff;
  border-width: 2px;
}

.time-choice.is-selected .time-button {
  color: #fff;
  background: #6f7f8e;
  border-color: #6f7f8e;
}

.next-button,
.primary-button {
  color: #fff;
  background: var(--blue);
  border: 1px solid var(--blue);
}

.next-button:hover,
.primary-button:hover:not(:disabled) {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.view-details {
  max-width: 530px;
}

.view-details h2 {
  margin-bottom: 24px;
}

.form-field {
  margin-bottom: 23px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 650;
}

.form-field input,
.form-field select {
  width: 100%;
  min-height: 54px;
  padding: 0 13px;
  color: var(--navy);
  background: #fff;
  border: 1px solid #aebdca;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 130ms ease, box-shadow 130ms ease;
}

.form-field select {
  padding-right: 42px;
}

.form-field input:hover,
.form-field select:hover {
  border-color: #7f93a5;
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
  outline: 0;
}

.form-field.has-error input,
.form-field.has-error select {
  border-color: #c9362b;
}

.field-error {
  min-height: 0;
  margin: 6px 0 0;
  color: #b42318;
  font-size: 13px;
}

.honeypot {
  position: absolute;
  left: -10000px;
}

.form-status {
  min-height: 22px;
  margin: 0 0 12px;
  color: #b42318;
  font-size: 14px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
}

.primary-button {
  cursor: pointer;
}

.primary-button:disabled {
  opacity: 0.64;
  cursor: wait;
}

.view-confirmation {
  max-width: 520px;
  padding-top: 52px;
  text-align: center;
}

.confirmation-mark {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 22px;
  place-items: center;
  color: #fff;
  background: var(--danger);
  border-radius: 50%;
  font-size: 36px;
  font-weight: 500;
  line-height: 1;
}

.confirmation-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.view-confirmation h2 {
  margin-bottom: 18px;
  font-size: 30px;
}

.view-confirmation > p:not(.confirmation-kicker) {
  margin: 0 0 16px;
  color: var(--slate);
}

.view-confirmation .confirmation-important {
  color: var(--navy);
  font-size: 18px;
  font-weight: 750;
}

.secondary-button {
  margin-top: 16px;
  color: var(--blue);
  border: 1px solid var(--blue);
}

.secondary-button:hover {
  background: #f2f7ff;
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .scheduler {
    padding: 24px;
  }

  .scheduler-card {
    grid-template-columns: 1fr;
  }

  .event-summary {
    padding: 28px 28px 30px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .scheduler-wordmark {
    margin-bottom: 36px;
  }

  .event-description {
    max-width: 620px;
  }

  .back-button {
    top: 20px;
    left: 27px;
  }

  .booking-content {
    padding: 30px 28px 38px;
  }
}

@media (max-width: 680px) {
  .scheduler {
    display: block;
    padding: 0;
  }

  .scheduler-card {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .event-summary {
    padding: 23px 20px 25px;
  }

  .scheduler-wordmark {
    margin-bottom: 30px;
    font-size: 20px;
  }

  .event-summary h1 {
    font-size: 24px;
  }

  .event-description {
    display: none;
  }

  .booking-content {
    padding: 26px 20px 42px;
  }

  .date-time-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .times-pane h3 {
    min-height: auto;
    margin-top: 0;
  }

  .time-list {
    max-height: none;
  }

  .calendar-day {
    width: 39px;
    height: 39px;
  }

  .view-details,
  .view-confirmation {
    max-width: none;
  }

  .view-confirmation {
    padding-top: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
