body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
}

h2 {
  text-decoration: underline;
}

/* Form Container */
.sdg {
  background-color: #ffffff;
  /* White */
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  max-width: 600px;
  margin: auto;
}

/* Alert Styles */
.alert {
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 5px;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #000000;
  text-transform: capitalize;
}

.ben {
  background-color: #f8f9fa;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
}

.ben h5 {
  font-size: 1.1em;
  color: #3ea248;
  margin-bottom: 10px;
}

.ben div {
  margin-bottom: 10px;
}

button {
  background-color: #3ea248;
  color: #ffffff;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-bottom: 15px;
}

button:hover {
  background-color: #2d8c39;
}

button.add-beneficiary {
  margin-top: 15px;
  background-color: #0066cc;
}

button.add-beneficiary:hover {
  background-color: #004d99;
}

.form-header {
  text-align: center;
  margin-bottom: 20px;
}

.form-header h1 {
  font-size: 1.5em;
  color: #3ea248;
  text-transform: uppercase;
  font-weight: bold;
  margin-bottom: 5px;
  position: relative;
}
.form-header-beneficiaries h2 {
  font-size: 1.5em;
  color: #3ea248;
  text-transform: uppercase;
  font-weight: bold;
  margin-bottom: 5px;
  position: relative;
}
.form-header h1::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -5px;
  width: 50%;
  height: 3px;
  background-color: #3ea248;
}

h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  color: #000000;
}

a {
  color: #3ea248;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.button-bar {
  @media screen and (min-width: 481px) {
    width: 30%;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    padding: 10px 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid #ccc;
    border-radius: 15px;
  }
  @media screen and (max-width: 480px) {
    margin: auto;
  }
}

.button-bar button {
  background-color: #3ea248;
  color: #ffffff;
  border: none;
  margin: 10px;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  @media screen and (max-width: 480px) {
    margin: 1rem 0 0 0;
  }
}

.button-bar button:hover {
  background-color: #2d8c39;
}
.form-control {
  background-color: #f9f9f9;
  border-color: #3ea248;
  color: #333;
}
.btn btn-danger mt-2 {
  background-color: #2d8c39;
}

/* Change border color on focus */
.form-select:focus {
  border-color: #3ea248; /* Focus border color */
  outline: none; /* Remove outline */
  box-shadow: 0 0 0 0.2rem rgba(62, 162, 72, 0.25); /* Shadow effect */
}

.form-control:focus {
  background-color: #fff;
  border-color: #3ea248;
  box-shadow: 0 0 5px rgba(62, 162, 72, 0.5);
}

.banner {
  position: relative;
  max-height: 500px;
  overflow: hidden;
  img {
    width: 100%;
    height: auto;
    object-fit: cover;
    min-height: 200px;
  }
}

.banner-overlay {
  position: absolute; /* Position overlay absolutely */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5); /* Dark overlay with 50% opacity */
}

.banner-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  z-index: 1;
  h1 {
    font-size: clamp(1.5rem, 4vw + 1rem, 3rem);
    font-weight: bold;
    p {
      font-size: 1.5rem;
    }
  }
}

.bg-white {
  background-color: #fff;
}

@media (max-width: 600px) {
  .button-bar {
    width: 70vw;
    flex-direction: row;
  }

  .button-bar button {
    margin-bottom: 10px;
    width: 100%;
  }
}
