/* Advanced CSS: Using CSS Variables for theme consistency */
:root {
    --primary-color: #007bff; /* Visol Blue (For headings, links, and buttons) */
    --secondary-color: #28a745; /* Green for actions */
    --text-color: #1a1a1a; /* CHANGED: Richer Black for primary font color */
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color); /* Updated to use the new richer black */
    background-color: #fff;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease; /* Advanced CSS: Transition for hover effect */
}

a:hover {
    color: #0056b3;
}

.container {
    max-width: var(--max-width);
    margin: auto;
    padding: 0 20px;
}

/* --- Header & Navigation (Advanced CSS: Flexbox for responsive layout) --- */
.main-header {
    background: var(--dark-bg);
    color: #fff;
    padding: 15px 0;
    border-bottom: 3px solid var(--secondary-color);
}

.nav-content {
    display: flex; /* Flexbox */
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: #fff;
    font-size: 1.8rem;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: #fff;
    padding: 5px 10px;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
}

/* Mobile Menu (Using a simple media query for responsiveness) */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide links by default on small screens */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px; /* Adjust based on header height */
        left: 0;
        background: var(--dark-bg);
        border-top: 1px solid #555;
        z-index: 100;
        padding-bottom: 10px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    .menu-toggle {
        display: block;
    }
}


/* --- Footer (Advanced CSS: Flexbox/Grid for layout) --- */
.main-footer {
    background: var(--dark-bg);
    color: #fff;
    padding: 30px 0;
    text-align: center;
    margin-top: 40px;
}

.footer-grid {
    display: grid; /* CSS Grid */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: left;
    padding-bottom: 20px;
    border-bottom: 1px solid #555;
}

.footer-column h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-column p, .footer-column li {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: #ccc;
}

.footer-column ul {
    list-style: none;
}

.footer-column a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary-color);
}

.copyright {
    margin-top: 20px;
    font-size: 0.8rem;
    color: #aaa;
}

/* --- Common Page Layout for Content Pages (About, Policy, Terms) --- */
.content-section {
    padding: 40px 0;
    min-height: 50vh;
}

.content-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2rem;
    border-bottom: 2px solid var(--light-bg);
    padding-bottom: 10px;
}

.content-section h3 {
    margin-top: 25px;
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.content-section p, .content-section ul {
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.8;
}

.content-section ul {
    list-style: disc;
    margin-left: 20px;
}

/* Notification Consent Box */
.consent-box {
    background-color: #f1f7fe;
    border: 1px solid #d0e7ff;
    padding: 20px;
    margin: 30px 0;
    border-left: 5px solid var(--primary-color);
    border-radius: 5px;
}

.consent-box strong {
    color: var(--primary-color);
}

.consent-box p {
    margin: 10px 0 0 0;
}

/* Buttons for Forms/CTAs */
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease; /* Advanced CSS: Transitions */
}

.btn:hover {
    background: #0056b3;
    transform: translateY(-2px); /* Advanced CSS: Transform for subtle effect */
}

/* Contact Page Specific Styles (Applied to contact.html) */
.contact-grid {
    display: grid; /* CSS Grid */
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    padding: 40px 0;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr; /* Stack on smaller screens */
    }
}

/* Additional Styles specific to the contact form fields */
.contact-form {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
}

.contact-form h3 {
    color: var(--dark-bg);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease; 
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.consent-checkbox-group {
    margin-top: 20px;
    padding: 15px;
    border: 1px dashed #aaa;
    border-radius: 5px;
}

.consent-checkbox-group label {
    display: flex;
    align-items: flex-start;
    font-size: 0.9rem;
    line-height: 1.5;
    cursor: pointer;
}

.consent-checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px;
    min-width: 16px; 
}

.contact-info {
    background: var(--primary-color);
    color: white;
    padding: 30px;
    border-radius: 8px;
}

.contact-info h3 {
    color: white;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1rem;
}

.contact-info i {
    margin-right: 10px;
    color: var(--secondary-color);
}

/* Style for disabled button (Contact Us form requirement) */
#submitBtn:disabled {
    background-color: #999;
    cursor: not-allowed;
    transform: none;
}