#macromeals-bmr-calculator {
    max-width: 950px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 20px;
    background-color: #fff;
}

#macromeals-bmr-calculator form {
    margin-bottom: 20px;
}
.form-label {
    font-weight: 500;
    margin-bottom: 8px;
}
.disc-title {
    font-weight: 500;
    font-size: 20px;
    margin-top: 10px;
    margin-bottom: 0px;
}
#macromeals-bmr-calculator .form-question {
    margin-bottom: 32px; /* Add more space below each question */
}
#macromeals-bmr-calculator input[type="number"],
#macromeals-bmr-calculator input[type="email"],
#macromeals-bmr-calculator select {
    font-size: 16px; /* Set font size to 16px to prevent mobile zoom */
    width: 100%;
    padding: 8px;
    height: 50px;
    margin: 10px 0;
    border-radius: 4px;
    border: 1px solid #ddd;
}
.submit-button-container {
    display: flex;
    justify-content: center; /* Centers the button horizontally */
    margin-top: 20px; /* Optional: adds space above the button */
}

#macromeals-bmr-calculator input[type="submit"] {
    background-color: #b53026;
    font-size: 18px;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: block; /* Ensures the button is a block element */
    margin: 20px auto 0; /* Centers the button horizontally */
}
.button-group {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px; /* Adjust the gap as needed */
}

.button-option {
    display: flex;
    flex-direction: row;
    align-items: center;
    border: 1px solid #dadada;
    border-radius: 10px;
    padding: 5px;
    cursor: pointer;
    transition: all 0.3s;
    width: 245px; /* Adjust width as necessary */
}

.button-option svg {
    margin-right: 5%; /* Space between icon and text */
}

.button-title {
    display: block; /* stack titles vertically */
    font-weight: 500;
    font-size: 16px;
}

.button-description {
    display: block; /* stack descriptions vertically */
    font-size: 12px;
     opacity: 0.7;
    line-height: 1.3;
}

.button-option.selected {
    background-color: #b53026;
    color: white;
    border-color: #b53026;
}
.text-container {
    display: flex;
    flex-direction: column; /* stack title and description vertically */
    justify-content: center;
}
/* Three-column layout for the form */
#macromeals-bmr-calculator .form-section-3 {
    display: flex;
    justify-content: flex-start; /* Aligns items to the start of the container */
    flex-wrap: wrap;
}

#macromeals-bmr-calculator .form-section-3 .form-column {
    flex: 1; /* Each column will grow evenly */
    min-width: 200px; /* Prevents the columns from getting too narrow */
    padding-right: 10px; /* Adds spacing to the right of each column */
    box-sizing: border-box;
    margin-bottom: 20px; /* Adds space below the input */
}

/* Remove right padding for the last column in the row */
#macromeals-bmr-calculator .form-section-3 .form-column:last-child {
    padding-right: 0;
}

#macromeals-bmr-calculator .form-single-column {
    width: calc(33.333% - 10px); /* Assuming there's no space on the left for the first column */
    box-sizing: border-box;
}

/* Remove right padding for the single column if it's the only one */
#macromeals-bmr-calculator .form-single-column:last-child {
    padding-right: 0;
}

/* Ensures the first column does not have left padding */
#macromeals-bmr-calculator .form-section-3 .form-column:first-child,
#macromeals-bmr-calculator .form-single-column {
    padding-left: 0;
}



.gender-selection {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.radio-options {
    display: flex;
    align-items: center;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-right: 20px; /* Adjust spacing between the options */
}

.radio-label:before {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    background-color: #fff; /* Default background */
    border: 2px solid #ccc; /* Grey border when not selected */
    border-radius: 50%;
    margin-right: 8px;
    transition: all 0.2s;
    box-shadow: 0 0 0 4px #fff; /* White background to cover any outer shadow */
}

input[type="radio"] {
    display: none; /* Hide the default radio button */
}

/* When a radio button is checked, add white and red borders */
input[type="radio"]:checked + .radio-label:before {
    background-color: #b53026; /* Red fill */
    border-color: white; /* White inner border */
    box-shadow: 0 0 0 1px white, 0 0 0 2.5px #b53026; /* White inner shadow then red outer */
}

.form-q-description {
    display: block; /* Ensures the div is a block-level element */
    font-size: 16px; /* Example font size */
    margin-bottom: 10px;
}
.form-result {
    display: none; /* Hide form result container by default */
}
.bmr-email-form h3 {
    font-weight: 500;
}
.form-result {
    background-color: #F8F8F8;
    border-radius: 10px;
    border: solid 3px #b53026;
    padding: 30px 30px 20px;
}
.disclaimer {
    padding-top: 20px;
    display: none; /* Hide disclaimer by default */
}
.disclaimer-title {
    display: none; /* Hide disclaimer title by default */
    font-weight: 500;
    padding-top: 25px;
}
/* Style for the email form container */
#bmr-email-form {
    display: flex;
    flex-direction: column; /* Stack children vertically */
    margin-top: 20px; /* Spacing from the previous content */
    width: 100%; /* Full width to accommodate inner flex */
}

#bmr-email-form .email-field-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%; /* Takes full width to align label above on mobile */
}

#bmr-email-form .form-label {
    width: 100%; /* Ensures the label takes full width */
    margin-top: 10px;
    margin-bottom: 5px; /* Spacing between label and input */
    font-weight: bold; /* Optional: makes label text bold */
}

#bmr-email-form form {
    display: flex;
    width: 100%; /* Ensures form takes full width of the container */
}

#bmr-email-form input[type="email"] {
    padding: 8px;
    height: 50px;
    margin-right: 10px; /* Adds space between the input and the button */
    border: 1px solid #ccc;
    border-radius: 4px;
}
#bmr-email-form input[type="submit"] {
    margin: 0;
}
.error-messages {
    color: red;
    background-color: #ffc0cb; /* Light red background */
    margin: 10px 0;
    padding: 10px;
    border-radius: 5px;
    display: none; /* Hidden by default */
}
/* css for mobile */
@media (max-width: 768px) {
    /* Adjust button groups to show two buttons per row */
    .button-group {
        justify-content: space-between;
    }

    .button-option {
        width: 100%; /* Each button takes full width */
    }

    /* Ensure "Hur mycket vill du väga" takes 100% width on mobile */
    #macromeals-bmr-calculator .form-single-column {
        width: 100%; /* Full width on smaller screens */
    }

    /* Adjust the form columns to stack vertically and take full width */
    #macromeals-bmr-calculator .form-section-3 .form-column {
        width: 100%; /* Each column takes full width */
        padding-right: 0; /* Remove right padding */
    }
    #bmr-email-form form {
        display: grid;
    }
}
