/* RESET AND BASE STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* === NEW === Smooth scrolling effect for entire site */
html {
  scroll-behavior: smooth;
}

body {
  background-color: #fff;
  color: #333;
}

/* CONTAINER */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
/* Floating Top-Right Social Icons */
.social-top-right {
  position: fixed;
  top: 15px;   /* slightly closer to top */
  right: 15px; /* slightly closer to right */
  display: flex;
  gap: 12px;   /* default spacing */
  z-index: 2000;
}

.social-top-right a {
  text-decoration: none;
  color: #2e7d32; /* theme color */
  font-size: 1.2rem; /* default for large screens */
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-top-right a:hover {
  color: #1b4d23;
  transform: scale(1.2);
}

/* Laptops */
@media (max-width: 1024px) {
  .social-top-right a {
    font-size: 1.1rem;
  }
  .social-top-right {
    gap: 10px;
    top: 12px;
    right: 12px;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .social-top-right a {
    font-size: 1rem;
  }
  .social-top-right {
    gap: 8px;
    top: 10px;
    right: 10px;
  }
}

/* Small Phones */
@media (max-width: 480px) {
  .social-top-right a {
    font-size: 0.9rem;
  }
  .social-top-right {
    gap: 6px;
    top: 8px;
    right: 8px;
  }
}

/*Header*/
.header {
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: transform 0.4s ease, background-color 0.3s ease;
  padding: 20px 0;
}

/* Hide header on scroll */
.header.hide {
  transform: translateY(-100%);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
  height: 80px;
  width: auto;
}

.logo span {
    font-size: 1.6rem;
    font-weight: bold;
    color: #2e7d32;
}

/* NAV/HAMBURGER STYLES MOVED TO common.css - per-page rules disabled */

/* Donation section styles */
.donate-section {
    padding: 250px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.donate-card {
    background: #fff;
    border-radius: 10px;
    padding: 28px;
    width: 100%;
    max-width: 760px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.donate-card h1 {
    margin-bottom: 8px;
    font-size: 1.6rem;
    color: #1b5e20;
}

.donate-card .lead {
    margin-bottom: 18px;
    color: #333;
    line-height: 1.4;
}

.preset-amounts {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.amount-btn {
    background: #f5f5f5;
    border: 1px solid #e6e6e6;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    color: #111;
    font-weight: 600;
}

.amount-btn.active,
.amount-btn:hover {
    background: #2e7d32;
    color: white;
    border-color: #2e7d32;
}

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

/* Donor credential fields and payment method styles */
fieldset {
  border: 1px solid #e6e6e6;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}

fieldset legend {
  padding: 0 6px;
  font-weight: 700;
  color: #2e7d32;
}

fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 12px;
  font-size: 0.95rem;
  color: #222;
}

/* Make native radio larger and more tappable */
input[type="radio"] {
  width: 18px;
  height: 18px;
}

/* Donor inputs */
#donor-name, #donor-email, #donor-phone {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  outline: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

#donor-name:focus, #donor-email:focus, #donor-phone:focus {
  border-color: #2e7d32;
  box-shadow: 0 0 0 3px rgba(46,125,50,0.08);
}

/* small helper spacing for labels and inputs grouped block */
form .donor-group label {
  display: block;
  margin-bottom: 6px;
  color: #444;
  font-size: 0.9rem;
}

/* keep inputs stacked on small screens */
@media (max-width: 520px) {
  fieldset { padding: 12px; }
  fieldset label { display: block; margin-bottom: 8px; }
  #donor-name, #donor-email, #donor-phone { width: 100%; }
}

.currency {
    font-weight: 700;
    color: #333;
}

.custom-row input[type="number"] {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 160px;
}

.custom-row .frequency {
    margin-left: auto;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.cta-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.donate-cta {
    background: #2e7d32;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

.donate-cta:hover {
  opacity: 0.95;
}

.note {
    color: #666;
    font-size: 0.9rem;
}

.sr-only {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

@media (max-width: 520px) {
    .donate-card { padding: 18px; }
    .custom-row { flex-direction: column; align-items: stretch; gap: 8px; }
    .custom-row .frequency { margin-left: 0; }
}

/* Card panel styling */
.card-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #123, #0b3b1a);
  color: #fff;
  align-items: center;
}

.card-panel.visible { display: grid; }

.card-visual {
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border-radius: 8px;
  padding: 16px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-visual .chip {
  width: 44px; height: 32px; background: rgba(255,255,255,0.6); border-radius:4px;
}
.card-visual .card-brand { text-align: right; font-weight:800; color:#ffd; }
.card-number-preview { font-size:1.05rem; letter-spacing:3px; margin-top:8px; }
.card-row { display:flex; justify-content:space-between; font-size:0.9rem; color:#eee; margin-top:8px; }

.card-fields { color:#222; background:#fff; padding:12px; border-radius:8px; }
.card-fields label{ display:block; margin-bottom:6px; color:#333; font-weight:600 }
.card-fields input{ width:100%; padding:10px 12px; margin-bottom:10px; border-radius:6px; border:1px solid #ddd; }
.card-fields .small { display:flex; gap:10px }
.card-fields .small div{ flex:1 }
.card-hint{ font-size:0.8rem; color:#666 }

/* Fade-up reveal */
.fade-up { opacity: 0; transform: translateY(12px); transition: opacity 520ms cubic-bezier(.2,.9,.3,1), transform 520ms cubic-bezier(.2,.9,.3,1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* CTA pulse on click */
.donate-cta:active { transform: scale(0.99); }

@media (max-width: 720px) {
  .card-panel { grid-template-columns: 1fr; }
  .card-visual { order: 2 }
  .card-fields { order: 1 }
}

/* ======================
   DONATE PAGE FOOTER (MATCHED STYLE)
====================== */
.extra-footer {
  background: linear-gradient(135deg, #0a0f24 0%, #1a1f35 100%);
  color: #fff;
  padding: 80px 0 40px;
  position: relative;
}

/* top line accent */
.extra-footer::before {
  content: '';
  position: absolute;
  top: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #2e7d32, transparent);
}

/* GRID */
.extra-footer-container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

/* COLUMN STYLE (like cards) */
.extra-footer-col {
  padding: 25px;
  background: rgba(46, 125, 50, 0.05);
  border-radius: 10px;
  transition: 0.3s ease;
}

.extra-footer-col:hover {
  background: rgba(46, 125, 50, 0.15);
  transform: translateY(-5px);
}

/* HEADINGS */
.extra-footer-col h3 {
  color: #4cc9f0;
  margin-bottom: 15px;
  font-size: 18px;
}

/* TEXT */
.extra-footer-col p,
.extra-footer-col li {
  color: #ddd;
  font-size: 14px;
  line-height: 1.6;
}

/* LISTS */
.extra-footer-col ul {
  list-style: none;
}

.extra-footer-col ul li {
  margin-bottom: 10px;
}

/* LINKS */
.extra-footer-col ul li a {
  color: #ddd;
  text-decoration: none;
  transition: 0.3s;
}

.extra-footer-col ul li a:hover {
  color: #4cc9f0;
  padding-left: 5px;
}

/* SOCIAL ICONS */
.footer-social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.footer-social-icons a {
  width: 45px;
  height: 45px;
  background: #2e7d32;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  transition: 0.3s ease;
}

.footer-social-icons a:hover {
  background: #1b4d23;
  transform: scale(1.1);
}

/* BOTTOM TEXT */
.extra-footer-bottom {
  border-top: 2px solid rgba(46, 125, 50, 0.3);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
  color: #bbb;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .extra-footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social-icons {
    justify-content: center;
  }
}

/* ======================
       RESPONSIVE
   ====================== */
@media (max-width: 1024px) {
  .extra-footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .extra-footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 25px;
  }
}


/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .navbar ul {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  /* mobile navbar behavior moved to common.css; page retains other responsive tweaks */

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .logo img {
    height: 60px;
  }

  .logo span {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-text p {
    font-size: 0.95rem;
  }
}

/* Small phones (iPhone 12 - 390px) */
@media (max-width: 390px) {
  .logo img { height: 45px; }
  .logo span { font-size: 1rem; }
  .logo { gap: 8px; }
}
/* Hide header on scroll */
.header.hide {
  transform: translateY(-100%);
}
.header {
  transition: transform 0.4s ease, background-color 0.3s ease;
}
