:root {
  color: var(--brand-blue);
  background: transparent;
  font-family: var(--font-body);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body { background: transparent; }

button, input, select { font: inherit; }

.form-shell {
  width: 100%;
  padding: 8px;
}

.form-card {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 36px;
  background: var(--brand-white);
  border: 1px solid rgba(44, 62, 80, .1);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(44, 62, 80, .08);
}

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

h1, h2 {
  margin: 0;
  color: var(--brand-blue);
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.08;
}

h1 { font-size: clamp(26px, 5vw, 32px); }
h2 { font-size: 28px; }

label:not(.checkbox-option) > span,
legend > span:not(.legend-hint) { color: #B42318; }

.legend-hint {
  margin-left: 6px;
  color: rgba(44, 62, 80, .72);
  font-size: 12px;
  font-weight: 400;
}

form { display: grid; gap: 21px; }

.field { min-width: 0; }

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

label, legend {
  display: block;
  margin: 0 0 7px;
  color: var(--brand-blue);
  font-size: 14px;
  font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  color: var(--brand-blue);
  background: var(--brand-white);
  border: 1px solid rgba(44, 62, 80, .3);
  border-radius: 8px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

input::placeholder { color: rgba(44, 62, 80, .58); }

input:hover, select:hover { border-color: rgba(44, 62, 80, .62); }

input:focus-visible, select:focus-visible {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(67, 179, 174, .28);
}

input[aria-invalid="true"], select[aria-invalid="true"] {
  border-color: #B42318;
}

.phone-control {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: stretch;
}

.country-code {
  min-height: 48px;
  padding-inline: 14px;
  background: var(--brand-white);
  border-radius: 8px 0 0 8px !important;
  text-align: center;
}

.phone-control #phone-number {
  border-left: 0;
  border-radius: 0 8px 8px 0;
}

.fieldset {
  padding: 0;
  border: 0;
}

.field-hint, .field-error {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.4;
}

.field-hint { color: rgba(44, 62, 80, .78); }

.field-error {
  min-height: 0;
  color: #B42318;
  font-weight: 600;
}

.field-error:empty { display: none; }

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 7px;
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  margin: 0;
  padding: 7px 8px;
  border: 1px solid rgba(44, 62, 80, .16);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.checkbox-option:hover { background: var(--brand-paper); }

.checkbox-option input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--brand-blue);
}

.privacy-copy {
  margin: 3px 0 0;
  color: rgba(44, 62, 80, .85);
  font-size: 13px;
  line-height: 1.5;
}

a { color: var(--brand-purple); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

.submit-button {
  position: relative;
  width: 100%;
  min-height: 50px;
  padding: 12px 20px;
  color: var(--brand-white);
  background: var(--brand-blue);
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}

.submit-button:hover { background: var(--brand-purple); }
.submit-button:active { transform: translateY(1px); }

.submit-button:focus-visible {
  outline: 3px solid var(--brand-yellow);
  outline-offset: 3px;
}

.submit-button:disabled { cursor: wait; opacity: .76; }

.spinner {
  display: none;
  width: 18px;
  height: 18px;
  margin-left: 9px;
  vertical-align: -4px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: var(--brand-white);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.submit-button.is-loading .spinner { display: inline-block; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.form-status {
  margin: -7px 0 0;
  color: #B42318;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.error-summary {
  margin-bottom: 22px;
  padding: 13px 15px;
  color: #7A271A;
  background: #FEF3F2;
  border-left: 4px solid #B42318;
  border-radius: 6px;
  font-size: 14px;
}

.success-panel {
  padding: 42px 8px;
  text-align: center;
}

.success-panel p:last-child { margin: 12px auto 0; max-width: 320px; line-height: 1.5; }

.success-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 20px;
  color: var(--brand-white);
  background: var(--brand-blue);
  border-radius: 50%;
  font-size: 28px;
  font-weight: 700;
}

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

[hidden] { display: none !important; }

@media (max-width: 520px) {
  .form-shell { padding: 0; }
  .form-card {
    padding: 20px;
    border-radius: 12px;
    box-shadow: none;
  }
}
