:root {
  --red: #e31820;
  --red-dark: #c4141b;
  --black: #1c1c1c;
  --text: #555555;
  --muted: #858585;
  --line: #e5e5e5;
  --page: #f7f7f7;
  --white: #ffffff;
  --container: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--black);
  background: var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button,
input,
textarea {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.top-line {
  height: 4px;
  background: var(--red);
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 14px;
  line-height: 1.2;
}

.brand-copy small {
  color: var(--muted);
  font-size: 10px;
}

.event-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}

.event-label i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

.page {
  width: min(calc(100% - 40px), 760px);
  margin-inline: auto;
  padding: 54px 0 28px;
}

.form-card {
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.06);
}

.form-intro {
  margin-bottom: 28px;
  padding-bottom: 27px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.form-intro > p:last-child {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

.event-meta {
  margin-bottom: 6px;
  color: var(--black);
  font-size: 13px;
  font-weight: 700;
}

.event-meta-sub {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
}

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

.registration-form {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 18px;
}

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

.field > span {
  font-size: 12px;
  font-weight: 700;
}

.field b {
  color: var(--red);
}

input,
textarea {
  width: 100%;
  border: 1px solid #d7d7d7;
  border-radius: 10px;
  outline: none;
  color: var(--black);
  background: var(--white);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input {
  min-height: 50px;
  padding: 12px 14px;
}

textarea {
  min-height: 100px;
  padding: 13px 14px;
  resize: none;
}


input[type="number"] {
  appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

input::placeholder,
textarea::placeholder {
  color: #aaaaaa;
}

input:hover,
textarea:hover {
  border-color: #bdbdbd;
}

input:focus,
textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(227, 24, 32, 0.09);
}

.age-input {
  position: relative;
}

.age-input input {
  padding-right: 50px;
}

.age-input small {
  position: absolute;
  top: 50%;
  right: 13px;
  color: var(--muted);
  font-size: 10px;
  transform: translateY(-50%);
  pointer-events: none;
}

.checkbox-field {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
}

.checkbox-field input {
  width: 17px;
  height: 17px;
  min-height: 0;
  margin-top: 2px;
  accent-color: var(--red);
}

.checkbox-field span {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.submit-button {
  min-height: 52px;
  margin-top: 2px;
  border: 0;
  border-radius: 10px;
  color: var(--white);
  background: var(--red);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}

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

.submit-button:active {
  transform: translateY(0);
}

.submit-button:focus-visible {
  outline: 3px solid rgba(227, 24, 32, 0.22);
  outline-offset: 3px;
}

.privacy-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.site-footer {
  padding: 0 20px 28px;
  color: #999999;
  font-size: 10px;
  text-align: center;
}

.site-footer p {
  margin: 0 0 4px;
}

.footer-contact {
  margin-bottom: 6px;
  color: var(--text);
  font-size: 12px;
}

.footer-contact a {
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 600px) {
  body {
    background: var(--white);
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .header-inner {
    min-height: 64px;
  }

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

  .brand-copy strong {
    font-size: 12px;
  }

  .brand-copy small {
    display: none;
  }

  .event-label {
    gap: 7px;
    font-size: 11px;
  }

  .event-label i {
    width: 7px;
    height: 7px;
  }

  .page {
    width: min(calc(100% - 36px), 760px);
    padding: 27px 0 22px;
  }

  .form-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .form-intro {
    margin-bottom: 23px;
    padding-bottom: 22px;
  }

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

  h1 {
    margin-bottom: 9px;
    font-size: 30px;
  }

  .form-intro > p:last-child {
    font-size: 13px;
    line-height: 1.55;
  }

  .registration-form {
    gap: 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .field > span {
    font-size: 12px;
  }

  input {
    min-height: 48px;
    padding: 11px 13px;
    font-size: 14px;
  }

  textarea {
    min-height: 100px;
    padding: 12px 13px;
    font-size: 14px;
  }

  .age-field {
    max-width: none;
  }

  .submit-button {
    min-height: 50px;
    margin-top: 4px;
  }

  .privacy-note {
    padding-inline: 5px;
  }

  .site-footer {
    padding-bottom: 24px;
  }
}
