:root {
  --bg: #f4f1e9;
  --surface: #fffdf9;
  --surface-strong: #ffffff;
  --text: #18202b;
  --muted: #5a6470;
  --border: #d8cdbb;
  --primary: #1f6fb2;
  --primary-strong: #17598f;
  --primary-soft: #e9f2fb;
  --accent-soft: #f6ead7;
  --success-bg: #e9f6ee;
  --success-border: #9ac7a5;
  --error-bg: #fbe9e7;
  --error-border: #d9a39d;
  --shadow: 0 14px 28px rgba(24, 32, 43, 0.08);
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(31, 111, 178, 0.12), transparent 28%),
    linear-gradient(180deg, #f7f2e8 0%, var(--bg) 55%, #efe7d9 100%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--primary);
}

img {
  max-width: 100%;
}

.contact-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 18px 56px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand-link img {
  width: 54px;
  height: 54px;
  border-radius: 14px;
}

.brand-stack {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.2rem;
  font-weight: 800;
}

.brand-kicker {
  font-size: 0.92rem;
  color: var(--muted);
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.topbar-links a {
  text-decoration: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
}

.surface {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.page-hero {
  padding: 28px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2f5f93;
}

h1,
h2,
h3 {
  margin: 0;
}

.headline {
  margin-top: 10px;
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.lede {
  margin: 14px 0 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-layout {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.mini-card-grid {
  display: grid;
  gap: 14px;
}

.mini-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-strong);
}

.mini-card.alt {
  background: linear-gradient(180deg, #fdf5e8 0%, #fffdf9 100%);
}

.mini-card p,
.page-card p,
.page-card li,
.inline-note,
.helper,
.footer-note,
.subtle-list li {
  color: var(--muted);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.chip {
  border: 1px solid #c4d6e8;
  background: var(--primary-soft);
  color: #0f4f86;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.88rem;
  font-weight: 700;
}

.cta-row,
.button-row,
.link-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cta-row {
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  background: var(--primary-strong);
}

.button.secondary {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--border);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: #f6fbff;
}

.page-grid,
.card-grid {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.page-card {
  padding: 22px;
}

.page-card.soft {
  background: linear-gradient(180deg, #fff7ee 0%, #fffdf9 100%);
}

.section-title {
  font-size: 1.5rem;
}

.detail-list,
.subtle-list {
  margin: 12px 0 0;
  padding-left: 20px;
}

.detail-list li + li,
.subtle-list li + li {
  margin-top: 8px;
}

.contact-callout {
  margin-top: 14px;
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--primary-soft);
  border: 1px solid #c7d8eb;
}

.contact-callout strong {
  display: block;
  margin-bottom: 4px;
}

.feedback-layout {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.form-shell {
  padding: 22px;
}

.form-header {
  margin-bottom: 18px;
}

.field-grid {
  display: grid;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-span {
  grid-column: 1 / -1;
}

.field label,
.legend {
  font-size: 0.95rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c8c0b2;
  border-radius: 14px;
  padding: 12px 13px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.button:focus-visible,
.topbar-links a:focus-visible,
.link-cluster a:focus-visible {
  outline: 3px solid rgba(31, 111, 178, 0.2);
  outline-offset: 2px;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  padding: 0;
}

.status-banner {
  margin-top: 16px;
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid transparent;
  font-weight: 600;
}

.status-banner.success {
  background: var(--success-bg);
  border-color: var(--success-border);
}

.status-banner.error {
  background: var(--error-bg);
  border-color: var(--error-border);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.footer-note {
  margin: 18px 0 0;
  font-size: 0.94rem;
}

.stack-top-sm {
  margin-top: 14px;
}

.stack-top-md {
  margin-top: 16px;
}

.stack-top-lg {
  margin-top: 18px;
}

@media (min-width: 760px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1.3fr) minmax(290px, 0.7fr);
    align-items: start;
  }

  .card-grid.two-col,
  .page-grid.two-col,
  .field-grid.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feedback-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: start;
  }
}

@media (max-width: 759px) {
  .contact-shell {
    padding: 20px 14px 40px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-links {
    justify-content: flex-start;
  }

  .page-hero,
  .page-card,
  .form-shell,
  .mini-card {
    padding: 20px;
  }
}
