/* KRAF Conference - public styles
   Palette taken from Lake Victoria at dusk: deep lake blue, lake teal, sunset amber. */
:root {
  --ink: #15293b;
  --deep: #123a5a;
  --lake: #1d6d78;
  --amber: #e3a13b;
  --amber-d: #c9861f;
  --mist: #eef3f6;
  --line: #d6e0e6;
  --muted: #5b6b78;
  --ok: #4f7a2c;
  --err: #b3261e;
  --bg: #ffffff;
  --radius: 6px;
  --head: 'Bitter', Georgia, 'Times New Roman', serif;
  --body: 'Nunito Sans', 'Segoe UI', Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--bg); }
img { max-width: 100%; }
a { color: var(--lake); }
a:hover { color: var(--deep); }
h1, h2, h3 { font-family: var(--head); line-height: 1.2; color: var(--deep); margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); }
.skip { position: absolute; left: -999px; top: 0; background: var(--amber); color: var(--ink); padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: .92rem; margin: .35rem 0 0; }
.fine { color: var(--muted); font-size: .92rem; }
.lead { font-size: 1.12rem; max-width: 62ch; }

/* ------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: 700 1rem/1.2 var(--body);
  padding: .8rem 1.4rem; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; text-decoration: none;
  background: var(--mist); color: var(--deep); transition: background-color .15s, border-color .15s, color .15s; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-primary { background: var(--deep); color: #fff; }
.btn-primary:hover { background: var(--lake); color: #fff; }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: var(--amber-d); color: var(--ink); }
.btn-plain { background: transparent; border-color: var(--line); color: var(--deep); }
.btn-plain:hover { border-color: var(--deep); }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-lg { font-size: 1.1rem; padding: 1rem 1.8rem; }
.btn-sm { padding: .45rem .9rem; font-size: .95rem; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--lake); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }

/* ------------------------------------------------ top bar */
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { font-family: var(--head); font-weight: 800; color: var(--deep); text-decoration: none; font-size: 1.1rem; line-height: 1.2; }
.topnav { display: flex; align-items: center; gap: 1.1rem; }
.topnav a:not(.btn) { color: var(--deep); font-weight: 600; text-decoration: none; }
.topnav a:not(.btn):hover { text-decoration: underline; }
@media (max-width: 560px) {
  .brand { font-size: .98rem; max-width: 52vw; }
  .topnav { gap: .7rem; } .topnav a:not(.btn) { font-size: .9rem; }
}

/* ------------------------------------------------ hero */
.hero { position: relative; color: #fff; background-color: var(--deep);
  background-image:
    radial-gradient(120% 90% at 85% 110%, rgba(227,161,59,.55) 0%, rgba(227,161,59,0) 55%),
    repeating-linear-gradient(170deg, rgba(255,255,255,.05) 0 2px, transparent 2px 26px);
  padding: clamp(4rem, 11vw, 8rem) 0 clamp(3.5rem, 9vw, 6.5rem); overflow: hidden; }
.hero.has-image { background-image: linear-gradient(100deg, rgba(18,58,90,.94) 0%, rgba(18,58,90,.78) 45%, rgba(18,58,90,.25) 100%), var(--banner);
  background-size: cover; background-position: center; }
.hero-in { max-width: 1120px; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 7vw, 4.6rem); line-height: 1.02; letter-spacing: -.01em; max-width: 14ch; margin-bottom: .35em; }
.hero-dates { font-family: var(--head); font-weight: 700; color: var(--amber); font-size: clamp(1.05rem, 2.2vw, 1.35rem); margin-bottom: .6rem; }
.hero-theme { font-size: clamp(1.1rem, 2.4vw, 1.4rem); max-width: 40ch; margin-bottom: .3rem; }
.hero-venue { color: rgba(255,255,255,.82); margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.closed-note { background: rgba(255,255,255,.15); padding: .7rem 1.1rem; border-radius: var(--radius); font-weight: 700; }

/* ------------------------------------------------ about */
.about { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); padding: clamp(3rem, 7vw, 5rem) 0; }
.about-text p { max-width: 64ch; }
.theme-line { font-family: var(--head); font-size: 1.15rem; color: var(--lake); font-weight: 700; }
.facts { margin: 0; border-left: 4px solid var(--amber); padding-left: 1.4rem; align-self: start; }
.facts div { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: .9rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; color: var(--deep); }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; } }

/* ------------------------------------------------ fee ladder */
.fees { background: var(--mist); padding: clamp(3rem, 7vw, 5rem) 0; }
.ladder { list-style: none; margin: 2rem 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column;
  gap: 1rem; align-items: end; height: 360px; }
.step { height: 100%; display: flex; align-items: flex-end; }
.step-bar { width: 100%; height: var(--h); min-height: 230px; background: #fff; border-top: 6px solid var(--lake); border-radius: var(--radius) var(--radius) 0 0;
  padding: 1.2rem 1.3rem; display: flex; flex-direction: column; position: relative; }
.step h3 { margin-bottom: .1rem; }
.step-dates { color: var(--muted); font-size: .92rem; margin-bottom: auto; }
.step-fee { font-family: var(--head); font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--deep); margin: 1rem 0 .3rem; line-height: 1; }
.step-fee small { font-size: .5em; font-weight: 700; color: var(--muted); }
.step-sub { list-style: none; padding: 0; margin: 0; font-size: .92rem; color: var(--muted); }
.step.is-now .step-bar { background: var(--deep); border-top-color: var(--amber); color: #fff; }
.step.is-now h3, .step.is-now .step-fee { color: #fff; }
.step.is-now .step-dates, .step.is-now .step-sub, .step.is-now .step-fee small { color: rgba(255,255,255,.8); }
.step.is-past .step-bar { opacity: .55; }
.step.is-past .step-fee { text-decoration: line-through; text-decoration-thickness: 2px; }
.now-tag { position: absolute; top: -2.1rem; left: 0; background: var(--amber); color: var(--ink); font-weight: 700; font-size: .85rem; padding: .25rem .65rem; border-radius: var(--radius) var(--radius) 0 0; }
@media (max-width: 720px) {
  .ladder { grid-auto-flow: row; grid-template-columns: 1fr; height: auto; gap: 1.6rem; }
  .step { height: auto; }
  .step-bar { height: auto; min-height: 0; width: var(--h); min-width: 78%; border-top: 0; border-left: 6px solid var(--lake); border-radius: 0 var(--radius) var(--radius) 0; }
  .step.is-now .step-bar { border-left-color: var(--amber); }
  .now-tag { top: -1.75rem; }
}

/* ------------------------------------------------ pay */
.pay { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); padding: clamp(3rem, 7vw, 5rem) 0; align-items: center; }
.paycard { background: #fff; border: 2px solid var(--deep); border-radius: var(--radius); padding: 1.6rem 1.8rem; box-shadow: 8px 8px 0 var(--amber); }
.paycard p { margin: 0; }
.paycard-label { color: var(--muted); font-size: .9rem; }
.paycard-num { font-family: var(--head); font-weight: 800; font-size: clamp(2.4rem, 6vw, 3.2rem); letter-spacing: .06em; color: var(--deep); line-height: 1.1; margin-bottom: .8rem !important; }
.paycard-acc { font-weight: 700; font-size: 1.2rem; color: var(--deep); }
.paycard-eg { margin-top: .6rem !important; font-size: .9rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: .6rem; }
@media (max-width: 800px) { .pay { grid-template-columns: 1fr; } }

/* ------------------------------------------------ stay */
.stay { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(3rem, 7vw, 4.5rem) 0; }
.stay-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.stay-in > div:last-child { padding-top: 2.6rem; }
.hotel-list { list-style: none; padding: 0; margin: 0; }
.hotel-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.hotel-list li span:last-child { font-weight: 700; white-space: nowrap; }
@media (max-width: 800px) { .stay-in { grid-template-columns: 1fr; } .stay-in > div:last-child { padding-top: 0; } }

.cta { text-align: center; padding: clamp(3rem, 8vw, 5.5rem) 0; }
.cta p { max-width: 52ch; margin-inline: auto; margin-bottom: 1.6rem; }

/* ------------------------------------------------ footer */
.foot { background: var(--deep); color: rgba(255,255,255,.85); padding: 2rem 0; font-size: .95rem; }
.foot-in { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.foot strong { color: #fff; }
.foot a { color: #fff; }
.foot-contact { display: flex; flex-direction: column; gap: .2rem; text-align: right; }
@media (max-width: 600px) { .foot-contact { text-align: left; } }

/* ------------------------------------------------ notices */
.notice { padding: .9rem 1.1rem; border-radius: var(--radius); margin: 0 0 1.4rem; display: flex; gap: 1rem; justify-content: space-between; flex-wrap: wrap; align-items: center; }
.notice[hidden] { display: none; }
.notice-info { background: #e5f0f2; border-left: 4px solid var(--lake); }
.notice-ok { background: #edf4e5; border-left: 4px solid var(--ok); }
.notice-err { background: #fbeaea; border-left: 4px solid var(--err); }

/* ------------------------------------------------ registration */
.reg { padding: clamp(2rem, 5vw, 3.2rem) 0 4rem; max-width: 860px; }
.reg-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.reg-head h1 { margin: 0; }
.save-state { margin: 0; font-size: .92rem; color: var(--muted); }
.save-state.ok { color: var(--ok); }
.save-state.offline { color: var(--amber-d); font-weight: 700; }

.progress { list-style: none; margin: 0 0 1.8rem; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); counter-reset: s; position: relative; }
.progress::before { content: ''; position: absolute; left: 7%; right: 7%; top: 17px; height: 3px; background: var(--line); }
.progress li { position: relative; text-align: center; }
.progress button { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: default; display: flex; flex-direction: column; align-items: center; gap: .35rem; width: 100%; }
.progress li.reachable button { cursor: pointer; }
.pnum { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 3px solid var(--line); font-weight: 700; position: relative; z-index: 1; }
.plabel { font-size: .82rem; line-height: 1.2; }
.progress li.is-done .pnum { background: var(--ok); border-color: var(--ok); color: #fff; }
.progress li.is-done .plabel { color: var(--ok); }
.progress li.current .pnum { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.progress li.current .plabel { color: var(--deep); font-weight: 700; }
.progress-mobile { display: none; font-weight: 700; color: var(--deep); margin: 0 0 1rem; }
@media (max-width: 680px) {
  .plabel { display: none; }
  .pnum { width: 30px; height: 30px; font-size: .9rem; }
  .progress { margin-bottom: .8rem; } .progress::before { top: 14px; }
  .progress-mobile { display: block; }
}

.reg-form { background: #fff; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.2rem, 4vw, 2rem); margin: 0; min-width: 0; }
.panel[hidden] { display: none; }
.panel legend { font-family: var(--head); font-weight: 700; font-size: 1.4rem; color: var(--deep); padding: 0 .4rem; margin-left: -.4rem; }
.field { margin-bottom: 1.3rem; }
.field:last-child { margin-bottom: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
label, .label { display: block; font-weight: 700; margin-bottom: .4rem; color: var(--ink); }
.opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], select, textarea {
  width: 100%; font: inherit; padding: .75rem .9rem; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--lake); outline: none; box-shadow: 0 0 0 3px rgba(29,109,120,.2); }
.iti { width: 100%; }
/* Safety net: keep the country list hidden and tidy even if the plugin stylesheet fails to load */
.iti__country-list { list-style: none; margin: 0; padding: 0; }
.iti__hide { display: none !important; }
.iti__country-list { z-index: 30; max-width: calc(100vw - 3rem); }
.has-err input, .has-err select, .has-err textarea { border-color: var(--err); }
.err { color: var(--err); font-size: .93rem; font-weight: 600; margin: .4rem 0 0; }
.subgroup { border-left: 3px solid var(--amber); padding: .2rem 0 .2rem 1.1rem; margin: 0 0 1.4rem; }
.subgroup[hidden], [hidden] { display: none !important; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips label { margin: 0; font-weight: 600; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-block; padding: .6rem 1rem; border: 2px solid var(--line); border-radius: 999px; cursor: pointer; background: #fff; }
.chips input:checked + span { background: var(--deep); border-color: var(--deep); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }

.country-line { background: var(--mist); padding: .7rem .9rem; border-radius: var(--radius); margin: 0; }
.country-line .hint { display: block; margin-top: .1rem; }

.stepper { display: inline-flex; align-items: stretch; border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stepper input { width: 4.5rem; text-align: center; border: 0; border-radius: 0; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper-btn { width: 3rem; border: 0; background: var(--mist); font-size: 1.4rem; font-weight: 700; color: var(--deep); cursor: pointer; }
.stepper-btn:hover { background: var(--line); }
.children .child { margin-bottom: 1rem; }
.child-row { display: grid; grid-template-columns: 1fr 9.5rem; gap: .6rem; }
@media (max-width: 480px) { .child-row { grid-template-columns: 1fr; } }

.choice-cards { display: grid; gap: .8rem; margin-bottom: 1.4rem; }
.choice-cards.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .choice-cards.two { grid-template-columns: 1fr; } }
.choice { display: flex; gap: .8rem; align-items: flex-start; border: 2px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; cursor: pointer; font-weight: 400; margin: 0; }
.choice input { margin-top: .3rem; accent-color: var(--deep); width: 1.15rem; height: 1.15rem; flex: none; }
.choice-body { display: flex; flex-direction: column; gap: .25rem; }
.choice-body strong { color: var(--deep); font-size: 1.05rem; }
.choice-body em { font-style: normal; font-weight: 700; color: var(--ok); font-size: .92rem; }
.choice:has(input:checked) { border-color: var(--deep); background: #f4f8fa; }

.hotels { display: grid; gap: .5rem; margin-top: .3rem; }
.hotel { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center; border: 2px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; cursor: pointer; font-weight: 400; margin: 0; }
.hotel input { accent-color: var(--deep); width: 1.1rem; height: 1.1rem; }
.hotel-name { font-weight: 700; }
.hotel-name small, .hotel-price small { display: block; font-weight: 400; color: var(--muted); font-size: .86rem; }
.hotel-price { text-align: right; font-weight: 700; white-space: nowrap; }
.hotel:has(input:checked) { border-color: var(--deep); background: #f4f8fa; }
@media (max-width: 520px) { .hotel { grid-template-columns: auto 1fr; } .hotel-price { grid-column: 2; text-align: left; } }

.check { display: flex; gap: .7rem; align-items: flex-start; font-weight: 600; margin-top: 1.2rem; }
.check input { width: 1.25rem; height: 1.25rem; margin-top: .2rem; accent-color: var(--deep); flex: none; }
.check .err { flex-basis: 100%; }
.check { flex-wrap: wrap; }
.check span { flex: 1; }
.code-input { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; max-width: 20rem; }

.table-scroll { overflow-x: auto; margin: 0 0 1.4rem; }
.quote { width: 100%; border-collapse: collapse; min-width: 520px; font-size: .98rem; }
.quote th { background: var(--deep); color: #fff; text-align: left; padding: .65rem .8rem; font-weight: 700; }
.quote td { padding: .65rem .8rem; border-bottom: 1px solid var(--line); }
.quote .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.quote tfoot td { font-weight: 800; font-size: 1.08rem; color: var(--deep); border-bottom: 3px double var(--deep); }
.quote tfoot td:first-child { text-align: right; }
.tier-note { background: var(--mist); padding: .7rem .9rem; border-radius: var(--radius); font-size: .95rem; }

.paybox { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: .4rem 2.4rem; border: 2px solid var(--deep); border-radius: var(--radius); padding: 1.1rem 1.4rem; box-shadow: 6px 6px 0 var(--amber); margin: 0 0 1rem; }
.paybox div { display: flex; flex-direction: column; }
.paybox span { font-size: .88rem; color: var(--muted); }
.paybox strong { font-family: var(--head); font-size: 1.25rem; color: var(--deep); }
@media (max-width: 600px) { .paybox { grid-template-columns: 1fr; } }

.form-error { margin-top: 1rem; padding: .8rem 1rem; background: #fbeaea; border-left: 4px solid var(--err); border-radius: var(--radius); font-weight: 600; }
.nav-btns { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.4rem; }
.nav-btns .btn-primary, .nav-btns .btn-amber { margin-left: auto; min-width: 12rem; }
@media (max-width: 480px) { .nav-btns .btn-primary, .nav-btns .btn-amber { min-width: 0; flex: 1; } }

.done { border: 2px solid var(--ok); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.4rem); background: #f6faf1; }
.done h2 { color: var(--ok); }
.done strong { font-family: var(--head); font-size: 1.3rem; color: var(--deep); }

/* ------------------------------------------------ manage */
.manage, .msg-page, .prose { padding: clamp(2rem, 5vw, 3.5rem) 0 4rem; }
.card-form { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 2rem; }
.h-small { font-size: 1.2rem; margin-top: 2rem; }
.inline-form { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.inline-form input { flex: 1; min-width: 14rem; }
.code-form { display: block; margin: 0 0 1rem; }
.inline-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.inline-row input { flex: 1; min-width: 12rem; }
.manage-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.manage-head h1 { margin: 0; }
.manage-head p { margin: 0; }
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
@media (max-width: 640px) { .status-grid { grid-template-columns: 1fr; } }
.status { border: 1px solid var(--line); border-top: 5px solid var(--lake); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.status h2 { font-size: 1rem; color: var(--muted); font-family: var(--body); margin-bottom: .3rem; }
.status p { margin: 0 0 .3rem; }
.status-main { font-family: var(--head); font-weight: 700; font-size: 1.2rem; color: var(--deep); }
.status-confirmed { border-top-color: var(--ok); }
.status-pending { border-top-color: var(--amber); }
.status-rejected { border-top-color: var(--err); }
.status-unpaid { border-top-color: var(--amber-d); }
.paybox-wide { margin-bottom: 1.4rem; }
.detail-list { margin: 1rem 0; }
.detail-list div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
