/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #f8f9fa;
  color: #333;
  line-height: 1.6;
  display: block;
}

/* Hero */
.hero {
  /* background: url('https://www.wfp.org/sites/default/files/styles/featured/public/2021-06/WFP-0000127432.jpg') center/cover no-repeat; */
  min-height: 250px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  /* background: rgba(0, 0, 0, 0.6); */
  text-align: center;
  padding: 20px;
  color: #fff;
  width: 100%;
}

.hero-overlay h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

/* Tabs */
.donation-tabs {
  display: flex;
  justify-content: center;
  margin: 20px auto;
  max-width: 600px;
}

.donation-tabs button {
  flex: 1;
  padding: 15px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  background: #e9ecef;
  transition: 0.3s;
}

.donation-tabs button.active {
  background: #0077b6;
  color: white;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* body {
  background: #f8f9fa;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
} */

.payment-container {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 650px;
}

.payment-container h2 {
  margin-bottom: 10px;
  color: #333;

}

form label {
  display: block;
  margin: 12px 0 5px;
  font-weight: bold;
  color: #333;
}

form input, form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 5px;
}

form textarea {
  resize: none;
  height: 70px;
}

.error {
  color: red;
  font-size: 12px;
  display: none;
}

.actions {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

button {
  flex: 1;
  margin: 0 5px;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
}

button.pay {
  background: #008065;
  color: white;
}
button.pay:hover {
background-color: #e3ece7; color: #555;
 
}
button.cancel {
  background: #008065;
  color: white;
}
button.cancel:hover {
  background-color: #e3ece7; color: #555;
}
.payment-icons {
  margin-top: 20px;
  text-align: center;
}

.payment-icons img {
  height: 25px;
  margin: 0 8px;
}

/* 📱 Mobile */
@media (max-width: 500px) {
  .payment-container {
    padding: 20px;
  }
  button {
    font-size: 14px;
    padding: 10px;
  }
}
/* Responsive */
@media (max-width: 768px) {
  .donation-form {
    flex-direction: column;
  }
}
.hero {
  position: relative;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;

}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
}
.hero-overlay {
  position: relative;
  text-align: center;
  color: #2f4f4f;
  z-index: 1;
  padding: 20px;
}

.donation-section {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  flex-wrap: wrap;
  width: 100%;
  min-height: 100vh;
  gap: 20px;
  padding: 30px;
}

/* Make both containers equal */
.payment-container,
.campaign-container {
  flex: 1 1 50%;
  min-width: 320px;
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  /* justify-content: space-between; */
}

/* Ensure equal height */
.payment-container,
.campaign-container {
  display: flex;
  flex-direction: column;
}

/* Campaign Image */
.campaign-image img {
  width: 100%;
  border-radius: 10px;
  margin: 15px 0;
}

/* Responsive */
@media (max-width: 900px) {
  .donation-section {
    flex-direction: column;
    min-height: unset;
  }
  .payment-container,
  .campaign-container {
    flex: 1 1 100%;
    max-width: 100%;
    margin: 10px 0;
  }
}
/* Right Image */
.campaign-video video {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  object-fit: cover; /* keeps video cropped neatly */
  margin: 15px 0;
}


/* Responsive */
@media (max-width: 900px) {
  .donation-section {
    flex-direction: column;
  }

  .image-container {
    margin-top: 20px;
  }
}
/* Responsive for tablets and below */
@media (max-width: 900px) {
  .donation-section {
    flex-direction: column;
    align-items: stretch;
    min-height: unset;
  }
  .payment-container,
  .image-container {
    max-width: 100%;
    margin: 20px 0;
    padding: 20px;
  }
  .image-container {
    min-height: 200px;
  }
}

/* Responsive for mobile devices */
@media (max-width: 600px) {
  .hero {
    min-height: 180px;
    padding: 10px 0;
  }
  .hero-overlay h1 {
    font-size: 1.5rem;
  }
  .hero-overlay p {
    font-size: 1rem;
  }
  .payment-container,
  .image-container {
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
  }
  .payment-container h2 {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }
  .payment-container input,
  .payment-container textarea {
    font-size: 1rem;
    padding: 8px;
  }
  .actions {
    flex-direction: column;
    gap: 10px;
  }
  button {
    font-size: 1rem;
    padding: 10px;
    margin: 0 0 10px 0;
  }
  .payment-icons img {
    height: 22px;
  }
  .image-container img {
    width: 90%;
    height: auto;
  }
}

/* Extra small screens */
@media (max-width: 400px) {
  .hero-overlay h1 {
    font-size: 1.1rem;
  }
  .payment-container h2 {
    font-size: 1rem;
  }
}
.payment-container,
.campaign-container {
   flex: 1;
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  
}


/* Campaign Styling */
.campaign-stats {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.campaign-stats p {
  margin: 8px 0;
}

progress {
  width: 100%;
  height: 12px;
  border-radius: 5px;
  overflow: hidden;
}

progress::-webkit-progress-bar {
  background: #eee;
  border-radius: 5px;
}
progress::-webkit-progress-value {
  background: #b22222;
  border-radius: 5px;
}
progress::-moz-progress-bar {
  background: #b22222;
  border-radius: 5px;
}

.campaign-image img {
  width: 100%;
  border-radius: 10px;
  margin: 15px 0;
}

/* Responsive */
@media(max-width: 900px) {
  .donation-container {
    flex-direction: column;
  }
}