/* instruction-modal.css - FarmaciaDG */

.instruction-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 20, 50, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.instruction-overlay.active {
    opacity: 1;
    visibility: visible;
}

.instruction-modal {
    background: white;
    width: 90%;
    max-width: 550px;
    border-radius: 30px;
    padding: 40px;
    position: relative;
    transform: translateY(40px) scale(0.9);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.instruction-overlay.active .instruction-modal {
    transform: translateY(0) scale(1);
}

.instruction-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f0f2f5;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
    transition: all 0.2s;
}

.instruction-close:hover {
    background: #ff4757;
    color: white;
    transform: rotate(90deg);
}

.instruction-header {
    margin-bottom: 30px;
}

.instruction-header i {
    font-size: 3.5rem;
    color: var(--brand-green, #61CE70);
    margin-bottom: 15px;
    display: block;
}

.instruction-header h2 {
    font-size: 1.8rem;
    color: var(--brand-blue, #3343B2);
    margin: 0;
    font-weight: 800;
}

.instruction-steps {
    text-align: left;
    margin-bottom: 35px;
}

.step-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.step-number {
    background: var(--brand-blue, #3343B2);
    color: white;
    min-width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(51, 67, 178, 0.3);
}

.step-text h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    font-weight: 700;
}

.step-text p {
    margin: 5px 0 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
}

.btn-start-order {
    background: linear-gradient(135deg, var(--brand-green, #61CE70), #43a047);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 10px 25px rgba(97, 206, 112, 0.4);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-start-order:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(97, 206, 112, 0.5);
}

@media (max-width: 500px) {
    .instruction-modal {
        padding: 30px 20px;
    }
    
    .instruction-header h2 {
        font-size: 1.4rem;
    }
}
