/****************************************************
 * SVH – UNIFIED UI STYLESHEET (WCAG 2.1 AA)
 * Cards, Inputs, Buttons, Text, Layout
 ****************************************************/

/* ----------------------------------------------
   GLOBAL TEXT COLOR (MAXIMUM CONTRAST)
---------------------------------------------- */
.svh-setup-wizard,
.svh-wizard-step,
.svh-wizard-step h2,
.svh-wizard-step h3,
.svh-wizard-step p,
.svh-wizard-step label,
.svh-wizard-complete,
.svh-wizard-complete h3 {
    color: #000000 !important;
}

/* ----------------------------------------------
   CONTAINER
---------------------------------------------- */
.svh-setup-wizard {
    max-width: 900px;
    margin: 0 auto;
    font-size: 16px;
}

/* ----------------------------------------------
   TITLES & SUBTITLES
---------------------------------------------- */
.svh-setup-wizard h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 10px;
}

.svh-setup-wizard h2 + p {
    text-align: center;
    color: #000000;
    font-size: 16px;
    margin-bottom: 40px;
}

/* ----------------------------------------------
   CARD / STEP BLOCKS
---------------------------------------------- */
.svh-wizard-step {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    text-align: left;
}

.svh-wizard-step h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.svh-wizard-step p {
    margin: 0 0 14px;
    font-size: 14px;
}

/* ----------------------------------------------
   FORM INPUTS (HIGH CONTRAST, WCAG COMPLIANT)
---------------------------------------------- */
.svh-wizard-step input[type="text"],
.svh-wizard-step input[type="number"],
.svh-wizard-step input[type="email"],
.svh-wizard-step input[type="url"],
.svh-wizard-step textarea,
.svh-wizard-step select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #4a4a4a; /* charcoal for contrast */
    border-radius: 8px;
    font-size: 15px;
    background: #fafafa;
    margin-top: 6px;
    box-sizing: border-box;
    color: #000000;
}

.svh-wizard-step textarea {
    min-height: 90px;
    resize: vertical;
}

.svh-wizard-step label {
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.svh-wizard-step form p {
    margin-bottom: 16px;
}

/* ----------------------------------------------
   INPUT FOCUS RING (ACCESSIBILITY)
---------------------------------------------- */
.svh-wizard-step input:focus,
.svh-wizard-step textarea:focus,
.svh-wizard-step select:focus {
    outline: 2px solid #003A8C; /* darker cobalt */
    outline-offset: 2px;
    background: #ffffff;
}

/* ----------------------------------------------
   BUTTONS (COBALT BLUE, WCAG AA)
---------------------------------------------- */
.svh-button {
    display: inline-block;
    padding: 10px 18px;
    background: #0047AB; /* cobalt blue */
    color: #FFFFFF !important;
    border-radius: 6px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.svh-button:hover,
.svh-button:focus {
    background: #003A8C; /* darker cobalt */
    outline: 2px solid #003A8C;
    outline-offset: 2px;
}

/* ----------------------------------------------
   COMPLETION PANEL
---------------------------------------------- */
.svh-wizard-complete {
    margin-top: 30px;
    padding: 24px;
    background: #e8f7e8;
    border: 1px solid #c6e6c6;
    border-radius: 12px;
    text-align: center;
}

.svh-wizard-complete h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* Hide ACF fields marked with acf-hide */
.acf-hide {
    display: none !important;
}

/* Increase spacing between ACF fields on management pages */
.svh-setup-wizard .acf-field {
    margin-bottom: 24px !important;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

/* Remove border on last field */
.svh-setup-wizard .acf-field:last-child {
    border-bottom: none;
}

/* Match label spacing to other manager pages */
.svh-setup-wizard .acf-field label {
    margin-bottom: 6px !important;
    display: block;
    font-weight: 600;
}

/* Match input/textarea spacing */
.svh-setup-wizard .acf-field input[type="text"],
.svh-setup-wizard .acf-field textarea,
.svh-setup-wizard .acf-field input[type="url"],
.svh-setup-wizard .acf-field input[type="email"] {
    margin-top: 4px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    width: 100%;
}

/* ----------------------------------------------
   LOCATION MANAGER – CARD LAYOUT
---------------------------------------------- */
.svh-location-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Header: title + Edit button */
.svh-location-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.svh-location-card-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

/* Body spacing */
.svh-location-card-body div {
    margin-bottom: 8px;
    font-size: 15px;
}

/* ----------------------------------------------
   SECONDARY BUTTON (Edit)
---------------------------------------------- */
.svh-button-secondary {
    display: inline-block;
    padding: 8px 14px;
    background: #ffffff;
    color: #0047AB !important;
    border: 2px solid #0047AB;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.svh-button-secondary:hover,
.svh-button-secondary:focus {
    background: #EBF2FF;
    border-color: #003A8C;
    color: #003A8C !important;
}

/* ----------------------------------------------
   EDIT LOCATION – CARD LAYOUT
---------------------------------------------- */
.svh-location-edit-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

/* Header row: title + back button */
.svh-location-edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.svh-location-edit-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

/* Body spacing */
.svh-location-edit-body label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.svh-location-edit-body input[type="text"],
.svh-location-edit-body input[type="url"],
.svh-location-edit-body input[type="email"],
.svh-location-edit-body textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #4a4a4a;
    border-radius: 8px;
    background: #fafafa;
    margin-bottom: 16px;
    box-sizing: border-box;
}

/* Save button alignment */
.svh-location-edit-actions {
    margin-top: 20px;
}

/* Practice Landing Page – Hero Image */
.svh-practice-photo {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 32px auto;
    overflow: hidden;
    border-radius: 16px;
}

.svh-practice-photo img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 16px;
}

/* Practice Landing Page – Typography & Layout */
.svh-practice-landing {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.svh-practice-landing h1.svh-practice-name {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 24px;
}

.svh-practice-landing p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 18px;
}

/* Practice Landing – Providers & Locations */
.svh-practice-landing .svh-practice-providers,
.svh-practice-landing .svh-practice-locations {
    margin: 32px 0 24px;
}

.svh-practice-landing .svh-section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.svh-practice-landing .svh-provider-card,
.svh-practice-landing .svh-location-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 14px;
}

.svh-practice-landing .svh-provider-name {
    font-size: 20px;
    margin: 0 0 8px;
}

.svh-practice-landing .svh-provider-credentials {
    font-weight: 500;
    opacity: 0.9;
}

.svh-practice-landing .svh-provider-locations {
    font-size: 15px;
    margin-top: 6px;
}

.svh-provider-schedule-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 20px;
    background: #0047AB;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s ease;
}
.svh-provider-schedule-btn:hover,
.svh-provider-schedule-btn:focus {
    background: #003080;
    color: #ffffff;
    text-decoration: none;
    outline: 2px solid #003080;
    outline-offset: 2px;
}

.svh-practice-landing .svh-location-name {
    font-size: 18px;
    margin: 0 0 10px;
}

.svh-practice-landing .svh-location-address,
.svh-practice-landing .svh-location-phone,
.svh-practice-landing .svh-location-hours {
    margin: 6px 0;
    font-size: 15px;
}

.svh-practice-landing .svh-practice-map {
    margin: 20px 0;
}

/* CTA Button */
.svh-practice-cta .svh-button {
    display: inline-block;
    padding: 14px 28px;
    background-color: #2A6EF2;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.svh-practice-cta .svh-button:hover {
    background-color: #1f54b8;
}

/* Remove ACF's default grey submit wrapper */
.acf-form-submit {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

/* Hide ACF's default empty submit button */
.acf-form-submit input[type="submit"][value=""] {
    display: none !important;
}

.svh-patient-info-wrapper input,
.svh-patient-info-wrapper select {
    height: 48px;
    padding: 10px 14px;
    font-size: 16px;
    border-radius: 6px;
}

.svh-patient-info-wrapper textarea {
    min-height: 120px;
    padding: 12px 14px;
    font-size: 16px;
    border-radius: 6px;
}

/* Page container spacing */
.svh-patient-info-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

/* Practice header spacing */
.svh-patient-info-header {
  margin-bottom: 28px; /* creates separation from form */
}

/* Practice name (top anchor) */
.svh-practice-name {
  margin: 0 0 6px;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* “Patient Information” label */
.svh-patient-info-kicker {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
  opacity: 0.85;
}

/* Card interior spacing */
.svh-patient-info-card {
  padding: 24px 24px 20px;
}

/* Section title inside form */
.svh-page-title {
  margin: 0 0 18px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
}

/* Field spacing rhythm */
.svh-label {
  display: block;
  margin: 16px 0 6px;
  font-size: 14px;
  font-weight: 600;
}

/* Input height + readability */
.svh-input {
  width: 100%;
  height: 48px;
  padding: 10px 14px;
  font-size: 16px;
  border-radius: 8px;
}

/* Consent text spacing */
.svh-consent-message {
  margin: 18px 0 16px;
  font-size: 14px;
  line-height: 1.45;
  opacity: 0.85;
}

/* Button breathing room */
#svh-patient-info-continue {
  margin-top: 8px;
}

/* ============================================================
   VISIT DETAILS – MATCHED TO PATIENT INFO VISUAL LANGUAGE
   (Card, sections, selects, radio group, button)
============================================================ */

/* Page container */
.svh-visit-details-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

/* Step label ("Visit Details") */
.svh-step-label {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
  opacity: 0.85;
  margin-bottom: 16px;
}

/* Card wrapper */
.svh-visit-details-wrapper {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  padding: 24px 24px 20px;
}

/* Sections inside card */
.svh-section {
  margin-bottom: 18px;
}

/* Labels (reuse .svh-label base) */
.svh-section .svh-label {
  margin: 12px 0 6px;
}

/* Reason for visit display */
#svh-reason-display {
  padding: 10px 14px;
  border-radius: 8px;
  background: #f3f4f6;
  font-size: 15px;
}

/* Selects */
.svh-select {
  width: 100%;
  height: 48px;
  padding: 10px 14px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #4a4a4a;
  background: #fafafa;
  box-sizing: border-box;
}

/* Focus state for selects */
.svh-select:focus {
  outline: 2px solid #003A8C;
  outline-offset: 2px;
  background: #ffffff;
}

/* Radio group */
.svh-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 8px;
}

.svh-radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  cursor: pointer;
}

.svh-radio-group input[type="radio"] {
  width: 16px;
  height: 16px;
}

/* Primary button on Visit Details */
.svh-primary-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 22px;
  background: #0047AB;
  color: #ffffff;
  border-radius: 8px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.svh-primary-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.svh-primary-btn:hover:not(:disabled),
.svh-primary-btn:focus-visible:not(:disabled) {
  background: #003A8C;
  outline: 2px solid #003A8C;
  outline-offset: 2px;
}

/* ============================================================
   SCHEDULE PAGE
============================================================ */
.svh-schedule-page,
.svh-patient-info-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

.svh-schedule-wrapper {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  padding: 24px 24px 20px;
}

.svh-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  padding: 24px 24px 20px;
}

.svh-summary-block {
  margin-bottom: 20px;
}

.svh-summary-block h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.svh-date-picker,
.svh-time-slots {
  margin: 16px 0;
}

.svh-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.svh-date-grid,
.svh-date-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

/* First 8 dates: EXACTLY 4 per row on desktop; horizontal scroll on mobile */
.svh-initial-8-dates {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .svh-initial-8-dates {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }

  .svh-initial-8-dates .svh-date-btn {
    flex-shrink: 0;
    min-width: 90px;
    scroll-snap-align: start;
  }
}

.svh-date-btn,
.svh-time-btn {
  padding: 10px 16px;
  background: #FFFFFF;
  color: #000000;
  border: 1px solid #000000;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
}

.svh-date-btn:hover,
.svh-time-btn:hover {
  background: #F2F2F2;
  border-color: #000000;
}

/* Selected date/time: light blue background, dark blue border, dark text */
.svh-date-btn.active,
.svh-date-btn[aria-pressed="true"],
.svh-time-btn.active,
.svh-time-btn[aria-pressed="true"] {
  background: #E3F2FD;
  color: #000000;
  border: 2px solid #1565C0;
}

.svh-time-bucket {
  margin-bottom: 16px;
}

.svh-time-bucket-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.svh-time-buckets,
.svh-time-bucket-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* First 8 times: 4 per row; "View more times" appears BELOW the time buttons */
.svh-initial-8-times {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}
.svh-initial-8-times .svh-time-bucket-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.svh-initial-8-times .svh-times-toggle-wrap {
  margin-top: 4px;
}

/* Time buckets (Morning/Afternoon/Evening): EXACTLY 6 per row on desktop */
.svh-time-bucket-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

@media (max-width: 768px) {
  .svh-initial-8-times .svh-time-bucket-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }
  .svh-initial-8-times .svh-time-btn {
    flex-shrink: 0;
    min-width: 90px;
    scroll-snap-align: start;
  }
  .svh-time-bucket-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding-bottom: 8px;
  }
  .svh-time-bucket-grid .svh-time-btn {
    flex-shrink: 0;
    min-width: 90px;
  }
}

.svh-link-btn {
  display: inline-block;
  color: #0047AB;
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
  margin-top: 8px;
}

.svh-link-btn:hover {
  color: #003A8C;
}

.svh-no-availability {
  color: #545673;
  font-style: italic;
  padding: 16px 0;
}

.svh-more-dates {
  margin-top: 12px;
}

/* ============================================================
   REVIEW & CONFIRMATION
============================================================ */
.svh-review-wrapper,
.svh-confirmation-wrapper {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px;
}

.svh-section-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.svh-divider {
  height: 1px;
  background: #E5E7EB;
  margin: 24px 0;
}

.svh-success-banner {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 16px;
  border-radius: 6px;
  margin-bottom: 24px;
}

.svh-success-banner h2 {
  margin-bottom: 6px;
  font-size: 1.4rem;
  font-weight: 700;
}

.svh-secondary-btn {
  background: #ffffff;
  color: #0047AB;
  padding: 10px 14px;
  border-radius: 6px;
  border: 2px solid #0047AB;
  cursor: pointer;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
}

.svh-secondary-btn:hover {
  background: #EBF2FF;
  border-color: #003A8C;
  color: #003A8C;
}

/* Schedule: responsive layout */
.svh-scroll-row {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.svh-scroll-row::-webkit-scrollbar {
  height: 6px;
}

/* First 8 dates and first 8 times: 4 per row on desktop */
.svh-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

/* Expanded dates (Year/Month view) and time buckets: 6 per row on desktop */
.svh-grid-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

@media (max-width: 768px) {
  .svh-grid-4,
  .svh-grid-6 {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }

  .svh-grid-4 .svh-date-btn,
  .svh-grid-4 .svh-time-btn,
  .svh-grid-6 .svh-date-btn,
  .svh-grid-6 .svh-time-btn {
    flex-shrink: 0;
    min-width: 90px;
    scroll-snap-align: start;
  }
}

/* Focus states for WCAG (keyboard accessible) */
.svh-date-btn:focus-visible,
.svh-time-btn:focus-visible,
.svh-link-btn:focus-visible {
  outline: 2px solid #003A8C;
  outline-offset: 2px;
}

/* Year/Month rows: horizontal scroll on mobile */
.svh-year-row,
.svh-month-row {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 8px;
}

.svh-year-row .svh-date-btn,
.svh-month-row .svh-date-btn {
  flex-shrink: 0;
}

@media (min-width: 769px) {
  .svh-year-row,
  .svh-month-row {
    flex-wrap: wrap;
    overflow: visible;
  }
}
/* ── Patient Info: multi-step form ─────────────────────────────── */
.svh-pi-part--hidden { display: none; }

.svh-pi-step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  gap: 0;
}

.svh-pi-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.svh-pi-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #545673;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.svh-pi-step--active .svh-pi-step-num {
  background: #0047AB;
  color: #fff;
}

.svh-pi-step--done .svh-pi-step-num {
  background: #0047AB;
  color: #fff;
  opacity: 0.65;
}

.svh-pi-step-name {
  font-size: 11px;
  color: #545673;
  white-space: nowrap;
}

.svh-pi-step--active .svh-pi-step-name {
  color: #0047AB;
  font-weight: 600;
}

.svh-pi-step-line {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  min-width: 32px;
  max-width: 80px;
  margin-bottom: 16px;
}

/* ── Address row grid ────────────────────────────────────────────── */
.svh-address-row {
  display: grid;
  grid-template-columns: 1fr 80px 120px;
  gap: 12px;
  align-items: end;
}

@media (max-width: 480px) {
  .svh-address-row {
    grid-template-columns: 1fr;
  }
}

/* ── Billing section ─────────────────────────────────────────────── */
.svh-billing-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.svh-billing-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.svh-billing-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: #1e293b;
}

.svh-optional-badge {
  font-size: 11px;
  font-weight: 500;
  color: #545673;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 2px 8px;
}

.svh-billing-hint {
  font-size: 13px;
  color: #545673;
  margin-bottom: 14px;
}

.svh-radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.svh-radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  cursor: pointer;
}

.svh-insurance-fields {
  margin-top: 12px;
}

.svh-hidden { display: none; }

.svh-required { color: #b00020; }

.svh-optional-text {
  font-size: 12px;
  color: #545673;
  font-weight: 400;
}

.svh-field-hint {
  font-size: 12px;
  color: #4b5563;
  margin: 4px 0 12px;
  line-height: 1.4;
}

.svh-pi-part3-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.svh-skip-btn {
  background: transparent;
  border: none;
  color: #0047AB;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px 0;
  text-align: center;
}

.svh-skip-btn:hover { color: #003A8C; }

/* ----------------------------------------------------------
   Staff Scheduling Mode — pre-fill notice banner
   Shown at the top of the Patient Information page when a
   logged-in practice user is scheduling on behalf of a patient.
---------------------------------------------------------- */
.svh-staff-prefill-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #EBF2FF;
    border: 1.5px solid #0047AB;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
    color: #000000;
    font-size: 14px;
    line-height: 1.5;
}

.svh-staff-prefill-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #0047AB;
    margin-top: 2px;
}

.svh-staff-prefill-text {
    flex: 1;
    min-width: 0;
}

.svh-staff-prefill-text strong {
    display: inline;
    font-weight: 700;
    color: #000000;
}

/* ----------------------------------------------------------
   Returning Patient Lookup Block
   Collapsible section above the patient info form that lets
   a returning patient request a verification email.
---------------------------------------------------------- */
.svh-returning-patient-block {
    margin-bottom: 20px;
}

.svh-returning-patient-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #f4f6fb;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    padding: 12px 16px;
    width: 100%;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #111111;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    min-height: 44px;
}

.svh-returning-patient-toggle:hover {
    background: #eaf0ff;
    border-color: #0047AB;
}

.svh-returning-patient-toggle:focus-visible {
    outline: 3px solid #0047AB;
    outline-offset: 2px;
}

.svh-rp-chevron {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #0047AB;
    transition: transform 0.2s ease;
}

.svh-returning-patient-toggle[aria-expanded="true"] .svh-rp-chevron {
    transform: rotate(180deg);
}

.svh-returning-patient-fields {
    background: #f9fafb;
    border: 1.5px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 16px 16px 20px;
}

.svh-rp-hint {
    font-size: 13px;
    color: #334170;
    margin: 0 0 14px;
    line-height: 1.5;
}

.svh-rp-input-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.svh-rp-input-row .svh-input {
    flex: 1;
    min-width: 200px;
}

.svh-rp-input-row .svh-primary-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

.svh-rp-msg {
    margin-top: 12px;
    font-size: 14px;
    color: #111111;
    line-height: 1.5;
}

/* ----------------------------------------------------------
   Patient Verify Notice
   Shown when a patient arrives via a magic link.
---------------------------------------------------------- */
.svh-patient-verify-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #ecfdf5;
    border: 1.5px solid #16a34a;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #111111;
    line-height: 1.5;
}

.svh-patient-verify-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #16a34a;
    margin-top: 2px;
}

.svh-patient-verify-text strong {
    display: block;
    font-weight: 700;
    margin-bottom: 2px;
}

/* ============================================================
   EARLIEST AVAILABLE MODE — Slot Card List
   ============================================================ */
.svh-earliest-slots-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.svh-earliest-slot-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.15s;
    flex-wrap: wrap;
}

.svh-earliest-slot-card:hover {
    border-color: #0047AB;
}

.svh-earliest-slot-datetime {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 140px;
}

.svh-earliest-slot-date {
    font-size: 15px;
    font-weight: 700;
    color: #0047AB;
}

.svh-earliest-slot-time {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.3px;
}

.svh-earliest-slot-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 160px;
}

.svh-earliest-slot-provider {
    font-size: 15px;
    font-weight: 600;
    color: #111;
}

.svh-earliest-slot-location {
    font-size: 14px;
    color: #444;
}

.svh-earliest-slot-address {
    color: #666;
}

.svh-earliest-book-btn {
    margin-top: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

#svh-earliest-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    margin-top: 16px;
}

#svh-earliest-empty {
    color: #444;
    font-size: 15px;
    margin-top: 16px;
}

.svh-loading-text {
    color: #444;
    font-size: 15px;
    font-style: italic;
    padding: 12px 0;
}

@media (max-width: 600px) {
    .svh-earliest-slot-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .svh-earliest-book-btn {
        width: 100%;
        text-align: center;
    }
}

/* ── Waitlist opt-in (review page) ─────────────────────────────────── */
.svh-waitlist-optin {
    margin: 24px 0 20px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    padding: 16px 18px;
}
.svh-waitlist-optin-label {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    cursor: pointer;
}
.svh-waitlist-optin-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: #0047AB;
    cursor: pointer;
}
.svh-waitlist-optin-text {
    font-size: 14px;
    line-height: 1.5;
    color: #1e3a8a;
}
/* Waitlist heading on confirmation page */
.svh-waitlist-heading {
    font-size: 18px;
    color: #0047AB;
    margin: 0 0 8px;
}
.svh-waitlist-desc {
    font-size: 14px;
    color: #374151;
    margin: 0 0 14px;
}
/* Joined success state */
.svh-wl-joined {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 14px;
    color: #15803d;
}
.svh-wl-joined-icon {
    font-size: 20px;
}
/* Schedule page popover */
.svh-wl-popover-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9998;
}
.svh-wl-popover {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px 24px;
    width: min(520px, 92vw);
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.svh-wl-popover h3 {
    font-size: 20px;
    color: #0047AB;
    margin: 0;
}
.svh-wl-popover-desc {
    font-size: 14px;
    color: #374151;
    margin: 0;
}
.svh-wl-popover-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    color: #6b7280;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.svh-wl-popover-close:hover { color: #111; }
.svh-wl-popover-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}
/* Waitlist progressive-disclosure sub-areas */
.svh-wl-extra {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #bfdbfe;
}
.svh-wl-confirm-text {
    font-size: 13px;
    color: #15803d;
    font-weight: 600;
}
.svh-wl-inline-label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
    font-size: 13px;
    color: #1e3a8a;
    line-height: 1.5;
}
.svh-wl-inline-label input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: #0047AB;
    cursor: pointer;
}
.svh-wl-phone-prompt {
    font-size: 13px;
    color: #1e3a8a;
    margin: 0 0 8px;
}
.svh-wl-phone-input {
    display: block;
    width: 100%;
    max-width: 220px;
    padding: 8px 10px;
    border: 1px solid #93c5fd;
    border-radius: 6px;
    font-size: 14px;
    color: #111;
    background: #fff;
}
.svh-wl-phone-input:focus {
    outline: none;
    border-color: #0047AB;
    box-shadow: 0 0 0 2px rgba(0,71,171,0.15);
}

/* ----------------------------------------------
   PROVIDER LANDING PAGE
---------------------------------------------- */
.svh-provider-landing {
    max-width: 860px;
    margin: 0 auto;
    padding: 16px 16px 48px;
    color: #111;
    font-size: 16px;
    line-height: 1.6;
}
.svh-provider-landing-back {
    margin: 0 0 20px;
}
.svh-back-link {
    color: #0047AB;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}
.svh-back-link:hover {
    text-decoration: underline;
}
.svh-provider-landing-header {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.svh-provider-landing-photo {
    flex: 0 0 auto;
}
.svh-provider-landing-photo img {
    width: 180px;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
.svh-provider-landing-identity {
    flex: 1 1 260px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.svh-provider-landing-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111;
    margin: 0;
    line-height: 1.2;
}
.svh-provider-landing-creds {
    font-size: 1rem;
    font-weight: 400;
    color: #555;
    margin-left: 8px;
}
.svh-provider-landing-specialty {
    font-size: 1rem;
    color: #0047AB;
    font-weight: 600;
    margin: 0;
}
.svh-provider-landing-loc-preview {
    font-size: 0.9rem;
    color: #444;
    margin: 0;
}
.svh-provider-landing-cta-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 14px 28px;
    background: #0047AB;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
    align-self: flex-start;
}
.svh-provider-landing-cta-btn:hover,
.svh-provider-landing-cta-btn:focus {
    background: #003080;
    text-decoration: none;
    outline: 3px solid #93c5fd;
    outline-offset: 2px;
}
.svh-provider-landing-bio {
    margin-bottom: 40px;
}
.svh-provider-landing-bio h2,
.svh-provider-landing-locations h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 14px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 8px;
}
.svh-provider-landing-bio-text {
    color: #333;
    font-size: 1rem;
    line-height: 1.7;
}
.svh-provider-landing-bio-text p:first-child {
    margin-top: 0;
}
.svh-provider-landing-locations {
    margin-bottom: 40px;
}
.svh-provider-location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.svh-provider-location-card {
    background: #f8f9fc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px 18px;
    font-size: 0.9rem;
    color: #333;
}
.svh-provider-location-card strong {
    display: block;
    font-size: 0.95rem;
    color: #111;
    margin-bottom: 6px;
}
.svh-provider-location-card p {
    margin: 4px 0 0;
}
.svh-provider-location-card a {
    color: #0047AB;
    text-decoration: none;
}
.svh-provider-location-card a:hover {
    text-decoration: underline;
}
.svh-provider-landing-cta-bottom {
    text-align: center;
    padding-top: 8px;
}
@media (max-width: 600px) {
    .svh-provider-landing-header {
        flex-direction: column;
        gap: 20px;
    }
    .svh-provider-landing-photo img {
        width: 140px;
        height: 170px;
    }
    .svh-provider-landing-name {
        font-size: 1.4rem;
    }
}

/* ----------------------------------------------
   PROVIDER LOCK NOTICE (visit-details page)
---------------------------------------------- */
.svh-provider-lock-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.95rem;
    color: #1e3a6e;
    margin-bottom: 4px;
}
.svh-lock-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ----------------------------------------------
   GROUP PARTICIPANTS — review & confirmation
---------------------------------------------- */
.svh-conf-pv-badge {
    display: inline-block;
    padding: 2px 10px;
    background: #ECFDF5;
    color: #065f46;
    border: 1px solid #6ee7b7;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    vertical-align: middle;
    margin-left: 8px;
}
.svh-conf-participants-note {
    font-size: 14px;
    color: #555;
    margin: 0 0 12px;
}

