/* Center the form in the middle of the screen */
.donation-form-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Form styling */
#donation-form {
  width: 100%;
  max-width: 700px !important;
  padding: 30px;
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Heading */
#donation-form h2 {
  text-align: center;
  color: #444;
  margin-bottom: 0px;
}

#donation-form .df-subheading {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
  font-weight: 600;
  font-size: 16px;
  margin-top: 0;
}

/* Inputs & Textarea */
#donation-form input,
#donation-form textarea {
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  box-sizing: border-box;
}

/* Button */
#donation-form button[type="submit"] {
  width: 100%;
  padding: 12px;
  background: #FF0000;
  color: #fff;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  height: auto !important;
  cursor: pointer;
  transition: background 0.3s ease;
}

#donation-form button[type="submit"]:hover {
  background: #050817;
  box-shadow: unset;
}

/* Message */
#df-message {
  margin-top: 10px;
  font-size: 14px;
  text-align: center;
}



/* Modal css */

#paymentModal {
  display: none;
  position: fixed;
  top: 10%;
  /* change from top: 500px */
  left: 0;
  width: 100%;
  height: 100%;
  /* background: rgba(0, 0, 0, 0.6); */
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

#paymentModal .modal-content {
  background: white;
  padding: 20px;
  max-width: 100%;
  width: 100%;
  /* padding: 10%; */
  padding-left: 10%;
  padding-right: 10%;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  margin: auto;
}

#closePaymentModal {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 24px;
  color: #555;
  font-weight: bold;
}

#closePaymentModal:hover {
  color: red;
}


#donation-dropdown {
  cursor: pointer;
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  box-sizing: border-box;
}

/* Radio Button Styling */
.donation-options {
  margin: 20px 0 0;
  direction: rtl;
}

.price-text {
  margin-left: 10px;
}

.radio-option {
  display: flex;
  align-items: center;
  margin: 10px 0;
  padding: 15px;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.radio-option:hover {
  border-color: #ff6b6b;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
}

.radio-option input[type="radio"] {
  display: none;
}

input[type="date"]::before {
  content: attr(placeholder);
  color: #999;
  position: absolute;
}

input[type="date"]:focus::before,
input[type="date"]:valid::before {
  content: "";
}

.radio-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #ff6b6b;
  border-radius: 50%;
  margin-left: 15px;
  margin-right: 15px;
  position: relative;
  background: white;
  transition: all 0.3s ease;
}

.radio-option input[type="radio"]:checked+.radio-custom {
  background: #ff6b6b;
  border-color: #ff6b6b;
}

.radio-option input[type="radio"]:checked+.radio-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

.radio-option input[type="radio"]:checked~.radio-text {
  color: #ff6b6b;
  font-weight: bold;
}

.radio-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
  color: #333;
  transition: color 0.3s ease;
}

.custom-option {
  border-color: #ff6b6b;
  background: #fff5f5;
}

.custom-option:hover {
  background: #ffe8e8;
}

.custom-option input[type="radio"]:checked+.radio-custom {
  background: #ff6b6b;
}

.custom-option input[type="radio"]:checked~.radio-text {
  color: #ff6b6b;
  font-weight: bold;
}

/* Form Input Styling */
#donation-form input[type="text"],
#donation-form input[type="email"],
#donation-form input[type="date"],
#donation-form textarea {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Fix placeholder visibility on iPhone */
#donation-form input[type="text"]::placeholder,
#donation-form input[type="email"]::placeholder,
#donation-form textarea::placeholder {
  color: #999;
  opacity: 1;
  -webkit-text-fill-color: #999;
}

#donation-form input[type="text"]::-webkit-input-placeholder,
#donation-form input[type="email"]::-webkit-input-placeholder,
#donation-form textarea::-webkit-input-placeholder {
  color: #999;
  opacity: 1;
  -webkit-text-fill-color: #999;
}

#donation-form input[type="text"]:-moz-placeholder,
#donation-form input[type="email"]:-moz-placeholder,
#donation-form textarea:-moz-placeholder {
  color: #999;
  opacity: 1;
}

#donation-form input[type="text"]::-moz-placeholder,
#donation-form input[type="email"]::-moz-placeholder,
#donation-form textarea::-moz-placeholder {
  color: #999;
  opacity: 1;
}

#donation-form input[type="text"]:-ms-input-placeholder,
#donation-form input[type="email"]:-ms-input-placeholder,
#donation-form textarea:-ms-input-placeholder {
  color: #999;
  opacity: 1;
}

#donation-form input[type="date"] {
  position: relative;
  background: white;
}

#donation-form input[type="date"]::-webkit-calendar-picker-indicator {
  background: transparent;
  bottom: 0;
  color: transparent;
  cursor: pointer;
  height: auto;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: auto;
}

#donation-form input[type="date"]::-webkit-datetime-edit {
  padding: 0;
}

#donation-form input[type="date"]::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

#donation-form input[type="date"]::-webkit-datetime-edit-text {
  padding: 0 2px;
}

#donation-form input[type="date"]::-webkit-datetime-edit-month-field,
#donation-form input[type="date"]::-webkit-datetime-edit-day-field,
#donation-form input[type="date"]::-webkit-datetime-edit-year-field {
  padding: 0 2px;
}

#donation-form input[type="text"]:focus,
#donation-form input[type="email"]:focus,
#donation-form input[type="date"]:focus,
#donation-form textarea:focus {
  outline: none;
  border-color: #ff6b6b;
}

#donation-form button[type="submit"] {
  width: 100%;
  padding: 15px;
  background: #ff6b6b;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 20px;
}

#donation-form button[type="submit"]:hover {
  background: #ff5252;
}

.df-heading {
  color: #ff6b6b;
  text-align: center;
  margin-bottom: 30px;
  font-size: 24px;
  font-weight: bold;
}

/* Error Message Styling */
.error-message {
  display: none;
  color: #ff4444;
  font-size: 12px;
  margin-top: 5px;
  margin-bottom: 15px;
  padding: 5px 0;
  text-align: right;
  direction: rtl;
  font-weight: 500;
  min-height: 0;
  line-height: 1.3;
}

.error-message:not(:empty) {
  display: block;
}

/* Ensure proper spacing for form elements */
#donation-form>input,
#donation-form>textarea{
  clear: both;
  display: block;
}

/* Fix spacing for donation options */
.donation-options {
  margin: 20px 0;
  clear: both;
}

/* Add red border to inputs with errors */
.has-error {
  border-color: #ff4444 !important;
  box-shadow: 0 0 5px rgba(255, 68, 68, 0.3);
}

/* Special styling for donation amount display span */
.donation-amount-display {
  display: block;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  color: red;
  margin: 0 0 8px;
  padding: 0 10px 12px;
  width: 100%;
  box-sizing: border-box;
  min-height: 20px;
  line-height: 1.4;
}

#donation_amount_error{
  margin-bottom:0 !important;
}

#donation-form .checkbox_input {
  display: inline;
  width: auto;
  margin: 5px 10px 0 0;
}

.bank-details p {
  font-size: 16px;
  color: #555;
  margin-top: 10px;
  margin-bottom: 0;
  text-align: right;
}

.donation-payment-options {
  display: flex;
  gap: 0 10px;
}

.donation-payment-options .radio-option {
  padding: 5px;
  /* flex-direction: row-reverse; */
}

.donation-payment-options .radio-option .radio-text {
  text-align: right;
}

.checkbox-fields{
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 15px;
}

.checkbox-fields label{
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
  color: #333;
  cursor: pointer;
  user-select: none;
}

.checkbox-fields .error-message{
  width: 100%;
}


@media only screen and (max-width:600px){
  .donation-payment-options{
    flex-wrap: wrap;
  }  

  .donation-payment-options .radio-option{
    width:100%;
    padding:15px;
  }
}

html[lang="en-US"] .donation-options .radio-option{
  flex-direction: row-reverse;
}

html[lang="en-US"] .donation-options .radio-option .radio-custom{
  margin-right: 15px;
  margin-left: 0;
}

html[lang="en-US"] .donation-payment-options .radio-option .radio-custom{
  margin-right: 15px;
  margin-left: 5px;
}

html[lang="en-US"] .donation-options .radio-option .radio-text, html[lang="en-US"] .donation-payment-options .radio-text{
  text-align:left;
}