﻿/* ==========================================================================
   EIA S.R.L. - MODULO RMA MODERNO (STILE BIXOLON_2.0 CON BRAND EIA)
   ========================================================================== */
#rma-modal {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 99999 !important;
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
    overflow-y: auto !important;
}

#rma-modal.hidden {
    display: none !important;
}

.rma-modal-container {
    background: #ffffff;
    border-radius: 1.5rem;
    max-width: 920px;
    width: 100%;
    padding: 1.75rem;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    margin: auto;
    position: relative;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.rma-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.rma-modal-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #150C61;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(21, 12, 97, 0.25);
}

.rma-modal-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #150C61;
    margin: 0;
}

.rma-modal-subtitle {
    font-size: 0.78rem;
    color: #BD2A2A;
    font-weight: 700;
    margin: 0;
}

.rma-modal-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rma-modal-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: scale(1.05);
}

.rma-modal-body {
    overflow-y: auto;
    padding: 1.5rem 0.25rem 0.5rem 0;
    flex-grow: 1;
}

.rma-step-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rma-step-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #150C61;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rma-btn-add-product {
    background: rgba(189, 42, 42, 0.08);
    color: #BD2A2A;
    border: 1px solid rgba(189, 42, 42, 0.3);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 0.85rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.rma-btn-add-product:hover {
    background: rgba(189, 42, 42, 0.16);
    border-color: #BD2A2A;
    color: #991b1b;
}

.rma-policy-box {
    background: #1e293b;
    color: #f8fafc;
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid #334155;
    margin-bottom: 1.25rem;
    font-size: 0.75rem;
}

.rma-policy-title {
    font-weight: 800;
    color: #fca5a5;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rma-policy-list {
    list-style: disc inside;
    padding: 0;
    margin: 0;
    color: #cbd5e1;
    line-height: 1.6;
}

.rma-policy-list strong {
    color: #ffffff;
}

.rma-warning-callout {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 0.75rem;
    padding: 0.65rem 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #fde68a;
    font-size: 0.75rem;
    margin-top: 0.75rem;
}

.rma-product-card {
    background: #f8fafc;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    padding: 1.25rem;
    position: relative;
    transition: box-shadow 0.2s ease;
}

.rma-product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.rma-shipping-notice {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 1rem;
    padding: 1rem;
    font-size: 0.78rem;
    color: #92400e;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.rma-privacy-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
}

.rma-btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #150C61 0%, #1c1075 55%, #BD2A2A 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.05rem;
    padding: 1rem 1.75rem;
    border-radius: 1rem;
    border: none;
    box-shadow: 0 10px 25px -5px rgba(21, 12, 97, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.25s ease;
}

.rma-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(189, 42, 42, 0.45);
    background: linear-gradient(135deg, #1e117a 0%, #25168e 55%, #d32f2f 100%);
    color: #ffffff;
}

@media (max-width: 640px) {
    .rma-modal-container {
        padding: 1.25rem 1rem;
        border-radius: 1.25rem;
    }
    .rma-modal-title {
        font-size: 1.1rem;
    }
    .rma-btn-submit {
        font-size: 0.95rem;
        padding: 0.85rem 1.25rem;
    }
}
