.relworx-donation-form {
  max-width: 600px;
  margin: 1em auto;
  padding: 2em;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.relworx-form-step {
  margin-bottom: 2em;
}

#relworx-cause-title {
  margin: 0 0 1em;
  color: #333 !important;
  font-size: 25px !important;
  text-align: left;
}

#relworx-step-1-title,
#relworx-step-2-title,
#relworx-step-3-title {
  margin: 0 0 1.5em;
  padding-bottom: 0.5em;
  border-bottom: 2px solid #f0f0f0;
  color: #333 !important;
  font-size: 19px !important;
}


.relworx-form-group{
  margin: 35px 0px;
}
.relworx-form-group label {
  display: block;
  color: #555;
  font-weight: 500;
  font-size: 16px !important;
  margin-bottom: 20px !important;
  line-height: 0px !important;
}

.relworx-form-group input[type="text"],
.relworx-form-group input[type="email"],
.relworx-form-group input[type="tel"],
.relworx-form-group input[type="number"] {
  width: 100%;
  padding: 0.75em;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 17px !important;
  transition: border-color 0.3s ease;
  height: 45px !important;
}

.relworx-form-group input:focus {
  outline: none;
  border-color: #37B34A;
}

.relworx-form-group input.error {
  border-color: #dc3232;
}

.relworx-custom-amount {
  margin-top: 15px;
  flex: 1 1 auto;
}

.relworx-custom-amount.is-always-visible {
  margin-top: 0;
}

.relworx-amount-entry {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.relworx-mobile-currency {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 120px;
}

.relworx-mobile-currency select {
  width: 100%;
  height: 45px;
  padding: 0 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px !important;
  background: #fff;
}

.relworx-currency-flag,
.relworx-country-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  font-size: 22px;
  line-height: 1;
}

.relworx-currency-flag {
  width: 42px;
  height: 45px;
  flex: 0 0 42px;
}

.relworx-mobile-currency select:focus {
  outline: none;
  border-color: #37B34A;
}

.relworx-custom-amount input {
  width: 100%;
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
}

.relworx-custom-amount input:focus {
  border-color: var(--relworx-theme-color, #37B34A);
  outline: none;
}

/* Admin styles for preset amounts */
.relworx-preset-amounts {
  margin-bottom: 10px;
}

.relworx-preset-amount {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  gap: 10px;
}

.relworx-preset-amount input {
  width: 150px;
}

.relworx-preset-amount .remove-preset-amount {
  color: #dc3232;
}

.relworx-preset-amount .remove-preset-amount:hover {
  color: #a00;
}

.add-preset-amount {
  margin-top: 10px !important;
}

.relworx-donation-type {
  display: flex;
  gap: 2em;
  margin-top: 1em;
}

.relworx-donation-type label {
  display: flex;
  align-items: center;
  gap: 0.5em;
  cursor: pointer;
}

.relworx-payment-methods {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
   gap: 1em;
   margin-top: 0.5em;
 }
 
 .relworx-payment-methods label {
   display: flex;
   align-items: center;
   gap: 0.5em;
   padding: 1em;
   border: 2px solid #ddd;
   border-radius: 4px;
   cursor: pointer;
   transition: all 0.3s ease;
 }
 
 .relworx-payment-methods label:hover {
   border-color: #37B34A;
 }
 
 .relworx-payment-methods input[type="radio"] {
   margin: 0;
 }
 
 .relworx-payment-methods img {
   height: 24px;
   width: auto;
 }

 /* Payment method options styling */
 .relworx-payment-method-options {
   display: flex;
   flex-direction: column;
   gap: 5px;
   margin-top: 0.5em;
 }
 
.relworx-form-group .relworx-payment-method-option {
  display: flex;
  align-items: center;
  gap: 0.75em;
  padding: 1.25em;
  border: 2px solid #ddd;
   border-radius: 8px;
   cursor: pointer;
   transition: all 0.3s ease;
   background: #fff;
  margin-bottom: 0 !important;
  line-height: 1 !important;
}
 
 
 .relworx-payment-method-option:hover {
   border-color: #37B34A;
   box-shadow: 0 2px 8px rgba(55, 179, 74, 0.1);
 }
 
 .relworx-payment-method-option input[type="radio"] {
   margin: 0;
   cursor: pointer;
   accent-color: #37B34A;
 }
 
 .relworx-payment-method-option input[type="radio"]:checked ~ .payment-method-label {
   color: #37B34A;
   font-weight: 600;
 }
 
 .relworx-payment-method-option input[type="radio"]:checked {
   border-color: #37B34A;
 }
 
 .relworx-payment-method-option:has(input[type="radio"]:checked) {
   border-color: #37B34A;
   background-color: #f0fdf4;
 }
 
.relworx-form-group .payment-method-label {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  font-size: 16px !important;
   font-weight: 600;
   color: #333;
   cursor: pointer;
   letter-spacing: 0.01em;
   margin-bottom: 0 !important;
   line-height: 1.2 !important;
 }

 .payment-method-title {
   text-transform: uppercase;
   letter-spacing: 0.08em;
 }

 .payment-method-badge {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   min-width: 48px;
   padding: 0.28em 0.6em;
   border-radius: 999px;
   background: #eef7f0;
   border: 1px solid rgba(55, 179, 74, 0.2);
   color: #2c7d39;
   font-size: 12px !important;
   font-weight: 700;
   line-height: 1;
   letter-spacing: 0.08em;
   text-transform: uppercase;
 }

 .relworx-payment-method-option:has(input[type="radio"]:checked) .payment-method-badge {
   background: #37B34A;
   border-color: #37B34A;
   color: #fff;
 }

 /* Visa payment info */
 .relworx-visa-info {
   padding: 1.5em;
   background-color: #f0f8ff;
   border: 1px solid #b3d9ff;
   border-radius: 8px;
   margin-bottom: 1.5em;
 }
 
 .relworx-visa-info p {
   margin: 0 !important;
   color: #0066cc;
   font-size: 16px !important;
 }

.relworx-form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 30px !important;
}

.relworx-prev-step,
.relworx-next-step,
.relworx-submit-donation {
  padding: 0.75em 1.5em;
  border: none;
  border-radius: 4px;
  font-size: 16px !important;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.relworx-prev-step {
  background: #f0f0f0 !important;
  color: #222222 !important;
  border: none !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.relworx-prev-step:hover {
  background: #e0e0e0 !important;
  border: none !important;
  box-shadow: none !important;
}

.relworx-next-step,
.relworx-submit-donation {
  background: var(--relworx-theme-color, #37B34A);
  color: #fff;
  border: none !important;
  box-shadow: none;
}

.relworx-next-step:hover,
.relworx-submit-donation:hover {
  background: var(--relworx-theme-color-hover, #37B34A);
  border: none !important;
  box-shadow: none;
}

.relworx-form-messages {
  margin-top: 1.5em !important;
  font-size: 16px !important;
}

.relworx-message {
  padding: 1em !important;
  border-radius: 4px !important;
  font-weight: 500 !important;
  font-size: 16px !important;
}

.relworx-message.error {
  background: #f8d7da !important;
  color: #721c24 !important;
  border: 1px solid #f5c6cb !important;
}

.relworx-message.success {
  background: #d4edda !important;
  color: #155724 !important;
  border: 1px solid #c3e6cb !important;
}

.relworx-message.processing {
  background: #cce5ff !important;
  color: #383838 !important;
  border: 1px solid #b8daff !important;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .relworx-donation-form {
    margin: 1em;
    padding: 1.5em;
  }

  .relworx-preset-amounts {
    grid-template-columns: repeat(2, 1fr);
  }

  .relworx-donation-type {
    flex-direction: column;
    gap: 1em;
  }

  .relworx-payment-methods {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 480px) {
  .relworx-preset-amounts {
    grid-template-columns: 1fr;
  }

  .relworx-form-navigation {
    flex-direction: column;
    gap: 1em;
  }

  .relworx-prev-step,
  .relworx-next-step,
  .relworx-submit-donation {
    width: 100%;
  }
}

.relworx-cause-info {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.relworx-cause-description {
  margin-bottom: 1.5rem !important;
  color: #495057 !important;
  font-size: 16px !important;
}

p.description {
  font-size: 16px !important;
  color: inherit !important;
}

.relworx-form-progress {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 2rem;
  padding: 0;
  position: relative;
}

.relworx-form-progress::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 32px;
  right: 32px;
  height: 2px;
  background: #e5e7eb;
  z-index: 0;
}

.relworx-step-indicator {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  flex: 1 1 0;
  text-align: center;
  background: #fff;
}

.relworx-step-number {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2f7;
  color: #6b7280;
  font-size: 14px !important;
  font-weight: 700;
  line-height: 1;
  transition: all 0.25s ease;
}

.relworx-step-label {
  display: block;
  color: #6b7280;
  font-size: 14px !important;
  font-weight: 600;
  line-height: 1.3 !important;
  transition: color 0.25s ease;
}

.relworx-step-indicator.active .relworx-step-number {
  background: var(--relworx-theme-color, #37B34A);
  color: #fff;
}

.relworx-step-indicator.active .relworx-step-label {
  color: var(--relworx-theme-color, #37B34A);
}

.relworx-step-indicator.completed .relworx-step-number {
  background: #e8f7ec;
  border-color: var(--relworx-theme-color, #37B34A);
  color: var(--relworx-theme-color, #37B34A);
}

.relworx-step-indicator.completed .relworx-step-label {
  color: var(--relworx-theme-color, #37B34A);
}

.relworx-form-row {
  display: flex;
  gap: 1.5rem;
}

@media screen and (max-width: 480px) {
  .relworx-form-row {
    flex-direction: column;
    gap: 1rem;
  }
}

.relworx-back-icon {
  display: inline-block;
  margin-right: 5px;
  font-size: 16px !important;
  line-height: 1;
  vertical-align: middle;
}

.relworx-mobile-input {
  display: flex;
  align-items: center;
  gap: 8px;
}

.relworx-country-prefix {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.relworx-country-flag {
  width: auto;
  height: auto;
  flex: 0 0 auto;
}

.relworx-country-code {
  font-weight: 500;
  color: #333;
  text-align: center;
  font-size: 17px !important;
}

.relworx-mobile-input input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.relworx-mobile-input input:focus {
  border-color: var(--relworx-theme-color, #37B34A);
  outline: none;
}

.relworx-mobile-input input.error {
  border-color: #dc3232;
}

.relworx-donation-summary {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.relworx-donation-summary h4 {
  margin: 0 0 1rem;
  color: #2c3e50;
  font-size: 16px !important;
  font-weight: 600;
}

.relworx-summary-details {
  color: #495057 !important;
  font-size: 16px !important;
}

.relworx-summary-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem!important;
  margin-bottom: 10px!important;
}

.relworx-summary-details p {
  margin: 10px 0 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-size: 16px !important;
}

.relworx-summary-details span {
  font-weight: 600 !important;
  color: #6c757d !important;
  font-size: 16px !important;
}

.relworx-summary-total {
  margin-top: 1rem !important;
  padding-top: 1rem !important;
  border-top: 1px solid #e9ecef !important;
  font-weight: 600 !important;
  font-size: 16px !important;
}

.relworx-summary-total span {
  font-size: 16px !important;
}

#summary_recurring {
  margin-top: 1rem !important;
  padding-top: 1rem !important;
  border-top: 1px solid #e9ecef !important;
  font-size: 16px !important;
}

.relworx-frequency-options {
  display: flex !important;
  gap: 2em !important;
  margin-top: 1em !important;
  font-size: 16px !important;
}

.relworx-frequency-options label {
  display: flex !important;
  align-items: center !important;
  gap: 0.5em !important;
  cursor: pointer !important;
  font-size: 16px !important;
}

.relworx-recurring-summary {
  margin-top: 1.5em !important;
  padding: 1em !important;
  background-color: #f8f9fa !important;
  border: 1px solid #e9ecef !important;
  border-radius: 4px !important;
  font-size: 16px !important;
}

.relworx-recurring-summary p {
  margin: 0.5em 0 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-size: 16px !important;
}

.relworx-total-amount {
  display: flex;
  gap: 0.5em;
}

@media screen and (max-width: 480px) {
  .relworx-amount-entry {
    flex-direction: column;
    align-items: stretch;
  }

  .relworx-mobile-currency {
    width: 100%;
    flex-basis: auto;
  }

  .relworx-form-progress {
    gap: 0.4rem;
  }

  .relworx-form-progress::before {
    left: 24px;
    right: 24px;
  }

  .relworx-step-label {
    font-size: 12px !important;
  }

  .relworx-summary-row {
    grid-template-columns: 1fr;
  }
}
