/* Modal de Instruções - Versão Compacta Sem Scroll */
.modal-instructions {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.modal-instructions-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 10001;
}

.modal-instructions-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10002;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 25px 35px;
    margin: 20px auto;
}

.modal-instructions-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e74c3c;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10003;
}

.modal-instructions-close:hover {
    background: #c0392b;
    transform: rotate(90deg);
}

.modal-instructions-header {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 3px solid #c8102e;
}

.modal-instructions-header .modal-instructions-logo {
    max-width: 110px;
    height: auto;
    margin: 0;
    flex-shrink: 0;
}

.modal-instructions-header h2 {
    color: #c8102e;
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    text-transform: uppercase;
}

.modal-instructions-body {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.instruction-step {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 5px solid #c8102e;
}

.step-number {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: #c8102e;
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    color: #2c3e50;
    font-size: 16px;
    margin: 0 0 8px 0;
    font-weight: bold;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-content p {
    color: #555;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 8px 0;
}

.password-requirements {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin-top: 12px;
}

.password-requirements h4 {
    color: #856404;
    font-size: 15px;
    margin: 0 0 10px 0;
    font-weight: bold;
}

.password-requirements p {
    color: #856404;
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.password-requirements ul {
    list-style: none;
    padding-left: 0;
    margin: 8px 0;
}

.password-requirements ul li {
    color: #333;
    font-size: 12px;
    padding: 5px 0;
    padding-left: 8px;
    border-left: 3px solid #28a745;
    margin-bottom: 5px;
    background: white;
    border-radius: 4px;
}

.password-requirements ul li strong {
    color: #c8102e;
}

.password-example {
    background: white;
    padding: 10px;
    border-radius: 6px;
    margin-top: 10px;
    border: 2px solid #28a745;
}

.password-example strong {
    color: #28a745;
    font-size: 13px;
}

/* Nova seção de requisitos de senha - Grid horizontal */
.password-requirements-section {
    background: #fff3cd;
    border: 3px solid #ffc107;
    border-radius: 10px;
    padding: 12px 15px;
    margin: 12px 0;
    grid-column: 1 / -1;
}

.password-requirements-section h4 {
    color: #856404;
    font-size: 15px;
    margin: 0 0 10px 0;
    font-weight: bold;
    text-align: center;
}

.password-requirements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.password-req-item {
    background: white;
    padding: 6px 10px;
    border-radius: 6px;
    border-left: 3px solid #28a745;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #333;
}

.password-req-item .req-icon {
    color: #28a745;
    font-weight: bold;
    font-size: 13px;
}

.password-req-item strong {
    color: #c8102e;
}

.password-example-item {
    border-left: 3px solid #ffc107;
    grid-column: 1 / -1;
    justify-content: center;
    background: #f8f9fa;
}

.password-example-item .req-icon {
    color: #ffc107;
}

.password-example-item strong {
    color: #28a745;
}

.instruction-footer {
    background: #e8f5e9;
    padding: 12px;
    border-radius: 8px;
    border-left: 5px solid #28a745;
    grid-column: 1 / -1;
}

.instruction-footer p {
    color: #2e7d32;
    font-size: 13px;
    margin: 0;
    font-weight: 500;
}

.modal-instructions-actions {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #e0e0e0;
}

.btn-proceed {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 14px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-proceed:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* Responsividade */
@media (max-width: 992px) {
    .modal-instructions-body {
        grid-template-columns: 1fr;
    }
    
    .instruction-footer {
        grid-column: 1;
    }
    
    .password-requirements-section {
        grid-column: 1;
    }
    
    .password-requirements-grid {
        grid-template-columns: 1fr;
    }
    
    .password-example-item {
        grid-column: 1;
    }
}

@media (max-width: 768px) {
    .modal-instructions-content {
        padding: 25px 20px;
    }

    .modal-instructions-header h2 {
        font-size: 20px;
    }
    
    .modal-instructions-header .modal-instructions-logo {
        max-width: 90px;
    }

    .step-content h3 {
        font-size: 16px;
    }

    .step-content p {
        font-size: 13px;
    }

    .password-requirements h4 {
        font-size: 14px;
    }

    .password-requirements ul li {
        font-size: 11px;
    }

    .btn-proceed {
        padding: 14px 40px;
        font-size: 18px;
        width: 100%;
    }

    .modal-instructions-close {
        width: 32px;
        height: 32px;
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .modal-instructions {
        padding: 10px;
    }

    .modal-instructions-content {
        padding: 20px 15px;
        border-radius: 12px;
    }

    .modal-instructions-header h2 {
        font-size: 18px;
    }

    .step-content h3 {
        font-size: 15px;
    }

    .step-content p {
        font-size: 12px;
    }
}
