@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --blue: #185cff;
  --blue-dark: #1048d8;
  --navy: #0b153d;
  --ink: #14213d;
  --muted: #687894;
  --soft-muted: #8794aa;
  --line: #dce4f0;
  --pale: #f3f6fb;
  --white: #fff;
  --gold: #f2b632;
  --green: #11805b;
  --red: #bd4e46;
  --shadow: 0 14px 40px rgba(17, 39, 78, .07);
  font-family: 'DM Sans', Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { min-height: 100%; scroll-behavior: smooth; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--pale);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea { font: inherit; }

button { -webkit-tap-highlight-color: transparent; }

[hidden] { display: none !important; }

.page-shell {
  width: min(100%, 1600px);
  margin: 0 auto;
  padding: 14px 16px 0;
}

.topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
  padding: 12px 22px;
  border: 1px solid #e7edf6;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.page-shell.status-lookup-view .topbar {
  justify-content: center;
}

.page-shell.status-lookup-view .brand {
  flex: 0 0 auto;
}

.page-shell.status-confirmation-view .topbar {
  justify-content: space-between;
}

.page-shell.status-confirmation-view .brand {
  flex: 1 1 auto;
}

.logout-button {
  min-width: 112px;
  gap: 8px;
  border-color: #efc7c4;
  background: #fff5f4;
  color: #b42318;
  text-decoration: none !important;
  line-height: 1;
}

.logout-button:hover {
  border-color: #d98c86;
  background: #ffe9e7;
  color: #8f1d15;
}

.logout-button svg {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.logout-button span {
  margin: 0;
}

.logout-button:focus-visible {
  outline: 3px solid rgba(180, 35, 24, .2);
  outline-offset: 2px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
  font: 800 16px/1 'Manrope', sans-serif;
  letter-spacing: -.06em;
}

.brand-copy { display: flex; flex-direction: column; gap: 3px; }
.brand-copy strong { font-size: 13px; letter-spacing: .055em; }
.brand-copy strong span { font-weight: 500; }
.brand-copy small { color: var(--muted); font-size: 9px; letter-spacing: .2em; }

.status-button,
.secondary-button,
.cancel-button,
.otp-button,
.primary-button,
.dialog-close {
  border: 0;
  cursor: pointer;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.status-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #d5e1ff;
  border-radius: 9px;
  background: #f4f7ff;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
}

.status-button span { margin-left: 8px; }

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, .9fr);
  align-items: start;
  gap: clamp(28px, 5vw, 76px);
  min-height: 660px;
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid #e7edf6;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.booking-main,
.preview-column { min-width: 0; }

.step-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.step-pill {
  padding: 6px 11px;
  border-radius: 40px;
  background: #eef4ff;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .045em;
}

.step-caption { color: var(--muted); font-size: 12px; }

.progress-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 25px;
}

.progress-segment { height: 4px; border-radius: 9px; background: #edf1f7; }
.progress-segment.active,
.progress-segment.completed { background: var(--blue); }

.section-intro { margin-bottom: 24px; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
}

h1,
h2,
h3,
h4,
p { margin-top: 0; }

.section-intro h1,
.preview-heading h2,
.dialog-header h2,
.status-dialog h2,
.thank-you-heading h2 {
  margin-bottom: 8px;
  color: var(--navy);
  font-family: 'Manrope', Arial, sans-serif;
  font-size: clamp(25px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.2;
}

.section-intro > p:last-child,
.preview-heading > p:last-child,
.dialog-header > div > p:last-child,
.status-dialog > p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  clip-path: inset(50%) !important;
}

.form-card {
  padding: clamp(18px, 2.5vw, 26px);
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(19, 42, 84, .045);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 18px;
}

.field { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.field label,
.status-dialog label { color: var(--navy); font-size: 12px; font-weight: 700; }
.field label em { color: #d84c4c; font-style: normal; }

.field input,
.field select,
.field textarea,
.lookup-phone input,
.status-otp-field input {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #d6e0ee;
  border-radius: 9px;
  outline: none;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.field textarea { min-height: 112px; resize: vertical; line-height: 1.55; }
.field input::placeholder,
.field textarea::placeholder,
.lookup-phone input::placeholder,
.status-otp-field input::placeholder { color: #98a5ba; }

.field input:focus,
.field select:focus,
.field textarea:focus,
.lookup-phone input:focus,
.status-otp-field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(24, 92, 255, .11);
}

.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid { border-color: var(--red); background: #fffafa; }
.field input:disabled,
.field select:disabled { cursor: not-allowed; background: #f2f4f8; color: #8c98aa; }
.full-width { grid-column: 1 / -1; }

.phone-control,
.otp-control,
.lookup-phone { display: flex; align-items: stretch; gap: 8px; }
.phone-control input,
.lookup-phone input { min-width: 0; flex: 1; }

.country-code,
.lookup-phone > span {
  min-width: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f7f9fc;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

.optional-label {
  display: inline-flex;
  margin-left: 5px;
  padding: 2px 6px;
  border-radius: 20px;
  background: #fff4d5;
  color: #9a6800;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  vertical-align: 1px;
}

.otp-control > input { min-width: 0; flex: 1; }

.otp-button {
  min-height: 46px;
  flex: 1;
  padding: 0 16px;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 5px 12px rgba(24, 92, 255, .16);
}

.otp-button:hover,
.primary-button:hover { background: var(--blue-dark); transform: translateY(-1px); }
.otp-verify-button { background: var(--navy); box-shadow: none; }
.otp-verify-button:hover { background: #17265b; }

.field-hint { color: var(--soft-muted); font-size: 11px; line-height: 1.45; }
.field-hint strong { color: var(--navy); }
.field-error { min-height: 0; color: var(--red); font-size: 11px; line-height: 1.4; }
.field-error:empty { display: none; }

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #edf0f5;
}

.primary-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 7px 15px rgba(24, 92, 255, .14);
}

.primary-button:disabled,
.otp-button:disabled { cursor: not-allowed; transform: none; background: #e9edf4; color: #9aa6b8; box-shadow: none; }
.privacy-note { margin: 0; color: var(--soft-muted); font-size: 11px; text-align: center; }
.split-actions { flex-direction: row; justify-content: space-between; }

.secondary-button,
.cancel-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 16px;
  border: 1px solid #cbd5e5;
  border-radius: 9px;
  background: #fff;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

.secondary-button:hover { border-color: #9eafd0; background: #f8faff; }
.cancel-button { border-color: #e0b6b1; color: var(--red); }
.cancel-button:hover { border-color: #cb8279; background: #fff8f7; }

.section-mini-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.section-mini-heading h2 { margin-bottom: 4px; color: var(--navy); font: 800 19px/1.3 'Manrope', sans-serif; letter-spacing: -.035em; }
.section-mini-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.mini-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: #eef4ff; color: var(--blue); font-size: 22px; }
.schedule-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-bottom: 20px; }
.schedule-grid > .field { min-width: 0; }

.date-selection-row {
  width: min(560px, 100%);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 11px;
  padding: 12px 14px;
  border: 1px solid #dce6f6;
  border-radius: 12px;
  background: linear-gradient(110deg, #f7f9ff, #fff);
}
.selected-date-icon { width: 37px; height: 37px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; background: #eaf0ff; color: var(--blue); font-size: 20px; }
.selected-date-copy { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 2px; }
.selected-date-copy > span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.selected-date-copy > strong { color: var(--navy); font-size: 14px; }
.change-date-button { min-height: 36px; padding: 0 12px; border: 1px solid #d5e1ff; border-radius: 9px; background: #fff; color: var(--blue); font-size: 11px; font-weight: 750; cursor: pointer; }
.change-date-button:hover { border-color: #aabfff; background: #f4f7ff; }

.calendar-popover {
  position: static !important;
  inset: auto !important;
  float: none !important;
  transform: none !important;
  width: min(560px, 100%);
  padding: 16px;
  border: 1px solid #dce4f0;
  border-radius: 15px;
  background: #fbfcff;
  box-shadow: 0 8px 22px rgba(17, 39, 78, .055);
}
.calendar-popover[aria-invalid="true"] { border-color: var(--red); background: #fffafa; }
.calendar-heading { display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; gap: 8px; margin-bottom: 11px; }
.calendar-heading strong { color: var(--navy); font: 800 14px/1.2 'Manrope', sans-serif; text-align: center; text-transform: uppercase; letter-spacing: .025em; }
.calendar-nav { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #e3e9f3; border-radius: 10px; background: #f7f9fd; color: var(--navy); font: 500 27px/1 Arial, sans-serif; cursor: pointer; }
.calendar-nav:hover:not(:disabled) { border-color: #bfd0ff; background: #eef4ff; color: var(--blue); }
.calendar-nav:disabled { color: #b8c1d0; cursor: not-allowed; }
.calendar-weekdays,
.calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.calendar-weekdays { margin-bottom: 5px; padding-bottom: 8px; border-bottom: 1px solid #edf1f6; }
.calendar-weekdays span { color: var(--muted); font-size: 10px; font-weight: 700; text-align: center; }
.calendar-day { min-width: 0; min-height: 42px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--navy); font-size: 13px; font-weight: 650; cursor: pointer; }
.calendar-day:hover:not(:disabled) { border-color: #d8e3ff; background: #f0f5ff; color: var(--blue); }
.calendar-day.is-selected { background: var(--blue); color: #fff; box-shadow: 0 4px 10px rgba(24, 92, 255, .2); }
.calendar-day.is-today:not(.is-selected) { border-color: #a9bcff; color: var(--blue); }
.calendar-day.is-outside { color: #aab4c4; font-weight: 500; }
.calendar-day:disabled { cursor: default; opacity: .48; }
.calendar-help { margin: 10px 2px 0; color: var(--soft-muted); font-size: 10px; }

.time-picker-panel { width: min(720px, 100%); padding: 15px; border: 1px solid #dce4f0; border-radius: 15px; background: linear-gradient(140deg, #fbfcff, #fff); box-shadow: 0 8px 22px rgba(17, 39, 78, .045); }
.time-picker-panel[aria-invalid="true"] { border-color: var(--red); background: #fffafa; }
.time-picker-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.time-picker-heading strong { display: block; color: var(--navy); font: 800 14px/1.3 'Manrope', sans-serif; }
.time-picker-heading p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.time-picker-heading > span { flex: 0 0 auto; padding: 7px 10px; border: 1px solid #dce7ff; border-radius: 30px; background: #f1f5ff; color: var(--blue); font-size: 10px; font-weight: 750; }
.time-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)); gap: 8px; }
.time-slot { min-height: 42px; padding: 6px 8px; border: 1px solid #dce4f0; border-radius: 10px; background: #fff; color: var(--navy); font-size: 12px; font-weight: 700; cursor: pointer; transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease; }
.time-slot:hover:not(:disabled) { border-color: #b9caff; background: #f3f6ff; color: var(--blue); }
.time-slot.is-selected { border-color: var(--blue); background: var(--blue); color: #fff; box-shadow: 0 4px 11px rgba(24, 92, 255, .18); }
.time-slot:disabled,
.time-slot.is-unavailable { border-color: #edf0f5; background: #f6f7f9; color: #8d98a9; cursor: not-allowed; filter: blur(1.15px); opacity: .62; }
.time-empty { grid-column: 1 / -1; margin: 0; padding: 11px 6px; color: var(--muted); font-size: 11px; text-align: center; }

.notice-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e5ebf5;
  border-radius: 10px;
  background: #f8faff;
}

.notice-icon { width: 19px; height: 19px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #e8efff; color: var(--blue); font-size: 12px; font-weight: 800; }
.notice-box p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

.preview-heading { margin: 67px 0 20px; }
.preview-heading h2 { font-size: 25px; }
.preview-card { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: var(--shadow); }
.preview-section { padding: 20px; border-top: 1px solid #edf1f6; }
.preview-section:first-child { border-top: 0; }
.client-section { background: linear-gradient(145deg, #fff 0%, #f7faff 100%); }
.preview-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .15em; }

.status-chip {
  padding: 5px 9px;
  border-radius: 40px;
  background: #fff6dc;
  color: #996600;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.status-chip.verified { background: #e6f6f0; color: var(--green); }
.client-grid,
.appointment-preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }

.detail-tile {
  min-width: 0;
  min-height: 61px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 11px 12px;
  border: 1px solid #e2e8f1;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(20, 42, 78, .035);
}

.detail-tile.wide { grid-column: 1 / -1; }
.detail-tile > span { color: var(--muted); font-size: 9px; letter-spacing: .08em; }
.detail-tile > strong { overflow-wrap: anywhere; color: var(--navy); font-size: 12px; font-weight: 700; }
.detail-tile > small { color: var(--muted); font-size: 10px; }
.query-preview { min-height: 42px; margin: 0; padding: 11px 13px; border-radius: 9px; background: #f5f7fa; color: var(--muted); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }

.request-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 11px; padding: 10px 12px; border: 1px solid #f6e5b9; border-radius: 10px; background: #fffaf0; color: var(--ink); font-size: 11px; }
.request-status strong { color: #9a6500; font-size: 10px; }
.disclaimer { max-width: 480px; margin: 22px auto 0; color: var(--soft-muted); font-size: 10px; line-height: 1.7; text-align: center; }

.form-status { margin-top: 15px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #f8faff; color: var(--ink); font-size: 13px; }
.form-status.is-success { border-color: #bce4d4; background: #effaf6; color: #116747; }
.form-status.is-error { border-color: #f0c5c1; background: #fff6f5; color: #9f332d; }

.confirmation-page { width: min(100%, 1000px); margin: 10px auto 40px; padding: 22px 0 36px; }
.thank-you-heading { margin: 8px auto 28px; text-align: center; }
.status-page-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.confirmation-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 17px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 31px; font-weight: 700; }
.thank-you-heading .eyebrow { margin-bottom: 9px; }
.thank-you-heading h2 { margin-bottom: 7px; color: var(--navy); font: 800 30px/1.2 'Manrope', sans-serif; letter-spacing: -.04em; }
.thank-you-subtitle { margin: 0; color: var(--muted); font-size: 15px; }

.confirmation-details-card { max-width: 900px; margin: 0 auto; padding: clamp(20px, 4vw, 36px); border: 1px solid #edf0f5; border-radius: 20px; background: #fff; box-shadow: 0 17px 50px rgba(20, 36, 71, .08); }
.confirmed-heading { display: flex; align-items: flex-start; gap: 14px; }
.confirmed-check { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #fff1cc; color: #9a6500; font-size: 20px; }
.confirmed-check.is-approved { background: #dff6ee; color: var(--green); }
.confirmed-check.is-cancelled { background: #fff0ee; color: var(--red); }
.confirmed-heading h3 { margin: 1px 0 7px; color: var(--green); font: 700 20px/1.3 'Manrope', sans-serif; }
.confirmed-heading p { margin: 0 0 4px; color: var(--muted); font-size: 14px; }
.confirmed-heading strong { color: var(--navy); }
.confirmation-divider { height: 1px; margin: 21px 0; background: #e7ebf1; }
.confirmation-divider.dotted { height: 1px; background: repeating-linear-gradient(90deg, #dce2eb 0 4px, transparent 4px 8px); }

.confirmation-detail-row { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 13px; align-items: start; }
.confirmation-detail-icon { width: 30px; height: 30px; display: grid; place-items: center; color: var(--navy); font-size: 23px; line-height: 1; }
.confirmation-detail-row h4 { margin: 1px 0 6px; color: var(--navy); font: 700 15px/1.4 'Manrope', sans-serif; }
.confirmation-detail-row p { max-width: 760px; margin: 0; color: #626f87; font-size: 14px; line-height: 1.65; }
.calendar-button { margin-top: 13px; }
.plan-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.contact-row { display: flex; align-items: center; justify-content: center; gap: 14px; }
.contact-row p { margin: 0; color: var(--muted); font-size: 13px; }
.contact-row a { color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.confirmation-disclaimer { max-width: 850px; margin: 16px auto; color: var(--muted); font-size: 12px; line-height: 1.6; text-align: center; }
.new-booking-button { width: min(100%, 900px); display: flex; margin: 10px auto; }

.status-page {
  width: min(100%, 1000px);
  margin: 10px auto 40px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid #e1e8f2;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 17px 50px rgba(20, 36, 71, .08);
}
.status-page[hidden] { display: none !important; }
.status-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.status-page-heading .eyebrow { margin-bottom: 8px; }
.status-page-heading h2 { margin: 0 0 7px; color: var(--navy); font: 800 30px/1.2 'Manrope', sans-serif; letter-spacing: -.04em; }
.status-page-heading p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.status-page-results { display: grid; gap: 16px; }
.status-page .status-result-card { padding: clamp(18px, 3vw, 26px); border-radius: 17px; }
.status-page .status-result-card::before { width: 4px; }
.status-page .status-reference { font-size: 15px; }
.status-page .status-result-note,
.status-page .status-location-label { font-size: 14px; line-height: 1.6; }
.status-page .status-meta-item > strong { font-size: 15px; }
.status-page .status-reference-label,
.status-page .status-meta-item > span { font-size: 10px; }
.status-page .status-result-actions { margin-top: 17px; padding-top: 15px; }
.status-page .status-result-actions .secondary-button,
.status-page .status-result-actions .status-cancel-button { min-height: 42px; padding-inline: 15px; font-size: 13px; }
.status-page .status-empty-card { padding: 28px 18px; }
.status-page .status-empty-card strong { font-size: 18px; }
.status-page .status-empty-card p { font-size: 14px; }

.site-footer { display: flex; justify-content: center; gap: 16px; padding: 16px 5px 20px; color: var(--soft-muted); font-size: 10px; }

dialog { color: var(--ink); }
.review-dialog,
.status-dialog {
  width: min(640px, calc(100% - 28px));
  max-height: min(90vh, 820px);
  overflow: auto;
  padding: clamp(19px, 4vw, 32px);
  border: 1px solid #e0e7f1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(4, 17, 48, .28);
}

.review-dialog::backdrop,
.status-dialog::backdrop { background: rgba(8, 18, 45, .55); backdrop-filter: blur(4px); }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.dialog-header h2,
.status-dialog h2 { margin-bottom: 7px; font-size: 26px; }
.dialog-close { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; background: #f8faff; color: var(--navy); font-size: 25px; line-height: 1; }
.dialog-close:hover { background: #edf3ff; }

.review-list { overflow: hidden; border: 1px solid #e4e9f1; border-radius: 11px; }
.review-list > div { display: grid; grid-template-columns: minmax(110px, .7fr) minmax(0, 1.4fr); gap: 16px; padding: 12px 14px; border-top: 1px solid #edf0f5; }
.review-list > div:first-child { border-top: 0; }
.review-list span { color: var(--muted); font-size: 12px; }
.review-list strong { color: var(--navy); font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.review-list .review-query { align-items: start; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.consent-row input { width: 17px; height: 17px; margin: 0; accent-color: var(--blue); }
.dialog-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid #edf0f5; }
.dialog-actions .primary-button { flex: 1; }
.dialog-footnote { margin: 14px 0 0; color: var(--soft-muted); font-size: 11px; text-align: center; }

.status-dialog { width: min(440px, calc(100% - 28px)); }
.dialog-close-form { position: absolute; top: 15px; right: 15px; margin: 0; }
.status-dialog > .eyebrow { margin-top: 4px; }
.status-dialog > p:not(.eyebrow) { margin-bottom: 19px; }
.status-dialog > label { display: block; margin: 0 0 7px; }
.status-dialog .lookup-phone { margin-bottom: 13px; }
.status-dialog > .primary-button { width: 100%; }
.status-otp-field { display: grid; gap: 8px; margin-top: 14px; }
.status-otp-field label { color: var(--navy); font-size: 12px; font-weight: 700; }
.dialog-message { min-height: 0; margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.dialog-message:empty { display: none; }
.dialog-message.is-error { color: var(--red); }
.dialog-message.is-success { color: var(--green); }
.demo-note { display: block; margin-top: 11px; color: var(--soft-muted); font-size: 10px; line-height: 1.5; }

/* Booking status lookup results */
.status-dialog {
  width: min(500px, calc(100% - 28px));
  padding: clamp(22px, 4vw, 30px);
  border-radius: 22px;
}

.status-dialog > .eyebrow {
  margin: 2px 0 10px;
  color: var(--blue);
  font-size: 10px;
  letter-spacing: .2em;
}

.status-dialog h2 {
  margin-bottom: 8px;
  font-size: clamp(24px, 5vw, 29px);
}

.status-dialog > p:not(.eyebrow) {
  margin-bottom: 20px;
}

.status-dialog .dialog-close {
  width: 40px;
  height: 40px;
  border-color: #e4eaf4;
  background: #f7f9fd;
  font-size: 23px;
}

.status-phone-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  align-items: stretch;
  gap: 9px;
  margin-bottom: 14px;
}

.status-phone-row.is-otp-sent { grid-template-columns: minmax(0, 1fr); }

.status-dialog .lookup-phone {
  min-width: 0;
  gap: 9px;
  margin-bottom: 0;
}

.status-dialog .lookup-phone > span {
  min-width: 54px;
  border-radius: 11px;
}

.status-dialog .lookup-phone input,
.status-dialog .status-otp-field input {
  min-height: 50px;
  border-radius: 11px;
}

.status-otp-field {
  display: grid;
  gap: 7px;
  margin-top: 0;
}

.status-otp-field[hidden],
.status-otp-controls [hidden] { display: none !important; }

.status-otp-field label { color: var(--navy); font-size: 12px; font-weight: 700; }

.status-otp-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: stretch;
  gap: 8px;
}

.status-otp-controls input { min-width: 0; }

.status-dialog .status-phone-row > .primary-button,
.status-dialog .status-otp-controls > .primary-button {
  min-height: 50px;
  min-width: 0;
  padding-inline: 13px;
  border-radius: 11px;
  white-space: nowrap;
}

.status-dialog .status-phone-row > .primary-button,
.status-dialog .status-otp-controls > .primary-button {
  box-shadow: 0 8px 18px rgba(24, 92, 255, .16);
}

.dialog-message {
  margin: 12px 0 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-line;
}

.status-dialog > .dialog-message { margin: 12px 0 0; }

@media (max-width: 420px) {
  .status-phone-row { grid-template-columns: minmax(0, 1fr); }
  .status-phone-row > .primary-button { width: 100%; }
  .status-otp-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .status-otp-controls > input { grid-column: 1 / -1; }
  .status-otp-controls > button { width: 100%; padding-inline: 8px; font-size: 11px; }
}

.status-results {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.status-results[hidden] { display: none !important; }

.status-results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 1px 0;
}

.status-results-kicker {
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .17em;
}

.status-results-heading h3 {
  margin: 4px 0 0;
  color: var(--navy);
  font: 750 16px/1.3 'Manrope', Arial, sans-serif;
  letter-spacing: -.02em;
}

.status-result-count {
  min-width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  border: 1px solid #dce7ff;
  border-radius: 30px;
  background: #f1f5ff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.status-result-list { display: grid; gap: 10px; }

.status-result-card {
  position: relative;
  overflow: hidden;
  padding: 15px;
  border: 1px solid #e3e9f2;
  border-radius: 15px;
  background: linear-gradient(145deg, #fff 0%, #f8faff 100%);
  box-shadow: 0 5px 16px rgba(17, 38, 78, .045);
}

.status-result-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #e8b449;
  content: "";
}

.status-result-card.status-result-approved::before { background: #20a77a; }
.status-result-card.status-result-cancelled::before { background: #d66a60; }
.status-result-card.status-result-completed::before { background: #6b8dc9; }

.status-result-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.status-reference-label,
.status-meta-item > span {
  display: block;
  color: var(--soft-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
}

.status-reference {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .015em;
  overflow-wrap: anywhere;
}

.status-state-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid #f1dfb3;
  border-radius: 30px;
  background: #fff8e7;
  color: #986400;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.status-state-badge::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-result-approved .status-state-badge { border-color: #c6eadc; background: #ecf9f4; color: #16704f; }
.status-result-cancelled .status-state-badge { border-color: #f0d0cc; background: #fff3f1; color: #a7473e; }
.status-result-completed .status-state-badge { border-color: #d4e0f3; background: #f0f5fc; color: #456895; }

.status-result-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid #e9edf4;
}

.status-meta-item > strong {
  display: block;
  margin-top: 4px;
  color: #33415d;
  font-size: 12px;
  font-weight: 700;
}

.status-result-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.status-result-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid #e9edf4;
}

.status-cancel-button {
  min-height: 37px;
  padding: 0 13px;
  border: 1px solid #e5b3ae;
  border-radius: 9px;
  background: #fff;
  color: #ad473f;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.status-cancel-button::before { margin-right: 6px; content: "×"; font-size: 15px; vertical-align: -1px; }
.status-cancel-button:hover { border-color: #cf766d; background: #fff5f3; color: #91372f; }
.status-cancel-button:focus-visible { outline: 3px solid rgba(189, 78, 70, .16); outline-offset: 2px; }

.status-result-actions .status-pay-button {
  min-height: 37px;
  padding: 0 13px;
  font-size: 11px;
}

.status-payment-note {
  margin: 10px 0 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.status-payment-note.is-error { color: var(--red); }

.status-empty-card {
  padding: 17px 15px;
  border: 1px dashed #ccd7e8;
  border-radius: 14px;
  background: #f8faff;
  text-align: center;
}

.status-empty-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin: 0 auto 9px;
  border-radius: 50%;
  background: #edf3ff;
  color: var(--blue);
  font-size: 17px;
  font-weight: 800;
}

.status-empty-card strong { display: block; color: var(--navy); font-size: 13px; }
.status-empty-card p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

.demo-note {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #edf1f6;
  font-size: 10px;
}

@media (min-width: 1350px) {
  .booking-layout { min-height: 740px; }
  .preview-heading { margin-top: 76px; }
  .form-card { padding: 29px; }
  .preview-section { padding: 22px; }
}

@media (max-width: 980px) {
  .booking-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .preview-heading { margin-top: 0; }
  .preview-column { max-width: 760px; }
  .disclaimer { text-align: left; }
}

@media (max-width: 600px) {
  body { font-size: 14px; }
  .page-shell { padding: 8px 8px 0; }
  .topbar { min-height: 62px; padding: 9px 11px; border-radius: 12px; }
  .brand { gap: 8px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 10px; font-size: 14px; }
  .brand-copy strong { font-size: 10px; }
  .brand-copy small { font-size: 7px; letter-spacing: .14em; }
  .status-button { min-height: 37px; padding: 0 10px; font-size: 11px; }
  .status-button span { margin-left: 3px; }
  .booking-layout { gap: 30px; min-height: auto; padding: 20px 14px; border-radius: 13px; }
  .step-topline { margin-bottom: 14px; }
  .progress-track { margin-bottom: 20px; }
  .section-intro { margin-bottom: 18px; }
  .section-intro h1,
  .preview-heading h2 { font-size: 25px; }
  .section-intro > p:last-child,
  .preview-heading > p:last-child { font-size: 13px; }
  .form-card { padding: 16px 13px; border-radius: 13px; }
  .field-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .full-width { grid-column: auto; }
  .field label { font-size: 12px; }
  .field input,
  .field select,
  .field textarea { font-size: 14px; }
  .calendar-popover { padding: 11px; }
  .calendar-days,
  .calendar-weekdays { gap: 3px; }
  .calendar-day { min-height: 38px; border-radius: 8px; font-size: 12px; }
  .time-picker-panel { padding: 12px; }
  .time-picker-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .time-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .time-slot { min-height: 39px; font-size: 11px; }
  .date-selection-row { gap: 9px; padding: 10px; }
  .change-date-button { padding-inline: 9px; }
  .form-actions.split-actions { gap: 9px; }
  .split-actions .primary-button { flex: 1; padding-inline: 10px; }
  .split-actions .secondary-button { padding-inline: 12px; }
  .preview-heading { margin-bottom: 15px; }
  .preview-section { padding: 15px 12px; }
  .preview-section-title { align-items: flex-start; font-size: 9px; }
  .client-grid,
  .appointment-preview-grid { gap: 7px; }
  .detail-tile { padding: 9px; }
  .detail-tile > strong { font-size: 11px; }
  .disclaimer { margin-top: 15px; font-size: 10px; }
  .confirmation-page { padding-top: 13px; }
  .thank-you-heading { margin-bottom: 21px; }
  .thank-you-heading h2 { font-size: 26px; }
  .confirmation-details-card { padding: 19px 15px; border-radius: 15px; }
  .confirmed-heading h3 { font-size: 17px; }
  .confirmed-heading p,
  .confirmation-detail-row p { font-size: 13px; }
  .confirmation-detail-row { grid-template-columns: 27px minmax(0, 1fr); gap: 9px; }
  .confirmation-detail-icon { width: 25px; font-size: 20px; }
  .contact-row { align-items: flex-start; flex-direction: column; }
  .site-footer { flex-direction: column; gap: 5px; padding-inline: 3px; }
  .status-page { margin: 8px auto 24px; padding: 19px 14px; border-radius: 15px; }
  .status-page-heading { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 18px; }
  .status-page-heading h2 { font-size: 26px; }
  .status-page-heading .secondary-button { width: 100%; }
  .status-page .status-result-actions { justify-content: stretch; }
  .status-page .status-result-actions > a,
  .status-page .status-result-actions > button { flex: 1 1 100%; }
  .review-dialog,
  .status-dialog { padding: 20px 15px; border-radius: 15px; }
  .dialog-header { gap: 10px; margin-bottom: 16px; }
  .dialog-header h2,
  .status-dialog h2 { font-size: 22px; }
  .review-list > div { grid-template-columns: minmax(95px, .65fr) minmax(0, 1.2fr); gap: 10px; padding: 11px 9px; }
  .review-list span,
  .review-list strong { font-size: 11px; }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Client booking layout: hide the preview and center the form at its current desktop width. */
.preview-column { display: none !important; }
.booking-layout { min-height: auto; }

@media (min-width: 981px) {
  .booking-main {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(57.142857% - clamp(16px, 2.857143vw, 43.428571px));
  }
}

@media (max-width: 980px) {
  .booking-main {
    grid-column: 1;
    width: 100%;
  }
}
/* Add spacing between the booking status action buttons. */
.status-result-actions {
  gap: 8px;
  flex-wrap: wrap;
}

.topbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
}

.brand {
  display: flex;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
  width: auto;
}

.brand-logo {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.status-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-left: auto;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .topbar {
    gap: 8px;
  }

  .brand-logo {
    width: clamp(110px, 38vw, 190px);
  }

  .status-button {
    min-height: 37px;
    padding: 0 10px;
    font-size: 11px;
  }

  .status-button span {
    margin-left: 3px;
  }
}
@media (max-width: 600px) {
  .brand-logo {
    width: clamp(150px, 46vw, 210px);
  }
}

@media (max-width: 360px) {
  .topbar {
    gap: 6px;
  }

  .brand-logo {
    width: clamp(160px, 43vw, 185px);
  }

  .status-button {
    padding: 0 7px;
    font-size: 10px;
  }
}

/* Appointment location choices and branch map */
.appointment-location-field {
  min-width: 0;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.appointment-location-field .field-label {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

.appointment-location-field .field-label em {
  color: #d84c4c;
  font-style: normal;
}

.location-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.location-option {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.location-option:hover,
.location-option:focus-within {
  border-color: #b9caff;
  background: #f8faff;
}

.location-option:has(input:checked) {
  border-color: var(--blue);
  background: #f4f7ff;
  box-shadow: 0 0 0 2px rgba(24, 92, 255, .08);
}

.location-option input[type="radio"] {
  width: 17px;
  height: 17px;
  min-height: 0;
  flex: 0 0 auto;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--blue);
}

.location-option-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.location-option-copy strong {
  color: var(--navy);
  font-size: 13px;
  font-weight: 750;
}

.location-option-copy small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.office-location-card {
  display: grid;
  gap: 11px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #e2e8f1;
  border-radius: 12px;
  background: #f9fbff;
}

.office-location-address {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.office-location-map {
  display: block;
  width: 100%;
  height: clamp(220px, 34vw, 320px);
  border: 0;
  border-radius: 9px;
  background: #edf2f8;
}

a.office-location-directions {
  width: fit-content;
  max-width: 100%;
  text-align: center;
  text-decoration: none;
}

.office-location-directions:focus-visible,
.status-location-button:focus-visible {
  outline: 3px solid rgba(24, 92, 255, .2);
  outline-offset: 2px;
}

/* Keep location and cancellation actions readable on the status card. */
.status-location-label {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.status-result-actions {
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.status-location-button {
  min-height: 37px;
  padding: 0 13px;
  font-size: 11px;
  text-decoration: none;
}

@media (max-width: 600px) {
  .location-options {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .location-option {
    padding: 11px;
  }

  .office-location-card {
    padding: 10px;
  }

  .office-location-map {
    height: 230px;
  }

  .status-result-actions > a,
  .status-result-actions > button {
    flex: 1 1 auto;
  }
}

/* Confirmation details: appointment information on the left, office map on the right. */
.confirmation-appointment-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  margin-top: 2px;
}

.confirmation-info-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-start;
  gap: 22px;
  padding: 8px 0;
}

.confirmation-info-column .confirmation-divider {
  flex: 0 0 1px;
  width: 100%;
  margin: 0;
}

.confirmation-info-column .confirmation-detail-row p {
  max-width: none;
}

.confirmation-time-card .calendar-button {
  margin-top: 13px;
}

.confirmation-location-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
  align-self: stretch;
  margin: 0;
  padding: 16px;
  border: 1px solid #e2e8f1;
  border-radius: 14px;
  background: #f9fbff;
}

.confirmation-location-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.confirmation-location-heading h4 {
  margin: 0;
  color: var(--navy);
  font: 700 15px/1.4 'Manrope', sans-serif;
}

.confirmation-location-card .confirmation-office-map {
  flex: 1 1 auto;
  width: 100%;
  min-height: 300px;
  height: clamp(300px, 30vw, 390px);
  border-radius: 10px;
}

.confirmation-location-card .office-location-directions {
  align-self: flex-start;
}

@media (max-width: 760px) {
  .confirmation-appointment-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .confirmation-info-column {
    gap: 18px;
    padding: 2px 0;
  }

  .confirmation-location-card {
    padding: 12px;
  }

  .confirmation-location-card .confirmation-office-map {
    min-height: 230px;
    height: 250px;
  }
}
.cancel-button,
.status-cancel-button {
  display: none !important;
}
/* Align the status card actions to the right. */
.status-result-actions {
  justify-content: flex-end;
}

/* Keep action buttons content-sized and right-aligned on small screens too. */
@media (max-width: 600px) {
  .status-result-actions > a,
  .status-result-actions > button {
    flex: 0 0 auto;
  }
}
/* Show the existing verification message as a green, checked badge. */
#otp-hint:has(strong) {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin-top: 8px;
  padding: 7px 11px;
  border: 1px solid #a8dfbf;
  border-radius: 999px;
  background: #effaf3;
  color: #147a45 !important;
  font-weight: 700;
}

#otp-hint:has(strong)::before {
  content: "✓";
  display: inline-grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  background: #d4f2df;
  color: #147a45;
  font-size: 12px;
  line-height: 1;
}
/* Selected supporting document */
.document-selection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #cfe0fb;
  border-radius: 10px;
  background: #f7faff;
}

.document-selection[hidden] {
  display: none;
}

.document-selection-name {
  min-width: 0;
  overflow: hidden;
  color: #23395d;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-remove-button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #efb8b3;
  border-radius: 8px;
  color: #be3c35;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.document-remove-button:hover {
  border-color: #d95b53;
  background: #fff6f5;
}

.document-remove-button:focus-visible {
  outline: 3px solid rgba(217, 91, 83, .25);
  outline-offset: 2px;
}

@media (max-width: 520px) {
  .document-selection {
    align-items: stretch;
    flex-direction: column;
  }

  .document-remove-button {
    width: 100%;
  }
}

/* Optional consultation payment on the booking confirmation */
.confirmation-payment {
  width: 100%;
  box-sizing: border-box;
  margin: 20px 0 24px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.confirmation-payment-copy { text-align: center; }
.confirmation-payment-copy .eyebrow { margin-bottom: 6px; }
.confirmation-payment-copy h3 { margin: 0 0 5px; color: var(--navy); font: 800 21px/1.3 'Manrope', sans-serif; }
.confirmation-payment-copy > p:last-child { margin: 0; color: var(--muted); font-size: 14px; }
.confirmation-pay-button { width: min(100%, 360px); display: flex; justify-content: center; gap: 10px; margin: 17px auto 0; }
.payment-button-caption { margin: 7px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.payment-status-message { margin: 12px 0 0; color: var(--green); font-size: 13px; font-weight: 700; line-height: 1.5; text-align: center; }
.payment-status-message:empty { display: none; }
.payment-status-message.is-error { color: var(--red); }

.consultation-payment-dialog {
  position: relative;
  width: min(720px, calc(100% - 26px));
  max-height: min(90vh, 840px);
  overflow: auto;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid #e0e7f1;
  border-radius: 20px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 28px 90px rgba(4, 17, 48, .28);
}
.consultation-payment-dialog::backdrop { background: rgba(8, 18, 45, .55); backdrop-filter: blur(4px); }
.consultation-payment-dialog h2 { margin: 0 48px 6px 0; color: var(--navy); font: 800 25px/1.25 'Manrope', sans-serif; letter-spacing: -.035em; }
.consultation-payment-dialog .eyebrow { margin: 0 0 8px; }
.payment-dialog-intro { margin: 0 0 19px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.payment-plan-list,
.payment-method-list { display: grid; gap: 12px; }
.payment-plan-card,
.payment-method-card {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.payment-plan-card:hover,
.payment-method-card:hover { border-color: #aac1ff; background: #fbfcff; }
.payment-plan-card:has(input:checked),
.payment-method-card:has(input:checked) { border-color: var(--blue); background: #f2f6ff; box-shadow: 0 0 0 2px rgba(24, 92, 255, .1); }
.payment-plan-card input,
.payment-method-card input { width: 18px; height: 18px; flex: 0 0 auto; margin: 3px 0 0; accent-color: var(--blue); }
.payment-plan-main { min-width: 0; display: grid; gap: 7px; }
.payment-plan-topline { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; color: var(--navy); font-size: 15px; line-height: 1.35; }
.payment-plan-topline > strong:first-child { font-weight: 800; }
.payment-plan-price { flex: 0 0 auto; color: var(--blue); font: 800 18px/1.25 'Manrope', sans-serif; white-space: nowrap; }
.payment-plan-summary { color: var(--muted); font-size: 13px; font-weight: 700; }
.payment-plan-description { color: var(--ink); font-size: 12px; line-height: 1.55; }
.payment-plan-best { display: block; padding: 9px 10px; border-radius: 8px; background: #f4f6fa; color: var(--muted); font-size: 11px; line-height: 1.5; }
.payment-plan-best strong { display: block; margin-bottom: 2px; color: var(--navy); }
.payment-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #edf0f5; }
.payment-dialog-actions .primary-button { min-width: 190px; justify-content: center; gap: 8px; }
.payment-dialog-actions button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.payment-method-card { align-items: center; min-height: 76px; }
.payment-method-card > span { min-width: 0; display: grid; gap: 4px; }
.payment-method-card strong { color: var(--navy); font-size: 15px; line-height: 1.35; }
.payment-method-card small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.payment-option-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.payment-dialog-status { min-height: 0; margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.payment-dialog-status:empty { display: none; }
.payment-dialog-status.is-error { color: var(--red); }
.payment-dialog-status.is-success { color: var(--green); }
.payment-method-actions { justify-content: space-between; }
.payment-method-actions .secondary-button { min-width: 110px; justify-content: center; }

@media (max-width: 520px) {
  .confirmation-payment { padding: 17px 14px; }
  .payment-plan-card,
  .payment-method-card { padding: 13px 11px; gap: 10px; }
  .payment-plan-topline { flex-direction: column; gap: 3px; }
  .payment-plan-price { font-size: 16px; }
  .payment-dialog-actions { flex-direction: column-reverse; }
  .payment-dialog-actions .primary-button,
  .payment-method-actions .secondary-button { width: 100%; }
  .payment-method-actions { flex-direction: column; }
}

/* Multiple client document controls */
.document-selection-list,.status-document-list{display:grid;gap:8px;margin-top:10px}.document-selection-row,.status-document-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #dbe4ee;border-radius:10px;background:#f8fafc}.document-selection-name,.status-document-name{min-width:0;overflow-wrap:anywhere;color:#334155}.document-selection-actions,.status-document-actions,.internal-note-file-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.status-document-list{margin:14px 0}.status-document-row .button{min-height:36px;padding:7px 12px}
