:root {
  --hz-blue: #00a7d8;
  --hz-blue-dark: #0087b4;
  --ink: #111827;
  --muted: #667085;
  --line: #d9dee8;
  --soft: #f3f7fb;
  --danger: #b42318;
  --danger-soft: #fff1f0;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #f6f8fb 0%, #eef3f7 100%);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(22px, 4vw, 64px) 18px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  width: 238px;
  text-decoration: none;
}

.brand-logo-img {
  display: block;
  width: 238px;
  height: 72px;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: multiply;
}

.brand-subline {
  color: var(--hz-blue-dark);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.top-nav a,
.secondary-button,
.small-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-actions form {
  margin: 0;
}

main {
  width: min(1120px, calc(100% - 44px));
  margin: 0 auto 56px;
}

.hero,
.page-title,
.thanks-card,
.admin-login,
.event-overview,
.form-card,
.table-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.hero {
  padding: clamp(28px, 4vw, 54px);
  margin-bottom: 18px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--hz-blue-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 10px;
  font-size: clamp(34px, 6vw, 70px);
  line-height: 0.98;
}

h2 {
  margin-bottom: 4px;
  font-size: 26px;
}

.lead,
.page-title p,
.event-overview p,
.admin-login p {
  color: var(--muted);
  font-size: 18px;
}

.event-overview {
  padding: clamp(18px, 3vw, 28px);
  text-align: center;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 20px;
  margin-bottom: 18px;
  text-align: center;
}

.event-image-button {
  display: block;
  width: min(760px, 100%);
  margin: 0 auto;
  border: 1px solid #111827;
  border-radius: 8px;
  overflow: hidden;
  background: #111827;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.event-image-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.2);
}

.event-image-button img {
  display: block;
  width: 100%;
  max-height: 315px;
  object-fit: cover;
}

.event-actions {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  border: 0;
  border-radius: 6px;
  background: var(--hz-blue);
  color: var(--white);
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

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

.page-title,
.thanks-card,
.admin-login {
  padding: clamp(22px, 4vw, 42px);
  margin-bottom: 18px;
}

.page-title h1,
.thanks-card h1,
.admin-login h1 {
  font-size: clamp(30px, 5vw, 50px);
}

.form-card {
  padding: clamp(18px, 3vw, 30px);
}

.compact-form {
  max-width: 420px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.field {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field-small {
  grid-column: span 3;
}

.field span,
.slot-picker legend {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

input:focus {
  border-color: var(--hz-blue);
  outline: 3px solid rgba(0, 167, 216, 0.18);
}

.slot-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
  padding: 0;
  border: 0;
}

.check-card {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid #b8dfea;
  border-radius: 8px;
  background: #eefaff;
  color: var(--ink);
  line-height: 1.45;
}

.check-card input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.muted {
  color: var(--muted);
}

.slot-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.slot-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
  overflow: hidden;
}

.slot-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #edf8fc;
}

.slot-card-head h2 {
  margin: 0;
  font-size: 22px;
}

.slot-card-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 30px;
  border-radius: 999px;
  background: var(--hz-blue);
  color: var(--white);
  font-weight: 900;
}

.slot-people {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.participant-pill {
  padding: 10px 12px;
  border: 1px solid #d8ecf3;
  border-radius: 6px;
  background: #fbfdff;
}

.participant-pill strong,
.participant-pill small {
  display: block;
}

.participant-pill small,
.empty-note {
  color: var(--muted);
}

.time-badge,
.nda-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.time-badge {
  background: #e9f7fb;
  color: var(--hz-blue-dark);
}

.nda-badge.ok {
  background: #e7f8ed;
  color: #067647;
}

.nda-badge.missing {
  background: #fff4e5;
  color: #b54708;
}

.user-create {
  margin-bottom: 16px;
}

.user-create h2 {
  font-size: 22px;
}

.user-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.user-form-grid .field {
  grid-column: auto;
}

.slot-picker legend {
  width: 100%;
  margin-bottom: 4px;
}

.slot-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  font-weight: 800;
  cursor: pointer;
}

.slot-option input {
  width: 16px;
  min-height: 16px;
}

.notice {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 6px;
  font-weight: 700;
}

.notice p {
  margin: 0;
}

.notice p + p {
  margin-top: 4px;
}

.notice-error {
  border: 1px solid #f3b8b4;
  background: var(--danger-soft);
  color: var(--danger);
}

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.admin-head h1 {
  margin: 0;
  font-size: 40px;
}

.table-card {
  padding: 14px;
}

.table-meta {
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 800;
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 960px;
}

th,
td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

td {
  font-size: 14px;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.row-actions form {
  margin: 0;
}

.small-button,
.danger-button {
  min-height: 32px;
  padding: 7px 10px;
  font-size: 13px;
}

.danger-button {
  border-color: #f0b8b0;
  background: var(--danger);
  color: var(--white);
}

.empty-row {
  color: var(--muted);
  text-align: center;
}

@media (max-width: 760px) {
  .site-header,
  .section-head,
  .admin-head {
    align-items: flex-start;
    flex-direction: column;
  }

  main {
    width: min(100% - 24px, 1120px);
  }

  .field,
  .field-small {
    grid-column: span 12;
  }

  .top-nav,
  .slot-picker {
    width: 100%;
  }

  .slot-board,
  .user-form-grid {
    grid-template-columns: 1fr;
  }

  .user-form-grid .primary-button {
    width: 100%;
  }

  .brand {
    width: 190px;
  }

  .brand-logo-img {
    width: 190px;
    height: 58px;
  }

  .top-nav a,
  .primary-button,
  .secondary-button {
    width: 100%;
  }
}
