.contact-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  width: min(1160px, calc(100% - 48px));
  margin: 28px auto 56px;
}

html[data-site-theme="light"] body.site-mode :is(.contact-info-card, .contact-form-card) {
  border: 1px solid #e5edf7 !important;
  background: #fff !important;
  box-shadow: 0 12px 30px rgba(27, 59, 106, .055) !important;
}
.contact-info-card,
.contact-form-card { min-width: 0; border-radius: 20px; padding: 26px 28px; }
html[data-site-theme="light"] body.site-mode .contact-info-card h2 { color: #182b4a !important; }
.contact-info-card h2 { margin: 0 0 18px; font-size: 22px; letter-spacing: -.04em; }
.contact-info-card ul { margin: 0; padding-left: 19px; }
html[data-site-theme="light"] body.site-mode .contact-info-card li { color: #566b89 !important; }
.contact-info-card li { padding-left: 3px; margin-bottom: 13px; font-size: 14px; line-height: 1.7; }
.contact-info-card li::marker { color: #6fa4fa; }

.contact-form-intro { margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid #e5edf7; }
.contact-form-intro h2 { margin: 0 0 6px; color: #182b4a; font-size: 22px; letter-spacing: -.04em; }
.contact-form-intro p { margin: 0; color: #667b98; font-size: 14px; line-height: 1.6; }
.contact-form { display: grid; gap: 17px; scroll-margin-top: calc(var(--kes-topbar-height, 76px) + 16px); }
.contact-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 8px; }
.field[hidden] { display: none; }
html[data-site-theme="light"] body.site-mode .field span { color: #263d5f !important; }
.field span { font-size: 14px; font-weight: 750; }
.field-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.field-heading small, .field-help { color: #788ca8; font-size: 12px; font-weight: 500; line-height: 1.45; }
.field :is(input, select, textarea) {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #d9e5f3;
  border-radius: 12px;
  background: #fbfdff;
  color: #182b4a;
  font: inherit;
  font-size: 15px;
}
.field :is(input, select, textarea)::placeholder { color: #8799b1; }
.field :is(input, select, textarea):focus { outline: none; border-color: #377cf1; box-shadow: 0 0 0 4px rgba(40, 108, 240, .12); }
.field textarea { min-height: 160px; resize: vertical; }
.contact-submit {
  justify-self: start;
  min-width: 180px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid #286cf0;
  border-radius: 99px;
  background: #286cf0;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 9px 20px rgba(31, 102, 225, .18);
  transition: transform .18s ease, box-shadow .18s ease;
}
.contact-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(31, 102, 225, .24); }
.contact-submit:focus-visible { outline: 3px solid #6fa4fa; outline-offset: 3px; }
.contact-submit:disabled { opacity: .6; cursor: wait; transform: none; }
.contact-status { min-height: 22px; font-size: 14px; font-weight: 700; }

html[data-site-theme="dark"] body.site-mode :is(.contact-info-card, .contact-form-card) { border: 1px solid #2d4767; background: #14243c; box-shadow: none; }
html[data-site-theme="dark"] .contact-info-card h2,
html[data-site-theme="dark"] .field span { color: #edf5ff; }
html[data-site-theme="dark"] .contact-info-card li { color: #b9cce4; }
html[data-site-theme="dark"] .contact-form-intro { border-color: #2d4767; }
html[data-site-theme="dark"] .contact-form-intro h2 { color: #edf5ff; }
html[data-site-theme="dark"] .contact-form-intro p,
html[data-site-theme="dark"] .field-heading small,
html[data-site-theme="dark"] .field-help { color: #b9cce4; }
html[data-site-theme="dark"] .field :is(input, select, textarea) { border-color: #45617f; background: #102037; color: #edf5ff; }
html[data-site-theme="dark"] .field :is(input, select, textarea)::placeholder { color: #9db0ca; }

@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .contact-layout { width: min(1160px, calc(100% - 36px)); margin-top: 22px; margin-bottom: 36px; }
  .contact-info-card, .contact-form-card { padding: 22px 20px; }
}
@media (max-width: 480px) {
  .contact-field-row { grid-template-columns: 1fr; }
  .contact-submit { justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-submit { transition: none; }
}
