:root {
  color: #eff7ff;
  background: #061426;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: #061426;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(39, 147, 224, 0.12), transparent 32%),
    #061426;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.needs-page {
  display: grid;
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 48px);
  min-height: calc(100svh - 48px);
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  margin: 24px auto;
  overflow: hidden;
  border: 1px solid rgba(93, 179, 238, 0.2);
  border-radius: 28px;
  background: #081b30;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.32);
}

.intro-panel {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 34px 36px 36px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(3, 17, 34, 0.17), rgba(4, 15, 29, 0.72)),
    url("/assets/hero-signal-background.png") center 45% / cover no-repeat;
}

.intro-panel::after {
  position: absolute;
  inset: auto -120px -180px auto;
  width: 410px;
  height: 410px;
  border: 1px solid rgba(81, 188, 255, 0.16);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 55px rgba(42, 154, 231, 0.035),
    0 0 0 110px rgba(42, 154, 231, 0.025);
  pointer-events: none;
}

.brand-row,
.brand {
  display: flex;
  align-items: center;
}

.brand-row {
  position: relative;
  z-index: 1;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 13px;
}

.brand > span {
  display: grid;
  gap: 2px;
}

.brand strong {
  color: #fff7e9;
  font-size: 17px;
  letter-spacing: 0.05em;
}

.brand small {
  color: #7e96ac;
  font-size: 9px;
  letter-spacing: 0.16em;
}

.event-date {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid rgba(93, 183, 244, 0.25);
  border-radius: 999px;
  color: #b5dfff;
  background: rgba(5, 31, 54, 0.62);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.intro-copy {
  position: relative;
  z-index: 1;
  margin: clamp(56px, 8vh, 92px) 0 34px;
}

.eyebrow,
.form-heading p {
  margin: 0;
  color: #5cc1ff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.intro-copy h1 {
  margin: 11px 0 17px;
  color: #fff3df;
  font-size: clamp(35px, 4.3vw, 55px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.intro-copy .lead {
  max-width: 420px;
  margin: 0;
  color: #b4c5d4;
  font-size: 13px;
  line-height: 1.8;
}

.form-panel {
  position: relative;
  min-width: 0;
  padding: 38px 42px;
  color: #172d3f;
  background:
    radial-gradient(circle at 100% 0, rgba(43, 148, 214, 0.1), transparent 34%),
    #f7fafc;
}

.form-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e2e9ee;
}

.form-heading h2 {
  margin: 6px 0 0;
  color: #10283a;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.form-heading > span {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: #795426;
  background: #f5e4ce;
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}

#needs-form {
  display: grid;
  gap: 16px;
  padding-top: 22px;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field > span,
.choice-field legend {
  color: #536777;
  font-size: 10px;
  font-weight: 800;
}

.field b,
.choice-field b {
  color: #c06b47;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #d7e1e8;
  border-radius: 12px;
  color: #183042;
  background: #fff;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.field input {
  height: 46px;
  padding: 0 13px;
}

.field textarea {
  min-height: 82px;
  padding: 11px 13px;
  resize: vertical;
  line-height: 1.6;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a4b0ba;
}

.field input:focus,
.field textarea:focus {
  border-color: #45a9e3;
  box-shadow: 0 0 0 3px rgba(56, 158, 220, 0.1);
}

.choice-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-field legend {
  margin-bottom: 8px;
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.choice-row label {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.choice-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice-row span {
  display: grid;
  min-height: 42px;
  place-items: center;
  padding: 6px 8px;
  border: 1px solid #d8e2e8;
  border-radius: 11px;
  color: #657786;
  background: #fff;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.choice-row input:checked + span {
  border-color: #278fc8;
  color: #0c6f9f;
  background: #e8f6ff;
  box-shadow: 0 0 0 2px rgba(39, 143, 200, 0.08);
}

.choice-row input:focus-visible + span {
  outline: 2px solid #278fc8;
  outline-offset: 2px;
}

.priority-field textarea {
  border-color: #dfc5a5;
  background: #fffdf9;
}

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

.form-error {
  margin: -3px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  color: #9e402f;
  background: #fff0ec;
  font-size: 10px;
  line-height: 1.5;
}

.submit-button {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 2px;
  border: 1px solid #eac28e;
  border-radius: 999px;
  color: #14100b;
  background: linear-gradient(90deg, #f0c691, #f8ddb9);
  box-shadow: 0 12px 28px rgba(180, 119, 54, 0.18);
  font-weight: 900;
}

.submit-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

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

.privacy-note {
  margin: -5px 0 0;
  color: #929da6;
  font-size: 9px;
  text-align: center;
}

.success-view {
  min-height: 100%;
  align-content: center;
  justify-items: center;
  padding: 40px 8%;
  text-align: center;
}

.success-view:not([hidden]) {
  display: grid;
}

.success-icon {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid #7fc6e9;
  border-radius: 50%;
  color: #0873a9;
  background: #e7f7ff;
  font-size: 31px;
  font-weight: 900;
}

.success-view p {
  margin: 24px 0 7px;
  color: #1482bb;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.success-view h2 {
  margin: 0;
  color: #10283a;
  font-size: 31px;
  letter-spacing: -0.04em;
}

.success-view > span:not(.success-icon) {
  max-width: 430px;
  margin-top: 14px;
  color: #738391;
  font-size: 12px;
  line-height: 1.8;
}

.success-view a {
  margin-top: 27px;
  padding: 11px 18px;
  border: 1px solid #d8b27f;
  border-radius: 999px;
  color: #644724;
  background: #fff6e9;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 900px) {
  .needs-page {
    width: min(100% - 24px, 720px);
    grid-template-columns: 1fr;
    margin: 12px auto;
    border-radius: 22px;
  }

  .intro-panel {
    min-height: auto;
    padding: 24px 24px 28px;
    background-position: center 54%;
  }

  .intro-copy {
    margin: 48px 0 25px;
  }

  .intro-copy h1 {
    font-size: clamp(38px, 10vw, 54px);
  }

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

@media (max-width: 560px) {
  .needs-page {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .intro-panel {
    min-height: 430px;
    padding:
      max(20px, env(safe-area-inset-top))
      18px
      24px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .event-date {
    padding-inline: 9px;
    font-size: 9px;
  }

  .intro-copy {
    margin: 52px 0 22px;
  }

  .intro-copy h1 {
    margin-top: 9px;
    font-size: clamp(37px, 11.7vw, 49px);
  }

  .intro-copy .lead {
    font-size: 12px;
  }

  .form-panel {
    padding: 28px 18px calc(34px + env(safe-area-inset-bottom));
  }

  .form-heading {
    align-items: flex-start;
    flex-direction: column-reverse;
    gap: 12px;
  }

  .form-heading h2 {
    font-size: 27px;
  }

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

  .choice-row {
    grid-template-columns: 1fr;
  }

  .choice-row span {
    min-height: 44px;
    justify-content: flex-start;
    padding-inline: 14px;
  }

  .field input {
    height: 48px;
    font-size: 16px;
  }

  .field textarea {
    min-height: 96px;
    font-size: 16px;
  }
}

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