/* Base styles */
.cmiDonForm {
  background: #ffffff;
  max-width: 600px !important;
  width: 100% !important;
  margin: 0 auto;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue",
    sans-serif;
  color: #333;
}

/* RTL Support for Arabic */
.cmiDonForm.rtl {
  direction: rtl;
  text-align: right;
}

.rtl .currency-option input,
.rtl .amount-option input[type="radio"],
.rtl .donation-type-option input,
.rtl .terms-label input {
  margin-left: 8px;
  margin-right: 0;
}

/* Form title */
.donation-title {
  text-align: center;
  margin-bottom: 30px;
  color: #2c3e50;
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #209269, #efae28);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Currency options - NO TITLE, COMPACT */
.currency-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  justify-content: center;
}

.currency-option {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.95rem;
}

.currency-option:hover {
  background: #e9ecef;
  border-color: #209269;
  transform: translateY(-1px);
}

.currency-option.active {
  background: linear-gradient(135deg, #209269, #1a7a5a);
  color: white;
  border-color: #209269;
  box-shadow: 0 4px 12px rgba(32, 146, 105, 0.3);
}

.currency-option input {
  margin-right: 8px;
}

.rtl .currency-option input {
  margin-right: 0;
  margin-left: 8px;
}

/* Section styling */
.donation-section {
  margin-bottom: 25px;
  padding-bottom: 20px;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #2c3e50;
  border-bottom: 3px solid #209269;
  padding-bottom: 10px;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 50px;
  height: 3px;
  background: #efae28;
}

/* Amount options */
.currency {
  display: none;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.amount-option {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.amount-option::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #209269, #efae28);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.amount-option:hover {
  background: #e9ecef;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.amount-option:hover::before {
  transform: scaleX(1);
}

.amount-option.active {
  background: linear-gradient(135deg, rgba(32, 146, 105, 0.1), rgba(239, 174, 40, 0.1));
  border-color: #209269;
  box-shadow: 0 6px 20px rgba(32, 146, 105, 0.2);
}

.amount-option.active::before {
  transform: scaleX(1);
}

.amount-option input[type="radio"] {
  margin: 0 auto 10px auto;
}

.amount-value {
  font-weight: 700;
  font-size: 1.2rem;
  color: #209269;
  margin-bottom: 8px;
}

.amount-description {
  font-size: 0.9rem;
  color: #6c757d;
  font-weight: 500;
}

.custom-amount-container {
  margin-top: 20px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(32, 146, 105, 0.05), rgba(239, 174, 40, 0.05));
  border: 2px solid #e9ecef;
  border-radius: 10px;
}

.custom-amount-label {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  cursor: pointer;
  font-weight: 600;
  color: #209269;
}

.custom-amount-label input {
  margin-right: 10px;
}

.rtl .custom-amount-label input {
  margin-right: 0;
  margin-left: 10px;
}

.custom-amount-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 16px;
  margin-top: 10px;
  display: block !important;
  transition: border-color 0.3s ease;
}

.custom-amount-input:focus {
  border-color: #209269;
  outline: none;
  box-shadow: 0 0 0 3px rgba(32, 146, 105, 0.1);
}

/* Donor information form */
.donation-type {
  display: flex;
  gap: 25px;
  margin-bottom: 25px;
}

.donation-type-option {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 10px 15px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.donation-type-option:hover {
  border-color: #209269;
  background: rgba(32, 146, 105, 0.05);
}

.donation-type-option input {
  margin-right: 8px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  flex: 1;
  min-width: 200px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2c3e50;
}

.classicInput {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: #fff;
}

.classicInput:focus {
  border-color: #209269;
  outline: none;
  box-shadow: 0 0 0 3px rgba(32, 146, 105, 0.1);
  transform: translateY(-1px);
}

.classicInput::placeholder {
  color: #6c757d;
  font-weight: 500;
}

/* Terms section */
.terms-section {
  margin-top: 5px;
}

.terms-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 5px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.terms-label:hover {
  background: #e9ecef;
  border-color: #209269;
}

.terms-label input {
  margin-right: 12px;
}

.rtl .terms-label input {
  margin-right: 0;
  margin-left: 12px;
}

.terms-label a {
  color: #209269;
  text-decoration: none;
  font-weight: 600;
}

.terms-label a:hover {
  color: #efae28;
  text-decoration: underline;
}

/* Submit button */
.donation-submit {
  text-align: center;
  margin-top: 20px;
}

button.cmiedon_cmibuttonimage {
  background: linear-gradient(135deg, #209269, #1a7a5a);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px 40px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(32, 146, 105, 0.3);
  width: 100%;
  max-width: 300px;
  position: relative;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

button.cmiedon_cmibuttonimage::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #efae28, #d4941f);
  transition: left 0.3s ease;
  z-index: 0;
}

button.cmiedon_cmibuttonimage:hover::before {
  left: 0;
}

button.cmiedon_cmibuttonimage:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(32, 146, 105, 0.4);
}

button.cmiedon_cmibuttonimage span {
  position: relative;
  z-index: 1;
}

button.cmiedon_cmibuttonimage,
button.cmiedon_cmibuttonimage:hover {
  color: white !important;
}

/* Confirmation page styles */
.fullpage {
  max-width: 600px;
  margin: 0 auto;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.txt_marron {
  color: #2c3e50;
  margin-bottom: 25px;
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
}

.separator_detail_don {
  height: 2px;
  background: linear-gradient(135deg, #209269, #efae28);
  margin: 20px 0;
  border-radius: 1px;
}

.subDonConfirm {
  background: linear-gradient(135deg, #209269, #1a7a5a);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 14px 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-right: 15px;
  box-shadow: 0 4px 15px rgba(32, 146, 105, 0.3);
}

.rtl .subDonConfirm {
  margin-right: 0;
  margin-left: 15px;
}

.subDonConfirm:hover {
  background: linear-gradient(135deg, #efae28, #d4941f);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 174, 40, 0.4);
}

.backDonConfirm a {
  display: inline-block;
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 14px 30px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.backDonConfirm a:hover {
  background: #5a6268;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .cmiDonForm {
    padding: 25px 20px;
    max-width: 100%;
  }

  .donation-title {
    font-size: 1.6rem;
  }

  .amount-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
  }

  .form-group {
    flex-basis: 100%;
  }

  .currency-options {
    flex-direction: column;
    align-items: center;
  }

  .donation-type {
    flex-direction: column;
    gap: 15px;
  }
}

/* Error state */
.error {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25) !important;
}

/* Loading state */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Smooth animations */
* {
  transition: all 0.3s ease;
}

/* Focus states for accessibility */
.currency-option:focus-within,
.amount-option:focus-within,
.donation-type-option:focus-within {
  outline: 2px solid #209269;
  outline-offset: 2px;
}
