/* General Form Styling */
.donation-form {
  max-width: 650px;
  margin: 0 auto;
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #eaeaea;
  font-family: 'Arial', sans-serif;
  display: flex;
  flex-direction: column;
}

/* Donation Amount Section Styling */
.donation-form .field.radio {
  display: inline-block;
  width: 30%;
  margin: 1%;
  text-align: center;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #f9f9f9;
  cursor: pointer;
}

.donation-form .field.radio:hover {
  background-color: #CACACA; /* Hover color before selection */
}

.donation-form .field.radio.selected {
  background-color: rgb(212, 227, 246); /* Selected background color */
  border: 1px solid rgb(24, 69, 123); /* Selected border color */
}

/* Hide radio inputs */
.donation-form .field.radio input[type="radio"] {
  display: none;
}

/* Remove dashes from labels */
.donation-form .field.radio label::after {
  content: ''; /* Remove dashes after labels */
}

/* Other Amount Field Styling */
#other-amount {
  display: none;
  width: 100% !important; /* Full width */
  margin-top: 10px;
}

#other-amount input {
  width: 100%;
  font-size: 24px; /* Bigger font for input */
  padding: 10px;
  margin-top: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* Step Control Buttons */
.donation-form .pagination-button {
  background-color: rgb(20, 59, 106); /* Continue button background color */
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 4px;
  font-size: 18px;
  cursor: pointer;
  display: inline-block;
  margin-top: 20px;
  width: 100%; /* Full width */
}

.donation-form .pagination-button:hover {
  background-color: #0056cc;
}

.donation-form button[disabled] {
  background-color: #ccc;
  cursor: not-allowed;
}

.donation-form .pagination-button:focus {
  outline: 2px solid #0056cc;
}

/* Hidden initially */
#Transaction_2780161, #Transaction_3017729, textarea#comment {
  display: none;
}

/* Remove label text when fields are shown */
#Transaction_2780161 label, #Transaction_3017729 label {
  display: none;
}

#memory-checkbox:checked ~ #Transaction_2780161,
#honor-checkbox:checked ~ #Transaction_3017729 {
  display: block;
}

/* Fixed width for checkboxes */
#honor-checkbox, #memory-checkbox, #add-note-checkbox, input#true-impact {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  vertical-align: middle;
  cursor: pointer;
}

/* Align checkbox and label on the same line */
.donation-form label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-size: 16px; /* Adjust as needed */
  margin-bottom: 10px;
}

/* Ensure that the Continue button stays at the bottom */
.donation-form .pagination-button {
  margin-top: auto;
}

/* Hide true-impact, captcha, and donate button on the first page */
section.true-impact, .captcha {
  display: none;
}

/* Show the sections when moving to the second page */
.donation-form.show-second-page .true-impact,
.donation-form.show-second-page .captcha,
.donation-form.show-second-page .btn-group {
  display: block;
}

/* Container styles for radio buttons */
.field.radio {
  border: 2px solid transparent; /* Border applied to container */
  margin-bottom: 15px; /* Optional margin for spacing */
}

/* Container styling for selected state */
.field.radio.selected {
  border-color: rgb(24, 69, 123); /* Border only on the selected container */
}

/* Expand the label to take the full height and width of the container */
.field.radio label {
  display: block !important;
  width: 100%;
  height: 100%;
  padding: 10px;
  box-sizing: border-box; /* Ensures padding doesn't affect width */
  cursor: pointer; /* Makes the entire label clickable */
  background-color: transparent; /* Default background */
  margin-bottom: 0;
}

/* Styling for the recurring buttons */
.recurring-buttons-group {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Recurring buttons - three across with spacing */
.recurring-button {
  display: inline-block;
  width: calc(33.33% - 10px);
  margin: 5px;
  padding: 12px;
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  font-size: 16px;
}

.recurring-button:hover {
  background-color: #CACACA;
}

.recurring-button.selected {
  background-color: rgb(212, 227, 246);
  border-color: rgb(24, 69, 123);
}

/* Donation buttons: 3 across */
.section.donation .field.radio {
  width: calc(33.33% - 10px);
  margin: 5px;
  box-sizing: border-box;
  display: inline-block;
  text-align: center;
}

#other-amount, #Transaction_2780161, #Transaction_3017729, #comment, div.section.contact div.field input, div.billing-address div.field input, div.billing-address div.field textarea, select, #routingNumber, #accountNumber {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  padding: 13px 10px !important;
  font-size: 17px;
  border-radius: 8px;
  margin-top: 0px;
  max-width: unset !important;
  width: 95%;
  margin-bottom: 0;
}

#other-amount {
  padding-left: 24px !important;
}

textarea#street-address {
  width: 95% !important;
}

div.section.contact div.field, div.section.billing-address div.field {
  width: 49%;
  display: inline-block;
  max-width: unset !important;
}

div.section.billing-address div.field.street-address, div.field.Transaction_3699713 {
  width: 100% !important;
  max-width: unset !important;
}

#Transaction_2780161, #comment {
  width: 100%;
  max-width: unset;
}

/* Placeholder styling for memory and honor fields */
#Transaction_2780161::placeholder,
#Transaction_3017729::placeholder,
textarea#comment::placeholder {
  color: #999;
}

/* Add smooth transition for fields toggling visibility */
#Transaction_2780161, #Transaction_3017729, textarea#comment {
  transition: all 0.3s ease-in-out;
}

.btn.btn-submit.btn-submit-donation {
  background-color: rgb(20, 59, 106) !important;
  color: #fff;
  padding: 15px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  width: 100%;
  cursor: pointer;
}

.donation-form .field .checkbox {
  text-decoration: none !important;
}

.donation-form .field .checkbox.selected {
  background: rgb(20, 59, 106) !important;
}

div.comment label {
  display: none;
}

div.section.contact label, div.section.billing-address label {
  width: 140px;
}

/* Hiding things */
.section.custom-fields {
  margin-top: 20px; 
}

.section.custom-fields label {
  margin-top: 15px;
}

#Account_2124801 {
  margin-left: auto;
  margin-right: auto;
}

.section.donation h3, .section.custom-fields h3 {
  display: none;
}

#stripe-cc-fields {
  text-align: center;
}

#stripe-cc-fields label {
  display: none;
}

select {
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

div.section h3 {
  font-family: Arial, sans-serif;
  font-size: 18px;
  margin-bottom: 5px;
  margin-top: 25px;
}

div.section.captcha, #stripe-cc-fields {
  margin-top: 40px;
  margin-bottom: 20px;
}

img.sample-check {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px auto;
}

div.routingNumber {
  margin-top: 30px;
}

input[type=date], input[type=email], input[type=number], input[type=password], input[type=search], input[type=tel], input[type=text], input[type=url], textarea, select {
  color: black;
}

textarea:not(:placeholder-shown), input:not(:placeholder-shown) {
  background-color: rgb(212, 227, 246) !important;
  border: 1px solid rgb(24, 69, 123) !important;
}


/* Special for Maplewood */
#city {
  margin-top: -18px;
}

#state {
  width: 86%;
}

.Account_2124801 {
  margin-bottom: 40px;
}

.donation-form .field .checkboxes {
  max-width: 375px !important;
}

@media (max-width: 767px) {
  .section.donation .field.radio, .donation-form .field.radio,  {
    width: calc(50% - 15px) !important;
  }
  .other-amount {
    width: 100% !important;
  }

  .recurring-button {
    width: calc(100% - 20px);
  }

  div.section.contact div.field, div.section.billing-address div.field {
    width: 100%;
  }

  #street-address {
    margin-bottom: 20px !important;
  }
}


.field.text.other-amount {
  position: relative;
}

#other-amount {
  padding-left: 25px; /* Add space for the $ symbol */
}

.field.text.other-amount::before {
  content: "$";
  position: absolute;
  left: 18px; /* Adjust as needed */
  top: 50%;
  transform: translateY(-50%);
  color: black;
  z-index: 9;
}

#other-amount:not(:placeholder-shown) + .field.text.other-amount::before {
  visibility: visible; /* Show $ only when the input is not blank */
}

.donation-success {
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #eaeaea;
  font-family: 'Arial', sans-serif;
  display: flex;
  flex-direction: column;
}