/**
 * Master IA - Registro Wizard Styles
 * Scoped styles with .rma- namespace
 * Colors: #00d4ff (primary), #ff00aa (secondary), #7b2cbf (accent), #0a0a1a (dark), #94a3b8 (white)
 */

/* Reset and Base Styles for RMA Container */
.rma-container {
    --rma-primary: #00d4ff;
    --rma-secondary: #ff00aa;
    --rma-accent: #7b2cbf;
    --rma-dark: #f8f9fa;
    --rma-dark-lighter: #ffffff;
    --rma-white: #334155;
    --rma-gradient-primary: linear-gradient(135deg, hsl(175 70% 42%) 0%, hsl(215 85% 55%) 100%);
    --rma-gradient-hero: linear-gradient(180deg, rgba(0, 212, 255, 0.05) 0%, rgba(123, 44, 191, 0.03) 50%, transparent 100%);
}

/* Scoped reset - only affects elements inside .rma-container */
.rma-container *,
.rma-container *::before,
.rma-container *::after {
    box-sizing: border-box;
}

.rma-container h1,
.rma-container h2,
.rma-container h3,
.rma-container h4,
.rma-container h5,
.rma-container h6 {
    color: #1e293b;
    margin: 0 0 1rem 0;
    font-weight: 700;
    line-height: 1.2;
}

.rma-container p,
.rma-container label,
.rma-container span,
.rma-container div {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.rma-container p {
    color: #475569;
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

.rma-container input,
.rma-container select,
.rma-container textarea {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Main Container */
.rma-container {
    background-color: var(--rma-dark);
    color: #1e293b;
    min-height: 100vh;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}

.rma-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--rma-gradient-hero);
    pointer-events: none;
    z-index: 0;
}

.rma-inner-wrapper {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

/* Header */
.rma-header {
    text-align: center;
    margin-bottom: 2rem;
}

.rma-header h1 {
    font-size: 2rem;
    font-weight: 800;
    background: var(--rma-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .rma-header h1 {
        font-size: 2.5rem;
    }
}

.rma-header p {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Progress Bar */
.rma-progress-container {
    margin-bottom: 2rem;
}

.rma-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.rma-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--rma-gradient-primary);
    border-radius: 10px;
    transition: width 0.4s ease;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.rma-progress-text {
    text-align: center;
    font-size: 0.85rem;
    color: var(--rma-white);
    opacity: 0.8;
    font-weight: 500;
}

.rma-progress-current {
    color: var(--rma-primary);
    font-weight: 700;
}

/* Form Card */
.rma-form-card {
    background: #ffffff;
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 1.5rem;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Form Steps - all hidden by default */
.rma-container .rma-form-step {
    display: none;
}

/* First step is visible by default, but only when NOT in preloaded mode */
.rma-container:not([data-preloaded]) .rma-form-step[data-step="1"],
.rma-container[data-preloaded=""] .rma-form-step[data-step="1"],
.rma-container[data-preloaded="null"] .rma-form-step[data-step="1"],
.rma-container[data-preloaded="[]"] .rma-form-step[data-step="1"] {
    display: block;
}

/* Active step is always visible - overrides inline styles */
.rma-container .rma-form-step.active {
    display: block !important;
    animation: rma-fadeIn 0.3s ease;
}

@keyframes rma-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rma-step-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.rma-step-description {
    font-size: 0.95rem;
    color: var(--rma-white);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

/* Form Groups */
.rma-form-group {
    margin-bottom: 1.5rem;
}

.rma-form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.rma-form-group .required {
    color: var(--rma-secondary);
}

.rma-form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(248, 249, 250, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.75rem;
    color: #1e293b;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.rma-form-control:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--rma-primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

.rma-form-control::placeholder {
    color: rgba(71, 85, 105, 0.6);
}

.rma-form-control:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Select styling */
.rma-form-control select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.rma-form-control select option,
.rma-form-group select option,
.rma-container select option {
    background: #ffffff !important;
    color: #1e293b !important;
}

/* NIT Lookup Result */
.rma-nit-result {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: none;
}

.rma-nit-result.show {
    display: block;
    animation: rma-fadeIn 0.3s ease;
}

.rma-nit-result h4 {
    font-size: 1rem;
    color: var(--rma-primary);
    margin-bottom: 0.5rem;
}

.rma-nit-result p {
    font-size: 0.9rem;
    margin: 0.25rem 0;
}

/* Diagnosis Questions */
.rma-container .rma-question {
    margin-bottom: 2.5rem !important;
    clear: both !important;
    display: block !important;
}

.rma-container .rma-question-title {
    font-size: 1rem !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
    color: #1e293b !important;
    display: block !important;
}

.rma-container .rma-question-dimension {
    display: inline-block !important;
    padding: 0.25rem 0.75rem !important;
    background: var(--rma-gradient-primary) !important;
    border-radius: 50px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    margin-bottom: 0.75rem !important;
}

/* Radio Options */
.rma-container .rma-options {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    width: 100% !important;
}

.rma-container .rma-option {
    position: relative !important;
    display: block !important;
    width: 100% !important;
}

.rma-container .rma-option input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

.rma-container .rma-option-label {
    display: flex !important;
    align-items: flex-start !important;
    padding: 1rem !important;
    background: rgba(248, 249, 250, 0.6) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 0.75rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.rma-container .rma-option-label:hover {
    background: rgba(248, 249, 250, 0.9) !important;
    border-color: rgba(0, 212, 255, 0.3) !important;
}

.rma-container .rma-option input[type="radio"]:checked+.rma-option-label {
    background: rgba(0, 212, 255, 0.1) !important;
    border-color: var(--rma-primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1) !important;
}

.rma-container .rma-option-radio {
    width: 20px !important;
    height: 20px !important;
    border: 2px solid rgba(0, 0, 0, 0.2) !important;
    border-radius: 50% !important;
    margin-right: 1rem !important;
    flex-shrink: 0 !important;
    position: relative !important;
    transition: all 0.3s ease !important;
}

.rma-container .rma-option input[type="radio"]:checked+.rma-option-label .rma-option-radio {
    border-color: var(--rma-primary) !important;
    background: var(--rma-primary) !important;
}

.rma-container .rma-option input[type="radio"]:checked+.rma-option-label .rma-option-radio::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 8px !important;
    height: 8px !important;
    background: #fff !important;
    border-radius: 50% !important;
}

.rma-container .rma-option-text {
    flex: 1 !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    color: #1e293b !important;
}

/* Confirmation Summary */
.rma-summary {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.rma-summary-section {
    margin-bottom: 1.5rem;
}

.rma-summary-section:last-child {
    margin-bottom: 0;
}

.rma-summary-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--rma-primary);
    margin-bottom: 0.75rem;
}

.rma-summary-row {
    display: flex;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rma-summary-row:last-child {
    border-bottom: none;
}

.rma-summary-label {
    width: 150px;
    font-size: 0.85rem;
    color: var(--rma-white);
    opacity: 0.7;
    flex-shrink: 0;
}

.rma-summary-value {
    flex: 1;
    font-size: 0.9rem;
    color: #475569;
}

/* Authorization Checkbox */
.rma-authorization {
    margin-bottom: 1.5rem;
}

.rma-authorization label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
}

.rma-authorization input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
    accent-color: var(--rma-primary);
}

.rma-authorization a {
    color: var(--rma-primary);
    text-decoration: none;
}

.rma-authorization a:hover {
    text-decoration: underline;
}

/* Buttons */
.rma-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.rma-buttons.single {
    justify-content: center;
}

.rma-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.rma-btn-primary {
    background: var(--rma-gradient-primary);
    color: #fff;
}

.rma-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.4);
}

.rma-btn-secondary {
    background: rgba(248, 249, 250, 0.8);
    color: #1e293b;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.rma-btn-secondary:hover {
    background: #ffffff;
    border-color: var(--rma-primary);
}

.rma-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.rma-btn-loading {
    position: relative;
    padding-left: 3rem;
}

.rma-btn-loading::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-top-color: var(--rma-primary);
    border-radius: 50%;
    animation: rma-spin 0.8s linear infinite;
}

@keyframes rma-spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Alert Messages */
.rma-alert {
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.rma-alert-success {
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    color: var(--rma-primary);
}

.rma-alert-error {
    background: rgba(255, 0, 170, 0.08);
    border: 1px solid rgba(255, 0, 170, 0.2);
    color: var(--rma-secondary);
}

.rma-alert-warning {
    background: rgba(255, 193, 7, 0.08);
    border: 1px solid rgba(255, 193, 7, 0.2);
    color: #f59e0b;
}

.rma-alert-info {
    background: rgba(123, 44, 191, 0.08);
    border: 1px solid rgba(123, 44, 191, 0.2);
    color: var(--rma-accent);
}

/* Level Result Display */
.rma-level-result {
    text-align: center !important;
    padding: 2rem !important;
    background: var(--rma-gradient-primary) !important;
    border-radius: 1rem !important;
    margin-bottom: 1.5rem !important;
}

.rma-level-badge {
    display: inline-block !important;
    padding: 0.5rem 1.5rem !important;
    background: rgba(255, 255, 255, 0.3) !important;
    border-radius: 50px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-bottom: 1rem !important;
}

.rma-level-title {
    font-size: 2rem !important;
    font-weight: 800 !important;
    margin-bottom: 0.5rem !important;
    color: #fff !important;
}

.rma-level-subtitle {
    font-size: 1rem !important;
    opacity: 0.9 !important;
    color: #ffffff !important;
}

/* Completed Result Display */
.rma-completed-result {
    text-align: center !important;
    padding: 3rem 2rem !important;
}

.rma-completed-icon {
    width: 80px !important;
    height: 80px !important;
    margin: 0 auto 1.5rem !important;
    background: var(--rma-gradient-primary) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 3rem !important;
    color: #fff !important;
    font-weight: 800 !important;
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.4) !important;
}

.rma-completed-title {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 1rem !important;
}

.rma-completed-message {
    font-size: 1.1rem !important;
    color: #000000 !important;
    opacity: 1 !important;
    margin-bottom: 0.5rem !important;
}

.rma-completed-info {
    font-size: 0.9rem !important;
    color: #000000 !important;
    opacity: 1 !important;
}

.rma-completed-level {
    margin: 1rem 0 !important;
}

.rma-level-badge {
    display: inline-block !important;
    background: rgba(123, 44, 191, 0.15) !important;
    border: 1px solid rgba(123, 44, 191, 0.3) !important;
    border-radius: 50px !important;
    padding: 0.5rem 1.25rem !important;
    font-size: 1rem !important;
    color: #ffffff !important;
}

.rma-level-badge strong {
    color: var(--rma-primary) !important;
}

.rma-completed-result.rma-level-1 .rma-level-badge {
    background: rgba(0, 180, 216, 0.2) !important;
    border-color: rgba(0, 180, 216, 0.5) !important;
}

.rma-completed-result.rma-level-1 .rma-level-badge strong {
    color: #00B4D8 !important;
}

.rma-completed-result.rma-level-2 .rma-level-badge {
    background: rgba(123, 47, 190, 0.2) !important;
    border-color: rgba(123, 47, 190, 0.5) !important;
}

.rma-completed-result.rma-level-2 .rma-level-badge strong {
    color: #9B59D9 !important;
}

.rma-completed-result.rma-level-3 .rma-level-badge {
    background: rgba(245, 158, 11, 0.2) !important;
    border-color: rgba(245, 158, 11, 0.5) !important;
}

.rma-completed-result.rma-level-3 .rma-level-badge strong {
    color: #F59E0B !important;
}

.rma-completed-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    background: linear-gradient(135deg, #00d4ff 0%, #7b2cbf 100%) !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    padding: 0.875rem 1.75rem !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    margin-top: 1.5rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4) !important;
}

.rma-completed-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5) !important;
    color: #fff !important;
}

.rma-completed-btn span {
    transition: transform 0.3s ease !important;
}

.rma-completed-btn:hover span {
    transform: translateX(4px) !important;
}

.rma-completed-renew {
    margin-top: 1rem !important;
    padding: 1rem !important;
    background: rgba(239, 68, 68, 0.1) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    border-radius: 0.5rem !important;
    color: #FCA5A5 !important;
    font-size: 0.9rem !important;
}

/* Preloaded Data Notice */
.rma-preloaded-notice {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rma-preloaded-icon {
    width: 40px;
    height: 40px;
    background: var(--rma-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rma-preloaded-icon::after {
    content: '✓';
    font-size: 1.25rem;
    color: var(--rma-dark);
    font-weight: 800;
}

.rma-preloaded-text {
    flex: 1;
}

.rma-preloaded-text h4 {
    font-size: 1rem;
    color: var(--rma-primary);
    margin: 0 0 0.25rem 0;
}

.rma-preloaded-text p {
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 640px) {
    .rma-container {
        padding: 1rem 0.5rem;
    }

    .rma-form-card {
        padding: 1.5rem;
    }

    .rma-header h1 {
        font-size: 1.75rem;
    }

    .rma-buttons {
        flex-direction: column-reverse;
    }

    .rma-btn {
        width: 100%;
    }

    .rma-summary-row {
        flex-direction: column;
    }

    .rma-summary-label {
        width: 100%;
        margin-bottom: 0.25rem;
    }
}

/* Renewal Modal */
.rma-renewal-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.8) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 9999 !important;
    padding: 1rem !important;
}

.rma-renewal-modal {
    background: var(--rma-gradient-primary) !important;
    border-radius: 1.5rem !important;
    padding: 2.5rem 2rem !important;
    text-align: center !important;
    max-width: 500px !important;
    width: 100% !important;
    position: relative !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
}

.rma-renewal-icon {
    font-size: 3rem !important;
    margin-bottom: 1rem !important;
}

.rma-renewal-title {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin-bottom: 0.5rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.rma-renewal-divider {
    color: rgba(255, 255, 255, 0.3) !important;
    font-size: 0.875rem !important;
    margin-bottom: 1.5rem !important;
}

.rma-renewal-text {
    color: var(--rma-white) !important;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1.5rem !important;
}

.rma-renewal-options {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    margin-bottom: 1.5rem !important;
}

.rma-renewal-option {
    background: rgba(255, 255, 255, 0.15) !important;
    padding: 0.75rem 1rem !important;
    border-radius: 0.75rem !important;
    color: #fff !important;
    font-size: 0.95rem !important;
}

.rma-renewal-benefit {
    color: var(--rma-white) !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1.5rem !important;
    opacity: 0.9 !important;
}

.rma-renewal-benefit strong {
    color: var(--rma-accent) !important;
}

.rma-renewal-btn {
    display: inline-block !important;
    background: #fff !important;
    color: var(--rma-primary) !important;
    padding: 1rem 2.5rem !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.rma-renewal-btn:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3) !important;
}

.rma-renewal-close {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    background: none !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 2rem !important;
    cursor: pointer !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
}

.rma-renewal-close:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

@media (max-width: 640px) {
    .rma-renewal-modal {
        padding: 2rem 1.5rem !important;
    }

    .rma-renewal-title {
        font-size: 1.25rem !important;
    }

    .rma-renewal-text {
        font-size: 1rem !important;
    }
}

/* Level Popups */
.rma-level-popup {
    background: var(--rma-gradient-primary) !important;
    border-radius: 1.5rem !important;
    padding: 3rem 2.5rem !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4) !important;
}

.rma-popup-emoji {
    font-size: 4rem !important;
    margin-bottom: 1.5rem !important;
    line-height: 1 !important;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3)) !important;
}

.rma-popup-title {
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin-bottom: 0.5rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    line-height: 1.3 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.rma-popup-subtitle {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin-bottom: 1.5rem !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25) !important;
}

.rma-popup-divider {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.875rem !important;
    margin-bottom: 1.5rem !important;
    letter-spacing: 2px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.rma-popup-text {
    color: #fff !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
}

.rma-popup-message {
    color: #fff !important;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1.5rem !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25) !important;
}

.rma-popup-highlight {
    background: rgba(0, 0, 0, 0.25) !important;
    padding: 1rem 1.5rem !important;
    border-radius: 1rem !important;
    color: #fff !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1.5rem !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.rma-popup-label {
    color: #fff !important;
    font-size: 0.95rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-bottom: 1rem !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
}

.rma-popup-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    margin-bottom: 2rem !important;
}

.rma-popup-item {
    background: rgba(0, 0, 0, 0.2) !important;
    padding: 0.875rem 1.25rem !important;
    border-radius: 0.75rem !important;
    color: #fff !important;
    font-size: 1rem !important;
    text-align: left !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.rma-popup-badges {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    margin-bottom: 2rem !important;
}

.rma-badge {
    background: rgba(0, 0, 0, 0.25) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 50px !important;
    color: #fff !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.rma-popup-btn {
    display: inline-block !important;
    background: #fff !important;
    color: #000 !important;
    padding: 1rem 2.5rem !important;
    border-radius: 50px !important;
    font-weight: 800 !important;
    font-size: 1.1rem !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

.rma-popup-btn:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
}

/* Level-specific colors */
/* .rma-level-0 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.rma-level-1 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
}

.rma-level-2 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
}

.rma-level-3 {
    background: transparent !important;
}

.rma-level-no-cumple {
    background: linear-gradient(135deg, #721c24 0%, #dc3545 100%) !important;
} */

.rma-level-modal.rma-level-no-cumple {
    border-color: rgba(220, 53, 69, 0.4) !important;
    box-shadow: 0 25px 80px rgba(220, 53, 69, 0.2) !important;
}

@media (max-width: 640px) {
    .rma-level-popup {
        padding: 2rem 1.5rem !important;
    }

    .rma-popup-title {
        font-size: 1.4rem !important;
    }

    .rma-popup-emoji {
        font-size: 3rem !important;
    }

    .rma-popup-message {
        font-size: 1rem !important;
    }

    .rma-popup-item {
        font-size: 0.9rem !important;
        padding: 0.75rem 1rem !important;
    }

    .rma-popup-btn {
        width: 100% !important;
        padding: 0.875rem 2rem !important;
        font-size: 1rem !important;
    }

    .rma-badge {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.75rem !important;
    }
}

/* Level Modal Popups */
.rma-level-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.85) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 9999 !important;
    padding: 1rem !important;
}

.rma-level-modal {
    background: #ffffff !important;
    border-radius: 1.5rem !important;
    padding: 2.5rem 2rem !important;
    text-align: center !important;
    max-width: 480px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    width: 100% !important;
    position: relative !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(0, 212, 255, 0.15) !important;
}

.rma-level-modal .rma-modal-close {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    color: #fff !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    font-size: 1.5rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

.rma-level-modal .rma-modal-close:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.1) !important;
}

/* Level-specific colors */
.rma-level-modal.rma-level-0 {
    border-color: rgba(148, 163, 184, 0.3) !important;
}

.rma-level-modal.rma-level-1 {
    border-color: rgba(0, 212, 255, 0.4) !important;
    box-shadow: 0 25px 80px rgba(0, 212, 255, 0.2) !important;
}

.rma-level-modal.rma-level-2 {
    border-color: rgba(123, 44, 191, 0.4) !important;
    box-shadow: 0 25px 80px rgba(123, 44, 191, 0.2) !important;
}

.rma-level-modal.rma-level-3 {
    border-color: rgba(255, 215, 0, 0.4) !important;
    box-shadow: 0 25px 80px rgba(255, 215, 0, 0.2) !important;
}

.rma-level-modal .rma-popup-emoji {
    font-size: 4rem !important;
    margin-bottom: 1rem !important;
    animation: bounce 1s ease infinite !important;
}

.rma-level-modal .rma-popup-title {
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin-bottom: 0.5rem !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
}

.rma-level-modal .rma-popup-divider {
    color: rgba(255, 255, 255, 0.2) !important;
    font-size: 0.875rem !important;
    margin-bottom: 1.5rem !important;
}

.rma-level-modal .rma-popup-text {
    color: var(--rma-white) !important;
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1rem !important;
}

.rma-level-modal .rma-popup-message {
    color: #fff !important;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1rem !important;
}

.rma-level-modal .rma-popup-highlight {
    color: #00d4ff !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
}

.rma-level-modal .rma-popup-cta {
    color: #ff00aa !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    margin-top: 1.5rem !important;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Mobile responsive for level modals */
@media (max-width: 480px) {
    .rma-level-modal {
        padding: 2rem 1.5rem !important;
        margin: 1rem !important;
    }

    .rma-level-modal .rma-popup-emoji {
        font-size: 3rem !important;
    }

    .rma-level-modal .rma-popup-title {
        font-size: 1.1rem !important;
    }

    .rma-level-modal .rma-popup-text,
    .rma-level-modal .rma-popup-message {
        font-size: 1rem !important;
    }
}