/* ════════════════════════════════════════════════════════════════
   PAYMENTS — Stili dedicati alla modal donazione volontaria
   ════════════════════════════════════════════════════════════════
   Step 10 — Donazioni volontarie tramite Stripe
   ════════════════════════════════════════════════════════════════ */


/* ──────────────────────────────────────────────────────────────
   Pulsante header
   ────────────────────────────────────────────────────────────── */
#btn-supporta {
    background-color: #c0392b;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 0.95rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

#btn-supporta:hover {
    background-color: #a93226;
    transform: translateY(-1px);
}

#btn-supporta:active {
    transform: translateY(0);
}


/* ──────────────────────────────────────────────────────────────
   Overlay scuro
   ────────────────────────────────────────────────────────────── */
#payments-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    animation: pay-fadeIn 0.2s ease-out;
}

#payments-overlay.hidden {
    display: none;
}

@keyframes pay-fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}


/* ──────────────────────────────────────────────────────────────
   Contenitore modal
   ────────────────────────────────────────────────────────────── */
#payments-modal {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 520px;
    width: 100%;
    overflow: hidden;
    animation: pay-popIn 0.28s ease-out;
}

@keyframes pay-popIn {
    from { opacity: 0; transform: translateY(-12px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)     scale(1);    }
}


/* ──────────────────────────────────────────────────────────────
   Header modal
   ────────────────────────────────────────────────────────────── */
.pay-header {
    background: linear-gradient(135deg, #2471a3 0%, #1a5276 100%);
    color: white;
    padding: 1rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pay-header h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    color: white;
}

.pay-close {
    background: transparent;
    color: white;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.4rem;
    border-radius: 6px;
    flex-shrink: 0;
    transition: background-color 0.15s ease;
}

.pay-close:hover {
    background-color: rgba(255, 255, 255, 0.18);
}


/* ──────────────────────────────────────────────────────────────
   Corpo modal
   ────────────────────────────────────────────────────────────── */
.pay-body {
    padding: 1.4rem 1.6rem 0.8rem 1.6rem;
}

.pay-body p {
    margin: 0 0 0.85rem 0;
    color: #34495e;
    font-size: 0.95rem;
    line-height: 1.55;
}

.pay-body p:last-of-type {
    margin-bottom: 0;
}


/* ──────────────────────────────────────────────────────────────
   Pulsante donazione principale
   ────────────────────────────────────────────────────────────── */
.pay-actions {
    padding: 1.2rem 1.6rem 0.6rem 1.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

#btn-dona-stripe {
    background-color: #2471a3;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

#btn-dona-stripe:hover {
    background-color: #1a5276;
    transform: translateY(-1px);
}

#btn-dona-stripe:active {
    transform: translateY(0);
}


/* ──────────────────────────────────────────────────────────────
   Nota Stripe (testo piccolo sotto il pulsante)
   ────────────────────────────────────────────────────────────── */
.pay-stripe-note {
    font-size: 0.78rem;
    color: #95a5a6;
    text-align: center;
    line-height: 1.4;
    padding: 0 1.6rem;
    margin: 0;
}


/* ──────────────────────────────────────────────────────────────
   Footer con pulsante secondario
   ────────────────────────────────────────────────────────────── */
.pay-footer {
    padding: 0.8rem 1.6rem 1.2rem 1.6rem;
    display: flex;
    justify-content: center;
}

#btn-payments-continua {
    background-color: #d6eaf8;
    color: #2471a3;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1.4rem;
    border-radius: 6px;
    transition: background-color 0.15s ease;
}

#btn-payments-continua:hover {
    background-color: #aed6f1;
}
