:root {
  --primary: #1769aa;
  --primary-dark: #115185;
  --text: #24313f;
  --muted: #627080;
  --border: #d8e0e7;
  --surface: #ffffff;
  --background: #f1f5f8;
  --danger: #b42318;
  --success: #067647;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #edf5fa 0%, var(--background) 55%, #eaf1f6 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

button, input, textarea { font: inherit; }

.page-shell {
  width: min(100% - 32px, 760px);
  margin: 0 auto;
  padding: 48px 0;
}

.card {
  background: var(--surface);
  border: 1px solid rgba(216, 224, 231, .8);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(31, 61, 86, .12);
  padding: 34px;
}

.auth-card { max-width: 460px; margin: 36px auto; }
.confirmation-card { max-width: 460px; margin: 36px auto; text-align: center; }
.hidden { display: none; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 11px;
  background: var(--primary);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}

.eyebrow { margin: 0 0 3px; color: var(--primary); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 0; font-size: 1.5rem; }
.intro, .help-text { color: var(--muted); line-height: 1.5; }
.intro { margin: 26px 0; }

.field { margin-top: 19px; }
label, legend { display: block; font-weight: 700; }
input, textarea {
  width: 100%;
  margin-top: 8px;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  outline: none;
}

textarea { resize: vertical; min-height: 140px; }
input:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(23, 105, 170, .14); }

.button {
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 700;
  transition: background .15s, transform .15s;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .7; transform: none; }
.button-primary { width: 100%; margin-top: 8px; background: var(--primary); color: #fff; }
.button-primary:hover { background: var(--primary-dark); }
.button-secondary { border: 1px solid var(--border); background: #fff; color: var(--text); }

.ticket-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 21px; border-bottom: 1px solid var(--border); }
.school-name { margin: 23px 0 28px; padding: 12px 14px; border-radius: 8px; background: #f4f8fb; color: var(--muted); }
.school-name strong { color: var(--text); }
fieldset { margin: 0; padding: 0; border: 0; }
.help-text { margin: 7px 0 14px; font-size: .93rem; }
.equipment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.equipment-option { position: relative; }
.equipment-option input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.equipment-option > label {
  display: block;
  margin: 0;
  padding: 13px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: .94rem;
  font-weight: 600;
  text-align: center;
}
.equipment-option input[type="checkbox"]:checked + label { border-color: var(--primary); background: #eaf4fb; color: var(--primary-dark); }
.equipment-option input[type="checkbox"]:focus + label { box-shadow: 0 0 0 3px rgba(23, 105, 170, .14); }
.quantity-field { margin-top: 8px; }
.quantity-field label { font-size: .82rem; font-weight: 600; }
.quantity-field input { margin-top: 4px; padding: 8px 10px; }
.description-field { margin-top: 25px; }
.message { min-height: 21px; margin: 17px 0 5px; font-size: .94rem; font-weight: 600; }
.message.error { color: var(--danger); }
.message.success { color: var(--success); }
.confirmation-icon {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
}
.confirmation-card p { margin: 16px 0 24px; color: var(--muted); line-height: 1.5; }

@media (max-width: 560px) {
  .page-shell { width: min(100% - 24px, 760px); padding: 18px 0; }
  .card { padding: 24px 19px; border-radius: 12px; }
  .auth-card { margin: 18px auto; }
  .ticket-header { align-items: flex-start; }
  .button-secondary { padding: 10px 13px; }
  .equipment-grid { grid-template-columns: repeat(2, 1fr); }
}
