/* Holland Celtic Festival 2027 — Registration Prototype */
:root {
  --green-dark: #0e2f1f;
  --green: #16452e;
  --green-light: #1f5c3d;
  --gold: #c9a227;
  --gold-light: #e6c65c;
  --cream: #f6f1e3;
  --ink: #22221c;
  --red: #8c2f2f;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(160deg, var(--green-dark), var(--green));
  color: var(--cream);
  text-align: center;
  padding: 2.5rem 1rem 2rem;
  border-bottom: 6px double var(--gold);
}
.site-header .knot { font-size: 1.6rem; color: var(--gold-light); letter-spacing: .5rem; }
.site-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: .4rem 0 .2rem;
}
.site-header .dates { color: var(--gold-light); font-style: italic; font-size: 1.1rem; }
.site-header .tagline { margin-top: .6rem; font-size: 1rem; opacity: .85; }

/* ---------- Nav / breadcrumb ---------- */
.crumb {
  max-width: 1100px; margin: 1rem auto 0; padding: 0 1.25rem;
  font-size: .95rem;
}
.crumb a { color: var(--green); font-weight: bold; text-decoration: none; }
.crumb a:hover { color: var(--gold); }

/* ---------- Tiles ---------- */
main { flex: 1; }
.intro { max-width: 760px; margin: 2rem auto 0; padding: 0 1.25rem; text-align: center; font-size: 1.1rem; line-height: 1.6; }

.tiles {
  max-width: 1100px;
  margin: 2rem auto 3rem;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.tile {
  background: #fff;
  border: 1px solid #ddd3b8;
  border-top: 5px solid var(--gold);
  border-radius: 10px;
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  transition: transform .15s ease, box-shadow .15s ease;
}
.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(14,47,31,.18);
  border-top-color: var(--green);
}
.tile .icon { font-size: 3rem; line-height: 1; }
.tile h2 { color: var(--green); margin: .9rem 0 .5rem; font-size: 1.35rem; letter-spacing: .03em; }
.tile p { font-size: .98rem; line-height: 1.5; color: #4c4a40; }
.tile .cta {
  display: inline-block; margin-top: 1.1rem; padding: .5rem 1.4rem;
  background: var(--green); color: var(--cream);
  border-radius: 999px; font-size: .9rem; letter-spacing: .05em;
}
.tile:hover .cta { background: var(--gold); color: var(--green-dark); }

/* ---------- Coming soon ---------- */
.hold-wrap {
  max-width: 640px; margin: 3rem auto; padding: 0 1.25rem; text-align: center;
}
.hold-card {
  background: #fff; border: 1px solid #ddd3b8; border-radius: 12px;
  padding: 3rem 2rem; box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.hold-card .icon { font-size: 4rem; }
.hold-card h2 { color: var(--green); font-size: 1.8rem; margin: 1rem 0 .5rem; }
.badge-soon {
  display: inline-block; background: var(--gold); color: var(--green-dark);
  font-weight: bold; letter-spacing: .12em; text-transform: uppercase;
  padding: .4rem 1.2rem; border-radius: 999px; font-size: .85rem; margin: .8rem 0 1rem;
}
.hold-card p { line-height: 1.65; color: #4c4a40; }
.hold-card .back {
  display: inline-block; margin-top: 1.6rem; padding: .6rem 1.6rem;
  background: var(--green); color: var(--cream); text-decoration: none; border-radius: 999px;
}
.hold-card .back:hover { background: var(--gold); color: var(--green-dark); }

/* ---------- Registration form ---------- */
.form-wrap { max-width: 680px; margin: 2rem auto 3rem; padding: 0 1.25rem; }
/* Two-column: form left, info text right */
.form-layout {
  max-width: 1150px; margin: 2rem auto 3rem; padding: 0 1.25rem;
  display: flex; gap: 1.5rem; align-items: flex-start;
}
.form-layout .form-col { flex: 1.15; min-width: 0; }
.form-layout .info-col { flex: 0.85; min-width: 0; position: sticky; top: 1rem; }
.info-card h3 { color: var(--green); font-size: 1.15rem; margin: 1.1rem 0 .4rem; }
.info-card h3:first-child { margin-top: 0; }
.info-card p, .info-card li { line-height: 1.6; color: #4c4a40; font-size: .95rem; }
.info-card ul { padding-left: 1.2rem; margin: .4rem 0; }
@media (max-width: 820px) {
  .form-layout { flex-direction: column; }
  .form-layout .info-col { position: static; width: 100%; }
}
.form-card {
  background: #fff; border: 2px solid var(--green); border-top: 6px solid var(--gold);
  border-radius: 12px; padding: 2rem 2.25rem; box-shadow: 0 2px 10px rgba(0,0,0,.1);
}
.field-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.field-row label { flex: 1; min-width: 120px; }
.form-card h2 { color: var(--green); font-size: 1.6rem; margin-bottom: .3rem; }
.form-card .sub { color: #666; margin-bottom: 1.5rem; }
.reg-form label { display: block; font-weight: bold; margin: 1.1rem 0 .3rem; color: var(--green-dark); }
.reg-form label .req { color: var(--red); }
.reg-form input[type=text], .reg-form input[type=email], .reg-form input[type=tel],
.reg-form input[type=number], .reg-form input[type=date],
.reg-form select, .reg-form textarea {
  width: 100%; padding: .6rem .7rem; border: 1px solid #c9c2a8; border-radius: 6px;
  font-family: inherit; font-size: 1rem; background: var(--cream);
}
.reg-form input:focus, .reg-form select:focus, .reg-form textarea:focus {
  outline: 2px solid var(--gold); border-color: var(--gold);
}
.reg-form textarea { min-height: 90px; resize: vertical; }
.reg-form .radio-row { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-top: .3rem; }
.reg-form .radio-row label { font-weight: normal; margin: 0; display: flex; align-items: center; gap: .4rem; }
.option-list { display: flex; flex-direction: column; gap: .5rem; margin-top: .3rem; }
.option-list label {
  display: flex; align-items: center; gap: .6rem;
  font-weight: normal; margin: 0;
  background: var(--cream); border: 1px solid #c9c2a8; border-radius: 6px;
  padding: .65rem .9rem; cursor: pointer;
}
.option-list label:hover { border-color: var(--gold); }
.option-list .price { margin-left: auto; font-weight: bold; color: var(--green); white-space: nowrap; }
.option-list input[type=number] { width: 70px; padding: .3rem .4rem; border: 1px solid #c9c2a8; border-radius: 6px; font-family: inherit; font-size: 1rem; }
.reg-form .submit-btn {
  margin-top: 1.8rem; width: 100%; padding: .85rem; border: none; border-radius: 999px;
  background: var(--green); color: var(--cream); font-family: inherit; font-size: 1.1rem;
  letter-spacing: .05em; cursor: pointer;
}
.reg-form .submit-btn:hover { background: var(--gold); color: var(--green-dark); }
.reg-form .submit-btn:disabled { opacity: .6; cursor: wait; }
.form-error { color: var(--red); font-weight: bold; margin-top: 1rem; }
.waiver-box {
  max-height: 220px; overflow-y: auto;
  background: var(--cream); border: 1px solid #c9c2a8; border-radius: 6px;
  padding: .9rem 1rem; margin-top: .3rem;
}
.waiver-box p { font-size: .88rem; line-height: 1.55; color: #4c4a40; margin-bottom: .8rem; }
.waiver-box p:last-child { margin-bottom: 0; }
.success-card { text-align: center; }
.success-card .icon { font-size: 3.5rem; }
.pay-note {
  background: var(--cream); border: 1px dashed var(--gold); border-radius: 8px;
  padding: 1rem 1.2rem; margin-top: 1.2rem; font-size: .95rem; line-height: 1.55; text-align: left;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-dark); color: var(--cream);
  text-align: center; padding: 1.4rem 1rem; font-size: .9rem;
  border-top: 4px double var(--gold);
}
.site-footer a { color: var(--gold-light); text-decoration: none; }

/* ---------- Admin ---------- */
.admin-body { background: #eef0ea; }
.admin-bar {
  background: var(--green-dark); color: var(--cream);
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1.5rem; border-bottom: 4px solid var(--gold);
}
.admin-bar h1 { font-size: 1.2rem; letter-spacing: .04em; }
.admin-bar .proto { background: var(--red); font-size: .7rem; padding: .25rem .7rem; border-radius: 4px; letter-spacing: .1em; text-transform: uppercase; }
.admin-wrap { max-width: 1150px; margin: 1.5rem auto 3rem; padding: 0 1.25rem; }

.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem; margin-bottom: 1.5rem;
}
.stat {
  background: #fff; border-radius: 10px; padding: 1.1rem 1.2rem;
  border-left: 5px solid var(--gold); box-shadow: 0 1px 4px rgba(0,0,0,.08);
  display: block; text-decoration: none; color: inherit;
  transition: transform .12s ease, box-shadow .12s ease;
}
a.stat:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(14,47,31,.18); }

/* Registration detail cards (admin-list) */
.detail-card .detail-head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .5rem; margin-bottom: .9rem;
  border-bottom: 2px solid var(--gold); padding-bottom: .6rem;
}
.detail-card .detail-head h2 { margin: 0; font-size: 1.2rem; color: var(--green); }
.cat-tag {
  background: var(--green); color: #fff; border-radius: 999px;
  font-size: .75rem; padding: .2rem .7rem; margin-right: .5rem;
}
.kv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .45rem 1.2rem; }
.kv { font-size: .92rem; }
.kv span:first-child { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: #888; }
@media print {
  .admin-bar button, .filters, .site-footer { display: none !important; }
  .admin-body { background: #fff; }
  .panel { box-shadow: none; border: 1px solid #ccc; page-break-inside: avoid; }
}
.stat .num { font-size: 2rem; font-weight: bold; color: var(--green); }
.stat .lbl { font-size: .85rem; color: #666; text-transform: uppercase; letter-spacing: .05em; }

.panel {
  background: #fff; border-radius: 10px; padding: 1.4rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.08); margin-bottom: 1.5rem;
}
.panel h2 { color: var(--green); font-size: 1.1rem; margin-bottom: 1rem; letter-spacing: .03em; }

.bar-row { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.bar-row .bar-lbl { width: 170px; font-size: .9rem; text-align: right; }
.bar-track { flex: 1; background: #e8e5d8; border-radius: 999px; height: 22px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--green), var(--green-light)); border-radius: 999px; display: flex; align-items: center; justify-content: flex-end; padding-right: .6rem; color: #fff; font-size: .78rem; min-width: 2.2rem; }

.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filters button {
  border: 1px solid var(--green); background: #fff; color: var(--green);
  padding: .35rem 1rem; border-radius: 999px; cursor: pointer; font-family: inherit; font-size: .88rem;
}
.filters button.active, .filters button:hover { background: var(--green); color: #fff; }

table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { text-align: left; background: var(--green-dark); color: var(--cream); padding: .6rem .8rem; letter-spacing: .03em; }
td { padding: .55rem .8rem; border-bottom: 1px solid #eee6d0; }
tr:hover td { background: #faf7ec; }
.pill { padding: .18rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: bold; }
.pill.approved { background: #dcefdd; color: #1e6b2e; }
.pill.pending  { background: #fdf3d7; color: #8a6d1a; }
.pill.waitlist { background: #fde3d7; color: #a04a1e; }
.row-actions button {
  border: none; background: none; cursor: pointer; font-size: .85rem;
  color: var(--green); text-decoration: underline; font-family: inherit; padding: 0 .3rem;
}
.note { font-size: .85rem; color: #777; font-style: italic; margin-top: .8rem; }

/* ---------- Registration status toggles ---------- */
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: .55rem 0; border-bottom: 1px solid #eee6d0;
}
.toggle-row:last-child { border-bottom: none; }
.toggle-row .t-label { font-size: .95rem; }
.toggle-row .t-state { font-size: .8rem; font-weight: bold; margin-right: .8rem; }
.toggle-row .t-state.open { color: #1e6b2e; }
.toggle-row .t-state.closed { color: var(--red); }
.switch { position: relative; display: inline-block; width: 46px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; inset: 0; background: #b9b3a0; border-radius: 999px;
  cursor: pointer; transition: background .2s;
}
.switch .slider:before {
  content: ""; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: transform .2s;
}
.switch input:checked + .slider { background: var(--green); }
.switch input:checked + .slider:before { transform: translateX(22px); }
