.lead-dialog, .lead-contact {
  --lead-text: #f0f9fc;
  --lead-muted: #c1d9e3;
  --lead-accent: #8de2ff;
  --lead-line: #537584;
  --lead-input: #081b2a;
  color: var(--lead-text);
  background: linear-gradient(150deg, #173946, #102634 38%, #0a1926 100%);
  border: 1px solid #618393;
  color-scheme: dark;
}
.lead-dialog {
  box-sizing: border-box;
  width: min(620px, calc(100vw - 28px));
  max-height: calc(100dvh - max(28px, env(safe-area-inset-top) + env(safe-area-inset-bottom)));
  border-radius: 20px;
  padding: 0;
  overflow: auto;
  box-shadow: 0 24px 80px #020a10bf;
}
.lead-dialog::backdrop { background: #020b14b8; backdrop-filter: blur(7px); }
.lead-dialog-panel, .lead-contact { padding: clamp(20px, 4vw, 40px); }
.lead-contact { border-radius: 18px; max-width: 760px; margin-block: 0 clamp(28px, 4.5vw, 52px); scroll-margin-top: 20px; }
.lead-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.lead-dialog-header h2, .lead-contact h2 {
  margin: 0 0 1.3rem;
  color: var(--lead-text);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
  letter-spacing: -.055em;
  line-height: 1.1;
}
.lead-close {
  display: grid; place-items: center;
  flex: 0 0 44px; height: 44px;
  margin: -.28rem -.25rem 0 0;
  color: var(--lead-text); background: #1c3e4d;
  border: 1px solid #7295a1; border-radius: 50%; cursor: pointer;
}
.lead-close:hover { background: #285466; }
.lead-close svg { width: 18px; height: 18px; }
.lead-form { display: grid; gap: .95rem; }
.lead-field, .lead-consent { display: grid; gap: .4rem; min-width: 0; }
.lead-field label, .lead-topic--fixed > span, .lead-channel legend { font-size: .875rem; color: var(--lead-muted); }
.lead-field input, .lead-field select {
  box-sizing: border-box;
  width: 100%; min-width: 0; min-height: 45px;
  padding: .6rem .75rem;
  border: 1px solid var(--lead-line); border-radius: 8px;
  color: var(--lead-text); background: var(--lead-input);
  font: inherit; font-size: 1rem;
}
.lead-field select { padding-right: 1.5rem; }
.lead-field [aria-invalid="true"] { border-color: #ffafac; }
.lead-dialog :focus-visible, .lead-contact :focus-visible { outline: 2px solid var(--lead-accent); outline-offset: 3px; }
.lead-topic--fixed { display: grid; gap: .25rem; padding-bottom: .95rem; border-bottom: 1px solid #a6d4e247; }
.lead-topic--fixed strong { font-size: 1.05rem; font-weight: 500; }
.lead-channel { min-width: 0; margin: 0; padding: 0; border: 0; }
.lead-channel legend { margin-bottom: .5rem; color: var(--lead-text); font-weight: 500; }
.lead-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.lead-consent p { margin: 0 0 .15rem; color: var(--lead-muted); font-size: .82rem; line-height: 1.5; }
.lead-consent a { color: var(--lead-accent); text-decoration: underline; text-underline-offset: .18em; }
.lead-consent label { display: flex; align-items: start; gap: .55rem; font-size: .85rem; line-height: 1.45; cursor: pointer; }
.lead-consent input { flex: 0 0 auto; accent-color: var(--lead-accent); width: 1rem; height: 1rem; margin: .13rem 0 0; }
.lead-actions { display: flex; flex-wrap: wrap; gap: .65rem 1rem; align-items: center; }
.lead-actions button:disabled { opacity: .7; cursor: wait; }
.lead-error { color: #ffbfb9; font-size: .82rem; line-height: 1.4; }
.lead-status { flex: 1 1 14rem; margin: 0; font-size: .88rem; line-height: 1.45; }
.lead-status[data-state="error"] { color: #ffbfb9; }
.lead-status[data-state="success"] { color: #b6f4ce; }
.lead-form [hidden] { display: none; }
@media (max-width: 500px) {
  .lead-field-grid { grid-template-columns: 1fr; }
  .lead-actions .clinic-cta { width: 100%; }
  .lead-dialog { border-radius: 14px; }
}
.clinic-cta.lead-cta { color: #031b30; text-decoration: none; }
.contact-lead-invitation {
  margin-block: clamp(1.7rem, 4vw, 3.5rem);
  padding: clamp(1.1rem, 3vw, 2rem);
  border-radius: 1.1rem;
  background: #e6f4fb;
  color: #102533;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
}
.contact-lead-invitation h2 { margin: 0; font-size: clamp(1.25rem, 2.5vw, 1.75rem); line-height: 1.15; }
.arch-detail__reader > .interior-frame:last-child { padding-block: .1rem; }
