/* =========== DONATION PAGE STYLES =========== */

.donation-form-container {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem;
}

@media (max-width: 768px) {
  .donation-form-container {
    padding: 1.5rem;
  }
}

.donation-step {
  margin-bottom: 2.5rem;
}

.donation-step h3 {
  /* usa h3 globale */
  margin-bottom: var(--gap-lg);
}

.donation-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

/* PROJECT OPTIONS */
.project-options {
  display: grid;
  gap: var(--gap);
}

.radio-card {
  display: block;
  position: relative;
  cursor: pointer;
}

.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.radio-card-content {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.radio-card input[type="radio"]:checked + .radio-card-content {
  border-color: var(--brand-700);
  background: rgba(90,18,18,0.03);
}

.radio-card:hover .radio-card-content {
  border-color: var(--brand-600);
  background: rgba(90,18,18,0.02);
}

.radio-card-content strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.radio-card-content p {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.6;
}

.badge-success {
  background: #16a34a !important;
  color: white !important;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: var(--gap-sm);
}

.badge-secondary {
  background: var(--ink-2) !important;
  color: white !important;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: var(--gap-sm);
}

/* DONATION AMOUNTS */
.donation-amounts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: var(--gap);
  margin-bottom: var(--gap-lg);
}

.amount-btn {
  background: white;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s ease;
}

.amount-btn:hover {
  border-color: var(--brand-600);
  background: rgba(90,18,18,0.02);
}

.amount-btn.active {
  border-color: var(--brand-700);
  background: var(--brand-700);
  color: white;
}

.custom-amount-container {
  display: none;
}

.custom-amount-container.show {
  display: block;
}

.custom-amount-container label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.custom-amount-input {
  position: relative;
}

.currency-symbol {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 600;
  color: var(--ink-2);
}

.custom-amount-input input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2rem;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
}

.custom-amount-input input:focus {
  outline: none;
  border-color: var(--brand-700);
}

.donation-impact {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--ink-2);
  text-align: center;
}

/* PAYMENT METHODS */
.payment-methods {
  display: grid;
  gap: var(--gap-lg);
}

.payment-method-card {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s ease;
}

.payment-method-card.active {
  border-color: var(--brand-700);
}

.payment-header {
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: var(--gap);
  cursor: pointer;
}

.payment-header input[type="radio"] {
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.payment-header label {
  flex: 1;
  cursor: pointer;
}

.payment-header strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.payment-description {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-2);
  margin-top: 0.25rem;
}

.payment-details {
  display: none;
  border-top: 1px solid var(--line);
}

.payment-method-card.active .payment-details {
  display: block;
}

.payment-info-box {
  background: rgba(90,18,18,0.05);
  padding: 2rem;
  margin: 0;
}

.payment-centered {
  text-align: center;
}

.info-title {
  margin: 0 0 1rem;
  font-weight: 600;
  color: var(--brand-700);
}

.bank-details {
  display: grid;
  gap: 0.75rem;
}

.detail-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.detail-label {
  font-size: 0.85rem;
  color: var(--ink-2);
  min-width: 100px;
}

.iban-code, .causale-code {
  background: white;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.5px;
}

.btn-copy {
  padding: 0.5rem 0.75rem;
  background: var(--brand-700);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  transition: background 0.2s ease;
}

.btn-copy:hover {
  background: var(--brand-600);
}

.receipt-info {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(90,18,18,0.1);
}

.receipt-info p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.6;
}

.receipt-info a {
  color: var(--brand-700);
  font-weight: 600;
}

.receipt-info ul {
  margin: 0.75rem 0 0;
  padding-left: 1.5rem;
  font-size: 0.85rem;
  color: var(--ink-2);
  line-height: 1.8;
}

.btn-paypal {
  background: #0070ba !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 250px;
}

.btn-paypal:hover {
  background: #005ea6 !important;
}

.secure-note {
  margin: 1.5rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-2);
}

.stripe-card-element {
  padding: 1rem;
  background: white;
  border: 2px solid var(--line);
  border-radius: 10px;
  margin-bottom: 1rem;
  min-height: 50px;
}

.payment-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
  opacity: 0.6;
  font-size: 0.75rem;
  color: var(--ink-2);
}

/* PRIVACY CHECKBOX */
.privacy-checkbox {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.privacy-checkbox label {
  display: flex;
  align-items: start;
  gap: 0.75rem;
  cursor: pointer;
}

.privacy-checkbox input[type="checkbox"] {
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.privacy-checkbox span {
  font-size: 0.9rem;
  line-height: 1.6;
}

.privacy-checkbox a {
  color: var(--brand-700);
  font-weight: 600;
}

.donation-message {
  display: none;
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

.donation-message.show {
  display: block;
}

.donation-message.success {
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
  border: 1px solid rgba(22, 163, 74, 0.3);
}

.donation-message.error {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

/* FAQ ITEMS */
.faq-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.faq-item summary {
  padding: 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  float: right;
  font-size: 1.5rem;
  color: var(--brand-700);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item:hover {
  border-color: var(--brand-700);
}

.faq-content {
  padding: 0 1.25rem 1.25rem;
}

.faq-content p {
  margin: 0;
  line-height: 1.7;
  color: var(--ink-2);
}

/* RESPONSIVE */
@media (max-width: 640px) {
  .donation-amounts {
    grid-template-columns: repeat(2, 1fr);
  }

  .amount-btn {
    padding: 0.875rem;
    font-size: 1rem;
  }

  .detail-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-label {
    min-width: auto;
  }

  .iban-code {
    font-size: 0.8rem;
    word-break: break-all;
  }
}
