/* Donation Form Styles */
.donation-form-wrapper {
  max-width: 800px;
  margin: 20px 0;
  font-family: Arial, sans-serif;
}

.donation-question h3 {
  margin-bottom: 15px;
  color: #333;
}

.donation-toggle {
  margin-bottom: 20px;
}

.donation-toggle label {
  margin-right: 20px;
  cursor: pointer;
}

.donation-toggle input[type="radio"] {
  margin-right: 5px;
}

.donation-form {
  /* border: 1px solid #ddd; */
  border-radius: 8px;
  /* padding: 20px; */
  /* background: #f9f9f9; */
}

.donation-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background: white;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.donation-table th {
  background: #E55547;
  color: white;
  padding: 15px;
  text-align: left;
  font-weight: bold;
}

.donation-table td {
  padding: 20px 15px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

.donation-table tr:last-child td {
  border-bottom: none;
}

.organization-info strong {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-size: 16px;
}

.organization-info p {
  margin: 0;
  color: #666;
  line-height: 1.4;
  font-size: 14px;
}

.donation-description strong {
  display: inline;
}

.amount-options {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 10px;
}

.amount-options label {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 8px 12px;
  border: 2px solid #ddd;
  border-radius: 5px;
  transition: all 0.3s ease;
  background: white;
}

.amount-options label:hover {
  border-color: #007cba;
  background: #f0f8ff;
}

.amount-options input[type="radio"] {
  margin-right: 8px;
}

.amount-options input[type="radio"]:checked + label,
.amount-options label:has(input[type="radio"]:checked) {
  border-color: #007cba;
  background: #e6f3ff;
  font-weight: bold;
}

.custom-amount {
  margin-top: 10px;
  padding: 10px;
  background: #f0f8ff;
  border-radius: 5px;
  border: 1px solid #007cba;
}

.custom-amount input[type="number"] {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 14px;
}

.donation-summary {
  background: white;
  padding: 20px;
  border-radius: 5px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.donation-summary h4 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #333;
  border-bottom: 2px solid #007cba;
  padding-bottom: 8px;
}

.donation-summary ul {
  margin: 0;
  padding-left: 20px;
}

.donation-summary li {
  margin-bottom: 5px;
  color: #666;
}

.total-amount {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
  font-size: 18px;
}

.donation-submit {
  text-align: center;
}

.donate-button {
  background: #007cba;
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 150px;
}

.donate-button:hover:not(:disabled) {
  background: #005a87;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.donate-button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.donation-messages {
  margin-top: 15px;
}

.donation-alert {
  padding: 12px 15px;
  border-radius: 5px;
  margin-bottom: 10px;
}

.donation-alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.donation-alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Honoree Name Field Styles */
.honoree-name-field {
  margin: 15px 0 20px 0;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #007cba;
}

.honoree-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
  font-size: 14px;
}

.honoree-input {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  background: white;
}

.honoree-input:focus {
  outline: none;
  border-color: #007cba;
  box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.honoree-description {
  display: block;
  margin-top: 5px;
  color: #666;
  font-style: italic;
  font-size: 12px;
  line-height: 1.4;
}

/* Admin order styles */
.honoree-name-admin {
  margin-top: 10px;
  padding: 8px;
  background: #f0f8ff;
  border-left: 3px solid #007cba;
  font-size: 13px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .donation-table {
    font-size: 14px;
  }

  .donation-table th,
  .donation-table td {
    padding: 10px;
  }

  .amount-options {
    gap: 8px;
  }

  .amount-options label {
    padding: 6px 10px;
    font-size: 14px;
  }

  .honoree-name-field {
    margin: 10px 0 15px 0;
    padding: 12px;
  }

  .honoree-input {
    padding: 8px 10px;
    font-size: 13px;
  }

  .honoree-description {
    font-size: 11px;
  }
}

@media (max-width: 600px) {
  .donation-table,
  .donation-table thead,
  .donation-table tbody,
  .donation-table th,
  .donation-table td,
  .donation-table tr {
    display: block;
  }

  .donation-table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .donation-table tr {
    border: 1px solid #ccc;
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
  }

  .donation-table td {
    border: none;
    position: relative;
    padding: 15px;
  }

  .donation-table td:first-child {
    background: #f8f9fa;
    border-bottom: 2px solid #007cba;
  }

  .honoree-name-field {
    margin: 8px 0 12px 0;
    padding: 10px;
  }
}
