:root {
  --bg: #eef2f6;
  --surface: #ffffff;
  --ink: #34363a;
  --muted: #73777f;
  --line: #cfd9e6;
  --blue: #075daa;
  --blue-dark: #034985;
  --solar: #f6a800;
  --soft: #f7f9fc;
  --shadow: 0 24px 60px -34px rgba(18, 32, 51, 0.38);
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Arial, "Helvetica Neue", sans-serif;
  background: linear-gradient(180deg, #eef2f6 0 210px, #ffffff 210px 100%);
  color: var(--ink);
}

.page {
  width: min(1040px, calc(100% - 36px));
  margin: 0 auto;
  padding: 4px 0 36px;
}

.intro {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 0 0 4px;
  border-bottom: 2px solid var(--solar);
}

.brand,
.event-link {
  display: inline-flex;
  align-items: center;
}

.event-link {
  justify-self: end;
}

.brand img {
  width: min(160px, 34vw);
  height: auto;
  display: block;
}

.event-logo {
  width: min(210px, 46vw);
  height: auto;
  display: block;
}

.contact-form {
  margin-top: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 30px;
  display: grid;
  gap: 20px;
}

.grid {
  display: grid;
  gap: 18px;
}

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

label {
  display: grid;
  gap: 7px;
  color: #373a40;
  font-size: 0.94rem;
  font-weight: 800;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  padding: 10px 12px;
}

input:focus {
  outline: 3px solid rgba(246, 168, 0, 0.23);
  border-color: var(--solar);
}

.choice-block,
.consent {
  background: var(--soft);
  border: 1px solid #dce4ee;
  border-radius: 8px;
  padding: 18px;
}

.choice-block p {
  margin: 0 0 14px;
  font-weight: 800;
}

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

.choice-grid label,
.consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  line-height: 1.35;
}

input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--blue);
}

.consent {
  display: grid;
  gap: 16px;
}

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

.form-actions p {
  margin: 0;
  color: var(--muted);
}

button {
  min-width: 178px;
  border: 1px solid var(--blue-dark);
  background: var(--blue);
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 13px 20px;
}

button:hover {
  background: var(--blue-dark);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.success { color: #0d7a45 !important; font-weight: 800; }
.error { color: #b42318 !important; font-weight: 800; }

@media (max-width: 780px) {
  .page {
    width: min(100% - 24px, 1040px);
    padding-top: 4px;
  }

  .intro {
    grid-template-columns: minmax(32px, auto) minmax(0, 1fr);
    gap: 10px;
    min-height: 0;
    padding-bottom: 4px;
  }

  .brand img {
    width: min(128px, 34vw);
  }

  .event-link {
    justify-self: end;
  }

  .event-logo {
    width: min(168px, 46vw);
  }

  .contact-form {
    padding: 20px;
  }

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

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

  button {
    width: 100%;
  }
}
