*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

.error-message {
    color: red;
    font-size: 14px;
}


.header {
    background-color: #2A9D8F;
    color: white;
    padding: 0px 0;
    width: 100%;
}

.header_div {
    height: 50px;
    margin-left: 8%;
    margin-right: 8%;
    align-items: center;
    justify-content: center;
    font-family: Arial;
    font-weight: 600;
    font-size: 2rem;
    display: flex;
}

.image-container {
    width: 7%;
    /* Ensure container takes full width if needed */
    display: flex;
    /* Use flexbox to center the image if needed */
    justify-content: center;
    align-items: center;
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.advert-img {
    width: 100px;
    height: auto;
}

.site_title {

    font-size: 22px;
    font-weight: normal;
    font-family: 'Georgia', serif;
}

.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav ul li {
    margin-left: 20px;
}

.nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 12px;
    transition: background-color 0.3s;
}

.nav ul li a:hover {
    background-color: #fff;
    color: grey;
    /* Highlight color for active and hovered links */
    border-bottom: 2px solid #007bff;
    /* Underline effect */
    padding-bottom: 5px;
    border-radius: 4px;
}

.nav ul li a.active {
    background-color: #fff;
    color: #007bff;
    /* Highlight color for active and hovered links */
    border-bottom: 2px solid #007bff;
    /* Underline effect */
    padding-bottom: 5px;
    border-radius: 4px;
}

.form-div {
    display: flex;
    justify-content: center;
    margin-left: 8%;
    margin-right: 8%;
}

label {
    width: 115px;
    /*note if you dont use inline-block below the width wont be respected*/
    display: inline-block;

}

input[type="submit"] {
    background-color: #07ad5f;
    border: 1px solid transparent;
    border-radius: 3px;
    box-shadow: rgba(255, 255, 255, .4) 0 1px 0 0 inset;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-family: -apple-system, system-ui, "Segoe UI", "Liberation Sans", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.15385;
    margin: 0;
    outline: none;
    padding: 8px .8em;
    position: relative;
    text-align: center;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: baseline;
    white-space: nowrap;
    width: 100px;
}



select,
input {
    /*appearance: none;
    -webkit-appearance: none;*/
    /* For older versions of webkit */
    /*-moz-appearance: none;*/
    /* For older versions of Firefox */
    padding: 4px 6px;
    /* Adjust padding as needed */
    font-size: 0.85rem;
    /* Adjust font size as needed */
    border: 1px solid #ccc;
    /* Add border */
    border-radius: 2px;
    /* Add border radius */
    background-color: #fff;
    /* Add background color */



}

footer {
    margin-top: 40px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

h1,
h2 {
    color: #2a9d8f;
    /* Green color for headings */
    text-align: center;
}

h1 {
    font-size: 25px;
    /* Smaller font size for the main heading */
    margin-bottom: 15px;
    margin-left: 50px;
}

h2 {
    font-size: 20px;
    /* Smaller font size for subheadings */
    margin-top: 30px;
}

textarea {
    width: 400px;
}

p label {
    font-size: 15px;
    font-weight: normal;
    color: #555;
    width: 130px;
}


@media screen and (max-width: 768px) {

    .nav {
        text-align: center;
    }

    .nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: block;


    }

    .nav ul li {
        padding: 2px;
    }

    .nav ul li a {
        color: white;
        text-decoration: none;
        font-size: 16px;
        transition: background-color 0.3s;
        display: block;
        /* if you remove this it doesnt cover whole width */
    }

    .nav ul li a:hover {
        background-color: #45a049;
        border-radius: 4px;

    }

    .nav ul li a.active {
        background-color: #fff;
        border-radius: 4px;
        color: #2A9D8F;
    }

    .container {
        display: block;
        justify-content: space-between;
        align-items: center;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .left_side_div {
        display: none;
    }

    .right_side_div {
        display: none;
    }

    .left_centre_right_middle_container_div {
        display: flex;
        justify-content: space-between;
        margin-left: 0%;
        margin-right: 0%;

    }

    .header-container {
        display: block;
        align-items: center;
        margin: 0 auto;
        padding: 0 20px;
    }

    .form-div {

        justify-content: center;

        display: block;
        width: 100%;
    }

    form {

        justify-content: center;

        margin-bottom: 0px;
        margin-left: 0px;
        margin-right: 0px;
        width: 90%;
    }

    p textarea,
    p select,
    input[type="file"],
    input[type="number"],
    input[type="text"],
    input[type="email"] {
        width: 100%;
        margin: 0;
        /* Ensure there's no margin */
        padding: 8px;
        /* Add padding as needed */
    }

.image-container {
            width: 20%;
            /* Ensure container takes full width if needed */
            display: flex;
            /* Use flexbox to center the image if needed */
            justify-content: center;
            align-items: center;
            margin: 0;
            padding: 0;
    }
}