/* Botão Flutuante */
.restart-diagnostico-btn-flutuante {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
}

.restart-diagnostico-btn-flutuante:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.restart-diagnostico-btn-flutuante span {
    font-size: 18px;
}

/* Modal */
.restart-diagnostico-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.restart-diagnostico-modal.active {
    display: flex;
}

.restart-diagnostico-container {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.3s ease;
}

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

.restart-diagnostico-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
    z-index: 10001;
}

.restart-diagnostico-close:hover {
    color: #333;
}

/* Header */
.restart-diagnostico-header {
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.restart-diagnostico-header h2 {
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 700;
}

.restart-diagnostico-header p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* Chat */
.restart-diagnostico-chat {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f9f9f9;
}

.restart-diagnostico-message {
    margin-bottom: 15px;
    animation: fadeIn 0.3s ease;
}

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

.restart-diagnostico-message.assistant {
    text-align: left;
}

.restart-diagnostico-message.assistant p {
    background: white;
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.restart-diagnostico-message.user {
    text-align: right;
}

.restart-diagnostico-message.user p {
    background: #667eea;
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    display: inline-block;
    max-width: 80%;
}

/* Input */
.restart-diagnostico-input {
    padding: 20px;
    background: white;
    border-top: 1px solid #eee;
}

#restart-diagnostico-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#restart-diagnostico-question {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#restart-diagnostico-question input[type="text"],
#restart-diagnostico-question input[type="email"],
#restart-diagnostico-question input[type="tel"],
#restart-diagnostico-question select,
#restart-diagnostico-question textarea {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

#restart-diagnostico-question input[type="text"]:focus,
#restart-diagnostico-question input[type="email"]:focus,
#restart-diagnostico-question input[type="tel"]:focus,
#restart-diagnostico-question select:focus,
#restart-diagnostico-question textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#restart-diagnostico-question textarea {
    resize: vertical;
    min-height: 80px;
}

/* Checkboxes e Radios */
.restart-diagnostico-checkbox-group,
.restart-diagnostico-radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.restart-diagnostico-checkbox-item,
.restart-diagnostico-radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.restart-diagnostico-checkbox-item input[type="checkbox"],
.restart-diagnostico-radio-item input[type="radio"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.restart-diagnostico-checkbox-item label,
.restart-diagnostico-radio-item label {
    cursor: pointer;
    font-size: 14px;
    margin: 0;
}

/* Botão */
.restart-diagnostico-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-end;
}

.restart-diagnostico-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.restart-diagnostico-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Responsivo */
@media (max-width: 768px) {
    .restart-diagnostico-container {
        width: 95%;
        max-height: 90vh;
    }
    
    .restart-diagnostico-btn-flutuante {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 12px;
    }
    
    .restart-diagnostico-header {
        padding: 20px;
    }
    
    .restart-diagnostico-header h2 {
        font-size: 18px;
    }
}
