body.contact-open { overflow: hidden; }

.contact-dialog {
  --contact-paper: #f3f7f8;
  --contact-pine: #173d50;
  --contact-rule: #bccbd1;
  --contact-quiet: #4f6570;
  box-sizing: border-box;
  width: min(980px, calc(100% - 48px));
  max-width: none;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  border: 1px solid #ffffffe0;
  border-radius: 28px;
  background: var(--contact-paper);
  color: #173442;
  box-shadow: 0 32px 100px #071e3866, 0 6px 24px #071e3820, inset 0 1px 0 #fff;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 24px;
  color-scheme: light;
}
.contact-dialog::backdrop { background: #091f3980; -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px); }
.contact-dialog *, .contact-bottom * { box-sizing: border-box; }
.contact-dialog [hidden] { display: none !important; }
.contact-sheet { padding: 22px 32px 30px; }
.contact-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}
.contact-top p { margin: 0; color: var(--contact-quiet); font-size: 12px; line-height: 1.5; letter-spacing: .025em; }
.contact-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  flex: 0 0 auto;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--glass-ink, #17343e);
  box-shadow: none;
  font: 600 13px/1.4 "Segoe UI", Arial, sans-serif;
  cursor: pointer;
}
.contact-close:hover { background: #ffffff4d; }
.contact-close span { font-size: 25px; font-weight: 400; line-height: 1; }
.contact-dialog h2, .contact-dialog h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  color: var(--contact-pine);
}
.contact-dialog h2 { margin: 0; font-size: clamp(29px, 3.6vw, 40px); line-height: 1.18; letter-spacing: -.9px; text-wrap: balance; overflow-wrap: break-word; }
.contact-dialog h3 { font-size: 24px; line-height: 1.3; margin: 0 0 18px; letter-spacing: -.35px; }
.contact-intro { margin: 10px 0 0; font-size: 15px; line-height: 1.5; color: var(--contact-quiet); }
.contact-layout {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 1.5fr);
  gap: 28px;
  margin-top: 25px;
}
.contact-context {
  padding: 24px;
  border: 1px solid #ffffff8c;
  border-radius: 20px;
  background: linear-gradient(145deg, #17455ce8, #102e43f5);
  color: #f6fcff;
  box-shadow: inset 0 1px 0 #ffffff29, 0 10px 28px #113e5015;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 23px;
}
.contact-dialog .contact-eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 600; line-height: 1.4; }
.contact-context > div { min-width: 0; }
.contact-context .contact-eyebrow { color: #d0e4ef; }
.contact-unit { display: block; font: 400 34px/1.22 Georgia, serif; overflow-wrap: anywhere; }
.contact-unit-meta { margin: 10px 0 0; color: #dcebf2; font-size: 14px; line-height: 1.5; }
.contact-plan { display: block; width: 100%; max-height: 220px; object-fit: contain; border: 1px solid #b1cad44d; border-radius: 10px; background: #182b37; }
.contact-form, .contact-success, .contact-channel { min-width: 0; }
.contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-field { display: flex; flex-direction: column; gap: 6px; }
.contact-field label { font-size: 14px; font-weight: 600; line-height: 1.5; }
.contact-field label span { margin-inline-start: 5px; font-size: 12px; font-weight: 400; color: var(--contact-quiet); }
.contact-field input, .contact-field textarea {
  min-width: 0;
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #a8bbc4;
  border-radius: 12px;
  font: 16px/1.45 "Segoe UI", Arial, sans-serif;
  color: #173442;
  background: #ffffffa3;
  box-shadow: none;
  scroll-margin-block: 72px 32px;
}
.contact-field input:hover, .contact-field textarea:hover { border-color: #7d9ba9; }
.contact-field input:focus, .contact-field textarea:focus { background: #fff; border-color: #496f83; }
.contact-field textarea { resize: vertical; min-height: 80px; }
.contact-message { margin-top: 16px; }
.contact-consent { display: flex; align-items: flex-start; gap: 10px; margin: 17px 0; }
.contact-consent input { flex: 0 0 18px; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--contact-pine); }
.contact-consent label { font-size: 12.5px; line-height: 1.5; color: var(--contact-quiet); }
.contact-consent a { color: var(--contact-pine); text-decoration: underline; text-underline-offset: 3px; }
.contact-primary, .contact-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 9px;
  border: 1px solid transparent;
  font: 600 14px/1.45 "Segoe UI", Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}
.contact-primary {
  background: linear-gradient(135deg, #ffffffa6, #e6f0f4a3);
  color: var(--glass-ink, #17343e);
  border-color: #7a9ba666;
  font-weight: 600;
  box-shadow: inset 0 1px 0 #ffffffa6;
}
.contact-primary:hover { background: #ffffffbf; border-color: #7a9ba6; }
.contact-primary:disabled { opacity: .65; cursor: wait; }
.contact-secondary {
  background: transparent;
  color: var(--glass-ink, #17343e);
  font-weight: 500;
  box-shadow: none;
  text-decoration: underline;
  text-decoration-color: #17343e55;
  text-underline-offset: 4px;
}
.contact-secondary:hover { text-decoration-color: currentColor; }
.contact-dialog button:focus-visible, .contact-dialog a:focus-visible,
.contact-dialog input:focus-visible, .contact-dialog textarea:focus-visible,
.contact-bottom button:focus-visible {
  outline: 3px solid #9a631c;
  outline-offset: 3px;
}
.contact-dialog h2:focus { outline: none; }
.contact-preview-note { font-size: 12px; line-height: 1.6; color: #4f6570; margin: 15px 0 0; max-width: 430px; }
.contact-success { align-self: center; padding-block: 24px; }
.contact-success h3 { font-size: 30px; margin-bottom: 15px; }
.contact-success > p { line-height: 1.6; color: var(--contact-quiet); margin: 0 0 16px; font-size: 15px; }
.contact-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.contact-number { font: 400 32px/1.3 Georgia, serif; margin: 12px 0 25px; text-align: start; white-space: nowrap; }
.contact-number-small { font-size: 23px; margin-top: 5px; margin-bottom: 20px; }
.contact-channel-help { font-size: 13px; line-height: 1.5; color: var(--contact-quiet); margin: 12px 0; }
.contact-copy-status { font-size: 13px; color: var(--contact-pine); min-height: 20px; margin: 10px 0; }
.contact-text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font: 600 13px/1.5 "Segoe UI", Arial, sans-serif;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--glass-ink, #17343e);
  padding: 8px 0;
  box-shadow: none;
  cursor: pointer;
  text-align: center;
  text-decoration: underline;
  text-decoration-color: #17343e55;
  text-underline-offset: 4px;
}
.contact-text-button:hover { text-decoration-color: currentColor; }
.contact-bottom {
  display: none;
  position: fixed;
  z-index: 25;
  inset-inline: 0;
  bottom: 0;
  gap: 0;
  padding: 4px max(12px, env(safe-area-inset-right, 0px)) calc(4px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  border-top: 1px solid #ffffffa6;
  background: #edf4f7;
  box-shadow: 0 -2px 12px #122e430a;
}
.contact-bottom button {
  min-width: 0;
  min-height: 44px;
  font: 600 14px/1.4 "Segoe UI", Arial, sans-serif;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--glass-ink, #17343e);
  box-shadow: none;
  cursor: pointer;
  padding: 8px 12px;
}
.contact-bottom::after { content: ""; position: absolute; inset-inline-start: 50%; top: 17px; width: 1px; height: 18px; background: #17343e33; pointer-events: none; }
.contact-bottom button:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-close, .contact-primary, .contact-secondary, .contact-text-button, .contact-bottom button {
  transition: background-color .18s ease, border-color .18s ease;
  -webkit-tap-highlight-color: #b6d6e644;
}
.contact-primary:active { background: #dbeaf0d9; box-shadow: none; }
body.contact-open .contact-bottom,
body.consent-open .contact-bottom, body.menu-open .contact-bottom,
body.landing-consent-open .contact-bottom, body.landing-menu-open .contact-bottom { display: none !important; }

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .contact-dialog {
    background: linear-gradient(135deg, #ffffffeb, #edf5f8e3);
    -webkit-backdrop-filter: blur(30px) saturate(1.25);
    backdrop-filter: blur(30px) saturate(1.25);
  }
  .contact-bottom {
    background: #eef5f7c7;
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    backdrop-filter: blur(20px) saturate(1.3);
  }
  .contact-primary {
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}

.contact-dialog[dir="rtl"] h2,
.contact-dialog[dir="rtl"] h3,
.contact-dialog[dir="rtl"] .contact-unit { font-family: "Segoe UI", Tahoma, Arial, sans-serif; letter-spacing: normal; line-height: 1.4; }
.contact-dialog[dir="rtl"] .contact-primary span[aria-hidden="true"] { transform: scaleX(-1); }

@media (max-width: 720px) {
  .contact-bottom { display: grid; grid-template-columns: 1fr 1fr; }
  .contact-dialog { width: calc(100% - 20px); max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); border-radius: 22px; scroll-padding-block: 76px 24px; }
  .contact-sheet { padding: 10px 18px max(22px, env(safe-area-inset-bottom, 0px)); }
  .contact-top { position: sticky; top: 0; z-index: 2; gap: 12px; margin: -1px -8px 12px; padding: 6px 8px 10px; background: #f5f9faf2; border-radius: 0 0 16px 16px; }
  .contact-top p { font-size: 11px; }
  .contact-close { padding: 5px 9px; gap: 8px; font-size: 12px; }
  .contact-dialog h2 { font-size: 30px; letter-spacing: -.7px; }
  .contact-intro { font-size: 14px; margin-top: 8px; }
  .contact-layout { grid-template-columns: 1fr; gap: 18px; margin-top: 18px; }
  .contact-context { padding: 16px; border-radius: 16px; flex-direction: row; align-items: center; justify-content: space-between; gap: 14px; }
  .contact-context .contact-eyebrow { font-size: 11.5px; margin-bottom: 3px; }
  .contact-unit { font-size: 23px; line-height: 1.3; }
  .contact-unit-meta { font-size: 12px; margin: 3px 0 0; }
  .contact-plan { width: 78px; height: 60px; flex: 0 0 78px; border-radius: 7px; }
  .contact-dialog h3 { font-size: 22px; margin-bottom: 13px; }
  .contact-fields { grid-template-columns: 1fr; gap: 12px; }
  .contact-message { margin-top: 12px; }
  .contact-consent { margin: 14px 0; }
  .contact-consent label { font-size: 12px; }
  .contact-form > .contact-primary { width: 100%; }
  .contact-preview-note { font-size: 11.5px; margin-top: 12px; }
  .contact-success { padding-block: 5px; }
  .contact-success h3 { font-size: 27px; }
  .contact-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
  .contact-number { font-size: clamp(23px, 7vw, 27px); }
  .contact-number-small { font-size: 23px; }
}
@media (max-height: 560px) {
  .contact-dialog { max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); margin: 8px auto; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-dialog, .contact-dialog * { scroll-behavior: auto !important; }
  .contact-close, .contact-primary, .contact-secondary, .contact-text-button, .contact-bottom button { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .contact-dialog { background: #f3f7f8; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .contact-dialog::backdrop { background: #102e43d9; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .contact-context { background: #173d50; }
  .contact-field input, .contact-field textarea, .contact-top { background: #fff; }
  .contact-bottom { background: #edf4f7; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .contact-dialog :is(.contact-close, .contact-primary, .contact-secondary, .contact-text-button),
  .contact-bottom button { color: #17343e; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .contact-dialog .contact-primary, .contact-dialog .contact-primary:hover { background: #e4eef2; border-color: #7a9ba6; }
}
