/*
* Contact Page CSS with responsive design
* This stylesheet controls the appearance of the contact page
*/

/* Reset default styles and set basic properties for all elements */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: #fff; /* White text color for better contrast on dark backgrounds */
}

/* Main wrapper for full-page layout that uses flexbox to ensure footer stays at bottom */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Full viewport height */
}

/* Background image only applies to content area, not footer */
.main-content {
    flex: 1; /* Takes up all available space, pushing footer down */
    background-image: url('../images/main.png');
    background-size: cover; /* Image covers entire area */
    background-position: center; /* Centers the background image */
    background-attachment: fixed; /* Fixed background for parallax effect */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px; /* Vertical and horizontal padding */
}

/* Centered content container with semi-transparent background */
.container {
    width: 100%;
    max-width: 600px; /* Limits width on large screens */
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.85); /* Dark background with 85% opacity */
    border-radius: 12px; /* Rounded corners */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6); /* Drop shadow effect */
    text-align: center;
    color: white;
    line-height: 1.6; /* Improves text readability */
}

/* Mobile hamburger menu button (hidden by default) */
.menu-toggle {
    display: none; /* Hidden on desktop */
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: #4CAF50;
    color: #000;
    border: none;
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Navigation bar styling */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 100;
}

/* Navigation links container */
.nav-links {
    display: flex;
    gap: 30px;
}

/* Individual navigation links */
.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    padding: 5px 10px;
    transition: background-color 0.3s;
}

/* Hover effect for navigation links */
.nav-links a:hover {
    background-color: #45a049;
    border-radius: 4px;
}

/* Form Heading */
h1, h2 {
    color: #4CAF50; /* Green color for brand consistency */
    font-size: 28px;
    margin-bottom: 20px;
}

/* Form field group */
.form-group {
    margin-bottom: 15px;
    text-align: left;
}

/* Labels */
label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 16px;
}

/* Input fields */
input[type="email"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 16px;
    box-sizing: border-box;
}

/* Textarea customization */
textarea {
    resize: vertical;
    min-height: 100px;
}

/* Submit Button */
button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 20px;
    margin-top: 20px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 16px;
    width: 100%;
    transition: background-color 0.3s, transform 0.2s;
}

/* Button hover effect */
button:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

/* Error message */
.error {
    color: #ff6b6b;
    font-size: 14px;
    margin-top: 5px;
}

/* Footer styling */
footer {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 20px 10px;
}

/* Container for footer content */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Social media icons container */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

/* Individual social icon styling */
.social-icons a {
    color: #fff;
    font-size: 22px;
    transition: 0.3s;
}

/* Hover effect for social icons */
.social-icons a:hover {
    color: #4CAF50;
    transform: scale(1.2);
}

/* Footer credits text styling */
.footer-credits {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.8;
}

/* Copyright text styling */
.copyright {
    font-size: 14px;
    font-weight: bold;
}

/* Required field indicator */
.required:after {
    content: " *";
    color: #ff6b6b;
}

/* Error container */
.error-container {
    background-color: rgba(255, 107, 107, 0.1);
    border: 1px solid #ff6b6b;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

/* Field-specific error messages */
.field-error {
    color: #ff6b6b;
    font-size: 14px;
    margin-top: 5px;
}

/* Error field highlighting */
input.error-field, 
textarea.error-field {
    border: 1px solid #ff6b6b;
    background-color: rgba(255, 107, 107, 0.05);
}

/* System error container styling */
.system-error-container {
    background-color: rgba(255, 107, 107, 0.1);
    border: 1px solid #ff6b6b;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: left;
}

/* System error message */
.system-error {
    color: #ff6b6b;
    font-size: 14px;
    font-weight: bold;
}

/* Error heading */
.error-heading {
    color: #ff6b6b;
    font-size: 16px;
    margin-bottom: 10px;
    text-align: left;
}

/* Responsive design for tablets */
@media (max-width: 1024px) {
    /* Adjust container width for tablets */
    .container {
        width: 90%;
        max-width: 600px;
    }
    
    /* Slightly reduce heading sizes */
    h1 {
        font-size: 26px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    /* Add padding to account for fixed nav */
    .main-content {
        padding-top: 80px;
    }
}

/* Responsive design for mobile devices */
@media (max-width: 768px) {
    /* Further adjust container */
    .container {
        width: 95%;
        padding: 20px;
    }

    /* Smaller text for mobile */
    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    p, ul li {
        font-size: 14px;
    }
    
    /* Show hamburger menu */
    .menu-toggle {
        display: block;
    }
    
    /* Adjust navigation for mobile */
    nav {
        padding: 10px 0;
    }
    
    /* Mobile menu styling */
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%; /* Hide off-screen by default */
        width: 70%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        transition: 0.3s ease-in-out;
        z-index: 9998;
    }
    
    /* Style for open mobile menu */
    .nav-links.active {
        left: 0; /* Show when active */
    }
    
    /* Larger touch targets for mobile */
    .nav-links a {
        font-size: 16px;
        padding: 10px 20px;
        width: 100%;
        text-align: center;
    }
    
    /* Form adjustments for mobile */
    label {
        font-size: 14px;
    }
    
    input[type="email"], 
    textarea {
        font-size: 14px;
        padding: 10px;
    }
    
    button {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* Very small screens additional adjustments */
@media (max-width: 480px) {
    /* Further reduce text sizes */
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 22px;
    }
    
    h2 {
        font-size: 18px;
    }
    
    /* Smaller form elements */
    label {
        font-size: 13px;
    }
    
    input[type="email"], 
    textarea {
        font-size: 13px;
        padding: 8px;
    }
    
    /* Smaller social icons for very small screens */
    .social-icons a {
        font-size: 18px;
    }
    
    .footer-credits, .copyright {
        font-size: 12px;
    }
}