:root {
  color-scheme: dark;
  --bg: #08090c;
  --panel: rgb(18 20 27 / 94%);
  --text: #f4f6f8;
  --muted: #b6bdc8;
  --line: rgb(255 255 255 / 14%);
  --red: #e41625;
  --red-dark: #ad0714;
  --ok: #6ee7a8;
  --radius: .85rem;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 12%, rgb(228 22 37 / 20%), transparent 34rem),
    radial-gradient(circle at 94% 22%, rgb(228 22 37 / 12%), transparent 27rem),
    linear-gradient(135deg, #08090c 0%, #11131a 52%, #07080b 100%);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: #ff737b; }

.form-shell {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(24rem, 1fr);
  align-items: start;
  gap: clamp(1rem, 4vw, 3rem);
  width: min(100% - 2rem, 76rem);
  min-height: 100vh;
  margin-inline: auto;
  padding: clamp(1rem, 5vw, 4rem) 0;
}

.form-hero {
  position: sticky;
  top: clamp(1rem, 4vw, 3rem);
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  min-height: calc(100vh - clamp(2rem, 10vw, 8rem));
  align-content: space-between;
  padding: clamp(1.1rem, 3vw, 2rem);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgb(228 22 37 / 18%), transparent 42%),
    rgb(10 12 17 / 72%);
  box-shadow: 0 1.25rem 4rem rgb(0 0 0 / 34%);
}

.form-hero::before,
.form-hero::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.form-hero::before {
  right: -5rem;
  bottom: 12%;
  width: 14rem;
  height: 14rem;
  border: 1px solid rgb(255 98 104 / 34%);
  transform: rotate(45deg);
}

.form-hero::after {
  inset: auto 0 0 36%;
  height: 46%;
  opacity: .72;
  background: linear-gradient(135deg, transparent 0 42%, rgb(228 22 37 / 60%) 42% 45%, rgb(105 7 17 / 58%) 45% 100%);
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
}

.brand {
  position: relative;
  z-index: 1;
  display: grid;
  gap: .15rem;
  color: #fff;
  text-decoration: none;
}

.brand__name {
  font-weight: 850;
  letter-spacing: -.025em;
}

.brand__role {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.form-hero__content {
  position: relative;
  z-index: 1;
}

.form-card {
  width: 100%;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 1.25rem 4rem rgb(0 0 0 / 44%);
}

.form-card__heading {
  padding-bottom: 1.35rem;
  margin-bottom: .35rem;
  border-bottom: 1px solid var(--line);
}

.form-card__heading h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.05;
}

.form-card__heading p:last-child {
  max-width: 42rem;
  margin: .85rem 0 0;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 .6rem;
  color: #ff6268;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 100%;
  color: #fff;
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  line-height: 1;
  letter-spacing: -.055em;
  overflow-wrap: normal;
  text-shadow: 0 .15rem 1rem rgb(0 0 0 / 48%);
}

.lead {
  max-width: 42rem;
  margin: 1rem 0 1.7rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.trust-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: .7rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.trust-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .75rem;
  align-items: start;
  padding: .85rem;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: .65rem;
  background: rgb(255 255 255 / 5%);
  color: #d9dee6;
}

.trust-list__marker {
  color: #ff6268;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.field { margin-top: 1rem; }

label {
  display: block;
  margin-bottom: .4rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: rgb(255 255 255 / 6%);
  color: var(--text);
  font: inherit;
  padding: .78rem .85rem;
}

textarea {
  min-height: 11rem;
}

select option {
  background: #11131a;
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  border-color: #ff6268;
  outline: 3px solid rgb(228 22 37 / 28%);
}

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

.field-error {
  margin: .4rem 0 0;
  color: #ffb8bc;
  font-size: .9rem;
}

textarea { resize: vertical; }

.check {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  margin-top: 1.25rem;
  color: var(--muted);
  font-weight: 500;
}

.check input {
  width: auto;
  margin-top: .25rem;
}

.captcha {
  margin-top: 1.25rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  align-items: center;
  margin-top: 1.5rem;
}

button {
  min-height: 2.9rem;
  border: 1px solid rgb(255 74 85 / 72%);
  border-radius: .45rem;
  background: linear-gradient(180deg, var(--red), var(--red-dark));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 18%), 0 .4rem 1.45rem rgb(226 22 37 / 22%);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: .68rem 1.1rem;
}

button:hover { background: linear-gradient(180deg, #ff3944, #d91120); }

.notice {
  margin: 1rem 0;
  padding: .85rem 1rem;
  border-radius: .55rem;
}

.notice p { margin-top: 0; }
.notice ul { margin-bottom: 0; }
.notice--success { border: 1px solid rgb(110 231 168 / 44%); background: rgb(110 231 168 / 10%); color: var(--ok); }
.notice--error { border: 1px solid rgb(255 98 104 / 45%); background: rgb(228 22 37 / 10%); color: #ffd7da; }

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

@media (max-width: 58rem) {
  .form-shell {
    grid-template-columns: 1fr;
  }

  .form-hero {
    position: relative;
    top: auto;
    min-height: auto;
  }
}

@media (max-width: 34rem) {
  .form-shell {
    width: min(100% - 1.25rem, 76rem);
  }

  .form-card,
  .form-hero {
    padding: 1rem;
  }

  .actions {
    display: grid;
  }

  button {
    width: 100%;
  }
}
