* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

/* <!-- EVENTS SECTION ---------------------------------------------------------------------------------------------> */
.campaign {
  background: linear-gradient(to left, #1C449B 25%, #1C449B00 60%, #ffffff00), url('/assets/images/getInvolved_top.jpg');
  /* Gradient + Background Image */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10rem 3rem 10rem 3rem;
  color: white;
  text-align: right;
  align-items: flex-end;
}

.error-message{
  color: #ff2a2a;
  font-size: 1.75rem;
  text-align: right;
}

/* Form Section */
.form {
  margin-top: 2.5em;
}

label {
  display: block;
  font-size: 1.75rem;
  font-weight: 300;
  margin-bottom: 0.3rem;
}

/* <!-- INPUTS SECTIONS ------------------------------------------------> */
input[type="text"], input[type="email"], input[type="number"] {
  border: 0.15rem solid white;
  background-color: #0B1C4150;
  margin-bottom: 1em;
  height: 2em;
  width: 40vw;
  text-align: right;
  font-weight: bold;
  font-size: 1.75rem;
  color: white;
  padding: 0.5em;
  transition: all 0.3s ease;
}

input[type="number"] {
  margin-bottom: 0.25em;
}

/* Remove number input arrows for all browsers */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
  /* For Firefox */
}

form input:focus {
  border-color: #0B1C41;
  background-color: #fff;
  outline: none;
  color: #0B1C41;
}

form input::placeholder {
  color: black;
  font-style: italic;
  font-size: 1.5rem;
  font-weight: lighter;
  opacity: 0.5;
}

form input:hover {
  border-color: #0B1C41;
}

/* <!-- ERROR/MANDATORY MESSAGE ------------------------------------------------> */
.form-mandatory {
  margin-bottom: 1em;
  font-style: italic;
  font-size: 1rem;
}

.form-group.terms {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 2em;
}

.form-group.terms a {
  font-weight: bold;
  text-decoration: none;
  color: white;
}

.form-group.terms a:hover {
  text-decoration: underline;
}

/* <!-- TERMS & AGREEMENT SECTION ------------------------------------------------> */
/* Checkbox */
input[type="checkbox"] {
  display: none;
}

.custom-checkbox {
  position: relative;
  display: inline-block;
  margin-right: 0.5em;
  width: 1em;
  height: 1em;
  border: 0.15rem solid white;
  cursor: pointer;
  transition: background-color 0.3s;
}

/* Checkbox Checked State*/
input[type="checkbox"]:checked+.custom-checkbox {
  background-color: white;
}

/* Add a checkmark */
.custom-checkbox::after {
  content: '';
  position: absolute;
  left: 0.625rem;
  top: 0.125rem;
  width: 0.3rem;
  height: 0.875rem;
  border: solid #0B1C41;
  border-width: 0 0.3rem 0.3rem 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.3s;
}

/* Show the checkmark when checked */
input[type="checkbox"]:checked+.custom-checkbox::after {
  opacity: 1;
}

/* <!-- BUTTON SECTION ------------------------------------------------> */
/* Submit Button */
.form .buttons {
  display: flex;
  justify-content: center;
}

button, input[type="submit"] {
  padding: 20.3rem;
  font-size: 6.25rem;
  border: none;
}

/* <!-- DONATION SECTION ---------------------------------------------------------------------------------------------> */
.donations {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 10rem 3rem 10rem 3rem;
  color: #1C449B;
  text-align: left;
}

.donations .buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: center;
  width: 100%;
}

.donations .buttons a {
  font-size: 6.25rem;
  padding: 1.5rem;
}

/* <!-- DONATION SECTION ---------------------------------------------------------------------------------------------> */
footer {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

footer .content {
  display: block !important;
  text-align: center !important;
  margin-top: 6rem !important;
}

footer .content .contact {
  align-items: center !important;
  padding-left: 0 !important;
}

/* <!-- MEDIA QUERIES ---------------------------------------------------------------------------------------------> */
/* <!-- Laptop ----------------!> */
@media only screen and (min-width: 1025px) and (max-width: 1440px),
only screen and (min-width: 853px) and (max-width: 1280px) {
  .donations .buttons a {
    font-size: 5rem;
    padding: 1.25rem;
  }
}

/* <!-- Desktop + Scale (125% Scale) ----------------!> */
@media (max-width: 1536px) and (min-width: 1535px) and (min-resolution: 120dpi) and (max-resolution: 121dpi) {
  .error-message{
    font-size: 1.5rem;
  }

  .form {
    margin-top: 1.5rem;
  }

  label {
    font-size: 1.5rem;
  }

  input[type="text"], input[type="email"], input[type="number"] {
    font-size: 1.5rem;
    height: 3rem;
    width: 40vw;
  }

  form input::placeholder {
    font-size: 1.5rem;
  }

  .campaign {
    padding: 8rem 3rem 8rem 3rem;
  }
}

/* <!-- Desktop + Scale (150% Scale) ----------------!> */
@media (max-width: 1280px) and (min-width: 1279px) and (min-resolution: 144dpi) and (max-resolution: 145dpi) {
  .error-message{
    font-size: 1.25rem;
  }

  .form {
    margin-top: 1.5rem;
  }

  label {
    font-size: 1.25rem;
  }

  input[type="text"], input[type="email"], input[type="number"] {
    font-size: 1.25rem;
    height: 2.5rem;
    width: 40vw;
  }

  form input::placeholder {
    font-size: 1.25rem;
  }

  .campaign {
    padding: 6rem 3rem 6rem 3rem;
  }
}

/* <!-- Mobile ----------------!> */
@media only screen and (max-width: 767px),
only screen and (orientation: portrait) {

  /* <!-- Form Section -----> */
  .campaign {
    background: linear-gradient(#1c449bc7, #1c449bc7), url('/assets/images/getInvolved_top.jpg');
    /* Gradient + Background Image */
    background-size: cover;
    background-position: 10%;
    background-attachment: none;
    padding: 7rem 1rem 7rem 1rem;
    align-items: center;
  }

  .campaign h1 {
    text-align: center;
    font-size: 4rem;
    width: 100% !important;
  }

  .error-message{
    font-size: 1.5rem;
    text-align: center;
  }

  .form {
    margin-top: 2em;
  }

  label {
    font-size: 1.5rem;
  }

  input[type="text"], input[type="email"], input[type="number"] {
    height: 2em;
    width: 100%;
    font-size: 1.5rem;
  }

  button, input[type="submit"] {
    font-size: 2.5rem !important;
    border: none;
  }

  .form .buttons {
    margin-top: 2rem;
  }

/* <!-- Donations Section -----> */
  .donations {
    padding: 7rem 1rem 7rem 1rem;
    text-align: center;
  }

  .donations .buttons {
    display: grid;
    grid-template-columns: 0;
    grid-template-rows: 1fr;
    margin-top: 1rem;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    justify-items: center;
    width: 100%;
  }

  .donations .buttons a {
    font-size: 2.5rem;
    padding: 1rem;
    margin: 0;
    width: 80vw;
  }
}
