:root {
    --primary-color: #0d6efd;
    --primary-hover-color: #0b5ed7;
    --text-color: #212529;
    --text-secondary-color: #6c757d;
    --bg-color: #F8F9FA;
    --card-bg-color: #FFFFFF;
    --border-color: #dee2e6;
}

[data-theme='dark'] {
    --primary-color: #4dabf7;
    --primary-hover-color: #74c0fc;
    --text-color: #e9ecef;
    --text-secondary-color: #adb5bd;
    --bg-color: #121212;
    --card-bg-color: #1e1e1e;
    --border-color: #343a40;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
    font-size: 16px; /* Base for rem units */
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', sans-serif;
    font-size: 1rem; /* Consistent base font size */
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

/* Utility class for screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Header & Navigation */
header {
    position: fixed; /* Make header fixed */
    top: 0;
    width: 100%;
    z-index: 1000; /* Ensure it stays on top */
    padding: 0.5rem 0; /* Further reduced padding */
    background-color: var(--card-bg-color);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.header-container {
     width: 100%;
     max-width: 1100px;
     margin: 0 auto;
     padding: 0 2rem;
     display: flex;
     justify-content: space-between;
     align-items: center;
}
.logo { /* Removed width, constrained height for natural scaling */ }

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none; /* Remove underline from link */
    color: var(--text-color); /* Inherit text color from theme */
}

.logo-link .logo {
    height: 40px; /* Set a consistent height for the logo */
    margin-right: 10px; /* Space between logo and text */
}

.logo-link h1 {
    font-size: 1.8rem; /* Adjust font size as needed */
    font-weight: 700;
    margin: 0; /* Remove default margin from h1 */
    color: var(--text-color); /* Ensure text color changes with theme */
}

.main-nav { display: flex; align-items: center; gap: 0.5rem; }
.main-nav a {
    font-size: 1rem; /* Explicitly set */
    color: var(--text-secondary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 7px;
    transition: all 0.3s ease;
}
.main-nav a:hover { 
    background-color: var(--bg-color);
    color: var(--text-color);
}
.main-nav a.active {
    font-weight: 600;
    color: var(--text-color);
}

/* Common styling for interactive buttons in header */
.theme-toggle-button,
.hamburger-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.5rem; /* For emoji/icon */
    color: var(--text-color); /* Ensure visibility */
    transition: color 0.3s ease;
    z-index: 1100; /* Ensure it's above other elements */
}
.theme-toggle-button:hover,
.hamburger-button:hover {
    color: var(--primary-color);
}

/* Hamburger Button */
.hamburger-button {
    display: none; /* Hidden by default on desktop */
    position: relative;
    width: 30px;
    height: 20px; /* Space for 3 bars */
    padding: 0; /* Remove default button padding */
    margin-left: 1rem;
    z-index: 1100;
}

.hamburger-icon,
.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color); /* Inherit current text color */
    position: absolute;
    left: 0;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* Positions of the three bars */
.hamburger-icon { top: 9px; } /* Middle bar */
.hamburger-icon::before { top: 0; } /* Top bar */
.hamburger-icon::after { bottom: 0; } /* Bottom bar */

/* Animation for 'X' when menu is open */
.hamburger-button.menu-open .hamburger-icon { background-color: transparent; }
.hamburger-button.menu-open .hamburger-icon::before { transform: translateY(9px) rotate(45deg); }
.hamburger-button.menu-open .hamburger-icon::after { transform: translateY(-9px) rotate(-45deg); }


/* Page Header */
.page-header {
    text-align: center;
    padding: 3rem 2rem;
    background-color: var(--card-bg-color);
    border-bottom: 1px solid var(--border-color);
}.page-header h1 { font-size: 3rem; font-weight: 700; letter-spacing: -1px; }
.page-header .subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary-color);
    max-width: 700px;
    margin: 1rem auto 0 auto;
}

/* Generic Section */
.section { padding: 5rem 0; }
.section-title { text-align: center; font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
.section-subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--text-secondary-color);
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

.mb-2rem {
    margin-bottom: 2rem;
}

/* Hero Section (Homepage) */
.hero { text-align: center; padding: 6rem 2rem; }
.hero h1 { font-size: 3rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: -1px; }
.hero .subtitle {
    font-size: 1.125rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    color: var(--text-secondary-color);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
}
.cta-button:hover { 
    background-color: var(--primary-hover-color);
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.5);
}
.cta-button.outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}
[data-theme='dark'] .cta-button {
    color: #fff; /* Changed from #121212 for better visibility in dark theme */
    box-shadow: none;
}
[data-theme='dark'] .cta-button:hover {
     color: #121212;
}


/* Features Grid (Homepage) */
#features { background-color: var(--card-bg-color); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; justify-content: start; padding: 2px; }
.feature-card {
    background: var(--card-bg-color);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.feature-card h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--primary-color); }
.feature-card p { font-size: 1rem; color: var(--text-secondary-color); }
.feature-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* Integrations Grid (Homepage) */
.integration-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 2rem; justify-items: center; align-items: center; margin-top: 3rem; justify-content: start; }
.integration-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 10px;
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    width: 100%;
    height: 100%;
}
.integration-item img { max-width: 60px; height: 48px; margin-bottom: 0.75rem; object-fit: contain; }
.integration-item h3 { font-size: 1.125rem; font-weight: 600; }


/* Signup Section (Homepage and Early Access Page) */
#signup, #early-access-form { background-color: var(--primary-color); }
#signup .section-title, #signup p, #signup .form-note,
#early-access-form .section-title, #early-access-form p, #early-access-form .form-note { color: #fff; }
#signup .section-title { margin-bottom: 1rem; }
.signup-content { text-align: center; max-width: 600px; margin: 0 auto; }
.signup-content p { font-size: 1rem; margin-bottom: 2rem; opacity: 0.9; }
.signup-form {
    display: flex;
    flex-direction: column; /* Stack fields vertically */
    gap: 1rem; /* Spacing between stacked fields */
    align-items: center; /* Center items within the column */
    width: 100%; /* Ensure form takes available width */
    max-width: 350px; /* Constrain overall form width */
    margin: 0 auto; /* Center the form block itself */
}
.signup-form input {
    /* flex-grow: 1; */ /* Removed */
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1rem;
    /* max-width: 350px; */ /* Removed */
    width: 100%; /* Added */
}
.signup-form input::placeholder { color: rgba(255, 255, 255, 0.8); }
.signup-form button {
    background-color: #fff;
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.signup-form button:hover { transform: scale(1.05); }
.form-note { font-size: 0.8rem; opacity: 0.8; margin-top: 1rem; }

/* Dark theme specific override for Signup Section */
[data-theme='dark'] #signup,
[data-theme='dark'] #early-access-form {
    background-color: var(--card-bg-color); /* Make section darker in dark theme */
}
[data-theme='dark'] #signup .section-title,
[data-theme='dark'] #signup p,
[data-theme='dark'] #signup .form-note,
[data-theme='dark'] #early-access-form .section-title,
[data-theme='dark'] #early-access-form p,
[data-theme='dark'] #early-access-form .form-note {
    color: var(--text-color); /* Ensure text is light in dark theme */
}

/* Products Page */
.products-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: stretch; }
.product-card {
    background: var(--card-bg-color);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}
.product-card h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--primary-color);}
.product-card p { font-size: 1rem; color: var(--text-secondary-color); flex-grow: 1; }
.product-card ul { list-style: none; padding: 1.5rem 0 0 0; margin: 0; }
.product-card ul li { font-size: 1rem; margin-bottom: 0.5rem; padding-left: 1.5rem; position: relative; color: var(--text-secondary-color); }
.product-card ul li:before { content: '→'; color: var(--primary-color); position: absolute; left: 0; font-weight: 600; }
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; justify-content: start; }
.tech-card { text-align: center; }
.tech-icon { height: 60px; width: 60px; margin: 0 auto 1.5rem auto; background: var(--primary-color); color: #fff; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.tech-icon svg { width: 32px; height: 32px; }
.tech-card h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.tech-card p { font-size: 1rem; color: var(--text-secondary-color); }
[data-theme='dark'] .tech-icon { color: #121212; }


/* Pricing Page */
.feature-table-wrapper { overflow-x: auto; }
.feature-table { width: 100%; min-width: 900px; border-collapse: collapse; background-color: var(--card-bg-color); border-radius: 15px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); border: 1px solid var(--border-color); }
.feature-table th, .feature-table td { padding: 1.25rem 1.5rem; text-align: center; border-bottom: 1px solid var(--border-color); }
.feature-table th { font-size: 1.125rem; font-weight: 600; }
.feature-table td:first-child { text-align: left; font-weight: 500; }
.feature-category-th {
    text-align: left;
    font-weight: bold;
    background-color: var(--bg-color);
}
.feature-table thead th { border-bottom: 2px solid var(--border-color); }

.pricing-card h3 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.pricing-card .plan-price-block {
    margin-bottom: 1rem;
}

.pricing-card .plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    color: var(--primary-color);
}

.pricing-card .plan-price-note {
    font-size: 0.9rem;
    color: var(--text-secondary-color);
}

.pricing-card .plan-button {
    width: 100%;
    margin-bottom: 2rem;
}

.pricing-card .cta-button {
    width: 80%;
    max-width: 250px;
}

.pricing-card .plan-features {
    list-style: none;
    padding: 0;
    text-align: left; /* Align feature list items to the left */
    width: 100%;
}

.pricing-card .plan-features li {
    font-size: 1rem;
    color: var(--text-secondary-color);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.pricing-card .plan-features li:last-child {
    margin-bottom: 0;
}

.pricing-card .feature-category {
    font-weight: bold;
    color: var(--text-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--border-color);
    width: 100%;
    text-align: center;
    justify-content: center; /* Center content within flex container */
}


.pricing-card .feature-check {
    color: #198553;
    font-weight: 600;
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.pricing-card .feature-dash {
    color: var(--text-secondary-color);
    margin-right: 0.5rem;
    font-weight: 600;
    font-size: 1.2rem;
}

.pricing-card .feature-text {
    margin-right: 0.5rem;
}

/* Media Queries for responsive display toggle */
@media (max-width: 768px) {
    .feature-table-wrapper {
        display: none; /* Hide table on mobile */
    }
    #pricing-cards-container {
        display: grid; /* Show cards on mobile */
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem; /* Add some horizontal padding */
    }
    .pricing-card {
        padding: 2rem 1.5rem; /* Adjust card padding for mobile */
    }
    .pricing-card .cta-button {
        width: 90%; /* Make buttons slightly wider on smaller mobiles */
    }
}

/* Solutions Page */
.solution-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; align-items: stretch; }
.solution-card { background: var(--card-bg-color); padding: 2.5rem; border-radius: 15px; border: 1px solid var(--border-color); box-shadow: 0 4px 12px rgba(0,0,0,0.05); transition: all 0.3s ease; display: flex; flex-direction: column; }
.solution-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.solution-card h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--primary-color);}
.solution-card p { font-size: 1rem; color: var(--text-secondary-color); flex-grow: 1; margin-bottom: 1.5rem; }
.solution-card ul { list-style: none; padding: 0; margin-top: 1rem; }
.solution-card ul li { font-size: 1rem; margin-bottom: 0.5rem; padding-left: 1.5rem; position: relative; color: var(--text-secondary-color); }
.solution-card ul li:before { content: '✓'; color: #198553; position: absolute; left: 0; font-weight: 600; }

/* About Page */
.content-card { background: var(--card-bg-color); padding: 3rem; border-radius: 15px; border: 1px solid var(--border-color); box-shadow: 0 4px 12px rgba(0,0,0,0.05); max-width: 800px; margin: 0 auto 2rem auto; }
.content-card p { font-size: 1rem; margin-bottom: 1rem; color: var(--text-secondary-color); }
.content-card h2 { text-align: center; font-size: 2rem; margin-bottom: 2rem; }
.timeline { list-style: none; padding: 0; position: relative; margin-top: 3rem; }
.timeline:before { content: ''; position: absolute; top: 5px; bottom: 5px; left: 9px; width: 2px; background: var(--border-color); }
.timeline-item { position: relative; padding-left: 40px; margin-bottom: 2.5rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item:before { content: ''; position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%; background: var(--card-bg-color); border: 3px solid var(--primary-color); }
.timeline-year { font-weight: 600; font-size: 1.125rem; color: var(--primary-color); }
.timeline-item p { font-size: 1rem; color: var(--text-secondary-color); margin-top: 0.25rem;}


/* Footer */
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    text-align: center;
    padding: 0.75rem 0;
    background: var(--card-bg-color);
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
footer .container {
    display: flex;
    flex-direction: column; /* Stack elements for small screens */
    align-items: center;
    gap: 0.25rem;
}
footer p { font-size: 0.8rem; margin: 0; }

.social-section {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Space between "Follow Us:" and icons */
    justify-content: center; /* Moved from inline style in about.html */
    margin-top: 2rem; /* Moved from inline style in about.html */
}

.social-links {
    display: flex;
    gap: 0.75rem; /* Space between social icons */
}

.social-links a {
    display: flex; /* To vertically align SVG if needed */
    align-items: center;
    color: var(--text-secondary-color); /* Default icon color */
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color); /* Hover effect for icons */
}

.social-links svg {
    width: 20px; /* Adjust size as needed */
    height: 20px;
    fill: currentColor; /* Inherit color from parent 'a' tag */
}

.theme-switcher { margin-top: 0; }

@media (min-width: 769px) { /* For larger screens, align horizontally */
    footer .container {
        flex-direction: row;
        justify-content: space-between;
        gap: 1rem; /* Adjust gap between main footer elements */
    }
    /* New rule for features grid on larger screens */
    #features .features-grid {
        grid-template-columns: repeat(2, 1fr); /* Force 2x2 layout for 4 items */
    }
}

/* Theme Switcher in Footer */
.theme-switcher {
    position: relative;
    display: inline-block;
}
.theme-options {
    display: inline-flex;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 0.2rem 0.5rem;
}
.theme-options button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    color: var(--text-secondary-color);
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}
.theme-options button.active {
    background-color: var(--primary-color);
    color: #fff;
}
[data-theme='dark'] .theme-options button.active {
    color: #121212;
}

/* Media Queries */
@media (max-width: 900px) { 
    .products-grid { grid-template-columns: 1fr; }
    .solution-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero .subtitle { font-size: 1rem; }
    .page-header h1 { font-size: 2.2rem; }
    .page-header .subtitle { font-size: 1rem; }
    .section-title { font-size: 1.8rem; }
    .signup-form { flex-direction: column; } /* For early-access.html form */
    
    .header-container { /* Mobile header layout: logo | theme toggle | hamburger */
        flex-direction: row;
        justify-content: space-between;
        padding: 0.5rem 1rem; /* Consistent padding */
    }

    .main-nav { /* Mobile menu overlay */
        display: none; /* Hidden by default */
        position: absolute;
        top: 60px; /* Position below the header, adjust based on header's actual height (40px logo + 0.5rem * 2 padding) */
        left: 0;
        right: 0;
        height: calc(100vh - 60px); /* Full height below header */
        overflow-y: auto; /* Enable scrolling for long menus */
        background-color: var(--card-bg-color);
        border-top: 1px solid var(--border-color);
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        z-index: 999;
        transform: translateY(-100%); /* Start hidden above */
        transition: transform 0.3s ease-in-out;
    }

    body.mobile-menu-open .main-nav {
        display: flex; /* Show when open */
        transform: translateY(0); /* Slide down */
    }

    .main-nav a { /* Style individual links AND theme toggle in the mobile nav */
        padding: 0.8rem 1rem;
        width: 100%;
        text-align: center; /* Center theme toggle button content */
        border-bottom: 1px solid var(--border-color);
    }
    .main-nav a:last-of-type { /* Last 'a' link */
        border-bottom: none;
    }

    /* Show hamburger button */
    .hamburger-button {
        display: flex; /* Show hamburger button on mobile */
        align-items: center;
        justify-content: center;
        order: 3; /* Position after theme toggle in header-container */
    }
    /* Adjust fixed positioning for header and make footer static on small screens */
    header {
        position: fixed;
        top: 0;
        z-index: 1000;
    }
    footer {
        position: static; /* Make footer scroll on mobile */
    }
    .section {
        padding: 3rem 0; /* Reduce vertical padding for sections on mobile */
    }
    .feature-table {
        min-width: unset; /* Allow table to shrink on mobile */
    }
    .feature-table tbody tr:nth-child(2) td { /* Target the row with "Join Early Access" buttons */
        padding: 0.5rem 0; /* Adjust padding */
        text-align: center; /* Center the buttons within their block */
    }
    .feature-table tbody tr:nth-child(2) td .cta-button {
        display: block; /* Make the button itself a block element */
        width: 80%; /* Make buttons take more width for better touch targets */
        margin: 0.5rem auto; /* Center buttons and add vertical spacing */
        max-width: 250px; /* Max width for buttons */
    }
    body { /* Refined body padding for static header/footer */
        /* padding-bottom: 0; */ /* Removed - now handled by default body rule */
    }
}

/* Body padding adjustment (Added at the end for specificity) */
body {
    padding-bottom: 70px; /* Footer height for desktop */
    font-family: 'Inter', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 0; /* No padding-bottom on mobile if footer is not fixed */
    }
}

/* Styling for new form fields */
.form-group {
    margin-bottom: 1rem; /* Spacing between form fields */
    width: 100%;
    /* max-width: 350px; */ /* Removed */
}

.signup-form .form-control { /* Apply to select and textarea */
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px; /* Match button/input styling */
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1rem;
    /* Custom styles for select arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 0.75rem 0.75rem;
    cursor: pointer;
}

.signup-form .form-control option {
    background-color: var(--primary-color); /* Option background in dark/light mode */
    color: #fff;
}

.signup-form textarea.form-control {
    border-radius: 15px; /* Adjust border-radius for textarea */
    height: auto; /* Allow textarea to size naturally */
    resize: vertical; /* Allow vertical resize only */
    line-height: 1.5;
    padding: 1rem 1.5rem; /* Adjust padding for textarea */
}

.signup-form .form-control::placeholder { /* For textarea placeholder */
    color: rgba(255, 255, 255, 0.8);
}

/* Dark theme overrides for new form elements */
[data-theme='dark'] .signup-form .form-control {
    color: var(--text-color); /* Ensure text color adapts */
    border-color: var(--border-color); /* Ensure border color adapts */
    background: rgba(0, 0, 0, 0.2); /* Darker background for form fields */
}

[data-theme='dark'] .signup-form .form-control option {
    background-color: var(--card-bg-color); /* Darker background for options */
    color: var(--text-color); /* Light text for options */
}

[data-theme='dark'] .signup-form .form-control::placeholder {
    color: var(--text-secondary-color);
}
/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
}

.testimonial-card {
    background: var(--card-bg-color);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.testimonial-card .quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Allows quotes of different lengths to push author to bottom */
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
    text-align: right;
}

/* Form messages */
#form-messages {
    margin-top: 1.5rem;
    text-align: center;
}

#form-messages p {
    padding: 0.8rem 1.5rem;
    border-radius: 50px; /* Consistent with other form elements */
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-block; /* To contain background color */
}

#form-messages p.success {
    background-color: #d4edda; /* Light green */
    color: #155724; /* Dark green */
    border: 1px solid #c3e6cb;
}

[data-theme='dark'] #form-messages p.success {
    background-color: #28a745; /* Darker green */
    color: #fff;
    border: 1px solid #218838;
}

#form-messages p.error {
    background-color: #f8d7da; /* Light red */
    color: #721c24; /* Dark red */
    border: 1px solid #f5c6cb;
}

[data-theme='dark'] #form-messages p.error {
    background-color: #dc3545; /* Darker red */
    color: #fff;
    border: 1px solid #bd2130;
}

main {
    padding-top: 90px; /* Offset for fixed header */
}
