/* Reset some default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styling */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f3f6f9;  /* Soft, light gray-blue for a calming background */
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
}

/* Form styling */
form {
    background-color: #ffffff;  /* White background for the form */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);  /* Softer, more professional shadow */
    width: 100%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Title styling */
form h1 {
    font-family: 'Cambria', Cochin, Georgia, Times, 'Times New Roman', serif;
    color: #333;  /* Dark gray for a professional title color */
    margin-bottom: 20px;
    text-align: center;
    font-size: 24px;
}

/* Input and select field styles */
input, select {
    padding: 12px;
    margin: 5px 0;
    border: 1px solid #ccc;  /* Light border for inputs */
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);  /* Subtle shadow for input focus */
}

/* Input and select focus styles */
input:focus, select:focus {
    border-color: #5c6bc0;  /* Professional and calm blue color */
    outline: none;
    background-color: #f4f8ff;  /* Light blue background on focus for better visibility */
}

/* Submit button styling */
button {
    padding: 12px;
    background-color: #5c6bc0;  /* Soft blue color for the button */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

/* Button hover effect */
button:hover {
    background-color: #3e4a8d;  /* Darker blue shade on hover for interactivity */
}

/* Result display */
#predictionResult, #healthMessage {
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    text-align: center;
    color: #333;
}

/* High-risk message styling */
#predictionResult {
    color: #e74c3c;  /* Red color to signify high risk */
}

/* Health message styling */
#healthMessage {
    color: #2ecc71;  /* Green color for healthy message */
}

/* Spacing for result display */
#predictionResult {
    margin-top: 30px;
}

/* Responsive design */
@media (max-width: 600px) {
    body {
        padding: 20px;
    }
    
    form {
        width: 100%;
        padding: 25px;
    }

    input, select, button {
        font-size: 14px;
    }
}
