:root {
  --navy: #1e5a8a;
  --ink: #1a2332;
  --muted: #5b6775;
  --line: #d7dee6;
  --bg: #f4f7fb;
  --card: #fff;
  --ok: #0f7b4c;
  --accent: #1e5a8a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
.top {
  background: var(--accent);
  color: #fff;
  padding: 16px 24px;
}
.top h1 { margin: 0; font-size: 20px; font-weight: 600; }
.top p { margin: 4px 0 0; opacity: 0.85; font-size: 13px; }
.wrap { width: 100%; max-width: 980px; margin: 0 auto; padding: 24px; min-width: 0; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(16, 40, 70, 0.06);
}
.progress-wrap {
  margin: 0 0 18px;
  padding: 8px 4px 0;
}
.progress-steps {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0 0 12px;
  position: relative;
  overflow-x: auto;
}
.progress-steps::before {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 13px;
  height: 4px;
  background: #e1e4ea;
  z-index: 0;
}
.progress-steps li { flex: 1 0 86px; min-width: 0; }
.progress-steps a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #8b919a;
  position: relative;
  z-index: 1;
  padding: 0 4px;
}
.progress-steps .dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #c5c9d1;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 0 0 4px #fff;
}
.progress-steps .label {
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
  color: #8b919a;
}
.progress-steps .on .dot,
.progress-steps .done .dot { background: var(--step, #2f9fe0); }
.progress-steps .on .label { color: var(--step, #2f9fe0); font-weight: 700; }
.progress-track {
  height: 12px;
  background: #eceff3;
  border-radius: 2px;
  overflow: hidden;
  margin: 2px 6px 0;
}
.progress-fill {
  display: block;
  height: 100%;
  width: var(--progress);
  background: repeating-linear-gradient(-45deg, #43b84a 0 8px, #34963c 8px 16px);
}
.review-section { margin: 0 0 18px; }
.review-section h3 {
  margin: 0 0 10px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 4px;
}
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; }
.review-grid .wide { grid-column: 1 / -1; }
.review-grid h4 { margin: 8px 0 0; color: var(--accent); font-size: 14px; }
.review-grid span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.review-grid strong { font-size: 15px; }
.review-sig { display: block; max-height: 72px; max-width: 100%; }
.sum-step { margin-bottom: 0; }
.sum-title { text-align: center; font-size: 22px; margin: 4px 0 16px; }
.sum-box { border: 1px solid #d9dde3; margin: 0 0 16px; background: #fff; }
.sum-box h4 { margin: 0; padding: 8px 12px; background: #f3f4f6; border-bottom: 2px solid #222; font-size: 16px; }
.sum-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 18px; padding: 14px; }
.sum-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.sum-grid .wide { grid-column: 1 / -1; }
.sum-grid span { display: block; font-size: 13px; color: #333; margin-bottom: 2px; }
.sum-grid strong { display: block; min-height: 1.2em; font-size: 14px; font-weight: 700; }
.theme-masci button.finish,
.theme-masci button.finish:hover { background: #2f9e44; text-transform: none; letter-spacing: 0; font-size: 15px; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; min-width: 0; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; min-width: 0; }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=date], input[type=tel], input[type=password], select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
}
.heading { grid-column: span 12; font-size: 16px; margin: 8px 0 0; color: var(--accent); }
.subhead { grid-column: span 12; font-size: 14px; margin: 12px 0 0; }
.field-rule { grid-column: span 12; border: 0; border-top: 1px solid var(--line); margin: 8px 0; }
.note, .consent { grid-column: span 12; font-size: 14px; line-height: 1.5; }
.field-hint { margin: 6px 0 0; color: #6b7280; font-size: 13px; line-height: 1.4; }
.field-hint::before {
  content: "i";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  border-radius: 50%;
  background: #9aa3ad;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-family: Georgia, serif;
  vertical-align: -2px;
}
.note-emphasis { text-align: center; color: #000; font-weight: 700; font-size: 16px; }
input:disabled, select:disabled, textarea:disabled, input[readonly] { background: #e9edf2; color: #5c6570; }
.two-col { grid-column: span 12; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; align-items: start; }
.two-col .col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.two-col .col > div { width: 100%; }
.yesno { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.checks { gap: 8px 18px; }
.yesno label { margin: 0; color: var(--ink); }
.nav { display: flex; justify-content: space-between; margin-top: 24px; }
button, .btn {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button.ghost, .btn.ghost { background: #e8eef4; color: var(--ink); }
.practice-meta { color: var(--muted); font-size: 14px; margin-top: 0; }
.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.home-grid a {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  text-decoration: none;
  color: inherit;
}
.home-grid a:hover { border-color: var(--accent); }
table { width: 100%; border-collapse: collapse; background: #fff; }
.day-filter { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 14px; font-weight: 600; }
.day-filter select { font: inherit; font-weight: 500; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
tr.day-group td { background: #eef3f7; color: var(--accent); font-weight: 700; }
tr.day-group span { margin-left: 8px; color: var(--muted); font-weight: 500; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
.sig {
  display: block;
  width: 100%;
  min-width: 0;
  height: 280px;
  max-width: 100%;
  touch-action: none;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fafcfe;
}
.sig-locked .sig {
  pointer-events: none;
  background: #e6e8ec;
  opacity: 0.55;
  filter: grayscale(1);
}
.sig-locked .sig-clear { pointer-events: none; opacity: 0.45; }
.theme-vanvliet .sig-actions { text-align: center; margin: 8px 0 0; }
.login {
  max-width: 440px;
  margin: 48px auto;
  padding: 40px 36px 36px;
}
.login-eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
}
.login h2 { margin: 0 0 8px; }
.login-lead { margin: 0 0 24px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.login-alt { margin-top: 22px; }
.check-line { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: 15px; margin: 0 0 12px; }
.check-line input { width: auto; margin-top: 3px; }
.login-form .field { margin: 0 0 16px; }
.login-form input, .login-form select, .login-form textarea { display: block; width: 100%; min-height: 44px; }
.login-form .check-line input { display: inline-block; width: auto; min-height: 0; }
.login-submit { width: 100%; text-align: center; margin-top: 8px; }
.login-error { background: #fdecef; color: #8b1e3f; border-radius: 8px; padding: 10px 12px; }
.qr-code { display: block; width: 220px; height: 220px; margin: 0 auto 12px; background: #fff; }
.secret-key { font-family: ui-monospace, Consolas, monospace; font-size: 13px; word-break: break-all; }
.backup-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 20px; }
.backup-codes code { background: #f4f7fb; border-radius: 8px; padding: 8px; text-align: center; }
.staff-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.staff-actions form { margin: 0; }
.pdf-actions { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.pdf-actions a { font-weight: 600; white-space: nowrap; }
.desk-note { margin: 0 0 14px; border-radius: 8px; padding: 10px 12px; }
.desk-note.ok { background: #e7f6ec; color: #146c36; }
.desk-note.err { background: #fdecef; color: #8b1e3f; }
.resend { margin-top: 8px; }
.resend summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.resend form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; min-width: 200px; }
.resend-choice { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.resend-choice input { width: auto; min-height: 0; margin: 0; }
.resend-current { margin: 0; color: var(--muted); font-size: 12px; word-break: break-all; }
.resend input[type=email] { min-height: 36px; font-size: 14px; }
.resend button { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.review-banner { background: #f4f7f8; border-radius: 8px; padding: 12px 14px; margin: 0 0 16px; }
.row-delete { margin: 0; }
.row-delete button { min-height: 32px; padding: 6px 12px; font-size: 13px; }
.staff-list { list-style: none; margin: 8px 0 0; padding: 0; }
.staff-person {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 420px);
  gap: 12px 28px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.staff-person-id strong { display: block; font-size: 16px; }
.staff-person-id > span { color: var(--muted); font-size: 14px; }
.staff-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.staff-meta span {
  background: #f4f7f8;
  color: #5c6570;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
}
.staff-controls { display: flex; flex-direction: column; gap: 8px; }
.staff-password, .staff-person-actions { display: flex; gap: 8px; align-items: center; margin: 0; }
.staff-password input {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}
.staff-person-actions form { margin: 0; flex: 1; }
.staff-password button,
.staff-person-actions button {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
.staff-person-actions button { width: 100%; }
@media (max-width: 800px) {
  .staff-person { grid-template-columns: 1fr; }
  .staff-password, .staff-person-actions { flex-wrap: wrap; }
}
.pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pager a, .pager span {
  display: inline-flex;
  min-width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.pager .is-current { background: var(--accent); color: #fff; border-color: var(--accent); }
.stack-card { margin-top: 18px; }
.form-alert {
  background: #fff4e5;
  color: #8a4b08;
  border: 1px solid #f0d3a2;
  border-radius: 6px;
  padding: 10px 12px;
  margin: 0 0 16px;
  font-size: 14px;
}
.form-alert[hidden] { display: none !important; }
.req { color: #b42318; font-weight: 700; }
input.missing, select.missing, textarea.missing {
  border-color: #b42318 !important;
  box-shadow: 0 0 0 1px #b42318;
}
@media (max-width: 800px) {
  .home-grid { grid-template-columns: 1fr; }
  .span-3, .span-4, .span-5, .span-6, .span-8 { grid-column: span 12; }
  .two-col { grid-template-columns: 1fr; }
  .sum-grid, .sum-grid.cols-2 { grid-template-columns: 1fr; }
  .repeat-block .span-6 { grid-column: span 6; }
  .wrap { padding: 12px; }
  .card { padding: 16px; }
  .sig { height: min(48vh, 360px); min-height: 240px; }
  .theme-masci .sig { height: 130px; min-height: 130px; }
  input[type=text], input[type=email], input[type=date], input[type=tel], input[type=password], select, textarea {
    font-size: 16px;
    min-height: 44px;
  }
  .yesno label { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
  button, .btn { min-height: 44px; }
  .nav { gap: 12px; align-items: center; }
  .nav button { flex: 1; }
  .progress-steps li { flex-basis: 78px; }
  .review-grid { grid-template-columns: 1fr; }
  .theme-vanvliet { background-attachment: scroll; }
  .theme-vanvliet .form-hero { height: 120px; }
  .theme-vanvliet .vv-header img { height: 56px; }
}

body.disclaimer-open { overflow: hidden; }
body.disclaimer-open .progress-wrap,
body.disclaimer-open .form-shell {
  pointer-events: none;
  user-select: none;
}
.disclaimer-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(20, 28, 44, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.disclaimer-modal[hidden] { display: none; }
.disclaimer-dialog {
  background: #fff;
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  border-radius: 4px;
  box-shadow: 0 18px 48px rgba(16, 24, 40, 0.28);
}
.disclaimer-body {
  overflow: auto;
  padding: 36px 40px 16px;
  color: #222;
}
.disclaimer-practice {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  text-align: center;
  margin: 0 0 18px;
  color: #1a1a1a;
}
.disclaimer-body h3 {
  font-size: 15px;
  margin: 0 0 16px;
  font-weight: 700;
}
.disclaimer-body h4 {
  font-size: 14px;
  margin: 18px 0 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.disclaimer-body p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.55;
  text-align: justify;
}
.disclaimer-footer {
  border-top: 1px solid #e6eaef;
  padding: 14px 24px;
  display: flex;
  justify-content: flex-end;
  background: #fafbfc;
}
.disclaimer-agree {
  background: #198754 !important;
  color: #fff !important;
  border-radius: 4px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 15px !important;
  padding: 10px 22px !important;
}
.disclaimer-agree:hover { background: #157347 !important; }
.vv-privacy [hidden] { display: none !important; }
.vv-privacy .disclaimer-dialog { width: min(760px, 100%); }
.vv-privacy .disclaimer-practice {
  font-family: Poppins, "Open Sans", sans-serif;
  color: #5B378C;
  font-size: 22px;
  margin-bottom: 8px;
}
.vv-privacy .disclaimer-body h3 {
  text-align: center;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.privacy-intro {
  font-size: 12px !important;
  letter-spacing: 0.02em;
  text-align: center !important;
}
.vv-privacy .disclaimer-dialog {
  width: min(820px, 100%);
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.28);
}
.vv-privacy .disclaimer-body {
  padding: 8px 48px 8px;
}
.vv-privacy .disclaimer-body h3 {
  font-family: Poppins, "Open Sans", sans-serif;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-align: center;
  margin: 8px 0 22px;
}
.vv-privacy .disclaimer-body h4 {
  font-family: Poppins, "Open Sans", sans-serif;
  text-align: center;
  font-size: 18px;
  letter-spacing: 0.04em;
  margin: 28px 0 16px;
}
.vv-privacy .disclaimer-body p {
  text-align: left;
  font-size: 15px;
  line-height: 1.65;
  color: #2a2a2a;
}
.privacy-progress {
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 26px 24px 8px;
}
.privacy-progress span {
  width: 34px;
  height: 34px;
  margin: 0 16px;
  border-radius: 50%;
  border: 2px solid #c5ced8;
  background: #fff;
  color: #8b95a1;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.privacy-progress span.on {
  background: #3b6fd8;
  border-color: #3b6fd8;
  color: #fff;
}
.privacy-progress span + span::before {
  content: "";
  position: absolute;
  right: calc(100% + 2px);
  top: 50%;
  width: 32px;
  height: 3px;
  margin-top: -1px;
  background: #d5dbe3;
  z-index: -1;
}
.privacy-progress span.on + span::before { background: #3b6fd8; }
.vv-privacy .disclaimer-footer {
  justify-content: center;
  gap: 12px;
  border-top: 0;
  background: #fff;
  padding: 8px 24px 28px;
}
.vv-privacy .disclaimer-footer .ghost {
  margin: 0;
  background: #eceff3 !important;
  color: #333 !important;
  border-radius: 6px !important;
  min-width: 96px;
}
.vv-privacy .disclaimer-agree {
  background: #5B378C !important;
  border-radius: 6px !important;
  min-width: 96px;
}
.vv-privacy .disclaimer-agree:hover { background: #4a2c73 !important; }
.privacy-offices { margin: 4px auto 0; max-width: 640px; }
.privacy-office {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 28px;
  margin: 0 0 12px;
}
.privacy-office p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  text-align: left !important;
}
.privacy-phone { text-align: right !important; }
.repeat-block { grid-column: span 12; }
.repeat-block[hidden] { display: none !important; }
.repeat-block + .repeat-block { border-top: 1px solid var(--line); padding-top: 12px; }
.repeat-block .grid { width: 100%; }
.repeat-block .span-6 { display: flex; flex-direction: column; justify-content: flex-end; }
.repeat-block .span-6 > label { white-space: nowrap; }
.repeat-add-row { margin: 4px 0 8px; }
.sibling-lock.is-locked {
  opacity: 0.55;
  filter: grayscale(1);
  pointer-events: none;
}
.sibling-lock.is-locked input,
.sibling-lock.is-locked select,
.sibling-lock.is-locked textarea {
  background: #e6e8ec;
}
.add-repeat {
  background: #5B378C;
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.add-repeat:hover { background: #4a2c73; }

/* Masci, Hale & Wilson — match areasontosmile.com */
.theme-masci {
  --navy: #31467A;
  --accent: #31467A;
  --line-blue: #4FA4D7;
  --ink: #222;
  --muted: #5c6570;
  --bg: #f3f5f8;
  --card: #fff;
  font-family: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.theme-masci .mhw-top {
  background: #31467A;
  color: #fff;
}
.theme-masci .mhw-top-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.theme-masci .mhw-top a { color: #fff; text-decoration: none; }
.theme-masci .mhw-top a:hover { color: #cfe6f6; }
.theme-masci .mhw-header {
  background: #fff;
  border-bottom: 1px solid #e6eaef;
  text-align: center;
  padding: 18px 24px 14px;
}
.theme-masci .mhw-logo-link { display: inline-block; }
.theme-masci .mhw-header img {
  display: block;
  height: 72px;
  width: auto;
  max-width: min(520px, 92vw);
  margin: 0 auto;
  object-fit: contain;
}
.theme-masci .mhw-kicker {
  margin: 12px 0 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #31467A;
  font-weight: 600;
}
.theme-masci .wrap { flex: 1; }
.theme-masci .card {
  border: 0;
  border-radius: 0;
  box-shadow: 0 10px 30px rgba(49, 70, 122, 0.08);
  border-top: 3px solid #4FA4D7;
}
.theme-masci .mhw-welcome { text-align: center; padding: 40px 36px; }
.theme-masci .mhw-script {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 22px;
  color: #31467A;
  margin: 0 0 16px;
  line-height: 1.35;
}
.theme-masci h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  font-size: 32px;
  margin: 0 0 12px;
  color: #1a1a1a;
}
.notice-panel { border: 1px solid #d9dde3; background: #fff; }
.notice-panel .heading.banner {
  margin: 0;
  text-align: center;
  letter-spacing: 0.02em;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 700;
  background: #f3f4f6;
  border: 0;
  border-bottom: 1px solid #d9dde3;
  padding: 10px 16px;
}
.notice-panel .note { margin: 0; padding: 12px 16px 0; font-size: 14px; line-height: 1.45; }
.notice-panel .note:last-child { padding-bottom: 16px; }
.theme-masci .heading {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: #1a1a1a;
  background: #f4f5f7;
  border: 1px solid #e6e8ec;
  border-bottom: 2px solid #1a1a1a;
  padding: 8px 12px;
  margin: 18px 0 4px;
  font-size: 20px;
}
.theme-masci .sig {
  height: 130px;
  min-height: 0;
  background: #fff;
  border: 1px dashed #d0d5dc;
  border-radius: 2px;
}
.theme-masci .sig-actions { text-align: center; margin: 18px 0 22px; }
.theme-masci .sig-clear { min-width: 108px; padding: 10px 18px; }
.theme-masci .nav { margin-top: 0; align-items: center; }
.theme-masci .nav button { flex: 0 0 auto; }
.theme-masci .mhw-cta { margin: 28px 0 8px; }
.theme-masci button, .theme-masci .btn {
  border-radius: 2px;
  background: #31467A;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
  padding: 14px 26px;
}
.theme-masci button:hover, .theme-masci .btn:hover { background: #26365f; }
.theme-masci button.ghost, .theme-masci .btn.ghost {
  background: #eef1f6;
  color: #31467A;
  text-transform: uppercase;
}
.theme-masci .staff-link { margin-top: 22px; font-size: 13px; }
.theme-masci .staff-link a { color: #5c6570; }
.theme-masci .progress-wrap { --step: #31467A; }
.theme-masci .mhw-foot {
  background: #31467A;
  color: #d7e0ee;
  text-align: center;
  padding: 16px 24px;
  font-size: 13px;
}
.theme-masci .login {
  margin: 40px auto 56px;
  padding: 44px 40px 40px;
  text-align: left;
}
.theme-masci .login h2 {
  font-size: 34px;
  margin-bottom: 10px;
}
.theme-masci .login-eyebrow { color: #4FA4D7; }
.theme-masci .login-lead { margin-bottom: 28px; }
.theme-masci .login-form label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: #31467A;
}
.theme-masci .login-form input {
  min-height: 48px;
  padding: 12px 14px;
  background: #f8fafc;
}
.theme-masci .login-submit {
  width: 100%;
  margin-top: 10px;
  padding: 16px 26px;
}
.theme-masci .login-error {
  border-radius: 2px;
  border-left: 3px solid #b42318;
}
.theme-masci input[type=text],
.theme-masci input[type=email],
.theme-masci input[type=date],
.theme-masci input[type=tel],
.theme-masci input[type=password],
.theme-masci select,
.theme-masci textarea {
  border-radius: 2px;
  border-color: #cfd6de;
}
.theme-masci input:focus,
.theme-masci select:focus,
.theme-masci textarea:focus {
  outline: 2px solid #4FA4D7;
  outline-offset: 1px;
}

/* Van Vliet Orthodontics — match vvortho.com */
.theme-vanvliet {
  --navy: #5B378C;
  --accent: #5B378C;
  --teal: #3EB5A8;
  --ink: #222;
  --muted: #555;
  --bg: #f6f7fb;
  --card: #fff;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: #dfe7ee;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.45), rgba(246, 247, 251, 0.62)),
    url("/brand/vanvliet/page-bg.jpg");
  background-size: cover;
  background-position: center 28%;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.theme-vanvliet .vv-top {
  background: #5B378C;
  color: #fff;
}
.theme-vanvliet .vv-top-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 22px;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-align: center;
}
.theme-vanvliet .vv-top a { color: #fff; text-decoration: none; }
.theme-vanvliet .vv-top a:hover { color: #b8efe8; }
.theme-vanvliet .vv-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #ececf2;
  text-align: center;
  padding: 14px 24px 12px;
}
.theme-vanvliet .vv-logo-link { display: inline-block; }
.theme-vanvliet .vv-header img {
  display: block;
  height: 72px;
  width: auto;
  max-width: min(420px, 92vw);
  margin: 0 auto;
  object-fit: contain;
}
.theme-vanvliet .vv-kicker {
  margin: 10px 0 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5B378C;
  font-weight: 700;
}
.theme-vanvliet .wrap { flex: 1; }
.theme-vanvliet .card {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(91, 55, 140, 0.08);
}
.theme-vanvliet .vv-welcome { padding: 36px 32px; }
.theme-vanvliet .vv-script {
  font-family: Poppins, "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3EB5A8;
  margin: 0 0 8px;
}
.theme-vanvliet h2 {
  font-family: Poppins, "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 32px;
  margin: 0 0 12px;
  color: #5B378C;
}
.theme-vanvliet .form-shell h2 {
  font-size: 26px;
  margin-bottom: 16px;
}
.theme-vanvliet .heading {
  font-family: Poppins, "Open Sans", sans-serif;
  background: #2f7d84;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 4px;
  margin: 22px 0 8px;
}
.theme-vanvliet .subhead {
  color: #1f2a37;
  font-weight: 700;
}
.theme-vanvliet input[type=text],
.theme-vanvliet input[type=email],
.theme-vanvliet input[type=date],
.theme-vanvliet input[type=tel],
.theme-vanvliet select,
.theme-vanvliet textarea {
  background: #f4f7fb;
  border-color: #d5deea;
  border-radius: 4px;
}
.theme-vanvliet input:focus,
.theme-vanvliet select:focus,
.theme-vanvliet textarea:focus {
  outline: 2px solid rgba(91, 55, 140, 0.25);
  border-color: #5B378C;
  background: #fff;
}
.theme-vanvliet .home-grid { margin-top: 24px; }
.theme-vanvliet .home-grid a {
  border-radius: 8px;
  border: 1px solid #e6e2ef;
  border-top: 4px solid #5B378C;
}
.theme-vanvliet .home-grid a:nth-child(2) { border-top-color: #3EB5A8; }
.theme-vanvliet .home-grid a:hover { border-color: #5B378C; }
.theme-vanvliet .home-grid h3 {
  margin: 0 0 8px;
  font-family: Poppins, "Open Sans", sans-serif;
  color: #5B378C;
}
.theme-vanvliet button, .theme-vanvliet .btn {
  border-radius: 4px;
  background: #5B378C;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
  padding: 14px 26px;
}
.theme-vanvliet button:hover, .theme-vanvliet .btn:hover { background: #4a2c73; }
.theme-vanvliet button.ghost, .theme-vanvliet .btn.ghost {
  background: #eef6f5;
  color: #5B378C;
  text-transform: uppercase;
}
.theme-vanvliet .staff-link { margin-top: 22px; font-size: 13px; }
.theme-vanvliet .staff-link a { color: #5B378C; }
.theme-vanvliet .progress-wrap { --step: #2f9fe0; }
.theme-vanvliet .vv-foot {
  background: #5B378C;
  color: #e4dcf0;
  text-align: center;
  padding: 16px 24px;
  font-size: 13px;
}
.theme-vanvliet .login {
  margin: 40px auto 56px;
  padding: 44px 40px 40px;
}
.theme-vanvliet .login h2 { font-size: 30px; }
.theme-vanvliet .login-eyebrow { color: #3EB5A8; }
.theme-vanvliet .login-form label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: #5B378C;
}
.theme-vanvliet .login-form input,
.theme-vanvliet .login-form textarea {
  min-height: 48px;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 4px;
}
.theme-vanvliet .login-form textarea { min-height: 96px; }
.theme-vanvliet .login-submit { width: 100%; margin-top: 10px; padding: 16px 26px; }
.theme-vanvliet input:focus,
.theme-vanvliet select:focus,
.theme-vanvliet textarea:focus {
  outline: 2px solid #3EB5A8;
  outline-offset: 1px;
}
.theme-vanvliet .vv-pick {
  background: #fff;
  border: 1px solid #e6e4ee;
  border-radius: 8px;
  max-width: 760px;
  margin: 36px auto 24px;
  padding: 32px 32px 28px;
  box-shadow: 0 10px 28px rgba(91, 55, 140, 0.08);
}
.theme-vanvliet .vv-pick-head h2 {
  font-size: 26px;
  margin: 0 0 6px;
}
.theme-vanvliet .vv-pick-head p {
  margin: 0 0 22px;
  color: #555;
  font-size: 15px;
}
.theme-vanvliet .vv-pick-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: none;
  margin: 0;
}
.theme-vanvliet .vv-pick-card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "kicker go"
    "title go"
    "note go";
  column-gap: 16px;
  row-gap: 2px;
  align-items: center;
  min-height: 0;
  padding: 18px 20px;
  border-radius: 6px;
  border: 1px solid #e3e0ea;
  border-left-width: 4px;
  background: #fff;
  box-shadow: none;
  text-decoration: none;
  text-align: left;
  color: #222;
}
.theme-vanvliet .vv-pick-minor { border-left-color: #3EB5A8; }
.theme-vanvliet .vv-pick-adult { border-left-color: #5B378C; }
.theme-vanvliet .vv-pick-card:hover { background: #faf9fc; border-color: #d9d4e4; }
.theme-vanvliet .vv-pick-minor:hover { border-left-color: #3EB5A8; }
.theme-vanvliet .vv-pick-adult:hover { border-left-color: #5B378C; }
.theme-vanvliet .vv-pick-kicker {
  grid-area: kicker;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5c6570;
}
.theme-vanvliet .vv-pick-title {
  grid-area: title;
  font-family: Poppins, "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  color: #5B378C;
}
.theme-vanvliet .vv-pick-note {
  grid-area: note;
  font-size: 14px;
  line-height: 1.4;
  color: #555;
}
.theme-vanvliet .vv-pick-go {
  grid-area: go;
  background: #5B378C;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: 4px;
}
.theme-vanvliet .form-shell {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(91, 55, 140, 0.08);
}
.theme-vanvliet .form-hero {
  height: 170px;
  background: #E8DEF5;
}
.theme-vanvliet .form-hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.theme-vanvliet .form-shell .card {
  box-shadow: none;
  border-radius: 0;
}
.theme-vanvliet .progress-wrap {
  --step: #2f9fe0;
  background: #fff;
  margin: -8px -8px 16px;
  padding: 16px 12px 12px;
}
.theme-vanvliet .login-shell {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  max-width: 900px;
  margin: 28px auto 48px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(91, 55, 140, 0.14);
}
.theme-vanvliet .login-visual {
  position: relative;
  min-height: 460px;
  background: #E8DEF5;
}
.theme-vanvliet .login-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}
.theme-vanvliet .login-visual-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 24px;
  background: linear-gradient(transparent, rgba(91, 55, 140, 0.94));
  color: #fff;
}
.theme-vanvliet .login-visual-copy p {
  margin: 0 0 4px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b8efe8;
}
.theme-vanvliet .login-visual-copy strong {
  font-family: Poppins, "Open Sans", sans-serif;
  font-size: 20px;
}
.theme-vanvliet .login-shell .login {
  margin: 0;
  max-width: none;
  box-shadow: none;
  border-radius: 0;
  padding: 40px 36px;
}
.theme-ganz {
  background-image: none;
  background-color: #eef3f5;
  --accent: #08608F;
  --navy: #08608F;
}
.theme-ganz .vv-top { background: #08608F; }
.theme-ganz .vv-top a:hover { color: #b7e4e2; }
.theme-ganz h2,
.theme-ganz .vv-kicker,
.theme-ganz .vv-pick-title,
.theme-ganz .login-form label { color: #08608F; }
.theme-ganz .vv-header img {
  height: 112px;
  width: auto;
  max-width: min(560px, 92vw);
  max-height: none;
}
.theme-ganz .card,
.theme-ganz .form-shell { box-shadow: 0 10px 28px rgba(8, 96, 143, 0.08); }
.theme-ganz button,
.theme-ganz .btn,
.theme-ganz .vv-pick-go,
.theme-ganz .vv-foot { background: #08608F; }
.theme-ganz button:hover,
.theme-ganz .btn:hover { background: #064e73; }
.theme-ganz button.ghost,
.theme-ganz .btn.ghost {
  background: #e8f3f6;
  color: #08608F;
}
.staff-password button,
.staff-person-actions button,
.resend button,
.resend summary {
  letter-spacing: 0;
  text-transform: none;
}
.theme-ganz .vv-pick-minor,
.theme-ganz .vv-pick-minor:hover { border-left-color: #41A4A1; }
.theme-ganz .vv-pick-adult,
.theme-ganz .vv-pick-adult:hover { border-left-color: #08608F; }
.theme-ganz .progress-wrap { --step: #08608F; }
.theme-ganz .vv-privacy .disclaimer-practice { color: #08608F; }
.theme-ganz .vv-privacy .disclaimer-agree { background: #08608F !important; }
.theme-ganz .vv-privacy .disclaimer-agree:hover { background: #064e73 !important; }
.theme-ganz .vv-foot { color: #d7e8ef; }

.allergy-dialog { width: min(560px, 100%); text-align: center; }
.allergy-list { padding: 28px 28px 8px; max-height: min(62vh, 520px); overflow: auto; }
.allergy-list h2 { margin: 0 0 16px; font-size: 28px; }
.allergy-row { margin: 8px 0; font-size: 16px; color: #6b7280; }
.allergy-row strong { color: #222; }
.allergy-dialog .disclaimer-footer { justify-content: center; gap: 12px; border-top: 0; background: #fff; }
.theme-masci .allergy-list h2 { font-family: Arial, Helvetica, sans-serif; font-size: 28px; font-weight: 700; }
.theme-masci .allergy-confirm,
.theme-masci .allergy-confirm:hover { background: #5b4bdb; text-transform: none; letter-spacing: 0; font-size: 16px; }
.theme-masci .allergy-edit,
.theme-masci .allergy-edit:hover { background: #e53935; color: #fff; text-transform: none; letter-spacing: 0; font-size: 16px; }
.theme-vanvliet .allergy-edit,
.theme-vanvliet .allergy-edit:hover { background: #3EB5A8; }
.theme-ganz .allergy-edit,
.theme-ganz .allergy-edit:hover { background: #41A4A1; }
.bmi-table { width: 100%; border-collapse: collapse; margin: 8px 0 4px; }
.bmi-table th, .bmi-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #e3e5ea; }
.refuse-row { text-align: center; }
.refuse-toggle.on { background: #6b7280; }

@media (max-width: 800px) {
  .theme-ganz .vv-header img { height: 72px; max-height: none; width: auto; max-width: 88vw; }
  .theme-vanvliet .vv-pick { padding: 22px 16px; margin: 16px auto; }
  .theme-vanvliet .vv-pick-card { grid-template-columns: 1fr; grid-template-areas: "kicker" "title" "note" "go"; }
  .theme-vanvliet .vv-pick-go { justify-self: start; margin-top: 8px; }
  .theme-vanvliet .login-shell { grid-template-columns: 1fr; }
  .theme-vanvliet .login-visual { min-height: 200px; }
}
