/* ===== MODAL SOS CHATBOT CSS ===== */
.sos-chatbot-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.sos-chatbot-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.sos-chatbot-modal {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 20px;
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(220, 38, 38, 0.3);
    transform: scale(0.8) translateY(20px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.sos-chatbot-modal-overlay.show .sos-chatbot-modal {
    transform: scale(1) translateY(0);
}

.sos-chatbot-header {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sos-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sos-emergency-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: emergencyPulse 2s infinite;
}

.sos-emergency-icon i {
    color: white;
    font-size: 1.5rem;
}

@keyframes emergencyPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.sos-header-text h3 {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

.sos-header-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin: 0;
}

.sos-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.sos-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.sos-chatbot-content {
    padding: 2rem;
    max-height: 50vh;
    overflow-y: auto;
}

.sos-step {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.sos-step.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sos-step-header {
    margin-bottom: 2rem;
    text-align: center;
}

.sos-step-header h4 {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.sos-step-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin: 0;
}

.sos-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sos-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sos-form-group label {
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
}

.sos-form-group input,
.sos-form-group textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.sos-form-group input:focus,
.sos-form-group textarea:focus {
    outline: none;
    border-color: rgba(220, 38, 38, 0.6);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.sos-form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.sos-form-group input::placeholder,
.sos-form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.sos-next-btn,
.sos-back-btn,
.sos-close-btn {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.sos-next-btn:hover,
.sos-close-btn:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.4);
}

.sos-back-btn {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
}

.sos-back-btn:hover {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(71, 85, 105, 0.4);
}

.sos-form-buttons {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.sos-confirmation {
    text-align: center;
    padding: 2rem 0;
}

.sos-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: successPulse 2s infinite;
}

.sos-success-icon i {
    color: white;
    font-size: 2rem;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.sos-confirmation-text h5 {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.sos-confirmation-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.sos-ticket-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sos-ticket-info p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.sos-ticket-info strong {
    color: white;
}

/* Styles for processing step */
.sos-confirmation-message {
    text-align: center;
    padding: 2rem 0;
}

.sos-processing-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.sos-processing-icon i {
    color: white;
    font-size: 2rem;
}

.sos-processing-text h5 {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.sos-processing-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

/* Progress Bar */
.sos-progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(15, 23, 42, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sos-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.sos-progress-step.active {
    opacity: 1;
}

.sos-progress-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.sos-progress-step.active .sos-progress-circle {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.5);
}

.sos-progress-step span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
    text-align: center;
}

.sos-progress-step.active span {
    color: white;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .sos-chatbot-modal {
        width: 95%;
        max-height: 90vh;
        border-radius: 15px;
    }
    
    .sos-chatbot-header {
        padding: 1rem 1.5rem;
    }
    
    .sos-header-text h3 {
        font-size: 1.2rem;
    }
    
    .sos-header-text p {
        font-size: 0.8rem;
    }
    
    .sos-chatbot-content {
        padding: 1.5rem;
        max-height: 55vh;
    }
    
    .sos-step-header h4 {
        font-size: 1.1rem;
    }
    
    .sos-step-header p {
        font-size: 0.85rem;
    }
    
    .sos-form-buttons {
        flex-direction: column;
    }
    
    .sos-progress-bar {
        padding: 1rem 1.5rem;
    }
    
    .sos-emergency-icon,
    .sos-success-icon,
    .sos-processing-icon {
        width: 60px;
        height: 60px;
    }
    
    .sos-emergency-icon i,
    .sos-success-icon i,
    .sos-processing-icon i {
        font-size: 1.3rem;
    }
    
    .sos-progress-circle {
        width: 25px;
        height: 25px;
        font-size: 0.7rem;
    }
    
    .sos-progress-step span {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .sos-chatbot-modal {
        width: 98%;
        border-radius: 10px;
    }
    
    .sos-chatbot-header {
        padding: 0.75rem 1rem;
    }
    
    .sos-emergency-icon {
        width: 40px;
        height: 40px;
    }
    
    .sos-emergency-icon i {
        font-size: 1rem;
    }
    
    .sos-header-text h3 {
        font-size: 1rem;
    }
    
    .sos-header-text p {
        font-size: 0.75rem;
    }
    
    .sos-chatbot-content {
        padding: 1rem;
    }
    
    .sos-step-header {
        margin-bottom: 1.5rem;
    }
    
    .sos-step-header h4 {
        font-size: 1rem;
    }
    
    .sos-step-header p {
        font-size: 0.8rem;
    }
    
    .sos-form {
        gap: 1rem;
    }
    
    .sos-form-group input,
    .sos-form-group textarea {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .sos-next-btn,
    .sos-back-btn,
    .sos-close-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .sos-progress-bar {
        padding: 0.75rem 1rem;
    }
}
