:root {
  --color-background: #f8f9fa;
  --color-page-start: #f5f7fa;
  --color-page-end: #e8ecf4;
  --color-text: #212326;
  --color-muted: #5d6268;
  --color-soft: #fbfbfc;
  --color-line: #d8d8d8;
  --color-blue: #3b7fbe;
  --color-dark-blue: #28679d;
  --color-logo-blue: #092666;
  --color-side-blue: #163b59;
  --color-success: #27ae60;
  --color-success-dark: #327555;
  --color-destructive: #ec4739;
  --shadow-soft: 0 18px 44px rgba(15, 23, 42, 0.13), 0 6px 16px rgba(15, 23, 42, 0.08);
  --shadow-button: 0 4px 10px rgba(15, 23, 42, 0.1), 0 1px 2px rgba(15, 23, 42, 0.06);
  --panel-height: 90vh;
  --panel-height: 90svh;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: linear-gradient(180deg, var(--color-page-start) 0%, var(--color-page-end) 100%);
  font-size: 15px;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--color-text);
  background:
    linear-gradient(135deg, rgba(59, 127, 190, 0.1) 0%, rgba(59, 127, 190, 0) 36%),
    linear-gradient(180deg, var(--color-page-start) 0%, var(--color-page-end) 100%);
  font: 400 1rem/1.6 Roboto, Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.78fr);
  gap: 26px;
  align-items: center;
  padding: 5vh 0;
  padding: 5svh 0;
}

.intro-panel,
.form-panel {
  height: var(--panel-height);
  border: 1px solid rgba(216, 216, 216, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.intro-panel {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: var(--color-soft);
  background:
    linear-gradient(145deg, rgba(9, 38, 102, 0.96) 0%, rgba(22, 59, 89, 0.94) 54%, rgba(40, 103, 157, 0.9) 100%),
    #163b59;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-mark {
  width: 164px;
  height: 55px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 26px rgba(1, 26, 67, 0.2);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: auto;
}

.event-pill,
.eyebrow,
.section-kicker,
.signal-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.event-pill {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.09);
  white-space: nowrap;
}

.intro-copy {
  max-width: 620px;
  padding: 72px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: #c5e6f9;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 20px;
  font-size: clamp(3rem, 7.2vw, 5.7rem);
  line-height: 0.95;
  font-weight: 700;
}

.lede {
  max-width: 560px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.15rem;
  line-height: 1.55;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.signal-grid > div {
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.signal-label {
  color: #c5e6f9;
}

.signal-value {
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.25;
}

.form-panel {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: auto;
}

.form-heading {
  margin-bottom: 22px;
}

.section-kicker {
  margin-bottom: 8px;
  color: var(--color-dark-blue);
}

h2 {
  margin-bottom: 0;
  color: var(--color-text);
  font-size: 1.9rem;
  line-height: 1.16;
  font-weight: 700;
}

.lead-form {
  display: grid;
  gap: 17px;
}

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

.field,
.interest-field {
  display: grid;
  gap: 7px;
}

label,
legend {
  color: var(--color-text);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
}

label span {
  color: var(--color-muted);
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  min-height: 52px;
  padding: 15px 14px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  color: var(--color-text);
  background: color-mix(in srgb, #ffffff 86%, var(--color-background) 14%);
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

input::placeholder {
  color: #8f8f8f;
}

input:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(59, 127, 190, 0.15);
}

input[aria-invalid="true"],
.interest-field.is-invalid .chip-grid {
  border-color: var(--color-destructive);
  box-shadow: 0 0 0 3px rgba(236, 71, 57, 0.12);
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.chip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.interest-chip {
  position: relative;
  min-height: 48px;
}

.interest-chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.interest-chip span {
  min-height: 48px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 12px;
  border: 1px solid rgba(59, 127, 190, 0.34);
  border-radius: 8px;
  color: var(--color-dark-blue);
  background: linear-gradient(180deg, #ffffff 0%, rgba(59, 127, 190, 0.08) 100%);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.interest-chip input:focus-visible + span {
  outline: 3px solid rgba(59, 127, 190, 0.25);
  outline-offset: 2px;
}

.interest-chip input:checked + span {
  border-color: var(--color-dark-blue);
  color: #fff;
  background: linear-gradient(135deg, var(--color-blue), var(--color-dark-blue));
  box-shadow: var(--shadow-button);
}

.interest-chip:last-child {
  grid-column: auto;
}

.field-error {
  display: block;
  color: var(--color-destructive);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.25;
}

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

.consent-copy {
  margin: -2px 0 0;
  color: var(--color-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.primary-button,
.secondary-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid var(--color-dark-blue);
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.primary-button {
  width: 100%;
  color: #fff;
  background: linear-gradient(135deg, var(--color-blue), var(--color-dark-blue));
  box-shadow: var(--shadow-button);
}

.secondary-button {
  color: var(--color-dark-blue);
  background: linear-gradient(180deg, #ffffff 0%, rgba(59, 127, 190, 0.08) 100%);
}

.primary-button:active:not(:disabled),
.secondary-button:active:not(:disabled) {
  transform: translateY(1px);
}

.primary-button:focus-visible,
.secondary-button:focus-visible {
  outline: 3px solid rgba(59, 127, 190, 0.35);
  outline-offset: 2px;
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: default;
  opacity: 0.58;
  box-shadow: none;
}

.form-alert {
  margin-bottom: 18px;
  padding: 15px;
  border-radius: 8px;
  font-size: 0.94rem;
  line-height: 1.45;
}

.form-alert[hidden] {
  display: none;
}

.form-alert strong {
  display: block;
  margin-bottom: 4px;
}

.form-alert p {
  margin-bottom: 0;
}

.form-alert-success {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(39, 174, 96, 0.26);
  color: var(--color-success-dark);
  background: linear-gradient(180deg, rgba(39, 174, 96, 0.12), rgba(39, 174, 96, 0.06));
}

.form-alert-error {
  border: 1px solid rgba(236, 71, 57, 0.24);
  color: #9f261c;
  background: linear-gradient(180deg, rgba(236, 71, 57, 0.11), rgba(236, 71, 57, 0.05));
}

.lead-form.is-complete {
  display: none;
}

.not-found-shell {
  min-height: 100vh;
  width: min(520px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 32px 0;
}

.not-found-card {
  width: 100%;
  padding: 30px;
  border: 1px solid rgba(216, 216, 216, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.not-found-card img {
  width: 150px;
  height: auto;
  margin-bottom: 20px;
}

.not-found-card h1 {
  max-width: none;
  margin-bottom: 10px;
  color: var(--color-logo-blue);
  font-size: 2rem;
  line-height: 1.1;
}

.not-found-card p {
  margin-bottom: 22px;
  color: var(--color-muted);
}

@media (max-width: 1100px) {
  html {
    font-size: 14px;
  }

  h1 {
    font-size: clamp(2.7rem, 5.6vw, 4.45rem);
  }

  h2 {
    font-size: 1.65rem;
  }

  .lede {
    font-size: 1rem;
  }

  .event-pill,
  .eyebrow,
  .section-kicker,
  .signal-label {
    font-size: 0.68rem;
  }

  .signal-value {
    font-size: 0.88rem;
  }

  label,
  legend {
    font-size: 0.8rem;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"] {
    font-size: 0.95rem;
  }

  .interest-chip span {
    font-size: 0.84rem;
  }

  .field-error {
    font-size: 0.76rem;
  }

  .consent-copy {
    font-size: 0.78rem;
  }

  .primary-button,
  .secondary-button,
  .form-alert {
    font-size: 0.9rem;
  }

  .not-found-card h1 {
    font-size: 1.75rem;
  }
}

@media (max-width: 980px) {
  .page-shell {
    width: min(760px, calc(100% - 28px));
    grid-template-columns: 1fr;
    align-items: start;
    align-content: start;
    gap: 16px;
    padding: 5vh 0;
    padding: 5svh 0;
  }

  .intro-panel {
    gap: 18px;
    padding: 20px;
  }

  .intro-copy {
    max-width: 100%;
    padding: 4px 0 0;
  }

  h1 {
    max-width: none;
    margin-bottom: 11px;
    font-size: clamp(2.25rem, 5.1vw, 2.95rem);
    line-height: 1;
  }

  .lede {
    max-width: 680px;
    font-size: 1.02rem;
    line-height: 1.48;
  }

  .signal-grid > div {
    min-height: 56px;
    padding: 11px 13px;
  }

  .form-panel {
    padding: 24px;
  }
}

@media (max-width: 860px) {
  .intro-panel {
    gap: 12px;
    justify-content: center;
  }

  .signal-grid {
    display: none;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: calc(100% - 20px);
    min-height: auto;
    padding: 5vh 0;
    padding: 5svh 0;
    gap: 8px;
  }

  .intro-panel,
  .form-panel {
    padding: 14px;
  }

  .brand-row {
    align-items: center;
    flex-direction: row;
    gap: 8px;
  }

  .brand-mark {
    width: 112px;
    height: 38px;
    padding: 6px 7px;
  }

  .event-pill {
    padding: 6px 8px;
    font-size: 0.66rem;
  }

  .intro-copy {
    padding-top: 0;
  }

  h1 {
    max-width: none;
    margin-bottom: 0;
    font-size: 1.74rem;
    line-height: 1.02;
  }

  .lede {
    display: none;
  }

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

  .chip-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .signal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .signal-grid > div {
    min-height: 58px;
    padding: 9px 7px;
    gap: 3px;
  }

  .signal-label {
    font-size: 0.64rem;
  }

  .signal-value {
    font-size: 0.72rem;
    line-height: 1.16;
  }

  h2 {
    font-size: 1.24rem;
  }

  .form-heading {
    margin-bottom: 10px;
  }

  .lead-form {
    gap: 8px;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  .primary-button,
  .secondary-button {
    min-height: 44px;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"] {
    padding: 10px 12px;
  }

  .chip-grid {
    gap: 7px;
    padding: 0;
  }

  .interest-chip,
  .interest-chip span {
    min-height: 42px;
  }

  .interest-chip span {
    padding: 8px 9px;
    font-size: 0.85rem;
  }

}

@media (max-width: 430px) {
  .page-shell {
    width: calc(100% - 12px);
    padding-top: 6px;
  }

  .intro-panel,
  .form-panel {
    padding: 12px;
  }

  .intro-panel {
    gap: 8px;
  }

  .brand-mark {
    width: 104px;
    height: 36px;
  }

  .event-pill {
    white-space: normal;
    text-align: center;
    line-height: 1.1;
  }

  .eyebrow {
    margin-bottom: 4px;
    font-size: 0.63rem;
  }

  h1 {
    font-size: 1.47rem;
  }

  .signal-grid {
    display: none;
  }

  .section-kicker {
    margin-bottom: 4px;
    font-size: 0.63rem;
  }

  h2 {
    font-size: 1.13rem;
  }

  label,
  legend {
    font-size: 0.78rem;
  }

  .consent-copy {
    font-size: 0.73rem;
    line-height: 1.3;
  }
}
