/* Scheduler refinements from the July 2026 UI/UX audit. */
:root {
  --scheduler-focus: #f1d5a8;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--scheduler-focus) !important;
  outline-offset: 3px !important;
}

.booking-header a,
.progress button,
.service-option,
.date-option,
.window-option,
.action-button,
.choice-button {
  min-height: 48px;
}

.phone-pill {
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #202116;
  box-shadow: 0 10px 28px rgba(214,166,101,.2);
}

.direct-note--urgent {
  display: flex !important;
}

.direct-note--urgent strong {
  font-size: 14px;
}

.direct-note--urgent p {
  color: #f4ead2;
  font-size: 12px;
  line-height: 1.55;
}

.progress button {
  border-radius: 10px;
}

.progress button:not([disabled]):hover {
  background: rgba(255,255,255,.04);
}

.progress button[disabled] {
  cursor: not-allowed;
}

.scheduler-topline {
  scroll-margin-top: 20px;
}

.scheduler-announcement:not(:empty) {
  font-size: .95rem;
}

.loading-panel[aria-busy="true"] {
  min-height: 360px;
}

.error-panel .action-button.primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #202116;
}

@media (max-width: 1050px) {
  .booking-layout {
    gap: 24px;
  }

  .booking-intro {
    max-width: 720px;
    padding-top: 24px;
    padding-bottom: 0;
  }

  .booking-intro h1 {
    max-width: 720px;
  }

  .direct-note:not(.direct-note--urgent) {
    display: none;
  }

  .direct-note--urgent {
    max-width: 720px;
    margin-top: 24px;
  }
}

@media (max-width: 720px) {
  .booking-layout {
    padding-top: clamp(132px, 18vh, 180px);
  }

  .booking-intro {
    padding-inline: 3px;
  }

  .booking-intro h1 {
    margin-bottom: 16px;
    font-size: clamp(41px, 11.5vw, 52px);
    line-height: 1;
  }

  .intro-copy {
    color: #e5ecee;
    font-size: 14px;
    line-height: 1.55;
  }

  .intro-trust span {
    font-size: 11px;
  }

  .direct-note--urgent {
    margin-top: 20px;
    padding: 15px;
    border-radius: 16px;
  }

  .scheduler-shell {
    border-radius: 23px;
  }

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

  .live-help-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    width: max-content;
  }

  .progress {
    gap: 4px;
  }

  .progress button {
    min-height: 52px;
    padding: 7px 4px;
    text-align: center;
  }

  .progress button span {
    font-size: 9px;
  }

  .progress button strong {
    font-size: 11px;
    line-height: 1.2;
  }

  .scheduler-stage {
    min-height: 0;
  }

  .service-option {
    min-height: 142px;
  }

  .mobile-actions {
    grid-template-columns: 1fr 1fr;
    padding: 6px;
    gap: 6px;
  }

  .mobile-actions a {
    min-height: 52px;
    border-radius: 13px;
    font-size: 12px;
  }

  .mobile-actions a:first-child {
    color: #202116;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
  }

  .mobile-actions .mobile-live {
    border: 1px solid rgba(241,213,168,.28);
    color: var(--gold-light);
    background: rgba(255,255,255,.025);
  }
}

@media (max-width: 430px) {
  .booking-header {
    width: calc(100% - 20px);
  }

  .brand {
    min-width: 0;
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .phone-pill {
    flex: 0 0 auto;
    padding-inline: 10px;
    font-size: 9.5px;
  }

  .booking-layout {
    padding-inline: 10px;
  }

  .scheduler-topline,
  .progress,
  .scheduler-stage {
    padding-inline: 14px;
  }

  .progress-line {
    margin-inline: 14px;
  }

  .step-panel h2 {
    font-size: 30px;
  }
}

@media (max-width: 375px) {
  .brand-mark {
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
  }

  .brand-copy strong {
    font-size: 10.5px;
  }

  .brand-copy small {
    font-size: 6.5px;
  }

  .phone-pill {
    max-width: 122px;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }

  .intro-trust {
    display: grid;
    grid-template-columns: 1fr;
  }

  .progress button strong {
    font-size: 9px;
  }

  .service-options {
    grid-template-columns: 1fr;
  }

  .service-option.full {
    grid-column: auto;
  }
}

@media (hover: none) {
  .service-option:hover,
  .date-option:hover,
  .window-option:hover,
  .action-button:hover {
    transform: none !important;
  }
}
