:root {
  --brand: #3b79a3;
  --brand-dark: #2c5c7d;
  --ink: #222;
  --muted: #6b6b6b;
  --line: #e2e2e2;
  --bg-soft: #f7f7f7;
  --radius: 12px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: var(--ink);
  margin: 0;
  background: transparent;
  line-height: 1.5;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 8px 4px 24px; }

h2 { color: var(--brand); margin: 0 0 4px; font-size: 1.5em; }
.lead { color: var(--muted); margin: 0 0 20px; }

fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin: 0 0 18px;
}
legend { font-weight: 700; padding: 0 8px; color: var(--ink); }

label { display: block; font-size: 0.9em; font-weight: 600; margin-bottom: 12px; }
.req { color: var(--brand); }
.opt { color: var(--muted); font-weight: 400; }

input[type=text], input[type=email], input[type=tel], select {
  width: 100%;
  margin-top: 5px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1em;
  font-family: inherit;
}
input:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(59,121,163,.12); }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }

/* Phone: country code + number side by side */
.phone-row { display: flex; gap: 8px; margin-top: 5px; }
.phone-row select { width: auto; flex: 0 0 104px; margin-top: 0; }
.phone-row input { flex: 1 1 auto; margin-top: 0; min-width: 0; }

/* Full-width option box (home hosted, partner, payment method) */
.option-box {
  display: flex; align-items: flex-start; gap: 12px;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; margin: 0 0 12px; font-weight: 400;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.option-box:last-child { margin-bottom: 0; }
.option-box:hover { border-color: #bbb; }
.option-box input { width: auto; margin: 3px 0 0; flex: 0 0 auto; }
.option-box span { display: block; }
.option-box strong { display: block; font-weight: 700; }
.option-box small { color: var(--muted); }
/* Highlight the chosen payment / option */
.option-box:has(input:checked) { border-color: var(--brand); background: rgba(59,121,163,.04); }

/* Ticket cards */
.tickets { border: none; padding: 0; margin-bottom: 18px; }
.tickets legend { padding: 0 0 10px; }
.ticket-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 560px) { .ticket-cards { grid-template-columns: 1fr; } }

.ticket-card {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  text-align: center;
  transition: border-color .15s, box-shadow .15s;
  position: relative;
}
.ticket-card:hover { border-color: #bbb; }
.ticket-card.selected { border-color: var(--brand); box-shadow: 0 4px 14px rgba(59,121,163,.15); }
.ticket-card .name { font-weight: 700; }
.ticket-card .dates { color: var(--muted); font-size: 0.85em; margin: 4px 0 8px; }
.ticket-card .price { font-size: 1.4em; font-weight: 800; color: var(--brand); }
.ticket-card .price .was { color: var(--muted); font-weight: 400; font-size: 0.6em; text-decoration: line-through; margin-left: 4px; }
.earlybird-note { text-align: center; color: var(--brand); font-weight: 600; margin: 12px 0 0; }
.ticket-card .badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: 0.68em; font-weight: 700;
  padding: 2px 10px; border-radius: 20px; letter-spacing: .3px;
}

/* Summary + buttons */
.summary { text-align: center; }
.total-line { font-size: 1.15em; margin-bottom: 4px; }
.total-line strong { color: var(--brand); font-size: 1.15em; }
.total-detail { color: var(--muted); font-size: 0.9em; margin-bottom: 12px; min-height: 1.2em; }

button {
  font-family: inherit; font-size: 1em; font-weight: 700;
  background: var(--brand); color: #fff; border: none;
  padding: 14px 28px; border-radius: 8px; cursor: pointer;
  transition: background .15s;
}
button:hover:not(:disabled) { background: var(--brand-dark); }
button:disabled { background: #cdb5b5; cursor: not-allowed; }
.link-btn { background: none; color: var(--muted); padding: 12px; font-weight: 600; }
.link-btn:hover:not(:disabled) { background: none; color: var(--ink); text-decoration: underline; }

.pay-summary {
  background: var(--bg-soft); border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 18px; font-weight: 600;
}
.pay-summary .amt { color: var(--brand); }

.error { color: var(--brand); font-weight: 600; margin-top: 12px; }

.done { text-align: center; padding: 30px 10px; }
.done .tick {
  width: 64px; height: 64px; line-height: 64px; margin: 0 auto 16px;
  background: #2e7d32; color: #fff; border-radius: 50%; font-size: 2em;
}
.done .tick-info { background: var(--brand); }

/* Bank transfer details */
.bank-box {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; margin: 0 0 16px; background: var(--bg-soft);
}
.bank-box .row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.bank-box .row:last-child { border-bottom: none; }
.bank-box .k { color: var(--muted); font-weight: 600; }
.bank-box .v { font-weight: 700; text-align: right; word-break: break-word; }
.bank-box .v.amt, .bank-box .v.ref { color: var(--brand); }
.muted { color: var(--muted); }
.powered { text-align: center; font-size: 0.8em; margin-top: 16px; }
