/* GUA 2026 — congress registration
   No build step. Plain CSS, custom properties, no preprocessor.
   CSP is style-src 'self', so there are no inline styles anywhere. */

:root {
  --ink:        #12222e;
  --ink-soft:   #4a5b68;
  --muted:      #75858f;
  --line:       #dde4e9;
  --bg:         #f4f7f9;
  --card:       #ffffff;

  --brand:      #0f5c72;
  --brand-dark: #0a4356;
  --brand-tint: #e7f1f5;

  --danger:     #b3261e;
  --danger-bg:  #fdecea;
  --ok:         #1c6b46;
  --ok-bg:      #e7f4ee;
  --info-bg:    #eef3f8;

  --radius:     10px;
  --radius-sm:  6px;
  --shadow:     0 1px 2px rgba(18,34,46,.06), 0 4px 16px rgba(18,34,46,.05);

  /* Georgian first — Sylfaen is the reliable Windows fallback. */
  --font: "BPG Arial", "Noto Sans Georgian", "Sylfaen", system-ui,
          -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 var(--font);
}

.wrap { width: 100%; max-width: 780px; margin: 0 auto; padding: 0 20px; }

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

.muted { color: var(--muted); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Live-bank test-scaling banner ----------------------------------------- */

.test-banner {
  padding: 12px 20px;
  background: #8a1f1a;
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  text-align: center;
  line-height: 1.5;
}

/* --- Header ---------------------------------------------------------------- */

.site-header {
  background: var(--brand);
  color: #fff;
  padding: 28px 0 26px;
  text-align: center;
}
.site-header .organizer {
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .8;
}
.site-header h1 { margin: 0 0 8px; font-size: 21px; line-height: 1.35; font-weight: 600; }
.site-header .subtitle { margin: 0 0 12px; font-size: 15px; line-height: 1.5; opacity: .92; }
.site-header .meta { margin: 0; font-size: 14px; opacity: .8; }

/* --- Stepper --------------------------------------------------------------- */

.stepper { margin: 24px auto 4px; }
.stepper ol {
  display: flex; gap: 6px;
  margin: 0; padding: 0; list-style: none;
}
.step {
  flex: 1 1 0;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding-top: 10px;
  border-top: 3px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}
.step__num {
  display: grid; place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--line);
  color: var(--ink-soft);
  font-size: 12px; font-weight: 600;
}
.step--done    { border-top-color: var(--brand); color: var(--ink-soft); }
.step--done .step__num { background: var(--brand); color: #fff; }
.step--current { border-top-color: var(--brand); color: var(--ink); font-weight: 600; }
.step--current .step__num { background: var(--brand); color: #fff; }

@media (max-width: 560px) {
  .step__label { display: none; }
  .stepper { margin-bottom: 0; }
}

/* --- Main ------------------------------------------------------------------ */

main.wrap { padding-top: 26px; padding-bottom: 56px; }

.page-title { margin: 0 0 8px; font-size: 20px; font-weight: 600; }
.page-intro { margin: 0 0 22px; color: var(--ink-soft); font-size: 15px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 18px;
}

/* --- Alerts ---------------------------------------------------------------- */

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  margin-bottom: 20px;
  font-size: 15px;
}
.alert p { margin: 0 0 4px; }
.alert p:last-child { margin-bottom: 0; }
.alert--error   { background: var(--danger-bg); border-color: #f3c9c5; color: var(--danger); }
.alert--success { background: var(--ok-bg);     border-color: #bfe0d0; color: var(--ok); }
.alert--info    { background: var(--info-bg);   border-color: #cfdcea; color: var(--ink-soft); }

/* --- Forms ----------------------------------------------------------------- */

.field { margin-bottom: 18px; }
.field:last-of-type { margin-bottom: 0; }

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px; font-weight: 600;
  color: var(--ink);
}
.req { color: var(--danger); }

/* Match by exclusion rather than by listing types: an explicit list silently
   drops any input type nobody remembered to add — which is how the admin
   password field ended up at the browser's default size while every other
   field was full-width. */
.field input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]),
.field select,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #c7d2da;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}
.field input:not([type="checkbox"]):not([type="radio"]):focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-tint);
}
.field__hint  { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.field__error { margin: 6px 0 0; font-size: 13.5px; color: var(--danger); }

.field--error input,
.field input[aria-invalid="true"] { border-color: var(--danger); }

.field-row { display: flex; gap: 16px; }
.field-row .field { flex: 1 1 0; }

@media (max-width: 560px) {
  .field-row { display: block; }
}

.form__actions {
  display: flex; align-items: center; gap: 12px;
  margin-top: 26px;
}
.form__actions--end { justify-content: flex-end; }

/* --- Buttons --------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit; font-size: 15px; font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, opacity .15s;
}
.btn--primary { background: var(--brand); color: #fff; margin-left: auto; }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }
.btn--large { padding: 13px 28px; font-size: 16px; }
.btn--ghost {
  background: #fff; color: var(--ink-soft); border-color: #c7d2da;
}
.btn--ghost:hover { background: #f0f4f6; color: var(--ink); }
.btn--small { padding: 8px 14px; font-size: 14px; }
.btn--icon {
  background: transparent; border: 0;
  color: var(--muted); font-size: 22px; line-height: 1;
  padding: 4px 8px;
}
.btn--icon:hover { color: var(--danger); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: default; }

.form__actions--end .btn--primary { margin-left: 0; }

/* --- Packages -------------------------------------------------------------- */

.packages { display: grid; gap: 14px; }

.package {
  display: block;
  position: relative;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.package:hover { border-color: #b7c7d1; }
.package input[type="radio"] { position: absolute; top: 22px; inset-inline-start: 20px; }
.package--selected,
.package:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }

.package__head {
  display: flex; flex-wrap: wrap; gap: 8px;
  align-items: baseline; justify-content: space-between;
  padding-inline-start: 28px;
  margin-bottom: 12px;
}
.package__name  { font-size: 16px; font-weight: 600; }
.package__price { font-size: 18px; font-weight: 700; color: var(--brand); white-space: nowrap; }

.package__list {
  margin: 0; padding-inline-start: 46px;
  color: var(--ink-soft); font-size: 14.5px;
}
.package__list li { margin-bottom: 5px; }

/* --- Add-ons / companions -------------------------------------------------- */

.addon__head {
  display: flex; flex-wrap: wrap; gap: 8px;
  align-items: baseline; justify-content: space-between;
  margin-bottom: 6px;
}
.addon__head h3 { margin: 0; font-size: 16px; font-weight: 600; }
.addon__price { font-weight: 700; color: var(--brand); white-space: nowrap; }
.addon__note { margin: 0 0 18px; color: var(--ink-soft); font-size: 14.5px; }
.addon__hint { margin: 12px 0 0; color: var(--muted); font-size: 13.5px; }

.companions { display: grid; gap: 12px; }

.companion {
  display: flex; align-items: flex-end; gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfcfd;
}
.companion .field { flex: 1 1 0; margin-bottom: 0; }
.companion__index {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 26px; height: 26px; margin-bottom: 9px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand-dark);
  font-size: 13px; font-weight: 700;
}
.companion--extra { display: none; }

@media (max-width: 560px) {
  .companion { flex-wrap: wrap; }
  .companion .field { flex: 1 1 100%; }
}

.running-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 18px; padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 15px;
}
.running-total strong { font-size: 17px; color: var(--brand); }

/* --- Summary / invoice ----------------------------------------------------- */

.summary__title {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin: 0 0 14px;
  font-size: 15px; font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: .03em;
}
.summary__edit { font-size: 13px; font-weight: 500; text-transform: none; letter-spacing: 0; }

.summary__list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 0; }
.summary__list dt { color: var(--muted); font-size: 13.5px; }
.summary__list dd { margin: 0; font-size: 15px; }

@media (max-width: 560px) {
  .summary__list { grid-template-columns: 1fr; gap: 2px 0; }
  .summary__list dd { margin-bottom: 10px; }
}

.summary__package { margin: 0; font-size: 15.5px; font-weight: 600; }
.summary__companions { margin: 10px 0 0; padding-inline-start: 22px; color: var(--ink-soft); font-size: 15px; }

.invoice__table { width: 100%; border-collapse: collapse; font-size: 15px; }
.invoice__table th,
.invoice__table td { padding: 12px 0; text-align: start; font-weight: 400; vertical-align: top; }
.invoice__table tbody tr { border-bottom: 1px solid var(--line); }
.invoice__qty { color: var(--muted); font-size: 13.5px; white-space: nowrap; text-align: center; }
.invoice__amount { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }

.invoice__total th,
.invoice__total td { padding-top: 16px; font-size: 18px; font-weight: 700; color: var(--brand); }

/* --- Consent + pay --------------------------------------------------------- */

.consent {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14.5px; color: var(--ink-soft);
}
.consent input { margin-top: 4px; flex: 0 0 auto; }

.pay-note { margin: 14px 0 0; text-align: end; color: var(--muted); font-size: 13.5px; }

.stub .summary__list { margin: 20px 0; }

/* --- Footer ---------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 24px 0 40px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
}
.site-footer p { margin: 0 0 6px; }

/* --- Standalone error pages (419/404/405/500) ------------------------------ */

.error-page {
  max-width: 520px;
  margin: 80px auto;
  padding: 0 20px;
  text-align: center;
}
.error-page h1 { font-size: 20px; margin: 0 0 12px; }
.error-page pre {
  text-align: start;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-x: auto;
}

/* --- Confirmation letter --------------------------------------------------- */

.letter-actions { display: flex; gap: 12px; margin-bottom: 18px; }
.letter-actions .btn--primary { margin-left: 0; }
.letter-card { padding: 32px; }
.letter-permalink { font-size: 13.5px; text-align: center; }

.letter__title {
  font-size: 18px; font-weight: 700; text-align: center;
  margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.letter__event { text-align: center; color: var(--ink-soft); font-size: 14.5px; margin-bottom: 22px; }
.letter__event p { margin: 0 0 4px; }

.letter__fields { width: 100%; margin-bottom: 22px; font-size: 14.5px; }
.letter__fields td { padding: 3px 0; vertical-align: top; }
.letter__fields td:first-child { width: 50%; color: var(--muted); }

.letter__salutation { font-weight: 600; }

.letter__regnum-label { margin: 20px 0 2px; }
.letter__regnum {
  margin: 0 0 20px;
  font-size: 30px; font-weight: 700; letter-spacing: 1px;
  text-decoration: underline;
  color: var(--brand);
}

.letter__includes-label { font-weight: 600; margin: 0 0 6px; }
.letter__includes { margin: 0 0 18px; padding-inline-start: 22px; }
.letter__includes li { margin-bottom: 5px; }

.letter__note { font-style: italic; color: var(--ink-soft); }

.letter__invoice-title { font-size: 16px; margin: 24px 0 10px; }
.letter__invoice { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-bottom: 18px; }
.letter__invoice th,
.letter__invoice td { border: 1px solid var(--line); padding: 9px 11px; text-align: start; vertical-align: top; }
.letter__invoice thead th { background: var(--info-bg); font-weight: 600; }
.letter__invoice .num { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.letter__invoice-total td { font-weight: 700; background: #f6f9fb; }
.letter__companion-names { font-size: 13px; color: var(--muted); }

.letter__contact { font-size: 14.5px; }
.letter__sign { margin-top: 18px; }

/* --- Mock bank (dev only) --------------------------------------------------- */

.mock-bank__flag {
  padding: 10px 14px; margin-bottom: 16px;
  background: #fff4e5; border: 1px dashed #e0a458; border-radius: var(--radius-sm);
  color: #8a5200; font-size: 14px; text-align: center;
}
.mock-bank__actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.mock-bank__actions .btn--primary { margin-left: 0; }
.mock-bank code { font-size: 13px; }

/* --- Print ----------------------------------------------------------------- */

@media print {
  body { background: #fff; font-size: 11pt; color: #000; }

  .site-header { background: #fff; color: #000; padding: 0 0 12pt; }
  .site-header .organizer, .site-header .meta { color: #444; }

  .stepper, .form__actions, .site-footer, .btn,
  .no-print, .alert { display: none !important; }

  .wrap { max-width: none; padding: 0; }
  .card, .letter-card { border: 0; box-shadow: none; padding: 0; margin: 0; }

  .letter__regnum { color: #000; }
  .letter__invoice thead th, .letter__invoice-total td { background: #eee !important; -webkit-print-color-adjust: exact; }

  a[href^="http"]::after { content: ""; }  /* no URL footnotes */
}
