/* General Styles for the Body */
:root {
    --primary-color: #d9534f;
    --primary-color-dark: #c9302c;
    --text-color: #333;
    --label-color: #555;
    --background-color: #f4f4f4;
    --border-color: #ccc;
    --focus-border-color: var(--primary-color);
    --link-color: #ff4500;
    --link-hover-color: #e03e00;
    --form-background-color: #ffffff; /* Added variable for form background color */
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color); /* Light background color */
    color: var(--text-color);
}

a {
    text-decoration: none;
    color: var(--link-color);
    transition: color 0.3s; /* Smooth transition for color */
}

a:hover {
    text-decoration: underline;
    color: var(--link-hover-color);
}

ul {
    list-style: none;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
}

nav ul {
    align-items: center;
    display: flex;
    justify-content: center;
    margin-top: 5vh;
}

nav ul li {
    list-style: none;
    margin-left: 20px;
}

nav ul li a {
    border-radius: 20px;
    color: #333; /* Neutral text color */
    padding: 6px 15px;
    text-decoration: none;
    background: none;
}

nav ul li a.active,
nav ul li a:hover {
    background: #900; /* Highlight color */
    text-decoration: none;
    color: #fff; /* Contrast text color */
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    top: 10px;
    left: 10px; /* Position the hamburger menu on the top left */
    z-index: 3; /* Ensure the menu toggle is above the hero content */
}

.menu-toggle .bar {
    height: 3px;
    width: 25px;
    background-color: var(--primary-color-dark);
    margin: 4px 0;
    transition: 0.4s;
}

.menu-toggle.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Form Section Styles */
.form {
    max-width: 600px;
    margin: 50px auto;
    padding: 40px; /* Increased padding for better spacing */
    background-color: var(--form-background-color); /* Changed to white */
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form h1 {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 30px; /* Increased margin for better spacing */
    font-size: 26px; /* Slightly increased font size */
}

.form-group {
    margin-bottom: 25px; /* Increased space between form groups */
}

.form label {
    display: block;
    margin-bottom: 8px; /* Increased margin for better spacing */
    color: var(--label-color);
    font-weight: bold;
}

.form input[type="text"],
.form input[type="email"],
.form textarea {
    width: 100%;
    padding: 14px; /* Increased padding for better touch targets */
    margin-top: 8px; /* Increased space above input fields */
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s; /* Added smooth transition for box-shadow */
}

.form input[type="text"]:focus,
.form input[type="email"]:focus,
.form textarea:focus {
    border-color: var(--focus-border-color);
    box-shadow: 0 0 5px rgba(217, 83, 79, 0.5); /* Added subtle box-shadow on focus */
    outline: none;
}

.form button {
    width: 100%;
    padding: 14px; /* Increased padding for better touch targets */
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.3s; /* Added smooth transition for transform */
}

.form button:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-2px); /* Added slight lift on hover */
}

.form button:active {
    transform: translateY(0); /* Reset transform on active */
}

/* Footer Styles */
footer {
    background-color: #333; /* Dark background for footer */
    color: white; /* White text color */
    padding: 20px 0;
    text-align: center;
}

.footercontainer h4 {
    margin: 0 0 10px;
}

.social-links {
    display: flex;
    justify-content: center;
}

.social-links a {
    color: white; /* White text for social links */
    margin: 0 10px;
    text-decoration: none;
}

.social-links a:hover {
    color: #d9534f; /* Red on hover for social links */
}

@media (max-width: 768px) {
            .menu-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        position: absolute; /* stays in place */
        top: 10px;
        left: 10px;
        z-index: 9999; /* always on top */
    }

    .nav-list {
        position: absolute;
        z-index: 1000; /* below toggle */
    }

    nav {
        background: none;
    }

    .nav-list {
        top: 60px;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.3s ease-in-out;
    }

    .nav-list.active {
        left: 0;
    }

    .nav-list li {
        margin: 20px 0;
    }

        .nav-list li a {
        background-color: transparent; /* Removes the red background */
        border-radius: 0; /* Optional: Makes the links rectangular instead of rounded */
        padding: 10px; /* Optional: Adjusts padding for the new style */
    }
    nav ul li a:hover {
    background: transparent; /* Highlight color */
    text-decoration: none;
    color: none; /* Contrast text color */
}
}