/* =============================================
   CAI Milano - Donazioni
   File: style.css
   Percorso: /DONAZIONI/style.css
   ============================================= */

/* =============================================
   VARIABILI CSS
   ============================================= */
:root {
    /* Colori principali */
    --navy: #1a2e4a;
    --navy-mid: #243d60;
    --gold: #c49a3c;
    --gold-light: #e8c878;
    
    /* Colori di sfondo */
    --cream: #f8f5ef;
    --cream-dark: #ede9e0;
    --white: #ffffff;
    
    /* Colori testo */
    --text: #1a1a1a;
    --text-muted: #6b6258;
    --stone: #8a8070;
    
    /* Colori di stato */
    --success: #2d7a4f;
    --error: #8b2020;
    
    /* Dimensioni e effetti */
    --radius: 4px;
    --shadow: 0 2px 20px rgba(26,46,74,0.08);
}

/* =============================================
   RESET E BASE
   ============================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    font-weight: 300;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    background: var(--navy);
    color: var(--white);
    padding: 64px 24px 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 40px,
        rgba(255,255,255,0.015) 40px,
        rgba(255,255,255,0.015) 41px
    );
}

.hero-badge {
    display: inline-block;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 11px;
    letter-spacing: .15em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 2px;
    margin-bottom: 24px;
    font-weight: 400;
}

.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(32px, 6vw, 54px);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 16px;
}

.hero h1 em {
    font-style: italic;
    color: var(--gold-light);
}

.hero p {
    max-width: 540px;
    margin: 0 auto 32px;
    color: rgba(255,255,255,0.75);
    font-size: 16px;
    line-height: 1.7;
}

/* Progress bar */
.hero-progress {
    max-width: 420px;
    margin: 0 auto;
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
}

.progress-meta strong {
    color: var(--gold-light);
    font-weight: 500;
}

.progress-track {
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
    transition: width 1s ease;
}

.progress-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 28px;
}

.stat {
    text-align: center;
}

.stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--white);
    line-height: 1;
}

.stat-label {
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
}

/* =============================================
   MAIN CONTENT
   ============================================= */
.main {
    max-width: 740px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

/* Info strip */
.info-strip {
    background: var(--white);
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 36px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.info-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: var(--cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.info-text strong {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 2px;
}

.info-text span {
    font-size: 13px;
    color: var(--text-muted);
}

/* =============================================
   FORM CARD
   ============================================= */
.form-card {
    background: var(--white);
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.form-header {
    background: var(--navy);
    padding: 20px 28px;
}

.form-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--white);
}

.form-body {
    padding: 32px 28px;
}

/* Steps indicator */
.steps {
    display: flex;
    gap: 0;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--cream-dark);
    padding-bottom: 20px;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    font-size: 13px;
    color: var(--stone);
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 20px;
    height: 1px;
    background: var(--cream-dark);
}

.step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--cream-dark);
    color: var(--stone);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
    flex-shrink: 0;
    transition: all .2s;
}

.step.active .step-num {
    background: var(--navy);
    color: var(--white);
}

.step.active {
    color: var(--navy);
    font-weight: 500;
}

.step.done .step-num {
    background: var(--success);
    color: var(--white);
}

.step.done {
    color: var(--success);
}

.step-panel {
    display: none;
}

.step-panel.active {
    display: block;
}

/* Importi rapidi */
.importi-rapidi {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.imp-btn {
    border: 1.5px solid var(--cream-dark);
    background: transparent;
    padding: 10px 6px;
    border-radius: var(--radius);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--navy);
    cursor: pointer;
    transition: all .15s;
    text-align: center;
}

.imp-btn:hover {
    border-color: var(--navy);
    background: var(--cream);
}

.imp-btn.selected {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--white);
}

/* =============================================
   FORM FIELDS
   ============================================= */
.field-group {
    margin-bottom: 18px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--navy);
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

label .req {
    color: var(--gold);
    margin-left: 2px;
}

label .hint {
    font-size: 11px;
    color: var(--stone);
    font-weight: 300;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 4px;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="password"] {
    width: 100%;
    border: 1.5px solid var(--cream-dark);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: var(--text);
    background: var(--cream);
    outline: none;
    transition: border-color .15s, background .15s;
    font-weight: 300;
}

input:focus {
    border-color: var(--navy);
    background: var(--white);
}

input.invalid {
    border-color: var(--error);
}

input::placeholder {
    color: var(--stone);
    font-size: 13px;
}

.importo-wrapper {
    position: relative;
}

.importo-wrapper .currency {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 500;
    color: var(--navy);
    font-size: 15px;
    pointer-events: none;
}

.importo-wrapper input {
    padding-left: 30px;
    font-size: 18px;
    font-weight: 500;
}

.input-note {
    font-size: 12px;
    color: var(--stone);
    margin-top: 5px;
    line-height: 1.5;
}

/* Privacy checkbox */
.privacy-wrap {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 20px;
}

.privacy-wrap input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--navy);
    cursor: pointer;
    margin-top: 1px;
}

.privacy-wrap label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 300;
    cursor: pointer;
}

/* Error messages */
.field-error {
    color: var(--error);
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.field-error.show {
    display: block;
}

/* =============================================
   NAVIGATION BUTTONS
   ============================================= */
.nav-btns {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--cream-dark);
}

.btn-back {
    border: 1.5px solid var(--cream-dark);
    background: transparent;
    color: var(--stone);
    padding: 11px 22px;
    border-radius: var(--radius);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all .15s;
}

.btn-back:hover {
    border-color: var(--stone);
    color: var(--navy);
}

.btn-next {
    flex: 1;
    background: var(--navy);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: .02em;
    transition: background .15s;
}

.btn-next:hover {
    background: var(--navy-mid);
}

/* =============================================
   RECAP SECTION (vecchio riepilogo step 3)
   ============================================= */
.recap-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.recap-table td {
    padding: 9px 0;
    border-bottom: 1px solid var(--cream-dark);
}

.recap-table td:first-child {
    color: var(--stone);
    width: 45%;
}

.recap-table td:last-child {
    font-weight: 500;
    color: var(--navy);
}

.recap-table tr:last-child td {
    border-bottom: none;
}

.importo-recap {
    background: var(--cream);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 20px;
}

.importo-recap-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1;
}

.importo-recap-label {
    font-size: 12px;
    color: var(--stone);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 4px;
}

/* Bonifico box */
.bonifico-box {
    background: var(--cream);
    border-left: 3px solid var(--gold);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 16px 20px;
    margin-top: 20px;
    font-size: 13px;
}

.bonifico-box h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 10px;
}

.bonifico-row {
    display: flex;
    gap: 8px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.bonifico-row span:first-child {
    color: var(--stone);
    min-width: 80px;
    flex-shrink: 0;
}

.bonifico-causale {
    background: var(--navy);
    color: var(--white);
    padding: 8px 12px;
    border-radius: var(--radius);
    margin-top: 8px;
    font-family: monospace;
    font-size: 12px;
    word-break: break-all;
}

/* =============================================
   STEP 3 - TABELLA RIEPILOGO STILIZZATA
   ============================================= */
.recap-table-box {
    background: var(--white);
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 20px 0;
    box-shadow: var(--shadow);
}

.recap-table-styled {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.recap-table-styled tbody tr {
    border-bottom: 1px solid var(--cream-dark);
    transition: background 0.2s ease;
}

.recap-table-styled tbody tr:last-child {
    border-bottom: none;
}

.recap-table-styled tbody tr:hover {
    background: var(--cream);
}

/* Riga importo in evidenza */
.recap-importo-row {
    background: var(--cream) !important;
    border-bottom: 2px solid var(--gold) !important;
}

.recap-importo-row:hover {
    background: var(--cream) !important;
}

.recap-label-cell {
    padding: 14px 20px;
    color: var(--stone);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
    width: 40%;
    vertical-align: middle;
}

.recap-value-cell {
    padding: 14px 20px;
    color: var(--navy);
    font-weight: 500;
    text-align: right;
    vertical-align: middle;
    word-break: break-word;
}

.recap-importo-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: 0.01em;
}

/* =============================================
   SUCCESS PANEL
   ============================================= */
.success-panel {
    display: none;
    text-align: center;
    padding: 48px 24px;
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e8f5ed;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
}

.success-panel h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 12px;
}

.success-panel p {
    color: var(--text-muted);
    max-width: 380px;
    margin: 0 auto;
    line-height: 1.7;
}

/* =============================================
   PROSSIMI PASSI (dopo conferma)
   ============================================= */
.prossimi-passi-box {
    background: var(--cream);
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow);
}

.prossimi-passi-box h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    color: var(--navy);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.prossimi-passi-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step-counter;
}

.prossimi-passi-list li {
    position: relative;
    padding-left: 48px;
    margin-bottom: 18px;
    line-height: 1.6;
    font-size: 14px;
    color: var(--text-muted);
    counter-increment: step-counter;
}

.prossimi-passi-list li:last-child {
    margin-bottom: 0;
}

/* Numero step */
.prossimi-passi-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    background: var(--navy);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
}

.prossimi-passi-text {
    display: block;
    padding-top: 4px;
}

/* =============================================
   SCELTA PAGAMENTO (dopo conferma)
   ============================================= */
.payment-choice {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
}

.payment-choice-header {
    text-align: center;
    margin-bottom: 40px;
}

.payment-choice-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    color: var(--navy);
    margin-bottom: 10px;
}

.payment-choice-header p {
    color: var(--text-muted);
    font-size: 15px;
}

.payment-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

.payment-card {
    background: var(--white);
    border: 2px solid var(--cream-dark);
    border-radius: var(--radius);
    padding: 30px 24px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.payment-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.payment-card.active {
    border-color: var(--navy);
    background: var(--cream);
}

.payment-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.payment-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    color: var(--navy);
    margin-bottom: 10px;
}

.payment-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Dettagli bonifico */
.bonifico-details {
    background: var(--cream);
    border-radius: var(--radius);
    padding: 28px;
    margin-top: 20px;
    border-left: 4px solid var(--gold);
}

.bonifico-details h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    color: var(--navy);
    margin-bottom: 20px;
    margin-top: 0;
}

.bonifico-row-detail {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--cream-dark);
    font-size: 14px;
}

.bonifico-row-detail:last-child {
    border-bottom: none;
}

.bonifico-row-detail .label {
    color: var(--stone);
    font-weight: 500;
}

.bonifico-row-detail .value {
    color: var(--navy);
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}

.causale-box {
    background: var(--white);
    border: 1px dashed var(--gold);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-family: monospace;
    font-size: 13px;
    color: var(--navy);
    margin-top: 10px;
    word-break: break-all;
    position: relative;
}

.copy-btn {
    background: var(--navy);
    color: var(--white);
    border: none;
    padding: 6px 12px;
    border-radius: var(--radius);
    font-size: 12px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
    font-family: 'DM Sans', sans-serif;
}

.copy-btn:hover {
    background: var(--navy-mid);
}

/* Sezione PayPal */
.paypal-section {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: var(--radius);
    border: 2px solid var(--cream-dark);
    margin-top: 20px;
}

.paypal-section h4 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--navy);
    margin-bottom: 20px;
}

/* Pulsanti azione */
.action-buttons {
    text-align: center;
    margin-top: 30px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--navy);
    color: var(--navy);
    padding: 10px 24px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: var(--navy);
    color: var(--white);
}

/* =============================================
   ADMIN SECTION
   ============================================= */
.admin-gate {
    display: none;
    max-width: 740px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.admin-login {
    background: var(--white);
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius);
    padding: 40px 32px;
    max-width: 360px;
    margin: 0 auto;
    text-align: center;
    box-shadow: var(--shadow);
}

.admin-login h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    color: var(--navy);
    margin-bottom: 6px;
}

.admin-login p {
    font-size: 13px;
    color: var(--stone);
    margin-bottom: 24px;
}

.admin-panel {
    display: none;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    color: var(--navy);
}

.badge-count {
    background: var(--navy);
    color: var(--white);
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 99px;
    font-weight: 500;
}

.admin-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.filter-btn {
    border: 1.5px solid var(--cream-dark);
    background: transparent;
    color: var(--stone);
    padding: 6px 14px;
    border-radius: 99px;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    cursor: pointer;
    transition: all .15s;
}

.filter-btn.active {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--white);
}

/* Admin stats */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.admin-stat {
    background: var(--white);
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius);
    padding: 16px 20px;
}

.admin-stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1;
}

.admin-stat-label {
    font-size: 11px;
    color: var(--stone);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-top: 4px;
}

.admin-stat.gold {
    border-color: var(--gold);
}

.admin-stat.gold .admin-stat-num {
    color: #8a6a1a;
}

/* Donation cards */
.donation-card {
    background: var(--white);
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 10px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    box-shadow: var(--shadow);
}

.don-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
}

.don-status.pending {
    background: #d4a017;
}

.don-status.confirmed {
    background: var(--success);
}

.don-status.rejected {
    background: var(--error);
}

.don-info {
    flex: 1;
    min-width: 0;
}

.don-name {
    font-weight: 500;
    color: var(--navy);
    font-size: 15px;
}

.don-meta {
    font-size: 12px;
    color: var(--stone);
    margin-top: 3px;
}

.don-amount {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--navy);
    text-align: right;
    flex-shrink: 0;
}

.don-amount .don-date {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    color: var(--stone);
    display: block;
    text-align: right;
    margin-top: 2px;
}

.don-actions {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.act-btn {
    padding: 6px 12px;
    border-radius: var(--radius);
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all .15s;
}

.act-confirm {
    background: #e8f5ed;
    color: var(--success);
    border-color: #b8dfc7;
}

.act-confirm:hover {
    background: #d0eedd;
}

.act-receipt {
    background: var(--cream);
    color: var(--navy);
    border-color: var(--cream-dark);
}

.act-receipt:hover {
    background: var(--cream-dark);
}

.act-reject {
    background: #fdf0f0;
    color: var(--error);
    border-color: #f0c0c0;
}

.act-reject:hover {
    background: #fad8d8;
}

.act-email {
    background: #e8f0fa;
    color: #1a4a8a;
    border-color: #b8cef0;
}

.act-email:hover {
    background: #d0e0f5;
}

/* =============================================
   OVERLAY E ANIMAZIONI
   ============================================= */
.sending-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26,46,74,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.sending-overlay.show {
    display: flex;
}

.sending-box {
    background: var(--white);
    border-radius: 8px;
    padding: 32px 40px;
    text-align: center;
}

.sending-box p {
    color: var(--navy);
    font-weight: 500;
    margin-top: 12px;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--cream-dark);
    border-top-color: var(--navy);
    border-radius: 50%;
    animation: spin .8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =============================================
   FOOTER
   ============================================= */
footer {
    text-align: center;
    padding: 24px;
    font-size: 12px;
    color: var(--stone);
    border-top: 1px solid var(--cream-dark);
    background: var(--white);
}

footer a {
    color: var(--stone);
    text-decoration: none;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 580px) {
    .field-row {
        grid-template-columns: 1fr;
    }
    
    .importi-rapidi {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .info-strip {
        grid-template-columns: 1fr;
    }
    
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .step span {
        display: none;
    }
    
    /* Responsive riepilogo tabella */
    .recap-label-cell {
        width: 45%;
        padding: 12px 14px;
        font-size: 11px;
    }
    
    .recap-value-cell {
        padding: 12px 14px;
        font-size: 13px;
    }
    
    .recap-importo-value {
        font-size: 24px;
    }
    
    /* Responsive prossimi passi */
    .prossimi-passi-box {
        padding: 24px 20px;
    }
    
    .prossimi-passi-box h3 {
        font-size: 20px;
    }
    
    .prossimi-passi-list li {
        padding-left: 40px;
        font-size: 13px;
    }
    
    .prossimi-passi-list li::before {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    /* Responsive scelta pagamento */
    .payment-options {
        grid-template-columns: 1fr;
    }
    
    .payment-choice-header h2 {
        font-size: 26px;
    }
    
    .payment-card {
        padding: 24px 16px;
    }
    
    .bonifico-details {
        padding: 20px;
    }
    
    .bonifico-row-detail {
        flex-direction: column;
        gap: 4px;
    }
    
    .bonifico-row-detail .value {
        text-align: left;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-outline,
    .btn-next {
        width: 100%;
    }
}