/* ============================================================
   CUSTOM OVERRIDES  (loaded AFTER main.css)
   - Navbar logo bigger
   - Footer logo bigger + clean transparent-friendly chip
   - Footer colour polish
   - "Become a Volunteer" CTA banner
   - Premium split Volunteer form + Terms (fixed height, scrollable)
   ============================================================ */

/* ---------- 1. NAVBAR LOGO (bigger & perfectly visible) ---------- */
.logo-wrap img {
  width: auto !important;
  max-width: 210px !important;
  max-height: 74px !important;
  height: auto;
  object-fit: contain;
}
@media (max-width: 1199px) {
  .logo-wrap img { max-width: 170px !important; max-height: 60px !important; }
}
@media (max-width: 575px) {
  .logo-wrap img { max-width: 150px !important; max-height: 52px !important; }
}

/* off-canvas (mobile) menu logo */
.off-canvas-logo img {
  width: auto !important;
  max-width: 170px !important;
  max-height: 58px !important;
  height: auto;
  object-fit: contain;
}

/* ---------- 2. FOOTER COLOUR POLISH ---------- */
.footer-section {
  position: relative;
  background-color: #013b36;
}
.footer-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 69, 64, 0.90) 0%, rgba(0, 40, 37, 0.96) 100%);
  z-index: 0;
  pointer-events: none;
}
.footer-section > .container { position: relative; z-index: 1; }

/* ---------- 3. FOOTER LOGO (bigger + transparent-PNG friendly chip) ---------- */
.about-widget .footer-logo {
  display: inline-block;
  background: rgba(255, 255, 255, 0.96);
  padding: 16px 24px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  margin-bottom: 26px;
}
.about-widget .footer-logo img {
  width: auto !important;
  max-width: 230px !important;
  max-height: 92px !important;
  height: auto;
  object-fit: contain;
  display: block;
}
@media (max-width: 575px) {
  .about-widget .footer-logo img { max-width: 190px !important; max-height: 74px !important; }
}

/* ============================================================
   4. "BECOME A VOLUNTEER" CTA BANNER (homepage)
   ============================================================ */
.bv-cta {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  background: linear-gradient(120deg, #004540 0%, #013b36 55%, #85bf18 160%);
}
.bv-cta::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 225, 117, 0.28) 0%, rgba(255, 225, 117, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}
.bv-cta .bv-cta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.bv-cta .bv-cta-text { max-width: 720px; }
.bv-cta .bv-cta-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffe175;
  font-family: var(--outfit-font);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 15px;
  margin-bottom: 14px;
}
.bv-cta .bv-cta-tag i { color: #85bf18; }
.bv-cta .bv-cta-text h2 {
  color: #ffffff;
  font-family: var(--outfit-font);
  font-weight: 700;
  font-size: 42px;
  line-height: 1.2;
  margin: 0 0 14px;
}
.bv-cta .bv-cta-text p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.7;
  margin: 0;
}
.bv-cta .bv-cta-btn { flex-shrink: 0; }
@media (max-width: 991px) {
  .bv-cta { padding: 60px 0; }
  .bv-cta .bv-cta-text h2 { font-size: 32px; }
  .bv-cta .bv-cta-inner { justify-content: center; text-align: center; }
  .bv-cta .bv-cta-tag { justify-content: center; }
}

/* ============================================================
   5. VOLUNTEER APPLY  (split: form + terms, fixed height + scroll)
   ============================================================ */
.bv-apply {
  padding: 90px 0;
  background:
    radial-gradient(1200px 400px at 10% -10%, rgba(133, 191, 24, 0.10), transparent 60%),
    radial-gradient(1000px 400px at 100% 0%, rgba(0, 69, 64, 0.08), transparent 55%),
    #f4f7f0;
}
@media (max-width: 767px) { .bv-apply { padding: 55px 0; } }

.bv-apply-head { text-align: center; margin-bottom: 44px; }
.bv-apply-head .bv-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4d7a08;
  background: #eaf7d8;
  border: 1px solid #cfe9a6;
  padding: 7px 16px;
  border-radius: 100px;
  font-family: var(--outfit-font);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 13px;
  margin-bottom: 16px;
}
.bv-apply-head h2 {
  font-family: var(--outfit-font);
  font-weight: 700;
  color: #004540;
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 12px;
}
.bv-apply-head p { color: #64735f; font-size: 17px; margin: 0 auto; max-width: 620px; }
@media (max-width: 767px) { .bv-apply-head h2 { font-size: 30px; } }

/* Shared premium panel (card) */
.bv-panel {
  display: flex;
  flex-direction: column;
  height: 700px;
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid #e9efe2;
  box-shadow: 0 34px 80px rgba(0, 69, 64, 0.12);
  overflow: hidden;
}
@media (max-width: 991px) { .bv-panel { height: 580px; margin-bottom: 26px; } }

/* Premium card header */
.bv-card-head {
  flex-shrink: 0;
  position: relative;
  padding: 26px 32px;
  color: #fff;
  background: linear-gradient(120deg, #004540 0%, #05564e 60%, #0b6a56 100%);
  overflow: hidden;
}
.bv-card-head::after {
  content: "";
  position: absolute;
  right: -50px; top: -50px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(255, 225, 117, 0.22) 0%, transparent 70%);
  border-radius: 50%;
}
.bv-card-head .bv-h-ico {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; color: #ffe175;
  margin-bottom: 12px;
}
.bv-card-head h3 {
  position: relative; z-index: 1;
  font-family: var(--outfit-font); font-weight: 700;
  font-size: 24px; margin: 0 0 4px; color: #fff;
}
.bv-card-head p { position: relative; z-index: 1; margin: 0; font-size: 14.5px; color: rgba(255, 255, 255, 0.82); }
@media (max-width: 575px) { .bv-card-head { padding: 22px; } .bv-card-head h3 { font-size: 21px; } }

/* Scrollable body + premium scrollbar */
.bv-card-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 26px 32px;
}
@media (max-width: 575px) { .bv-card-body { padding: 22px; } }
.bv-scroll { scrollbar-width: thin; scrollbar-color: #cbe0a6 transparent; }
.bv-scroll::-webkit-scrollbar { width: 9px; }
.bv-scroll::-webkit-scrollbar-track { background: transparent; margin: 6px 0; }
.bv-scroll::-webkit-scrollbar-thumb { background: #d3e5b7; border-radius: 20px; border: 2px solid #fff; }
.bv-scroll::-webkit-scrollbar-thumb:hover { background: #85bf18; }

/* The form itself must flex so body scrolls and footer stays put */
.bv-form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }

/* Sticky footer with submit */
.bv-card-foot {
  flex-shrink: 0;
  padding: 18px 32px 22px;
  border-top: 1px solid #eef2e8;
  background: linear-gradient(180deg, #ffffff 0%, #f8faf4 100%);
}
@media (max-width: 575px) { .bv-card-foot { padding: 16px 22px 20px; } }

/* ---- Fields ---- */
.bv-field { margin-bottom: 16px; }
.bv-field label {
  display: block;
  font-family: var(--outfit-font);
  font-weight: 600;
  color: #22322f;
  font-size: 13.5px;
  margin-bottom: 7px;
}
.bv-field label .req { color: #dc3545; }
.bv-field input,
.bv-field select,
.bv-field textarea {
  width: 100%;
  border: 1.5px solid #dfe6db;
  background: #fbfdf9;
  border-radius: 11px;
  padding: 12px 14px;
  font-size: 14.5px;
  color: #22322f;
  font-family: var(--dm-sans-font);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  outline: none;
}
.bv-field textarea { min-height: 96px; resize: vertical; }
.bv-field input:focus,
.bv-field select:focus,
.bv-field textarea:focus {
  border-color: #85bf18;
  box-shadow: 0 0 0 4px rgba(133, 191, 24, 0.12);
  background: #ffffff;
}
.bv-field input::placeholder,
.bv-field textarea::placeholder { color: #a4b0a0; }

/* honeypot */
.bv-hidden { display: none !important; }

/* terms acceptance row (in footer) */
.bv-accept {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 14px;
}
.bv-accept input { width: 19px; height: 19px; margin-top: 1px; flex-shrink: 0; accent-color: #85bf18; }
.bv-accept label { font-size: 13.5px; color: #3a4a3a; line-height: 1.55; }
.bv-accept a { color: #004540; font-weight: 600; text-decoration: underline; }

.bv-foot-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.bv-submit {
  border: none;
  cursor: pointer;
  background: #85bf18;
  color: #04231f;
  font-family: var(--outfit-font);
  font-weight: 700;
  font-size: 15.5px;
  padding: 14px 30px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.15s ease, background 0.2s ease;
  box-shadow: 0 10px 24px rgba(133, 191, 24, 0.28);
}
.bv-submit:hover { background: #004540; color: #fff; transform: translateY(-2px); }
.bv-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.bv-form-msg { margin: 0; font-size: 14px; font-weight: 600; }
.bv-form-msg.ok { color: #1f8a3b; }
.bv-form-msg.err { color: #dc3545; }

/* success state fills the panel */
.bv-success {
  display: none;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
}
.bv-success .bv-check {
  width: 88px; height: 88px; border-radius: 50%;
  background: #eaf7d8; color: #85bf18;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 42px; margin-bottom: 20px;
}
.bv-success h3 { font-family: var(--outfit-font); color: #004540; font-size: 26px; margin: 0 0 10px; }
.bv-success p { color: #6c7a6a; font-size: 15.5px; margin: 0 auto; max-width: 420px; }

/* ============================================================
   6. TERMS & CONDITIONS  (premium, scrollable)
   ============================================================ */
.bv-terms-list { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.bv-terms-list > li {
  position: relative;
  counter-increment: t;
  background: #f8faf4;
  border: 1px solid #eaf0e1;
  border-left: 3px solid #85bf18;
  border-radius: 12px;
  padding: 16px 18px 16px 58px;
  margin-bottom: 14px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.bv-terms-list > li:last-child { margin-bottom: 0; }
.bv-terms-list > li:hover {
  box-shadow: 0 12px 26px rgba(0, 69, 64, 0.08);
  transform: translateY(-2px);
  border-color: #cfe9a6;
}
.bv-terms-list > li::before {
  content: counter(t, decimal-leading-zero);
  position: absolute;
  left: 14px; top: 16px;
  width: 32px; height: 32px;
  background: #004540;
  color: #ffe175;
  border-radius: 9px;
  font-family: var(--outfit-font);
  font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.bv-terms-list > li strong {
  display: block;
  color: #16302c;
  font-family: var(--outfit-font);
  font-weight: 700;
  font-size: 15.5px;
  margin-bottom: 4px;
}
.bv-terms-list > li span { color: #5f6d5d; font-size: 14px; line-height: 1.65; }

.bv-terms-note {
  margin-top: 16px;
  background: #fff8e6;
  border: 1px solid #ffe6a1;
  border-radius: 12px;
  padding: 14px 16px;
  color: #7a5c00;
  font-size: 13.5px;
  line-height: 1.6;
  display: flex;
  gap: 10px;
}
.bv-terms-note i { color: #d19a00; margin-top: 2px; }

/* highlight important "do not" clauses */
.bv-terms-list > li.is-critical { border-left-color: #dc3545; background: #fdf3f3; border-color: #f6d6d6; }
.bv-terms-list > li.is-critical::before { background: #a32d2d; color: #fff; }
