:root {
  --ink: #11151c;
  --muted-ink: rgba(17, 21, 28, 0.75);
  --orange: #ec6b23;
  --orange-dark: #c95114;
  --border: #d6d7d9;
  --soft: #f7f4f1;
  --success-bg: #eff8f1;
  --success-border: #b8d9bf;
  --error-bg: #fff2f1;
  --error-border: #e7bbb7;
  --page-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--muted-ink);
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--orange-dark);
}

img {
  max-width: 100%;
  height: auto;
}

.page-width {
  width: min(calc(100% - 40px), var(--page-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 8px 14px;
  transform: translateY(-160%);
  background: var(--ink);
  color: #fff;
  border-radius: 4px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  background: #fff;
}

.header-inner {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 22px;
}

.brand {
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
}

.brand img {
  width: 238px;
}

.main-content {
  flex: 1;
}

.thank-you {
  max-width: 650px;
  padding-block: 10px 88px;
  text-align: center;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.25rem, 7vw, 3.25rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.thank-you p {
  margin: 24px auto 0;
  font-size: 1.05rem;
  line-height: 1.8;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  padding: 12px 28px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.button:hover {
  border-color: var(--orange-dark);
  background: var(--orange-dark);
  color: #fff;
  transform: translateY(-1px);
}

.button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(236, 107, 35, 0.35);
  outline-offset: 3px;
}

.button-small {
  min-height: 44px;
  padding: 10px 22px;
  font-size: 0.92rem;
}

.contact-section {
  max-width: 700px;
  padding-block: 10px 72px;
}

.contact-intro {
  max-width: 610px;
}

.contact-intro h1 {
  font-size: clamp(2.25rem, 6vw, 3.1rem);
}

.contact-intro > p:last-child {
  margin: 18px 0 0;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--orange-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.contact-form {
  position: relative;
  margin-top: 36px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid #e5e2df;
  border-radius: 8px;
  background: var(--soft);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field-grid + .field-grid,
.field-grid + .field,
.field + .field {
  margin-top: 22px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
}

.optional {
  color: var(--muted-ink);
  font-weight: 400;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  line-height: 1.4;
}

input {
  min-height: 48px;
  padding: 10px 12px;
}

textarea {
  min-height: 170px;
  padding: 12px;
  resize: vertical;
}

input:hover,
textarea:hover {
  border-color: #a9aaad;
}

.captcha-field {
  max-width: 180px;
}

.form-trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.required-note {
  margin: 20px 0 0;
  font-size: 0.78rem;
}

.contact-form .button {
  margin-top: 18px;
}

.form-status {
  margin-top: 28px;
  padding: 14px 16px;
  border: 1px solid;
  border-radius: 4px;
  color: var(--ink);
  line-height: 1.5;
}

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

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

.back-link {
  margin: 28px 0 0;
  font-size: 0.92rem;
}

.site-footer {
  border-top: 1px solid #ebecee;
  background: #fff;
  color: var(--muted-ink);
  text-align: center;
}

.site-footer p {
  margin: 0;
  padding-block: 24px;
  font-size: 0.78rem;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .page-width {
    width: min(calc(100% - 36px), var(--page-width));
  }

  .header-inner {
    min-height: 116px;
  }

  .brand img {
    width: 220px;
  }

  .thank-you {
    padding-block: 8px 64px;
  }

  .thank-you p {
    font-size: 0.98rem;
  }

  .contact-section {
    padding-bottom: 56px;
  }

  .contact-form {
    padding: 24px 20px;
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
