/* Reset some default browser settings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Background Image */
body {
    background: url('../img/contact_bkgrnd.jpg') no-repeat center center fixed;
    background-size: cover;
    font-family: 'Arial', sans-serif;
}

/* Logo */
.logo img {
    height: 50px;
    float: left;
    margin-left: 10px;
}

#logo-img {
    height: 70px;
    width: 100%;
}

/* Navigation Styles */
header {
    position: fixed; /* Fixes the navigation bar at the top */
    top: 0;
    left: 0;
    width: 100vw;
    background-color: #28a745;
    padding: 10px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 0;
    box-sizing: border-box;
    z-index: 999; /* Ensures it stays on top of other content */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow for better visibility */
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: row;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 20px;
    display: inline;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 30px;
    transition: background-color 0.3s;
    font-size: 18px;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-icon span {
    height: 3px;
    width: 25px;
    background-color: white;
    margin: 4px;
    transition: all 0.3s;
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
}

/* Contact Page Styling */
.contact-page {
    padding-top: 100px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.page-title h1 {
    font-size: 3rem;
    margin-bottom: 30px;
    color: yellow;
}

.page-title1 h1 {
    font-size: 2rem;
    margin-bottom: 0px;
    color: yellow;
	background-color: rgba(0, 128, 0, 0.9);
	padding: 10px 20px;
}

.contact-form {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin: 10px 0 5px;
    text-align: left;
}

.contact-form input, .contact-form textarea {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: none;
    width: 100%;
}

.submit-btn {
    background-color: #28a745;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #1d7a32;
}

/* Google Map Styling */
.map-container {
    margin-bottom: 50px;
}

/* Footer styling */
footer {
    background-color: rgba(0, 0, 0, 0.8); /*#343a40;*/
    color: white;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
    width: 100%;
}

/* Footer sections */
.footer-container {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    margin: 20px 0;
}

.company-info h4,
.social-media h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

/* Social media icons */
.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    display: inline-block;
    transition: transform 0.3s;
}

.social-icons img {
    width: 40px;
    height: 40px;
}

.social-icons img:hover {
    transform: scale(1.1);
}

/* Footer bottom */
.footer-bottom {
    background-color: #212529;
    padding: 10px 0;
    margin-top: 20px;
    width: 100%;
}

.footer-bottom p {
    margin: 0;
}

/* Mobile menu dropdown styling */
.nav-links {
    list-style: none;
    display: flex;
    flex-direction: row;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 20px;
    display: inline;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 30px;
    transition: background-color 0.3s;
    font-size: 18px;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-icon span {
    height: 3px;
    width: 25px;
    background-color: white;
    margin: 4px;
    transition: all 0.3s;
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide desktop menu by default */
        flex-direction: column;
        align-items: flex-start;
        background-color: rgba(0, 128, 0, 0.95); /* Dark green background */
        position: absolute;
        top: 60px; /* Below the header */
        right: 10px;
        width: auto;
        padding: 10px 20px;
        border-radius: 10px;
        z-index: 9999; /* Ensures menu is on top */
    }

    .nav-links.active {
        display: flex; /* Show mobile dropdown when active */
    }

    .nav-links li {
        margin: 10px 0; /* Spacing between items */
    }

    .nav-links a {
        font-size: 20px; /* Larger font size for better readability */
        padding: 12px 20px;
        width: 100%;
        text-align: left; /* Align text to the left */
    }

    .menu-icon {
        display: flex; /* Show hamburger on mobile */
        z-index: 10000; /* Ensure icon is on top */
    }

    .menu-icon.active span:nth-child(1) {
        transform: rotate(45deg) translateY(6px); /* Create 'X' effect */
    }

    .menu-icon.active span:nth-child(2) {
        opacity: 0; /* Hide middle bar */
    }

    .menu-icon.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-6px); /* Create 'X' effect */
    }

    .nav-links.active {
        align-items: flex-end; /* Align dropdown to the right */
    }
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
    text-align: center;
    animation: slideIn 0.5s ease-out;
}

.alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    box-shadow: 0 2px 4px rgba(21, 87, 36, 0.1);
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    box-shadow: 0 2px 4px rgba(114, 28, 36, 0.1);
}

.alert p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

/* Animation for alerts */
@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile responsiveness for alerts */
@media (max-width: 768px) {
    .alert {
        margin: 15px;
        padding: 12px 15px;
    }
    
    .alert p {
        font-size: 0.9rem;
    }
}
