@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: light;
  font-family: "DM Sans", sans-serif;
  color: #0f1a3d;
  background: #f4f6fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
  font-weight: 400;
  --blue: #00217a;
  --blue-dark: #001652;
  --accent: #8fb8ff;
  --muted: #6f7891;
  --line: #e1e6f0;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
}

button,
input,
select {
  font: inherit;
}

.site-header,
main,
.site-footer {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--blue);
  text-decoration: none;
}

.brand-mark {
  width: auto;
  height: 44px;
  display: block;
}

.brand-name {
  display: grid;
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.3px;
  line-height: 1.25;
}

.brand-name span {
  font-size: 10px;
  letter-spacing: 2px;
}

.header-label,
.eyebrow,
.section-kicker,
.site-footer {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.header-label {
  color: #4f5f8a;
}

.hero {
  min-height: 376px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  padding: 52px 64px;
  border-radius: 10px;
  color: white;
  background: var(--blue);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 475px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 24px;
  color: #c5cfe8;
  font-size: 9px;
}

.eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

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

h1 {
  margin-bottom: 16px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(42px, 5.4vw, 64px);
  font-weight: 700;
  letter-spacing: -3.7px;
  line-height: 1.03;
}

h1 span {
  color: var(--accent);
}

.hero-description {
  max-width: 360px;
  margin-bottom: 25px;
  color: #bfcbe6;
  font-size: 14px;
  line-height: 1.7;
}

.event-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #e1e7f5;
  font-size: 11px;
}

.event-icon {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border: 1px solid #6f83c0;
  border-radius: 50%;
  color: var(--accent);
}

.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 30px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 10, 45, 0.28);
}

.event-logo {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
}

.form-section {
  padding: 48px 4px 44px;
}

.form-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 30px;
}

.section-kicker {
  margin-bottom: 9px;
  color: #6b7899;
  font-size: 9px;
}

h2 {
  margin-bottom: 7px;
  font-family: "Manrope", sans-serif;
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -1.1px;
}

.form-intro {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.required-note {
  padding-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
}

.required-note span,
.field label span,
.consent > span:last-child span {
  color: #d87546;
}

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

.field {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  margin-bottom: 8px;
  color: #1e2a52;
  font-size: 12px;
  font-weight: 600;
}

.field input,
.field select {
  width: 100%;
  height: 48px;
  border: 1px solid #dde3ef;
  border-radius: 5px;
  outline: none;
  color: #16224a;
  background: #fff;
  font-size: 13px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field input {
  padding: 0 14px;
}

.field select {
  appearance: none;
  padding: 0 40px 0 14px;
  cursor: pointer;
}

.field input::placeholder,
.field select:invalid {
  color: #a0a8bd;
}

.field input:focus,
.field select:focus {
  border-color: #3d5bb5;
  box-shadow: 0 0 0 3px rgba(0, 33, 122, 0.12);
}

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

.select-wrap {
  position: relative;
}

.select-wrap::after {
  width: 8px;
  height: 8px;
  position: absolute;
  top: 17px;
  right: 16px;
  border-right: 1.5px solid #5a6584;
  border-bottom: 1.5px solid #5a6584;
  content: "";
  pointer-events: none;
  transform: rotate(45deg);
}

.field-hint,
.field-error {
  margin-top: 7px;
  font-size: 10px;
}

.field-hint {
  color: #808aa3;
}

.field-error {
  color: #b33d31;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 25px;
  padding: 14px 16px;
  border: 1px solid #c8d0e2;
  border-radius: 5px;
  color: var(--blue);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
}

.consent input {
  width: 1px;
  height: 1px;
  position: absolute;
  opacity: 0;
}

.consent-box {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: grid;
  place-items: center;
  margin-top: 1px;
  border: 1.5px solid #3d5bb5;
  border-radius: 3px;
  background: #fff;
}

.consent input:checked + .consent-box {
  border-color: var(--blue);
  background: var(--blue);
}

.consent input:checked + .consent-box::after {
  width: 10px;
  height: 5px;
  border-bottom: 2px solid white;
  border-left: 2px solid white;
  content: "";
  transform: translateY(-1px) rotate(-45deg);
}

.consent input:focus-visible + .consent-box {
  outline: 3px solid rgba(0, 33, 122, 0.25);
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 27px;
  padding-top: 23px;
  border-top: 1px solid var(--line);
}

.form-footer p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  color: #4f5f8a;
  font-size: 13px;
  font-weight: 500;
}

.footer-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.submit-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding: 0 17px 0 20px;
  border: 0;
  border-radius: 4px;
  color: white;
  background: var(--blue);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}

.submit-button:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

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

.submit-button:focus-visible {
  outline: 3px solid rgba(0, 33, 122, 0.35);
  outline-offset: 3px;
}

.button-arrow {
  color: var(--accent);
  font-size: 18px;
  font-weight: 400;
}

.storage-note {
  margin: 13px 0 0;
  color: #959db2;
  font-size: 10px;
  text-align: right;
}

.form-message {
  margin: -12px 0 22px;
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 12px;
}

.form-message[data-type="success"] {
  color: #215f3e;
  background: #e4f2e6;
}

.form-message[data-type="error"] {
  color: #8b3025;
  background: #fbeae5;
}

.site-footer {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: #868fa6;
  font-size: 8px;
}

@media (max-width: 700px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 36px, 540px);
  }

  .site-header {
    height: 72px;
  }

  .header-label {
    font-size: 8px;
    letter-spacing: 1px;
  }

  .hero {
    min-height: 470px;
    grid-template-columns: 1fr;
    padding: 36px 28px 0;
  }

  .hero-copy {
    align-self: start;
  }

  .eyebrow {
    margin-bottom: 19px;
    font-size: 8px;
  }

  h1 {
    font-size: clamp(43px, 12vw, 59px);
  }

  .hero-description {
    max-width: 330px;
    font-size: 13px;
  }

  .hero-art {
    margin: 28px 0 28px;
    padding: 18px 20px;
  }

  .event-logo {
    max-width: 280px;
  }

  .form-section {
    padding-top: 35px;
  }

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

  h2 {
    font-size: 25px;
  }

  .required-note {
    flex: 0 0 auto;
    padding-top: 24px;
    font-size: 10px;
  }

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

  .field-full {
    grid-column: auto;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .submit-button {
    justify-content: space-between;
  }

  .storage-note {
    text-align: left;
  }
}

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