/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(to right, #f0f8ff, #e6efff); /* Light background for the overall page */
    color: #333; /* Default text color */
    margin: 0;
    display: flex;
    flex-direction: column; /* Arrange header, content, footer vertically */
    min-height: 100vh;
}

/* Main Content Wrapper - to center and give max-width to the primary content */
.main-content-wrapper {
    flex-grow: 1; /* Allows this section to take up available space */
    width: 100%;
    max-width: 960px; /* Adjust as needed */
    margin: 20px auto;
    padding: 0 20px; /* Padding on sides for smaller screens; fixed '10 20px' to '0 20px' */
}

/* Contact Form Specific Styles - adapted for the new background */
h1 {
    color: #0056b3; /* A professional blue for headings */
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
}

/* Button Styling (for "Open Contact Form" and "Submit/Send Message") */
button {
    padding: 12px 25px;
    background-color: #25D366; /* WhatsApp green */
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease;

    /* Center the "Open Contact Form" button */
    display: block; /* Make button a block element to apply margin: auto */
    margin-left: auto; /* Auto margin left and right to center */
    margin-right: auto;
    margin-top: 20px; /* Add some top margin for spacing */
    margin-bottom: 20px; /* Add some bottom margin for spacing */
}

button:hover {
    background-color: #1DA851;
    transform: translateY(-2px);
}

/* Specific styling for the submit button within the form */
#contactForm button {
    width: 100%; /* Make the submit button inside the form full width */
    margin-left: 0; /* Override previous margin for full width */
    margin-right: 0;
    margin-top: 20px; /* Add margin-top for spacing from textarea */
    display: block; /* Ensure it's a block element */
}


#contactForm {
    display: none;
    margin: 2rem auto; /* Center the form */
    padding: 2.5rem;
    background-color: #ffffff; /* White background for the form */
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 450px;
}

label {
    font-weight: bold;
    color: #333; /* Darker text for labels */
    display: block; /* Ensure label takes full width */
    margin-bottom: 8px; /* Space below labels */
}

input, textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px; /* More space between inputs */
    border: 1px solid #ddd; /* Lighter border */
    background-color: #f8f8f8; /* Very light gray background */
    color: #333;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    border-color: #007bff; /* Highlight on focus */
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: #999;
}

#thankYouPopup {
    position: fixed;
    top: 50%; /* Center vertically */
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff; /* White background */
    padding: 35px;
    color: #25D366;
    border: 2px solid #25D366;
    border-radius: 15px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    display: none;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 90%; /* Responsive width */
}

#thankYouPopup #goBackBtn { /* Target the specific button inside the popup */
    margin-top: 25px;
    background-color: transparent;
    border: 1px solid #007bff; /* Blue border */
    color: #007bff;
    padding: 10px 20px;
    width: auto; /* Reset width for this button to fit content */
}

#goBackBtn:hover {
    background-color: #007bff;
    color: #fff;
}

.contact-info {
    margin-top: 40px;
    text-align: center;
    color: #555;
    padding: 20px 0;
    background-color: #f9f9f9; /* Slightly different background for this section */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contact-info p { /* Ensure contact info paragraphs are centered */
    text-align: center;
}

.contact-info a {
    color: #007bff; /* Professional blue for links */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    text-decoration: underline;
    color: #0056b3;
}

.wattsapp, .email-icon {
    width: 28px; /* Slightly larger icons */
    height: 28px;
    vertical-align: middle;
    margin-right: 10px;
    border-radius: 50%; /* Make them circular for a modern look */
    object-fit: contain;
    padding: 3px; /* A little padding inside border-radius */
}
.wattsapp {
    box-shadow: 0 0 8px rgba(37, 211, 102, 0.6); /* Enhanced glow */
}
.email-icon {
    box-shadow: 0 0 8px rgba(255, 69, 0, 0.5); /* Orange-red glow for email */
}


/* General Section Styles (from your provided CSS) */
section {
    background-color: #ffffff;
    margin: 30px auto;
    padding: 25px;
    max-width: 850px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
}

section h2 {
    color: #1a237e; /* Dark blue for section headings */
    font-size: 26px;
    margin-bottom: 12px;
}

section p, section li {
    color: #333;
    font-size: 17px;
    line-height: 1.7;
    text-align: justify; /* Ensure content is justified */
}

section ol {
    padding-left: 22px;
}

/* Small icon for thank you popup (from your provided CSS) */
.icon-small {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-left: 8px; /* Adjusted margin for clarity */
}

/* Header Styles */
.main-header {
    width: 100%;
    background: linear-gradient(to right, #e0f2f7, #6f60cd); /* Light blue gradient */
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky; /* Makes header sticky */
    top: 0;
    z-index: 1000;
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #1a237e; /* Darker blue for text */
    font-size: 24px;
    font-weight: bold;
}

.header-logo img {
    width: 70px;
    height: 70px;
    margin-right: 2px;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 17px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #007acc; /* Accent blue on hover */
}

.menu-toggle {
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 4px 0;
    transition: 0.3s;
}

/* Responsive Header */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide navigation links by default on mobile */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px; /* Adjust based on header height */
        left: 0;
        background-color: #e1e0f7;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 15px 0;
    }

    .nav-links.active {
        display: flex; /* Show when active */
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    .menu-toggle {
        display: flex; /* Show hamburger icon on mobile */
    }

    /* Animate hamburger icon to 'X' */
    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}


/* Footer Styles */
.main-footer {
    width: 100%;
    background-color: #2c3e50; /* Dark background from image */
    color: #ecf0f1; /* Light text color */
    padding: 40px 30px 20px;
    margin-top: auto; /* Push footer to the bottom */
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}

.footer-content {
    display: flex;
    flex-wrap: wrap; /* Allow columns to wrap on smaller screens */
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    min-width: 200px; /* Minimum width for each section before wrapping */
    margin: 15px;
}

.footer-section h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 2px;
    background-color: #007acc; /* Accent color */
}

.footer-section p {
    font-size: 15px;
    line-height: 1.6;
    color: #bdc3c7;
    text-align: justify; /* Changed to justify */
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    text-decoration: none;
    color: #bdc3c7;
    font-size: 15px;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #007acc; /* Accent color on hover */
}

.footer-logo-section {
    flex: 1.5; /* Give more space to the logo section */
    min-width: 250px;
}

.footer-logo-section img {
    width: 60px; /* Adjust as needed */
    height: 60px;
    vertical-align: middle;
    margin-right: 10px;
}

.footer-logo-section .logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    vertical-align: middle;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid #34495e; /* Separator line */
    color: #bdc3c7;
    font-size: 14px;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        text-align: center; /* Keep text centered for overall section on mobile */
        margin-bottom: 30px;
        min-width: unset; /* Remove min-width on small screens */
        width: 100%; /* Take full width */
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-section p, .footer-section ul {
        text-align: center; /* Center align text/lists within sections on mobile */
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 10px 15px;
    }

    .header-logo {
        font-size: 20px;
    }

    .header-logo img {
        width: 35px;
        height: 35px;
    }

    .main-footer {
        padding: 30px 15px 15px;
    }

    #contactForm {
        padding: 1.5rem;
    }

    #thankYouPopup {
        font-size: 16px;
        padding: 25px;
    }

    .wattsapp, .email-icon {
        width: 24px;
        height: 24px;
    }

    /* Center the "Open Contact Form" button on smaller screens */
    button {
        margin-left: auto;
        margin-right: auto;
    }
}