:root {
  --green: #147141;
  --green-dark: #074022;
  --green-soft: #eaf0e8;
  --ink: #162019;
  --muted: #627064;
  --line: #d8ded7;
  --paper: #ffffff;
  --gold: #c7983b;
  --danger: #a92f2f;
  --shadow: 0 22px 60px rgba(7, 64, 34, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #f7f9f5;
  font-family: Roboto, Arial, sans-serif;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 70px);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(20, 113, 65, .12);
  backdrop-filter: blur(18px);
}

.brand img { width: min(220px, 54vw); }

.top-nav {
  display: flex;
  gap: 22px;
  font: 600 13px/1 Roboto, Arial, sans-serif;
  text-transform: uppercase;
  color: var(--green-dark);
}

.hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  position: relative;
  isolation: isolate;
  color: white;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 64, 34, .92) 0%, rgba(7, 64, 34, .72) 42%, rgba(7, 64, 34, .25) 100%),
    url("assets/kigali.jpg") center/cover no-repeat;
  z-index: -1;
}

.hero-content {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 92px 0 70px;
}

.eyebrow,
.section-number {
  margin: 0 0 10px;
  color: var(--gold);
  font: 700 13px/1.2 Roboto, Arial, sans-serif;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Antonio, Impact, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
}

h1 {
  max-width: 900px;
  font-size: clamp(54px, 9vw, 118px);
  text-transform: uppercase;
}

.hero-copy {
  max-width: 720px;
  margin: 22px 0 32px;
  font: 600 clamp(18px, 2vw, 26px)/1.35 "Roboto Slab", Georgia, serif;
}

.event-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  max-width: 940px;
}

.event-facts div {
  min-height: 92px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px);
}

.event-facts dt {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  text-transform: uppercase;
}

.event-facts dd {
  margin: 0;
  font-weight: 700;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
  align-items: center;
  padding: 54px clamp(18px, 5vw, 70px);
  background: var(--green-soft);
}

.intro-band h2 {
  max-width: 820px;
  color: var(--green);
  font-size: clamp(30px, 4vw, 56px);
}

.intro-band p {
  max-width: 860px;
  margin: 18px 0 0;
  font-family: "Shippori Mincho", Georgia, serif;
}

.intro-band aside {
  padding: 24px;
  color: white;
  background: var(--green);
  border-radius: 10px;
}

.intro-band aside strong,
.intro-band aside span { display: block; }

.form-shell {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 28px;
  width: min(1280px, calc(100% - 36px));
  margin: 46px auto 70px;
  align-items: start;
}

.form-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

.sidebar-card,
.form-section {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.sidebar-card { padding: 22px; }

.sidebar-card.dark {
  color: white;
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.sidebar-card h2 { font-size: 28px; margin-bottom: 14px; }

.progress-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.progress-list li {
  padding: 9px 10px;
  border-left: 3px solid var(--line);
}

.progress-list li.active {
  color: var(--green-dark);
  border-color: var(--green);
  background: var(--green-soft);
  font-weight: 700;
}

.registration-form { display: grid; gap: 22px; }

.form-section { padding: clamp(22px, 4vw, 42px); }

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.section-heading h2 {
  color: var(--green);
  font-size: clamp(30px, 4vw, 48px);
}

.section-heading p:not(.section-number) {
  margin: 0;
  color: var(--muted);
  font-family: "Shippori Mincho", Georgia, serif;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

label,
legend {
  color: var(--green-dark);
  font-weight: 700;
}

label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.full,
.choice-field.full { grid-column: 1 / -1; }

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfd8d0;
  border-radius: 4px;
  font: 400 15px/1.4 Roboto, Arial, sans-serif;
}

textarea { resize: vertical; }

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  outline: 3px solid rgba(20, 113, 65, .12);
}

.counter {
  float: right;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.choice-field {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.choice-grid label,
.inline-options label,
.declaration label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: #f8faf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 600;
}

input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 3px;
  accent-color: var(--green);
}

.inline-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.conditional-panel {
  padding: 22px;
  background: var(--green-soft);
  border-radius: 10px;
}

.hidden { display: none !important; }

.note {
  margin: 0 0 18px;
  color: var(--green-dark);
  font-weight: 700;
}

.gala-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: stretch;
}

.gala-panel h3 {
  margin-bottom: 14px;
  color: var(--green-dark);
  font-size: 30px;
}

.gala-panel ul { margin: 0; padding-left: 20px; }

.ticket-box {
  display: grid;
  gap: 16px;
  padding: 22px;
  color: white;
  background: var(--green);
  border-radius: 10px;
}

.ticket-box label { color: white; }

.total {
  display: block;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .35);
  font: 700 34px/1 Antonio, Impact, sans-serif;
}

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

.payment-section {
  background: var(--green-dark);
  color: white;
  border-color: var(--green-dark);
}

.payment-section .section-heading h2,
.payment-section label { color: white; }

.payment-section .section-heading p:not(.section-number) {
  color: rgba(255, 255, 255, .78);
}

.payment-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.payment-summary div {
  padding: 18px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
}

.payment-summary span,
.payment-summary strong { display: block; }

.payment-summary span {
  color: rgba(255, 255, 255, .7);
  font-size: 12px;
  text-transform: uppercase;
}

.submit-button {
  width: 100%;
  min-height: 56px;
  color: var(--green-dark);
  background: white;
  border: 0;
  border-radius: 4px;
  font: 800 15px/1 Roboto, Arial, sans-serif;
  text-transform: uppercase;
  cursor: pointer;
}

.submit-button:hover,
.submit-button:focus-visible { background: var(--green-soft); }

.form-message {
  margin: 16px 0 0;
  min-height: 24px;
  font-weight: 700;
}

.form-message.error { color: #ffd0d0; }
.form-message.success { color: #d4ffd5; }

.site-footer {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 42px 18px;
  color: white;
  text-align: center;
  background: var(--green-dark);
}

.site-footer img { width: 230px; }
.site-footer p { margin: 0; }

.invalid {
  border-color: var(--danger) !important;
  outline: 3px solid rgba(169, 47, 47, .12) !important;
}

@media (max-width: 980px) {
  .top-nav { display: none; }
  .event-facts,
  .intro-band,
  .form-shell,
  .gala-panel,
  .payment-summary { grid-template-columns: 1fr; }
  .form-sidebar { position: static; }
}

@media (max-width: 680px) {
  .site-header { padding: 14px 18px; }
  .hero { min-height: 620px; }
  .hero-content { padding: 70px 0 44px; }
  .event-facts,
  .field-grid,
  .choice-grid { grid-template-columns: 1fr; }
  .form-shell { width: calc(100% - 24px); margin-top: 26px; }
  .form-section { padding: 22px 16px; }
  h1 { font-size: 50px; }
}

.success-body {
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(7, 64, 34, .94), rgba(20, 113, 65, .84)),
    url("assets/kigali.jpg") center/cover no-repeat;
}

.success-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.success-card {
  width: min(760px, 100%);
  padding: clamp(28px, 6vw, 58px);
  text-align: center;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .24);
}

.success-card img {
  width: min(260px, 70vw);
  margin: 0 auto 28px;
}

.success-card h1 {
  color: var(--green);
  font-size: clamp(44px, 8vw, 76px);
}

.success-card p:not(.eyebrow) {
  max-width: 620px;
  margin: 18px auto 0;
  color: var(--muted);
  font-family: "Shippori Mincho", Georgia, serif;
}

.success-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.success-details div {
  padding: 16px;
  background: var(--green-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.success-details span,
.success-details strong { display: block; }

.success-details span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.home-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  margin-top: 30px;
  padding: 0 24px;
  color: white;
  background: var(--green);
  border-radius: 4px;
  font-weight: 800;
  text-transform: uppercase;
}

.home-button:hover,
.home-button:focus-visible {
  background: var(--green-dark);
}

@media (max-width: 680px) {
  .success-details { grid-template-columns: 1fr; }
}
