body {
    background: linear-gradient(to right, #ffffff, #e0f7fa);
    margin: 0;
    font-family: normal 10px verdana;
    height: 100vh; /* Ensure full height for centering */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Calculator Styling */
.calculator {
    background: #ffffff;
    border-radius: 35px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 40px;
    width: 100%;              /* <-- responsive */
    max-width: 550px;         /* <-- limit on desktop */
    box-sizing: border-box;
    margin-top: 50px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    margin-bottom: 100px;
}


.form-group {
    margin-bottom: 35px;
    padding: 0 15px; /* adds side padding */
}


label {
    display: block;
    margin-bottom: 15px;
    padding-left: 15px;   /* New padding */
    padding-right: 15px;  /* Optional if you want balance */
    color: grey;
}


input, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #d0d0d0;
    border-radius: 25px;
    box-sizing: border-box;
}

input:invalid {
    border-color: red;
}

.required::after {
    content: " *";
    color: red;
}

.slider-container {
    margin-top: 15px;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: grey;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: lightblue;
    border-radius: 5px;
    outline: none;
    opacity: 0.7;
    transition: opacity .2s;
}

.slider:hover {
    opacity: 1;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
}

.table-container {
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    border: 1px solid #d0d0d0;
    text-align: center;
}

th {
    background-color: #f2f2f2;
}

.info-text {
    margin-top: 20px;
    font-size: 14px;
    color: grey;
    display: none;
}

.error-message {
    color: red;
    font-size: 14px;
    margin-top: 10px;
    display: none;
}

/* New styles for logo and heading alignment */
.header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.header h4 {
    margin: 0px;
    font-size: 24px;
    color: #1761AD;
}

/* Submit Button Styling */
.submit-button {
    background-color: #1d7071;
    color: white;
    padding: 10px 10px;
    border-radius: 25px;
    border: none;
    width: 100%;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    margin-top: 20px;
    display: none; /* Initially hide button */
}

.submit-button:hover {
    background-color: #155d59;
}

/* Hamburger menu (hidden by default) */
.hamburger {
display: none;
flex-direction: column;
gap: 5px;
cursor: pointer;
}

.hamburger div {
width: 30px;
height: 4px;
background-color: #1761AD;
}

/* Mobile menu (hidden by default) */
.mobile-menu {
display: none;
flex-direction: column;
gap: 15px;
position: absolute;
top: 100px;
right: 0;
background-color: white;
width: 200px;
padding: 20px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
border-radius: 10px;
}

.mobile-menu a {
text-decoration: none;
color: grey;
font-weight: 700;
font-size: 18px;
}

.mobile-menu a:hover {
color: #1761AD;
}


/* Media Query for Mobile */
@media screen and (max-width: 768px) {
nav ul {
display: none; /* Hide the menu items by default on small screens */
}

.hamburger {
display: flex; /* Show the hamburger menu */
}

.mobile-menu {
display: flex; /* Show the mobile menu */
}

.logo {
margin-left: 10px;
}
}

@media screen and (max-width: 480px) {
    .calculator {
        padding: 20px;
        border-radius: 20px;
        margin-top: 20px;
    }

    .header h4 {
        font-size: 18px;
    }

    .header img {
        width: 40px;
        height: 40px;
    }

    label {
        font-size: 14px;
    }

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

    .slider-labels span {
        font-size: 12px;
    }

    .info-text {
        font-size: 12px;
    }

    .submit-button {
        font-size: 14px;
        padding: 10px;
    }
}
