:root {
  --ink: #132329;
  --muted: #607177;
  --line: #d9e0e2;
  --surface: #ffffff;
  --soft: #f3f6f6;
  --deep: #0b292b;
  --accent: #bb8d49;
  --accent-dark: #89622e;
  --danger: #a93434;
  --success: #236b47;
  --shadow: 0 24px 70px rgba(13, 36, 39, 0.14);
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 10%, rgba(187, 141, 73, 0.13), transparent 30%),
    linear-gradient(135deg, #eef2f1 0%, #f8f9f8 55%, #e7eceb 100%);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input, select, textarea { font: inherit; }

.page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 36px auto;
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  border: 1px solid rgba(19, 35, 41, 0.08);
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.intro-panel {
  position: relative;
  min-height: 100%;
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 44px;
  background:
    linear-gradient(rgba(7, 38, 40, 0.97), rgba(7, 38, 40, 0.94)),
    linear-gradient(120deg, #133f42, #071f21);
  color: #f5f8f7;
}

.intro-panel::after {
  content: "";
  position: absolute;
  inset: auto -90px -100px auto;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(255, 255, 255, 0.035), 0 0 0 78px rgba(255, 255, 255, 0.02);
}

.brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 8px 18px 8px 18px;
  color: #f4d7a8;
  font: 700 24px/1 Manrope, sans-serif;
}

.brand strong,
.brand small { display: block; }

.brand strong {
  letter-spacing: 0.095em;
  font: 700 14px/1.3 Manrope, sans-serif;
}

.brand small {
  margin-top: 3px;
  color: rgba(245, 248, 247, .67);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.intro-copy,
.product-list,
.process-note { position: relative; z-index: 1; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.intro-copy h1,
.form-heading h2 {
  margin: 0;
  font-family: Manrope, sans-serif;
  letter-spacing: -.035em;
}

.intro-copy h1 {
  max-width: 10ch;
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1.03;
}

.intro-copy > p:last-child {
  max-width: 50ch;
  margin: 22px 0 0;
  color: rgba(245, 248, 247, .72);
  font-size: 15px;
  line-height: 1.75;
}

.product-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-list span {
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  color: rgba(255,255,255,.82);
  font-size: 12px;
}

.process-note {
  margin-top: auto;
  padding-top: 25px;
  border-top: 1px solid rgba(255,255,255,.13);
}

.process-note strong { font: 700 14px Manrope, sans-serif; }
.process-note p {
  margin: 9px 0 0;
  color: rgba(245,248,247,.64);
  font-size: 12px;
  line-height: 1.65;
}

.form-panel { padding: 50px 54px 58px; }

.form-heading { margin-bottom: 32px; }
.form-heading h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.14; }
.form-heading > p:last-child { margin: 10px 0 0; color: var(--muted); font-size: 13px; }

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

.field-span-2 { grid-column: span 2; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field > span,
.product-fieldset legend {
  color: #31454b;
  font-weight: 650;
  font-size: 12px;
  letter-spacing: .015em;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

input, select { min-height: 45px; padding: 10px 12px; }
textarea { padding: 13px; resize: vertical; line-height: 1.55; }
input::placeholder, textarea::placeholder { color: #9aa5a8; }

input:focus,
select:focus,
textarea:focus {
  border-color: #5f8083;
  box-shadow: 0 0 0 3px rgba(43, 91, 95, .11);
}

[aria-invalid="true"] { border-color: var(--danger); }

.product-fieldset {
  margin: 23px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}

.product-fieldset legend { padding: 0 6px; }

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

.check-grid label,
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #44585e;
  font-size: 13px;
  line-height: 1.45;
}

.check-grid input,
.consent-row input {
  width: 16px;
  min-height: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--deep);
}

.field-error { min-height: 16px; margin: 8px 0 0; color: var(--danger); font-size: 12px; }

.security-note {
  margin: 22px 0;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  background: #f8f5ef;
  color: #4a4943;
}
.security-note strong { font-size: 13px; }
.security-note p { margin: 6px 0 0; font-size: 12px; line-height: 1.6; }

.turnstile-container { margin: 18px 0; }
.consent-row { margin: 21px 0; }

.submit-button {
  position: relative;
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  background: var(--deep);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: .015em;
  transition: transform .15s ease, background .15s ease, opacity .15s ease;
}
.submit-button:hover { background: #103b3e; transform: translateY(-1px); }
.submit-button:disabled { cursor: wait; opacity: .7; transform: none; }

.button-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.submit-button.is-loading .button-label { display: none; }
.submit-button.is-loading .button-spinner { display: inline-block; }

.form-status {
  display: none;
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.55;
}
.form-status.is-success { display: block; background: #eaf5ef; color: var(--success); }
.form-status.is-error { display: block; background: #faecec; color: var(--danger); }

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

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

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 920px) {
  .page-shell { grid-template-columns: 1fr; margin: 16px auto; }
  .intro-panel { min-height: auto; padding: 38px; gap: 30px; }
  .intro-copy h1 { max-width: 14ch; }
  .form-panel { padding: 40px 38px 48px; }
}

@media (max-width: 620px) {
  .page-shell { width: min(100% - 16px, 1240px); border-radius: 14px; }
  .intro-panel, .form-panel { padding: 28px 22px; }
  .field-grid, .check-grid { grid-template-columns: 1fr; }
  .field-span-2 { grid-column: span 1; }
}
