/* Colours and sizes live here - change the variables to re-theme the site. */
:root {
  --primary: #0e6e8c;
  --primary-dark: #0a526a;
  --accent: #f2a93b;
  --bg: #fbfaf7;
  --card: #ffffff;
  --text: #1f2933;
  --muted: #667085;
  --line: #e4e0d8;
  --error: #b42318;
  --ok: #067647;
  --radius: 12px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}
a { color: var(--primary); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 2rem; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.wrap.wide { max-width: 1400px; }
main.wrap { padding-top: 28px; padding-bottom: 60px; }
.narrow { max-width: 760px; margin: 0 auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.req { color: var(--error); }
.pre { white-space: pre-wrap; }
.nowrap { white-space: nowrap; }
.inline { display: inline; margin: 0; }
.print-only { display: none; }
.trap { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* header / footer */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.site-header .bar { min-height: 64px; }
.brand { font-weight: 800; font-size: 1.15rem; color: var(--primary-dark); text-decoration: none; }
nav { display: flex; align-items: center; gap: 18px; }
nav a { text-decoration: none; color: var(--text); font-weight: 500; }
nav a:hover { color: var(--primary); }
.admin-bar { background: #1f2933; color: #fff; }
.admin-bar .bar { min-height: 42px; font-size: .9rem; }
.admin-bar nav a, .admin-bar .linklike { color: #fff; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; padding: 18px 0; }
.site-footer a { color: var(--muted); }

/* buttons */
.btn, button.btn {
  display: inline-block; background: var(--primary); color: #fff !important; border: 2px solid var(--primary);
  padding: 10px 20px; border-radius: 999px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-ghost { background: transparent; color: var(--primary) !important; }
.btn-ghost:hover { background: #e8f3f7; border-color: var(--primary); }
.btn-small { padding: 6px 14px; }
.btn-big { padding: 13px 28px; font-size: 1.05rem; }
.btn.btn-danger, button.btn.btn-danger { background: var(--error); border-color: var(--error); }
.btn.btn-danger:hover, button.btn.btn-danger:hover { background: #8f1c12; border-color: #8f1c12; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--primary); text-decoration: underline; cursor: pointer; }

/* home */
.hero {
  text-align: center; padding: 64px 20px 56px; border-radius: 20px; margin-bottom: 32px;
  background: linear-gradient(135deg, #d9eef5 0%, #fdf0d8 100%);
}
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); color: var(--primary-dark); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .85rem; color: #8a5a00; margin: 0 0 10px; }
.lead { font-size: 1.2rem; max-width: 620px; margin: 0 auto 26px; }
.lead-sm { font-size: 1.05rem; color: var(--muted); }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-bottom: 40px; }
.card, .panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { color: var(--primary-dark); }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; margin-top: 20px; }
.plain { list-style: none; padding: 0; }
.plain li { margin: 6px 0; }

/* forms */
.stack { display: grid; gap: 20px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 18px 22px 8px; margin: 0; }
legend { font-weight: 700; padding: 0 8px; color: var(--primary-dark); }
.field { margin-bottom: 16px; }
.field label, .field .label { display: block; font-weight: 600; margin-bottom: 5px; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=password], input:not([type]),
select, textarea {
  width: 100%; padding: 10px 12px; font: inherit; border: 1px solid #c9c4b9; border-radius: 8px; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 3px solid #bfe3ee; border-color: var(--primary); }
input[type=file] { width: 100%; padding: 8px; border: 1px dashed #c9c4b9; border-radius: 8px; background: #fff; }
small { color: var(--muted); display: block; margin-top: 4px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.choices { display: flex; gap: 22px; }
.choice { display: flex; align-items: flex-start; gap: 9px; font-weight: 500 !important; cursor: pointer; }
.choice input { margin-top: 5px; }
.field.check { margin-bottom: 12px; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--error); background: #fff7f6; }
.error { color: var(--error); font-size: .9rem; margin-top: 4px; font-weight: 500; }
.current { margin: 0 0 6px; font-size: .9rem; }
.terms { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 4px 0 16px; background: #faf8f3; }
.terms summary { cursor: pointer; font-weight: 600; color: var(--primary-dark); }
.terms-body { max-height: 260px; overflow: auto; margin-top: 10px; font-size: .95rem; }
.terms-body h4 { margin-top: 12px; }
.admin-fields { background: #fff9ec; border-color: #f0d9a6; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; font-weight: 500; }
.flash.success { background: #e7f6ee; color: var(--ok); border: 1px solid #b7e3c9; }
.flash.error { background: #fdecea; color: var(--error); border: 1px solid #f5c2bd; }
.tick { width: 72px; height: 72px; line-height: 72px; font-size: 2.2rem; margin: 10px auto 16px; border-radius: 50%; background: #e7f6ee; color: var(--ok); }
.ref { font-size: 1.2rem; background: #fdf0d8; padding: 2px 10px; border-radius: 6px; }

/* admin */
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.page-head h1 { margin: 0; font-size: 1.7rem; }
.filters {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 2px; margin-bottom: 14px;
}
.filters .field { margin-bottom: 12px; min-width: 130px; }
.filters .field.grow { flex: 1; min-width: 220px; }
.filters .field.btns { display: flex; gap: 8px; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th { text-align: left; background: #f3efe6; padding: 10px 12px; white-space: nowrap; border-bottom: 1px solid var(--line); }
table.data td { padding: 10px 12px; border-bottom: 1px solid #f0ece3; vertical-align: top; }
table.data tr:hover td { background: #fcfbf8; }
td.empty, p.empty { text-align: center; color: var(--muted); padding: 30px; }
.badge { display: inline-block; white-space: nowrap; padding: 2px 10px; border-radius: 999px; font-size: .82rem; font-weight: 700; background: #eee; }
.s-pending { background: #fff1d6; color: #8a5a00; }
.s-approved { background: #dcf5e6; color: var(--ok); }
.s-waiting-list { background: #e5e9fb; color: #3446a5; }
.s-rejected { background: #fde2df; color: var(--error); }
.detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 18px; margin: 18px 0; }
.detail h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 6px; }
dl { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; margin: 0 0 16px; }
dt { color: var(--muted); }
dd { margin: 0; }
.photo { max-width: 100%; max-height: 260px; border-radius: 8px; border: 1px solid var(--line); }
.danger-zone { margin-top: 30px; padding-top: 18px; border-top: 1px dashed var(--line); }
.msg header { margin-bottom: 6px; }
.msg { margin-bottom: 14px; }

@media (max-width: 760px) {
  .contact, .grid2, .grid3 { grid-template-columns: 1fr; }
  .detail { grid-template-columns: 1fr; }
  dl { grid-template-columns: 1fr; }
  nav { gap: 12px; }
}

/* printing: hide the menus and buttons, show a compact table */
@media print {
  @page { size: landscape; margin: 12mm; }
  body { background: #fff; font-size: 11px; }
  .no-print, .site-header, .site-footer, .admin-bar { display: none !important; }
  .print-only { display: block; }
  .wrap, .wrap.wide { max-width: none; padding: 0; }
  main.wrap { padding: 0; }
  .table-wrap, .panel { border: 0; border-radius: 0; overflow: visible; padding: 0; }
  table.data { font-size: 10px; }
  table.data th, table.data td { border: 1px solid #bbb; padding: 4px 6px; }
  table.data tr { page-break-inside: avoid; }
  .detail { display: block; }
  .panel { margin-bottom: 10px; page-break-inside: avoid; }
  a { color: #000; text-decoration: none; }
  .no-print-link { display: none; }
}

/* question cards (match the Google Form look) */
.stack { gap: 14px; }
.q { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.q .label { display: block; font-weight: 600; margin-bottom: 8px; }
.q.intro { border-top: 8px solid var(--primary); }
.q.intro h1 { font-size: 1.9rem; }
.q.intro p { margin: 0 0 .8em; }
.req-note { color: var(--error); margin: 0 !important; }
.help { color: var(--muted); font-size: .92rem; margin: 0 0 8px; }
.choices.stacked { flex-direction: column; gap: 10px; }
.choice.other { align-items: center; flex-wrap: wrap; }
.choice.other input[type=radio] { margin-top: 0; }
.inline-input { flex: 1; min-width: 160px; width: auto !important; padding: 6px 10px !important; }
.photo-grid { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 14px; }
.thumb { width: 150px; font-size: .88rem; }
.thumb img, .thumb video { width: 150px; height: 110px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: #000; display: block; margin-bottom: 4px; }
.detail .thumb img, .detail .thumb video { width: 150px; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }

/* plain layout (no card around each question) */
.q { background: none; border: 0; border-radius: 0; padding: 0; }
.q.intro { border-top: 0; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 4px; }
.stall-other { margin-top: 10px; }
.stall-other[hidden] { display: none; }
