/* css/registration.css
   Single stylesheet for all registration pages.
   Delete registerstyle.css — this replaces both files. */

/* ── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #1a1a1a;
  background: #f6f5f0;
  min-height: 100vh;
}

/* ── Topbar ───────────────────────────────────────────────────────────────── */
.reg-topbar {
  background: #1a3a1a;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 56px;
  gap: 16px;
}
.reg-topbar img { height: 36px; }
.reg-topbar .site-name {
  color: #c8a84b;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .03em;
  text-decoration: none;
}
.reg-topbar .spacer { flex: 1; }
.reg-topbar a.back-link {
  color: #a8c8a8;
  font-size: 13px;
  text-decoration: none;
}
.reg-topbar a.back-link:hover { color: #fff; }

/* ── Page wrapper ─────────────────────────────────────────────────────────── */
.reg-page {
  max-width: 620px;
  margin: 40px auto;
  padding: 0 16px 80px;
}

.reg-page--wide {
  max-width: 1100px;
  margin: 32px auto;
  padding: 0 16px 80px;
}

/* ── Page header ─────────────────────────────────────────────────────────── */
.reg-header {
  margin-bottom: 28px;
}
.reg-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: #1a3a1a;
  margin-bottom: 4px;
}
.reg-header .event-label {
  font-size: 13px;
  color: #5c7a5c;
  font-weight: 500;
}

/* ── Card ────────────────────────────────────────────────────────────────── */
.reg-card {
  background: #fff;
  border: 1px solid #e2e0d8;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
}
.reg-card + .reg-card { margin-top: 0; }

.card-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #5c7a5c;
  margin-bottom: 16px;
}

/* ── Form elements ────────────────────────────────────────────────────────── */
.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-bottom: 5px;
}
label .optional {
  font-weight: 400;
  color: #888;
  font-size: 12px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #d0cec6;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: #1a1a1a;
  transition: border-color .15s;
  appearance: none;
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #3a7a3a;
  box-shadow: 0 0 0 3px rgba(58,122,58,.12);
}
textarea { resize: vertical; min-height: 80px; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .row-2 { grid-template-columns: 1fr; } }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border: 1px solid #d0cec6;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  background: #fff;
  color: #1a1a1a;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.btn:hover { background: #f0efe8; }
.btn:active { transform: scale(.98); }

.btn-primary {
  background: #1a3a1a;
  color: #fff;
  border-color: #1a3a1a;
}
.btn-primary:hover { background: #2a5a2a; border-color: #2a5a2a; }

.btn-gold {
  background: #c8a84b;
  color: #1a1a1a;
  border-color: #c8a84b;
}
.btn-gold:hover { background: #d4b85a; }

.btn-danger { border-color: #e57373; color: #c62828; }
.btn-danger:hover { background: #fff5f5; }

.btn-success { border-color: #66bb6a; color: #2e7d32; }
.btn-success:hover { background: #f1f8f1; }

.btn-ghost { border-color: transparent; color: #666; }
.btn-ghost:hover { background: #f0efe8; border-color: #d0cec6; }

.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 6px; }

.btn-full { width: 100%; justify-content: center; }

.btn-row { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

/* ── Messages ────────────────────────────────────────────────────────────── */
.form-msg {
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 14px;
  display: none;
}
.form-msg--error   { background: #fff5f5; border: 1px solid #ffcdd2; color: #c62828; }
.form-msg--success { background: #f1f8f1; border: 1px solid #c8e6c9; color: #2e7d32; }
.form-msg--info    { background: #e8f4fd; border: 1px solid #b3d9f7; color: #0d47a1; }
.form-msg--warning { background: #fffde7; border: 1px solid #fff176; color: #e65100; }

/* ── Badges & tags ───────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}
.badge-verified  { background: #e8f5e9; color: #2e7d32; }
.badge-pending   { background: #fff8e1; color: #e65100; }
.badge-waitlist  { background: #e3f2fd; color: #1565c0; }
.badge-vip       { background: #ede7f6; color: #4527a0; }
.badge-cancelled { background: #fce4ec; color: #c62828; }

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.tag-individual { background: #f0efe8; color: #555; }
.tag-family     { background: #e1f5ee; color: #085041; }
.tag-vip        { background: #ede7f6; color: #4527a0; }

/* ── Stats grid ──────────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.stat-card {
  background: #fff;
  border: 1px solid #e2e0d8;
  border-radius: 10px;
  padding: 14px 16px;
  text-align: center;
}
.stat-card__val {
  font-size: 26px;
  font-weight: 700;
  color: #1a3a1a;
}
.stat-card__lbl {
  font-size: 11px;
  color: #888;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ── Capacity bar ────────────────────────────────────────────────────────── */
.capacity-wrap { margin-bottom: 20px; }
.capacity-wrap__label {
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}
.capacity-bar-track {
  height: 8px;
  background: #e2e0d8;
  border-radius: 4px;
  overflow: hidden;
}
.capacity-bar-fill {
  height: 100%;
  background: #1a3a1a;
  border-radius: 4px;
  transition: width .4s;
}

/* ── Admin table ─────────────────────────────────────────────────────────── */
.admin-table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid #e2e0d8; }
table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
thead th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #888;
  border-bottom: 1px solid #e2e0d8;
  white-space: nowrap;
  background: #fafaf8;
}
tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #f0efe8;
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #fafaf8; }
tbody tr.row-deleted td { background: #fffde7; opacity: .75; }

.actions-cell { display: flex; gap: 5px; flex-wrap: wrap; }
.center { text-align: center; }
.empty-row { text-align: center; padding: 32px; color: #888; }

/* ── Filter bar ──────────────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  align-items: center;
}
.filter-bar input {
  flex: 1;
  min-width: 180px;
  max-width: 280px;
}
.filter-btn { font-size: 12px; padding: 5px 12px; }
.filter-btn.active { background: #1a3a1a; color: #fff; border-color: #1a3a1a; }

/* ── Admin topbar ────────────────────────────────────────────────────────── */
.admin-topbar {
  background: #1a3a1a;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.admin-topbar .title { color: #c8a84b; font-weight: 700; font-size: 15px; flex: 1; }
.admin-topbar .user  { color: #a8c8a8; font-size: 12px; }
.admin-topbar .btn-signout {
  padding: 5px 12px; font-size: 12px;
  background: transparent; border-color: #5c7a5c; color: #a8c8a8;
}
.admin-topbar .btn-signout:hover { background: #2a5a2a; color: #fff; }

/* ── Check-in result block ───────────────────────────────────────────────── */
.checkin-result {
  background: #fff;
  border: 1px solid #e2e0d8;
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 16px;
}
.checkin-result__name {
  font-size: 18px;
  font-weight: 700;
  color: #1a3a1a;
  margin-bottom: 8px;
}
.checkin-result__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  font-size: 13px;
  margin: 12px 0;
}
.checkin-result__grid .lbl { color: #888; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.checkin-result__grid .val { font-weight: 600; margin-top: 1px; }

/* ── Status page (index.html success states) ─────────────────────────────── */
.status-box {
  background: #fff;
  border: 1px solid #e2e0d8;
  border-radius: 14px;
  padding: 40px 32px;
  text-align: center;
  max-width: 480px;
  margin: 60px auto;
}
.status-box .icon { font-size: 48px; margin-bottom: 16px; }
.status-box h2 { font-size: 20px; color: #1a3a1a; margin-bottom: 8px; }
.status-box p  { font-size: 14px; color: #555; line-height: 1.6; }
.status-box .btn-row { justify-content: center; }

/* ── Verify page states ──────────────────────────────────────────────────── */
.verify-state { display: none; }
.verify-icon  { font-size: 52px; text-align: center; margin-bottom: 16px; }

/* ── Login page ──────────────────────────────────────────────────────────── */
.login-wrap {
  max-width: 380px;
  margin: 80px auto;
  padding: 0 16px;
}
.login-wrap h1 {
  font-size: 22px;
  color: #1a3a1a;
  margin-bottom: 4px;
  font-weight: 700;
}
.login-wrap .subtitle { font-size: 13px; color: #888; margin-bottom: 24px; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .reg-page, .reg-page--wide { padding: 0 12px 60px; margin-top: 20px; }
  .reg-card { padding: 18px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .admin-table-wrap { font-size: 12px; }
}
