/* Donation Form Styles */
.donation-form-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f9f9f9 !important;
  border-radius: 8px;
  border: 1px solid #ddd !important;
}

.donation-form-wrapper.has-error {
  background-color: #fff5f5 !important;
  border: 1px solid #ffcccb !important;
}

.donation-form h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333 !important;
}

.donation-form.has-error h2 {
  color: #d64242 !important;
}

.form-row {
  margin-bottom: 15px;
  display: flex;
  flex-wrap: wrap;
}

.column-half {
  width: 49%;
  margin-right: 1%;
}

.column-half:last-child {
  margin-right: 0;
}

.column-full {
  width: 100%;
}

.fillintheblank {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

.radio-group, .checkbox-group {
  margin-top: 5px;
}

input[type="radio"], input[type="checkbox"] {
  margin-right: 5px;
  vertical-align: middle;
}

span.required {
  color: #d64242;
}

.hidden {
  display: none;
}

.error {
  border-color: #d64242 !important;
}

.error-message {
  color: #d64242;
  font-size: 12px;
  margin-top: 3px;
}

#result-message {
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 4px;
}

#result-message:empty {
  display: none;
}

#result-message.error {
  display: block;
  background-color: #ffebee;
  color: #d32f2f;
  border: 1px solid #f5c6cb;
}

#result-message.info {
  display: block;
  background-color: #e3f2fd;
  color: #0d47a1;
  border: 1px solid #b3e5fc;
}

#result-message.success {
  display: block;
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

#paypal-button-container {
  margin-top: 20px;
  max-width: 400px;
}

.notes {
  margin-top: 20px;
  color: #666;
  font-size: 12px;
  line-height: 1.4;
}

/* Support ministry list styling */
.support-ministry-col ul, #support-ministry-col ul {
  padding-left: 20px;
  margin-top: 5px;
  margin-bottom: 5px;
}

.support-ministry-col li, #support-ministry-col li {
  margin-bottom: 3px;
  font-size: 13px;
}

/* Donation purposes container styling */
#donation-purposes-container {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin: 15px 0;
  background-color: #fafafa;
}

#donation-purposes-container h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #333;
  font-size: 18px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 10px;
}

/* Individual donation purpose item styling */
.donation-purpose-item {
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 15px;
  position: relative;
}

.donation-purpose-item:last-of-type {
  margin-bottom: 10px;
}

.purpose-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.purpose-item-header h4 {
  margin: 0;
  color: #444;
  font-size: 16px;
}

/* Purpose action buttons */
.purpose-actions {
  text-align: center;
  margin: 15px 0;
}

.add-purpose-btn {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.add-purpose-btn:hover {
  background-color: #45a049;
}

.remove-purpose-btn {
  background-color: #f44336;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: background-color 0.3s ease;
}

.remove-purpose-btn:hover {
  background-color: #da190b;
}

/* Total amount display styling */
.total-amount-row {
  background-color: #e8f5e9;
  border: 2px solid #4CAF50;
  border-radius: 6px;
  padding: 15px;
  margin-top: 20px;
  text-align: center;
}

.total-amount-row strong {
  font-size: 18px;
  color: #2e7d32;
}

#total-amount-display {
  color: #1b5e20;
  font-weight: bold;
}

/* Responsive styles */
@media (max-width: 768px) {
  .column-half {
    width: 100%;
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .donation-form-wrapper {
    padding: 15px 10px;
  }
}