/* General reset and body styling style.css */
body {
    margin: 0;
    padding: 5px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f0f4ff, #e0e5ff);
    color: #333;
    user-select: none; /* Keep this to prevent text selection on the body */
}

/* Allow text selection and interaction on form elements */
select,
input,
button,
label {
    user-select: auto;
}

/* Container for the app */
.container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    text-align: center;
    margin: 5px auto;
    margin-top: 10px; /* Adding top margin */
    border-radius: 8px; /* Ensure rounded corners */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* Heading */
h1 {
    font-size: 2rem;
    margin-bottom: 5px;
    color: #007BFF;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: bold;
    text-align: center;
}

/* Subtitle */
.subtitle {
    font-size: 14px;
    margin-bottom: 20px;
    color: #555;
    text-align: center;
    line-height: 1.5;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* Form elements */
label {
    text-align: left;
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

select,
input {
    width: calc(100% - 20px);
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background-color: #f9f9f9;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

select:focus,
input:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Placeholder styling */
::placeholder {
    color: #aaa;
    opacity: 1;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* Error messages */
.error {
    color: red;
    font-size: 14px;
    display: none;
    margin-bottom: 10px;
    text-align: left;
    width: calc(100% - 20px);
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* Button */
button {
    width: calc(100% - 20px);
    padding: 14px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

button:hover {
    background-color: #0056b3;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

button:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

button i {
    margin-right: 8px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* Section Separators */
.section-separator {
    margin: 30px 0;
    border-bottom: 1px solid #ddd;
}

/* Result display */
.result {
    margin-top: 20px;
    padding: 15px;
    background-color: #e7f4e4;
    border-radius: 8px;
    font-size: 18px;
    color: #28a745;
    font-weight: bold;
    box-sizing: border-box;
    text-align: center;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    h1 {
        font-size: 20px;
    }

    select,
    input,
    button {
        width: calc(100% - 30px);
        font-size: 14px;
    }

    .result {
        font-size: 16px;
    }
}

/* Inline Checkbox Styling */
.checkbox-container {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    text-align: left;
}

.checkbox-container input {
    margin-right: 5px;
}

/* Optional Fields */
.optional-fields {
    display: none;
}

/* Specific button styling */
#show-hide-button {
    background-color: #ff6347;
    width: 60%;
    margin: 0 auto;
}

#show-hide-button:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(255, 99, 71, 0.5);
}

/* Larger button for Calculate BMI */
#calculate-bmi-button {
    background-color: #007BFF;
    font-size: 18px;
    padding: 16px;
    margin-top: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

#calculate-bmi-button:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
}

#calculate-bmi-button:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Larger text for accessibility */
.large-text {
    font-size: 20px;
}

/* Advice Section */
#advice-section {
    display: none;
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    font-size: 16px;
    text-align: left;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

#advice-section p {
    margin-bottom: 15px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* Optional Group Headers */
.optional-group {
    cursor: pointer;
    font-weight: bold;
    margin-top: 15px;
    padding: 10px;
    background-color: #f8f9fa; /* Light gray background */
    border: 1px solid #ddd;
    border-radius: 5px;
}

.optional-group:hover {
    background-color: #e2e6ea; /* Slightly darker on hover */
}
