/* ════════════════════════════════════════════
   Don PayPal Advanced — Styles du formulaire
   ════════════════════════════════════════════ */

.don-paypal-wrap {
    max-width: 520px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #1a1a2e;
}

.don-paypal-form {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 4px 24px rgba(0,0,0,.10);
}

/* ── Titre ── */
.don-titre {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 24px;
    text-align: center;
    color: #1a1a2e;
}

/* ── Sections ── */
.don-section {
    margin-bottom: 24px;
}

.don-label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6b7280;
    margin-bottom: 10px;
}

/* ── Boutons montants ── */
.don-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.don-amount-btn {
    flex: 1 1 80px;
    padding: 10px 8px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    font-size: .95rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all .15s ease;
}

.don-amount-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
}

.don-amount-btn.active {
    border-color: #2563eb;
    background: #2563eb;
    color: #ffffff;
}

/* ── Montant personnalisé ── */
.don-custom-amount {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 8px;
}

.don-currency-symbol {
    position: absolute;
    right: 14px;
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    pointer-events: none;
}

/* ── Inputs ── */
.don-input {
    width: 100%;
    padding: 12px 14px 12px 34px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    color: #1a1a2e;
    background: #f9fafb;
    transition: border-color .15s;
    box-sizing: border-box;
}

.don-input:focus {
    outline: none;
    border-color: #2563eb;
    background: #fff;
}

.don-field-group .don-input {
    padding-left: 14px;
}

/* ── Champs hébergés PayPal (iframes) ── */
.don-hosted-field {
    height: 46px;
    padding: 0;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    transition: border-color .15s;
    overflow: hidden;
}

.don-hosted-field.braintree-hosted-fields-focused,
.don-hosted-field.focused {
    border-color: #2563eb;
    background: #fff;
}

.don-hosted-field.braintree-hosted-fields-invalid,
.don-hosted-field.invalid {
    border-color: #ef4444;
}

.don-hosted-field.braintree-hosted-fields-valid,
.don-hosted-field.valid {
    border-color: #22c55e;
}

/* ── Groupes de champs ── */
.don-field-group {
    margin-bottom: 14px;
}

.don-field-label {
    display: block;
    font-size: .82rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 6px;
}

.don-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* ── Bouton principal ── */
.don-btn-primary {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}

.don-btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    box-shadow: 0 4px 12px rgba(37,99,235,.4);
    transform: translateY(-1px);
}

.don-btn-primary:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

/* ── Note sécurité ── */
.don-secure-note {
    text-align: center;
    font-size: .75rem;
    color: #9ca3af;
    margin: 8px 0 0;
}

/* ── Séparateur ── */
.don-separator {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #d1d5db;
    gap: 12px;
}

.don-separator::before,
.don-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.don-separator span {
    font-size: .8rem;
    color: #9ca3af;
    font-weight: 500;
}

/* ── Autres méthodes ── */
.don-other-methods {
    font-size: .75rem;
    color: #9ca3af;
    text-align: center;
    margin: 10px 0 0;
}

/* ── Messages ── */
#don-paypal-message {
    margin-top: 16px;
}

.don-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: .9rem;
}

.don-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    padding: 20px;
    border-radius: 12px;
    font-size: 1rem;
    text-align: center;
    font-weight: 600;
    line-height: 1.5;
}

.don-success::before {
    content: '✅ ';
    font-size: 1.4rem;
    display: block;
    margin-bottom: 8px;
}

/* ── Loader ── */
.don-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    color: #6b7280;
    font-size: .9rem;
}

.don-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: don-spin .7s linear infinite;
}

@keyframes don-spin {
    to { transform: rotate(360deg); }
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .don-paypal-form {
        padding: 24px 18px;
    }

    .don-fields-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .don-amount-btn {
        flex: 1 1 60px;
        font-size: .85rem;
    }
}
