html {
  font-size: 16px;
}

body {
  background: #f3f5f7;
  color: #20242a;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  margin: 0;
}

.container {
  max-width: 1180px;
}

.lead-form-shell {
  background: #fff;
  border: 1px solid #e2e5e9;
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(21, 30, 43, 0.11);
  margin: 32px auto;
  overflow: hidden;
}

.brand-header {
  align-items: center;
  background: linear-gradient(90deg, rgba(201, 24, 38, 0.08), transparent 36%), #fff;
  border-bottom: 6px solid #c91826;
  display: flex;
  justify-content: space-between;
  padding: 32px 48px 28px;
}

.brand-header p {
  color: #c91826;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 8px 0 0;
  text-transform: uppercase;
}

.brand-logo {
  display: block;
  height: auto;
  max-width: 360px;
  width: min(36vw, 360px);
}

.product-list {
  display: grid;
  gap: 12px;
}

.product-list span {
  border-left: 4px solid #c91826;
  color: #20242a;
  font-weight: 800;
  padding: 4px 0 4px 14px;
}

.form-intro {
  padding: 42px 48px 18px;
}

.form-intro h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.12;
  margin: 0;
}

.form-intro h1 span {
  color: #c91826;
}

.form-intro p {
  color: #4c535c;
  font-size: 1.1rem;
  margin: 16px 0 0;
}

.event-form {
  padding: 20px 48px 36px;
}

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

.form-column {
  display: grid;
  gap: 24px;
}

.numbered-field {
  display: grid;
  gap: 9px;
  grid-template-columns: 32px minmax(0, 1fr);
}

.numbered-field > span:first-child {
  align-items: center;
  background: #c91826;
  border-radius: 5px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.numbered-field label,
.numbered-field legend {
  color: #22272f;
  font-weight: 700;
  margin: 2px 0 0;
}

.numbered-field small {
  color: #5d6570;
  font-weight: 500;
}

.numbered-field input[type="text"],
.numbered-field input[type="email"],
.numbered-field input[type="tel"],
.numbered-field textarea,
.other-choice input[type="text"] {
  background: #fbfcfd;
  border: 1px solid #cfd5dd;
  border-radius: 6px;
  color: #20242a;
  font: inherit;
  grid-column: 2;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

.numbered-field textarea {
  min-height: 112px;
  resize: vertical;
}

.numbered-field input:focus,
.numbered-field textarea:focus {
  border-color: #c91826;
  box-shadow: 0 0 0 3px rgba(201, 24, 38, 0.16);
  outline: none;
}

.choices {
  border: 0;
  margin: 0;
  padding: 0;
}

.choices legend {
  float: none;
  grid-column: 2;
}

.choice {
  align-items: center;
  display: flex;
  gap: 10px;
  grid-column: 2;
  min-height: 30px;
  min-width: 0;
}

.choice input[type="checkbox"],
.choice input[type="radio"],
.consent-row input {
  accent-color: #c91826;
  flex: 0 0 18px;
  height: 18px;
  width: 18px;
}

.choice input:focus-visible,
.consent-row input:focus-visible {
  outline: 3px solid rgba(201, 24, 38, 0.28);
  outline-offset: 3px;
}

.choice span {
  line-height: 1.35;
  min-width: 0;
}

.inline-choices,
.two-column-choices {
  grid-template-columns: 32px repeat(3, minmax(0, 1fr));
}

.inline-choices legend,
.two-column-choices legend {
  grid-column: 2 / -1;
}

.inline-choices .choice,
.two-column-choices .choice {
  grid-column: auto;
}

.two-column-choices {
  grid-template-columns: 32px minmax(0, 1fr);
}

.choice-grid {
  display: grid;
  gap: 12px 24px;
  grid-column: 2;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.choice-grid .choice {
  grid-column: auto;
}

.other-choice {
  align-items: center;
}

.other-choice input[type="text"] {
  flex: 1;
  grid-column: auto;
  min-height: 36px;
}

.consent-row {
  align-items: flex-start;
  border-top: 3px solid #c91826;
  display: flex;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
}

.field-error {
  color: #b00020;
  font-size: 0.9rem;
  grid-column: 2;
}

.field-validation-valid,
.validation-summary-valid {
  display: none;
}

.consent-error {
  display: block;
  margin: 6px 0 0 30px;
}

.form-alert {
  border-radius: 6px;
  margin: 0 48px 12px;
  padding: 14px 16px;
}

.form-alert.success {
  background: #eaf7ee;
  border: 1px solid #b6e2c1;
  color: #16652b;
}

.success-panel {
  min-height: 360px;
  padding: 56px 48px 72px;
}

.success-panel .form-alert {
  margin: 0 0 22px;
}

.website-link {
  background: #c91826;
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  min-height: 46px;
  padding: 12px 22px;
  text-decoration: none;
}

.website-link:hover {
  background: #a9121e;
  color: #fff;
}

.admin-auth,
.admin-shell {
  margin: 32px auto;
  max-width: 1160px;
}

.admin-card,
.admin-panel,
.admin-table-wrap {
  background: #fff;
  border: 1px solid #e2e5e9;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(21, 30, 43, 0.08);
}

.admin-card {
  margin: 80px auto;
  max-width: 420px;
  padding: 34px;
}

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

.admin-card h1,
.admin-topbar h1,
.admin-panel h2 {
  color: #111827;
  font-weight: 800;
  margin: 18px 0;
}

.admin-card form,
.admin-form {
  display: grid;
  gap: 10px;
}

.admin-card input,
.admin-form input,
.admin-form select,
.admin-form textarea,
.status-editor input {
  border: 1px solid #cfd5dd;
  border-radius: 6px;
  font: inherit;
  min-height: 42px;
  padding: 9px 11px;
  width: 100%;
}

.admin-card button,
.admin-form button,
.admin-topbar button,
.status-editor button,
.table-action {
  background: #c91826;
  border: 0;
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 40px;
  padding: 9px 16px;
  text-decoration: none;
}

.admin-card button:hover,
.admin-form button:hover,
.admin-topbar button:hover,
.status-editor button:hover,
.table-action:hover {
  background: #a9121e;
  color: #fff;
}

.admin-topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.admin-topbar nav {
  align-items: center;
  display: flex;
  gap: 14px;
}

.admin-topbar nav a {
  color: #111827;
  font-weight: 800;
  text-decoration: none;
}

.admin-topbar form {
  margin: 0;
}

.admin-table-wrap,
.admin-panel {
  padding: 22px;
}

.admin-table {
  border-collapse: collapse;
  width: 100%;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid #e8ebef;
  padding: 13px 10px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: #4c535c;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.status-pill {
  background: #f1f4f7;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  padding: 5px 10px;
}

.empty-state {
  color: #5d6570;
  margin: 18px 0 0;
}

.admin-detail-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.lead-fields {
  display: grid;
  gap: 10px 18px;
  grid-template-columns: 160px minmax(0, 1fr);
}

.lead-fields dt {
  color: #5d6570;
  font-weight: 800;
}

.lead-fields dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.comment-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.comment-item {
  background: #f7f9fb;
  border: 1px solid #e1e6ec;
  border-radius: 8px;
  padding: 14px;
}

.comment-item p {
  margin: 0 0 8px;
}

.comment-item small {
  color: #5d6570;
}

.admin-check {
  align-items: center;
  display: inline-flex;
  gap: 10px;
}

.admin-check input {
  min-height: auto;
  width: 18px;
}

.status-editor-list {
  display: grid;
  gap: 12px;
}

.status-editor {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(180px, 1fr) 110px 110px 80px;
}

.password-hint {
  color: #5d6570;
  font-size: 0.92rem;
  margin: 2px 0 8px;
}

.user-list {
  display: grid;
  gap: 14px;
}

.user-item {
  border: 1px solid #e1e6ec;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.user-item > div {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.user-item small {
  color: #5d6570;
}

.inline-admin-form {
  margin: 0;
}

.password-admin-form {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) auto;
}

.password-admin-form input {
  border: 1px solid #cfd5dd;
  border-radius: 6px;
  font: inherit;
  min-height: 40px;
  padding: 8px 10px;
}

.inline-admin-form button,
.password-admin-form button {
  background: #c91826;
  border: 0;
  border-radius: 6px;
  color: #fff;
  font-weight: 800;
  min-height: 40px;
  padding: 8px 14px;
}

.landing-page {
  background: #fff;
  border: 1px solid #e2e5e9;
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(21, 30, 43, 0.11);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 32px auto;
  max-width: 1160px;
  min-height: 620px;
  overflow: hidden;
}

.landing-media {
  aspect-ratio: 16 / 7;
  background-position: center;
  background-size: cover;
}

.landing-content {
  padding: 54px 58px 64px;
}

.landing-logo {
  display: block;
  height: auto;
  margin-bottom: 42px;
  max-width: 320px;
  width: min(45vw, 320px);
}

.landing-content h1 {
  color: #111827;
  font-size: 3.35rem;
  font-weight: 800;
  line-height: 1.08;
  margin: 0;
  max-width: 820px;
}

.landing-subtitle {
  color: #c91826;
  font-size: 1.35rem;
  font-weight: 800;
  margin: 24px 0 0;
  max-width: 760px;
}

.landing-body {
  color: #3d4652;
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 22px 0 0;
  max-width: 760px;
}

.landing-cta,
.landing-page.not-found a {
  background: #c91826;
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  margin-top: 32px;
  min-height: 48px;
  padding: 13px 24px;
  text-decoration: none;
}

.landing-cta:hover,
.landing-page.not-found a:hover {
  background: #a9121e;
  color: #fff;
}

.landing-page.not-found {
  min-height: 360px;
  padding: 58px;
}

.landing-editor {
  max-width: 820px;
}

.landing-table {
  margin-top: 18px;
}

.form-alert.error,
.validation-summary-errors {
  background: #fff1f2;
  border: 1px solid #f1b6bf;
  color: #9f1020;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 26px;
}

.form-actions button {
  background: #c91826;
  border: 0;
  border-radius: 6px;
  color: #fff;
  font-weight: 800;
  min-height: 46px;
  padding: 0 28px;
}

.form-actions button:hover {
  background: #a9121e;
}

.contact-strip {
  align-items: center;
  background: #c91826;
  color: #fff;
  display: flex;
  font-weight: 800;
  gap: 28px;
  justify-content: center;
  padding: 24px;
}

.contact-strip span + span {
  border-left: 1px solid rgba(255, 255, 255, 0.55);
  padding-left: 28px;
}

@media (max-width: 900px) {
  .brand-header,
  .form-intro,
  .event-form {
    padding-left: 24px;
    padding-right: 24px;
  }

  .brand-header,
  .contact-strip {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .form-intro h1 {
    font-size: 2.1rem;
  }

  .inline-choices,
  .two-column-choices {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .inline-choices .choice,
  .two-column-choices .choice {
    grid-column: 2;
  }

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

  .contact-strip span + span {
    border-left: 0;
    padding-left: 0;
  }

  .admin-topbar,
  .admin-topbar nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-detail-grid,
  .lead-fields,
  .status-editor,
  .password-admin-form {
    grid-template-columns: 1fr;
  }

  .landing-content {
    padding: 34px 24px 44px;
  }

  .landing-content h1 {
    font-size: 2.35rem;
  }
}
