:root {
  --primary-green: #0b6623;
  --primary-green-strong: #084c1a;
  --primary-green-soft: #e8f9ed;
  --light-green: #f0fdf4;
  --border-color: #e2e8f0;
  --input-border: #cbd5e1;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --radius: 12px;
  --font-main: 'Poppins', sans-serif;
  --shadow-soft: 0 14px 30px rgba(2, 31, 19, 0.10);
  --shadow-strong: 0 16px 36px rgba(11, 102, 35, 0.18);
}

/* Global Font & Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-main);
}

html {
  scroll-behavior: smooth;
}

a, button, input, select, textarea {
  transition: all 220ms ease;
}

body, input, select, textarea, button {
  font-family: var(--font-main);
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

body {
  background-color: var(--bg-color);
  color: #ffffff;
  line-height: 1.5;
}

.site-footer {
  position: relative;
  margin-top: 40px;
  background: linear-gradient(180deg, #031d14 0%, #021510 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2f9ec;
}

.site-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 18px;
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.9fr;
  gap: 28px;
}

.site-footer__brand,
.site-footer__links {
  min-width: 0;
}

.site-footer__brand p {
  margin-top: 14px;
  max-width: 420px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.7;
}

.footer-brand {
  margin-bottom: 0;
}

.footer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  margin-top: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(232, 249, 237, 0.08));
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 220ms ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.footer-button:hover,
.footer-button:focus-visible {
  background: linear-gradient(135deg, #ffffff 0%, #e8f9ed 100%);
  color: #0b6623;
  border-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(11, 102, 35, 0.18);
}

.site-footer__links h4 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #9be4b9;
  text-transform: uppercase;
}

.site-footer__links a {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 180ms ease, transform 180ms ease;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  color: #ffffff;
  transform: translateX(2px);
}

.site-footer__bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.site-footer__bottom p {
  margin: 0;
}

@media (max-width: 820px) {
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    padding-top: 24px;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 14px;
  }
}

/* HERO HEADER */
.hero {
  position: relative;
  background: url("images/hero.jpg") center/cover no-repeat #042e0f;
  color: #ffffff;
  padding: 40px 16px 80px;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(4,46,15,0.9) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.brand-logo {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

/* Shared event navigation */
.nav-button-group{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.nav-button-group a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 16px;border:1px solid rgba(255,255,255,.3);border-radius:999px;background:rgba(255,255,255,.05);color:#fff;font-family:'Poppins',sans-serif;font-size:12px;font-weight:600;text-decoration:none;white-space:nowrap;transition:background-color .2s ease,color .2s ease,border-color .2s ease,transform .2s ease}
.hero-nav .nav-button-group a:hover,.hero-nav .nav-button-group a:focus-visible,.sponsor-top-nav .nav-button-group a:hover,.sponsor-top-nav .nav-button-group a:focus-visible{background:#fff!important;color:#0b6623!important;border-color:#fff!important;transform:translateY(-1px);box-shadow:0 8px 18px rgba(0,0,0,.16)}
.sponsor-top-nav{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:16px}
.sponsor-top-nav .brand{margin-bottom:0}
@media(max-width:760px){.sponsor-top-nav{align-items:flex-start;flex-direction:column;gap:14px}.sponsor-top-nav .nav-button-group{width:100%;justify-content:flex-start;gap:8px}.sponsor-top-nav .nav-button-group a{min-height:40px;padding:9px 12px;font-size:11px}}

.brand-name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.brand-tagline {
  display: block;
  color: #ffffff;
  font-size: 8px;
  font-weight: 400;
  line-height: 1.2;
  margin-top: 2px;
  padding: 0;
}

.hero h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 15px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  font-size: 13px;
  font-weight: 400;
  opacity: 0.9;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  word-break: break-word;
}

.meta-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

/* MAIN LAYOUT GRID */
.layout {
  max-width: 1050px;
  margin: -40px auto 40px;
  padding: 0 16px;
  position: relative;
  z-index: 3;
  width: 100%;
  box-sizing: border-box;
}

.form-grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
  min-width: 0;
}

.main-column, .sidebar-column {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 850px) {
  .form-grid-layout {
    grid-template-columns: 1.8fr 1fr;
  }
}

/* CARDS */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
}

@media (max-width: 480px) {
  .layout {
    padding: 0 12px;
  }
  .card {
    padding: 16px 12px;
  }
}

.card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.card-head-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.step-num {
  background-color: var(--primary-green);
  color: #ffffff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.card-head h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
}

.card-sub {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

/* STEP 1: TYPE SELECTION */
.type-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 550px) {
  .type-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.type-tile {
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 220ms ease;
  background-color: #ffffff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

.type-tile:hover,
.type-tile:focus-within {
  transform: translateY(-2px);
  border-color: rgba(11, 102, 35, 0.45);
  box-shadow: var(--shadow-soft);
}

.tile-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tile-icon {
  width: 38px;
  height: 38px;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-green);
  flex-shrink: 0;
}

.tile-svg {
  width: 22px;
  height: 22px;
}

.type-tile strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.type-tile small {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}

.type-tile input[type="radio"] {
  accent-color: var(--primary-green);
}

.type-tile.active {
  border-color: var(--primary-green);
  background: linear-gradient(180deg, rgba(11, 102, 35, 0.04), rgba(11, 102, 35, 0.01));
  box-shadow: 0 10px 20px rgba(11, 102, 35, 0.08);
}

/* STEP 2: FORM INPUTS */
.input-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

@media (min-width: 550px) {
  .input-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  width: 100%;
}

.form-group label {
  font-size: 12px;
  font-weight: 500;
  color: #334155;
}

.form-group input,
.form-group select {
  padding: 10px 12px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  background-color: #fff;
  transition: border-color 0.2s;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(11, 102, 35, 0.1);
}

/* BULK REGISTRATION & TABLE STYLING */
.badge {
  background-color: transparent;
  color: var(--text-dark);
  border: 1.5px solid var(--primary-green);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
}

@media (min-width: 550px) {
  .badge {
    font-size: 11px;
  }
}

.info-box {
  background-color: transparent;
  border-left: 3px solid var(--primary-green);
  padding: 12px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-dark);
  margin: 16px 0;
}

.students-section h3 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.students-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.students-table th {
  background: #f8fafc;
  padding: 10px 12px;
  text-align: left;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
}

.students-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

/* Table Input Design */
.students-table input {
  width: 100%;
  height: 38px;
  padding: 8px 10px;
  font-size: 12px;
  border: 1px solid var(--input-border);
  border-radius: 6px;
  outline: none;
  background-color: #fafafa;
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.students-table input::placeholder {
  color: #94a3b8;
}

.students-table input:focus {
  background-color: #ffffff;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 2px rgba(11, 102, 35, 0.15);
}

/* RESPONSIVE MOBILE TILE VIEW FOR BULK TABLE */
@media (max-width: 640px) {
  .students-table thead {
    display: none;
  }

  .students-table, 
  .students-table tbody, 
  .students-table tr, 
  .students-table td {
    display: block;
    width: 100%;
  }

  .students-table tr {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  }

  .students-table td {
    padding: 4px 0;
    border: none;
  }

  .students-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 3px;
    margin-top: 4px;
  }

  .students-table td:first-child {
    font-weight: 700;
    color: #000;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 6px;
    margin-bottom: 6px;
  }

  .students-table td:first-child::before {
    content: "Student #" attr(data-index);
    display: inline-block;
  }

  .students-table td[data-label="S/N"] {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .students-table td[data-label="Action"] {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--border-color);
  }

  .students-table td[data-label="Action"]::before {
    display: none;
  }

  .btn-danger {
    width: 100%;
    padding: 8px;
    text-align: center;
  }
}

.btn-secondary {
  background: linear-gradient(135deg, var(--primary-green), var(--primary-green-strong));
  color: #ffffff;
  border: 1.5px solid var(--primary-green);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 12px;
  margin-top: 12px;
  cursor: pointer;
  transition: all 220ms ease;
  width: 100%;
  box-shadow: 0 10px 24px rgba(11, 102, 35, 0.16);
}

@media (min-width: 641px) {
  .btn-secondary {
    width: auto;
  }
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: linear-gradient(135deg, var(--primary-green-strong), var(--primary-green));
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(11, 102, 35, 0.24);
}

.btn-danger {
  background-color: #fee2e2;
  color: #991b1b;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-danger:hover {
  background-color: #fca5a5;
  transform: translateY(-1px);
}

/* STEP 3: PACKAGES GRID */
.packages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 550px) {
  .packages-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.package-card {
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  position: relative;
  transition: all 220ms ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #ffffff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

.package-card:hover,
.package-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(11, 102, 35, 0.45);
  box-shadow: var(--shadow-soft);
}

/* STANDARD RADIO BUTTON MATCHING BULK STATE */
.package-card input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--input-border);
  border-radius: 50%;
  outline: none;
  position: absolute;
  top: 14px;
  right: 14px;
  background-color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.package-card input[type="radio"]:checked {
  background-color: #ffffff;
  border-color: var(--primary-green);
  box-shadow: inset 0 0 0 5px var(--primary-green);
}

.package-card.active {
  border-color: var(--primary-green);
  background-color: transparent;
}

.pkg-head strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
}

.pkg-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-green);
  display: block;
  margin: 4px 0 8px;
}

.pkg-features {
  list-style: none;
  font-size: 11px;
  color: var(--text-muted);
}

.pkg-features li {
  margin-bottom: 2px;
}

/* FEATURE LIST TICKS */
.pkg-features li::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 6px;
  vertical-align: -0.15em;
  background-color: var(--primary-green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' viewBox='0 0 24 24'%3E%3Cpath d='M0 0h24v24H0z' fill='none' /%3E%3Cpath fill='%23ffffff' d='M.41 13.41L6 19l1.41-1.42L1.83 12m20.41-6.42L11.66 16.17L7.5 12l-1.43 1.41L11.66 19l12-12M18 7l-1.41-1.42l-6.35 6.35l1.42 1.41z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' viewBox='0 0 24 24'%3E%3Cpath d='M0 0h24v24H0z' fill='none' /%3E%3Cpath fill='%23ffffff' d='M.41 13.41L6 19l1.41-1.42L1.83 12m20.41-6.42L11.66 16.17L7.5 12l-1.43 1.41L11.66 19l12-12M18 7l-1.41-1.42l-6.35 6.35l1.42 1.41z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* STEP 4: ORDER SUMMARY */
.summary-details {
  background-color: #f8fafc;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
}

.sum-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 8px;
  color: #0f172a;
}

.sum-divider {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: 8px 0;
}

.sum-row.total {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 0;
}

.total-green {
  color: var(--primary-green);
  font-size: 16px;
  font-weight: 700;
}

.btn-pay-submit {
  width: 100%;
  background-color: var(--primary-green);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-pay-submit:hover {
  background-color: #084c1a;
}

/* MR & MISS NACOS PAGE */
.mr-page {
  background: #042e0f;
  color: var(--text-dark);
}

.mr-hero {
  position: relative;
  min-height: 100vh;
  background: url("images/hero.jpg") center center / cover no-repeat #042e0f;
  padding: 28px 16px 64px;
}

.mr-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 46, 15, 0.72), rgba(4, 46, 15, 0.9));
}

.mr-page-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
}

.mr-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 52px;
}

.mr-hamburger-btn {
  display: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

#mr-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mr-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#mr-side-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 240px;
  height: 100%;
  background: #fff;
  z-index: 99999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  overflow: hidden;
}

#mr-side-drawer.open {
  transform: translateX(0);
}

.mr-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

.mr-drawer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mr-drawer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(11, 102, 35, 0.3);
  object-fit: cover;
}

.mr-drawer-brand span {
  color: #0b6623;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.mr-drawer-close {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mr-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mr-drawer-nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  text-decoration: none;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(11, 102, 35, 0.12);
  border-radius: 10px;
  background: rgba(11, 102, 35, 0.02);
  transition: all 220ms ease;
}

.mr-drawer-nav a:last-child {
  border-bottom: none;
}

.mr-drawer-nav a.active,
.mr-drawer-nav a:hover,
.mr-drawer-nav a:focus-visible {
  color: #0b6623;
  background: rgba(11, 102, 35, 0.05);
  border-color: rgba(11, 102, 35, 0.22);
  transform: translateY(-1px);
}

.mr-drawer-nav a.active {
  color: #ffffff;
  background: linear-gradient(135deg, #0b6623, #0f7d31);
  border-color: rgba(11, 102, 35, 0.8);
  box-shadow: 0 10px 20px rgba(11, 102, 35, 0.18);
}

.mr-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

.mr-brand .brand-logo {
  width: 58px;
  height: 58px;
}

.mr-brand-text {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.mr-brand-text small {
  display: block;
  font-size: 8px;
  font-weight: 400;
  margin-top: 5px;
}

.mr-nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mr-nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 220ms ease;
  background: rgba(255, 255, 255, 0.06);
}

.mr-nav-links a:hover,
.mr-nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.mr-nav-links a.active {
  background: linear-gradient(135deg, #ffffff 0%, #e8f9ed 100%);
  color: #0b6623;
  border-color: rgba(255, 255, 255, 0.85);
}

.mr-intro {
  max-width: 680px;
  color: #fff;
  margin-bottom: 28px;
}

.mr-kicker,
.mr-form-eyebrow {
  color: #78d49a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.mr-intro h1 {
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.05;
  margin: 8px 0 14px;
  letter-spacing: -1px;
}

.mr-intro > p:last-child {
  max-width: 580px;
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.9;
}

.mr-form-card {
  max-width: 820px;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.mr-form-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.mr-form-heading h2 {
  color: var(--text-dark);
  font-size: 20px;
  margin: 4px 0;
}

.mr-form-heading p:last-child {
  color: var(--text-muted);
  font-size: 12px;
}

.mr-required-note,
.mr-field-help {
  color: var(--text-muted);
  font-size: 11px;
}

.mr-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 20px;
}

.mr-fieldset legend {
  color: #334155;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 8px;
}

.mr-fieldset legend span,
.form-group label span {
  color: #b42318;
}

.mr-category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mr-category-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.mr-category-card input {
  position: absolute;
  opacity: 0;
}

.mr-category-card.is-selected {
  border-color: var(--primary-green);
  background: var(--light-green);
}

.mr-category-copy strong,
.mr-category-copy small {
  display: block;
}

.mr-category-copy strong {
  color: var(--text-dark);
  font-size: 13px;
}

.mr-category-copy small {
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 2px;
}

.mr-radio-mark {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 2px solid var(--input-border);
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 4px #fff;
}

.mr-category-card.is-selected .mr-radio-mark {
  border-color: var(--primary-green);
  background: var(--primary-green);
}

.mr-full-width {
  grid-column: 1 / -1;
}

.form-group textarea {
  padding: 10px 12px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  background-color: #fff;
  resize: vertical;
  min-height: 90px;
  color: var(--text-dark);
}

.form-group textarea:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(11, 102, 35, 0.1);
}

.form-group input[type="file"] {
  padding: 8px;
}

.mr-payment-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, rgba(11, 102, 35, 0.06), rgba(11, 102, 35, 0.01));
  border: 1px solid rgba(11, 102, 35, 0.14);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 18px;
  color: var(--text-dark);
}

.mr-payment-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.mr-payment-summary strong {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--primary-green);
}

.mr-form-alert {
  min-height: 0;
  color: #b42318;
  font-size: 12px;
  margin-bottom: 12px;
}

.mr-form-alert.is-error {
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-radius: 8px;
  padding: 10px 12px;
}

.mr-submit-button {
  position: relative;
  margin-top: 20px;
}

.mr-submit-loading {
  display: none;
}

.mr-submit-button.is-loading .mr-submit-label {
  display: none;
}

.mr-submit-button.is-loading .mr-submit-loading {
  display: inline;
}

.mr-submit-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.mr-success {
  padding: 30px 10px 12px;
  text-align: center;
}

.mr-success-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--light-green);
  color: var(--primary-green);
  font-size: 28px;
  font-weight: 700;
}

.mr-success h2 {
  color: var(--text-dark);
  font-size: 20px;
  margin-bottom: 8px;
}

.mr-success p {
  max-width: 500px;
  margin: 0 auto 18px;
  color: var(--text-muted);
  font-size: 13px;
}

.mr-back-button {
  display: inline-block;
  width: auto;
  margin-top: 0;
  text-decoration: none;
}

@media (min-width: 850px) {
  .mr-form-card {
    margin-right: 0;
  }
}

@media (max-width: 640px) {
  .mr-hero {
    padding: 20px 12px 40px;
    background-position: 62% center;
  }

  .mr-nav {
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 38px;
  }

  .mr-nav-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    order: 3;
    flex-basis: 100%;
    width: 100%;
  }

  .mr-nav-links a {
    min-height: 36px;
    padding: 7px 4px;
    border-radius: 9px;
    font-size: 9px;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
  }

  .mr-hamburger-btn {
    display: none;
  }

  .mr-intro h1 {
    font-size: 36px;
  }

  .mr-intro > p:last-child {
    font-size: 13px;
  }

  .mr-form-card {
    padding: 18px 14px;
  }

  .mr-form-heading {
    display: block;
  }

  .mr-required-note {
    display: block;
    margin-top: 8px;
  }

  .mr-category-grid {
    grid-template-columns: 1fr;
  }
}

.secure-text {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}

/* Hide scrollbars on mobile devices but keep scrolling functional */
@media (max-width: 768px) {
  html, body {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
  }

  html::-webkit-scrollbar, body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
    width: 0;
    height: 0;
  }
}

/* Prevent iOS Safari from auto-zooming when inputs are focused.
   Strategy: allow text-size-adjust and ensure form controls on small screens
   use a minimum font-size of 16px (iOS zooms when font-size < 16px). */
html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

@media (max-width: 480px) {
  input, select, textarea, button {
    font-size: 16px !important;
    line-height: 1.3;
  }
}
