/* GSI GlobalCert Promotional Site Styles */
/* Version 2.0 */

/* ------------------- */
/* 0. Imports & Fonts  */
/* ------------------- */

/* Google Fonts are loaded via <link> tags in the HTML for better performance. Remove any @import statements from this CSS file. */

/*
font-family: 'Poppins', sans-serif;  (For headings)
font-family: 'Inter', sans-serif;    (For body text)
*/

/* ----------------------------- */
/* 1. Global Resets & Variables  */
/* ----------------------------- */

:root {
    /* Amethyst Dusk Palette from Blueprint 5.1.2 */
    --primary: #41085F;
    --primary-variant: #5D1B8C;
    --primary-dark: #2A053F;
    --secondary: #7F1888;
    --accent: #BC2986;
    --accent-light: #D65F8D;
    --primary-text: #333333;
    --secondary-text: #676767;
    --light-background: #E9DACF;
    --light-background-alt: #F5F1ED;
    --borders-dividers: #E6E6E6;
    --success: #28A745;
    --warning: #FFC107;
    --error: #DC3545;
    --white: #ffffff;

    /* Typography from Blueprint 5.1.3 */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    font-family: var(--font-body);
    margin: 0;
    background-color: var(--light-background-alt);
    color: var(--primary-text);
    line-height: 1.6;
}

.hidepage#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 1);
    z-index: 9999;
  }

.main {
    gap: 0;
    margin:0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--primary-variant);
    transition: color 0.3s;
}

a:hover {
    color: var(--accent);
}

.section-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 3rem;
    padding-top: 1rem;
}

.problem-section, .benefits-section, .contact-section, .key-features-section, .pricing-section, .numbers-section, .cta-section {
    padding: 1rem 5% 5rem 5%;
}

/* ----------- */
/* 2. Buttons  */
/* ----------- */

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:focus {
    outline: 2px solid var(--accent-light);
    outline-offset: 2px;
}
.btn-primary {
    background-color: var(--primary-variant);
    color: white;
}
.btn-primary:hover {
    background-color: var(--secondary);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--light-background-alt);
    color: var(--light-background-alt);
    margin-right: 1.1rem;
    font-size: 0.8rem;
}
.btn-secondary:hover {
    background-color: var(--light-background-alt);
    color: var(--primary-dark);
}

.btn-accent {
    background-color: var(--accent);
    color: white;
    font-size: 1.1rem;
}
.btn-accent:hover {
    background-color: var(--accent-light);
}

.btn-accent-secondary {
    background-color: white;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-accent-secondary:hover {
    background-color: var(--accent-light);
    color: white;
    border: 1px solid var(--accent-light);
}

/* ---------------------- */
/* 3. Header & Navigation */
/* ---------------------- */

header {
    background-color: var(--primary);
    color: white;
    padding: 0.4rem 0; /* Horizontal padding moved to nav */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    vertical-align: middle;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 0 2.5%; /* Added horizontal padding */
}

.hamburger {
    display: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 3rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a:hover {
    color: var(--accent-light);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-variant);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ------------------- */
/* 4. Hero Section     */
/* ------------------- */

.hero {
    color: white;
    text-align: left;
    padding: 3rem 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(42, 5, 63, 0.85); /* Dark overlay for better text contrast */
    z-index: 0;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    background-size: cover;
    transition: opacity 3s ease-in-out;
}

#hero-fallback-image {
    display: none; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-size: cover;
    object-fit: cover;
    transition: opacity 3s ease-in-out;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 2.9rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    color: var(--light-background);
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    justify-content: left;
    gap: 1rem;
}

/* ------------------- */
/* 5. Problem Section */
/* ------------------- */

.problem-section {
    background-color: var(--light-background);
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.problem-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(233, 218, 207, 0.8);
    z-index: 1;
}

.problem-section .section-title,
.problem-section .problem-cards {
    position: relative;
    z-index: 2;
}

.problem-cards {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.card {
    background: var(--light-background-alt);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    flex: 1;
    max-width: 350px;
    text-align: center;
}

.card h3 {
    font-family: var(--font-heading);
    color: var(--secondary);
    font-size: 1.5rem;
    margin-top: 0;
}

.problem-cards .card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

/* ------------------- */
/* 6. Benefits Section */
/* ------------------- */

.benefits-section {
    padding: 1rem 10%;
    text-align: center;
}

.benefits-section h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 3rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 4rem;
    text-align: left;
    margin-bottom: 4rem;
}

.feature:last-child {
    margin-bottom: 0;
}

.feature-text {
    flex: 1;
}

.feature-text h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-dark);
}

.feature-image {
    flex: 1;
}

.feature-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.feature-text p, .feature-text ul li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* ----------------------- */
/* 7. Key Features Section */
/* ----------------------- */

.key-features-section {
    background-color: var(--primary);
}

.key-features-section .section-title{
    color: white;
    margin: 0;
    padding-top: 3rem;
}


.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1rem;
    justify-content: center;
    padding: 0 5%;
    margin-top: 3rem;
}

.feature-card {
    background: var(--primary);
    padding: 1rem;
    width: 100%;
    max-width: 460px;
    text-align: left;
    border: none;
    display: grid;
    grid-template-columns: 40px 1fr; /* Icon column and text column */
    grid-template-rows: auto 1fr;    /* Title row and description row */
    gap: 1rem;                   /* Row gap and column gap */
    align-items: start;
}

.feature-icon {
    grid-row: 1 / 2;
    grid-column: 1 / 2;
    height: 40px;
    aspect-ratio: 1 / 1;
    color: var(--accent-light);
    align-self: start;
}

.feature-card h3 {
    font-family: var(--font-heading);
    color: white;
    font-size: 1.4rem;
    grid-row: 1 / 2;
    grid-column: 2 / 3;
    align-self: start;
    margin: 0;
}

.feature-card p {
    color: white;
    font-size: 1rem;
    line-height: 1.6;
    grid-row: 2 / 3;
    grid-column: 2 / 3;
    align-self: start;
    margin: 0;
}

/* ---------------- */
/* 8. Price Section */
/* ---------------- */


.pricing-section {
    padding: 0 5%;
    background-color: var(--secondary);
    padding-bottom: 5rem;
}

.pricing-section .section-title{
    color: white;
    margin: 0;
    padding-top: 4rem;
}

.pricing-cards-container {
    display: flex;
    justify-content: center;
    align-items: stretch; /* Aligns cards vertically */
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1rem;
}

.pricing-section .subtitle {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 200;
    font-family: var(--font-heading);
    letter-spacing: 1px;

}

.pricing-card {
    border: 1px solid var(--borders-dividers);
    color: var(--white);
    border-radius: 8px;
    padding: 1rem 1rem;
    flex: 1;
    max-width: 320px;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.pricing-card.popular {
    color: var(--primary-text);
    background-color: var(--light-background-alt);
    border: 2px solid var(--primary-dark);
    position: relative;
    transform: scale(1.05);
}

.pricing-card.ultimate {
    background-color: var(--primary-variant);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-variant);
    color: #FFFFFF;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-body);
}

.pricing-card h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 0;
}

.pricing-card.popular h3 { 
    color: var(--primary);
}

.pricing-card .price {
    margin-bottom: 2rem;
    border: 1px solid var(--borders-dividers);
    border-radius: 1rem;
    padding: 0.75rem 0.75rem;
    font-size: 1.2rem;
}

.pricing-card.popular .price {
    background-color: var(--light-background-alt);
    padding: 0.5rem 0.75rem ;
}

.pricing-card .price span {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 300;
}

.pricing-card ul {
    list-style-type: circle;
    padding: 0;
    margin: 0 0 1.5rem 0;
    flex-grow: 1; /* Pushes button to the bottom */
    padding-left: 20px; 
}

.pricing-card .addition {
    font-weight: 800;
    margin-bottom: 1rem;
}

.pricing-card ul li {
    display: list-item;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    list-style: circle;
}

.pricing-card button {
    width: 100%;
    font-size: 1.2rem;
    padding: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ------------------ */
/* 9. Numbers Section */
/* ------------------ */

.numbers-section {
    background-color: var(--white);
    padding: 4rem 10% 5rem; /* Adjusted padding to remove bottom gap */
    text-align: left;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.numbers-section::before {
    content: '';
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: 1;
}


.numbers-section .section-title{
    margin: 0;
    padding-top: 4rem;
    text-align: left;
    font-size: 3rem;
}

.numbers-section .container, .numbers-section .section-title {
    position: relative;
    z-index: 2;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 3rem;
}

.stat-item {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    text-align: center;
}

.stat-item h3 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--primary-variant);
    margin: 0;
}

.stat-item .stat-header {
    font-size: 1.5rem;
    font-weight: 500;
    padding: 0;
    color: var(--primary-text);
    margin-top: 0.5rem;
}

.stat-item p {
    font-size: 1rem;
    color: var(--secondary-text);
    margin: 0;
    padding: 0.5rem;
    line-height: 1.5;
}

/* ------------------ */
/* 10. CTA Section    */
/* ------------------ */

.cta-section {
    background-color: #EEEEEE;
    color: var(--primary-text);
    padding: 0 11%;
    margin: 0;
}

.cta-container {
    display: flex;
    align-items: left;
}

.cta-text {
    width: 70%;
    padding: 4rem 5%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-buttons {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-top: 1rem;
}

.cta-section .section-title {
    margin: 0 0 1.5rem 0;
    padding-top: 0;
    text-align: left;
}

.cta-section p {
    margin-bottom: 1rem;
}

.cta-image {
    width: 30%;
}

.cta-image img {
    width: auto;
    max-height: 1000px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

/* ------------------- */
/* 11. Contact Section */
/* ------------------- */

.contact-section {
    padding: 0 5%;
    padding-bottom: 3rem;
    background-color: var(--light-background-alt);
}

.contact-section .section-title {
    margin-bottom: 0.5rem;
}

.contact-container {
    display: flex;
    gap: 3rem;
    background: white;
    padding: 1rem 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info, .contact-form {
    flex: 1;
}

.contact-info h3 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    font-size: 2.2rem;
    margin-bottom: 2.2rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    margin-bottom: 3rem;
    color: var(--secondary-text);
    font-size: 1.2rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
}

/* -------------------- */
/* 12. Footer           */
/* -------------------- */

footer {
    background-color: var(--primary-dark);
    color: #E0E0E0;
    padding: 0rem 5% 2rem 5%;
    font-size: 0.95rem;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--primary-variant);
}

.footer-about {
    flex: 1;
    display: flex;
    min-width: 500px;
    max-width: 800px;
    gap: 2rem;
    padding-right: 2rem;
    padding-top: 4rem;
}

.footer-about .logo {
    display: inline-block;
    min-width: 100px;
    padding-top: 1rem;
}

.footer-about .logo img {
    height: 100px;
    vertical-align: middle;
}

.footer-about p {
    color: var(--light-background);
    line-height: 1.6;
}

.footer-links {
    flex: 1;
    min-width: 60px;
}

.footer-links h4 {
    font-family: var(--font-heading);
    color: #FFFFFF;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    display: block;
    color: var(--light-background);
    text-decoration: none;
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #FFFFFF;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-social a {
    color: var(--light-background);
    text-decoration: none;
    margin-left: 1.5rem;
    transition: color 0.3s;
}

.footer-social a img{
    padding-right: 8px;
    width: 20px;
}

.footer-social a:hover {
    color: #FFFFFF;
}

/* -------------------- */
/* 13. Modal            */
/* -------------------- */

.modal {
    /* Visibility is controlled by opacity and visibility for smooth transitions */
    visibility: hidden;
    opacity: 0;
    position: fixed; /* Stay in place */
    z-index: 1001; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    /* Using a branded, semi-transparent color for the overlay */
    background-color: rgba(42, 5, 63, 0.6); 
    display: flex; /* Use flexbox for robust centering */
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease; /* Fade-in for overlay */
}

/* This class will be toggled via JavaScript to show the modal */
.modal.modal-visible {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background-color: var(--light-background-alt);
    padding: 2.5rem;
    border: 1px solid var(--borders-dividers);
    width: 90%;
    max-width: 600px;
    border-radius: 12px; /* Softer, more modern corners */
    position: relative;
    color: var(--primary-text);
    text-align: center;
    
    /* Enhanced shadow for better separation from the background */
    box-shadow: 0 10px 30px rgba(42, 5, 63, 0.25), 0 4px 10px rgba(42, 5, 63, 0.2);

    /* Initial state for the roll-out animation */
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease;
}

.modal-content.large {
    max-width: 1500px;
    padding: 0;
    margin:0;
    max-height: 95%;
    overflow-y: auto; /* Enable vertical scrolling if content exceeds max height */ 
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: var(--borders-dividers) var(--light-background);
}

.modal-content.form {
    max-width: 830px; 
    max-height: 95%;
    padding: 0;
    margin:0;
    overflow-y: auto; /* Enable vertical scrolling if content exceeds max height */ 
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: var(--borders-dividers) var(--light-background);
}

/* Final state for the content when the modal is visible */
.modal.modal-visible .modal-content {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.modal-content p {
    font-size: 1.1rem;
    line-height: 1.7;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: #AAAAAA;
    cursor: pointer;
    transition: color 0.2s ease;
    border: none;
    background: none;
    line-height: 1;
}

.modal-content.large .close-button {
    right: 50px;
    top: 30px;
}

.close-button:hover,
.close-button:focus {
    color: var(--primary-text);
}

/* ------------------- */
/* 14. Animations      */
/* ------------------- */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ------------------- */
/* 15. Media Queries   */
/* ------------------- */

@media (max-width: 992px) {
    .contact-container {
        flex-direction: column;
        align-items: center;
    }
    .contact-info,
    .contact-form {
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }

    /* Mobile Header Adjustments */
    header .logo {
        display: none; /* Hide logo and nav buttons on mobile */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: var(--primary);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        z-index: 1001;
    }
    .nav-links.mobile-visible {
        display: flex;
    }
    .nav-links a {
        color: white;
        text-align: left;
    }

    .nav-links a::after {
        display: none;
    }

    /* Hamburger Menu Icon Styling */
    .hamburger {
        display: block;
        position: relative;
        z-index: 1002;
        background: white; /* This is the middle bar */
        border: none;
        cursor: pointer;
        /* No margin, it will be positioned by the nav container */
        width: 30px;
        height: 3px;
        border-radius: 3px;
        transition: background .2s .2s ease-out;
    }

    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        left: 0;
        width: 100%;
        height: 3px;
        background: white;
        border-radius: 3px;
        transition: transform .2s ease-out, top .2s .2s ease-out, bottom .2s .2s ease-out;
    }

    .hamburger::before {
        top: -9px;
    }

    .hamburger::after {
        bottom: -9px;
    }

    /* Active state (X) */
    .hamburger.is-active {
        background: transparent; /* Hide middle bar */
        transition-delay: 0s;
    }

    .hamburger.is-active::before {
        top: 0;
        transform: rotate(45deg);
        transition: top .2s ease-out, transform .2s .2s ease-out;
    }

    .hamburger.is-active::after {
        bottom: 0;
        transform: rotate(-45deg);
        transition: bottom .2s ease-out, transform .2s .2s ease-out;
    }

    nav {
        position: relative;
        justify-content: space-between;
    }

    .feature {
        flex-direction: column;
        gap: 2rem;
    }

    .card, .feature {
        max-width: 350px; /* Allow cards to be wider on mobile */
    }

    .feature:nth-child(even) {
        flex-direction: column-reverse;
    }

    .cta-container {
        flex-direction: column;
    }

    .cta-text {
        width: 100%;
        padding: 3rem 2rem;
        text-align: center;
    }

    .cta-section .section-title {
        text-align: center;
    }

    .cta-buttons {
        justify-content: center;
    }

    .cta-image {
        display: none;
    }

    /* Problem section cards vertical layout */
    .problem-cards {
        flex-direction: column;
        align-items: center;
    }

    /* Footer adjustments for mobile */
    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .footer-about {
        flex-direction: column;
        min-width: 0; /* Override desktop min-width */
        padding-right: 0;
        align-items: center; /* Center the logo and the <p> block */
        gap: 1.5rem;
        padding-top: 2rem;
        width: 100%; /* Ensure it takes full width of the new centered container */
    }

    .footer-about .logo {
        padding-top: 0;
    }

    .footer-about p {
        text-align: left; /* Left-align text inside the paragraph */
    }

    .footer-links {
        min-width: 120px;
        text-align: center;
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-social {
        margin-top: 1rem;
    }

    .footer-social a {
        margin: 0 0.75rem;
    }
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0; /* Remove gap between stacked elements */
    }

    .form-group {
        margin-bottom: 20px; /* Add space between stacked form groups */
    }

    .captcha-box {
        flex-direction: row;
        align-items: center;
    }
    
    .hcaptcha-logo {
        flex-direction: row;
        align-items: center;
        margin-left: auto;
        gap: 5px;
    }
}

@media (min-width: 768px) {
            .form-row-2 {
                grid-template-columns: 1fr 1fr;
            }
            .form-row-3 {
                grid-template-columns: 1fr 1fr 1fr;
            }
            .form-row-phone {
                 grid-template-columns: 80px 1fr 2fr;
            }
            .scheduler-container {
                grid-template-columns: 1fr 1fr;
            }
        }

/* ----------------------- */
/* 16. Error 404 message   */
/* ----------------------- */

.error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6rem 5%;
    min-height: 60vh; /* Ensures it takes up significant screen height */
    background-color: var(--light-background-alt);
}

.error-content {
    max-width: 600px;
}

.error-content h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.error-content p {
    font-size: 1.1rem;
    color: var(--secondary-text);
    margin-bottom: 2rem;
}

/* ----------------------- */
/* 17. Form styles         */
/* ----------------------- */

.form-container {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
}

#contactFormContainer {
    max-width: 600px;
}

#meetRequestFormContainer, #quoteRequestFormContainer {
    max-width: 800px;
    display: block;
    margin: 0.5rem auto;
}

#meetRequestFormContainer label,#quoteRequestFormContainer label {
    text-align: left;
}

#demoRequestFormContainer{
    max-width: 1000px;
    display: block;
    margin: 0.5rem auto;
}

form {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.form-container h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
    width: 100%;
}

.form-container p {
    font-size: 1rem;
    color: var(--secondary-text);
    margin-bottom: 2.5rem;
    width: 100%;
}

.form-row {
    display: flex;
    width: 100%;
    gap: 25px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    width: 100%;
    flex: none;
}

label {
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--primary-text);
    font-size: 0.95em;
}

.sub-label {
    font-size: 0.8rem;
    color: var(--secondary-text);
    margin-top: 0.35rem;
    display: block;
}

.required {
    color: var(--error);
    margin-left: 4px;
    font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    padding: 12px 15px;
    border: 1px solid var(--borders-dividers);
    border-radius: 6px;
    font-size: 1em;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: var(--font-body);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-variant);
    box-shadow: 0 0 0 3px rgba(93, 27, 140, 0.15);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="number"]::placeholder,
input[type="tel"]::placeholder,
select:disabled,
textarea::placeholder {
    color: #a9a9a9;
}

textarea {
    resize: vertical;
    min-height: 140px;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 1.2em;
}

/* --- Scheduler --- */
.scheduler-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    border: 1px solid var(--borders-dividers);
    border-radius: 8px;
    padding: 1.5rem;
    max-width:900px;
    margin:auto;
}

.calendar-header,
.time-slots-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    color: var(--primary-dark);
}

.nav-arrow {
    color: var(--primary-variant);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s;
}
.nav-arrow:hover {
    background-color: var(--light-background);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    text-align: center;
}

.calendar-day-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary-text);
}

.calendar-day {
    font-size: 0.9rem;
    padding: 0.6rem 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.calendar-day:not(.other-month):hover {
    background-color: var(--light-background);
}

.calendar-day.other-month {
    color: #ccc;
    cursor: default;
}

.calendar-day.active {
    background-color: var(--accent);
    color: #ffffff;
    font-weight: 600;
}

/* Time Slots */
.time-slots-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.time-slots-list::-webkit-scrollbar {
    width: 8px;
}
.time-slots-list::-webkit-scrollbar-track {
    background: #f5f1ed;
    border-radius: 4px;
}
.time-slots-list::-webkit-scrollbar-thumb {
    background: #dcdcdc;
    border-radius: 4px;
}
.time-slots-list::-webkit-scrollbar-thumb:hover {
    background: #c9c9c9;
}

.time-slot {
    padding: 0.8rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    border: 1px solid var(--borders-dividers);
    color: var(--primary-variant);
    background-color: #ffffff;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-slot:hover {
    background-color: var(--light-background);
    border-color: var(--accent);
}

.time-slot.selected {
    background-color: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    font-weight: 600;
}

.timezone-select {
    margin-top: 1.5rem;
    border: 1px solid var(--borders-dividers);
    padding: 0.5rem;
    font-size: 0.9rem;
    color: var(--secondary-text);
    font-weight: 500;
    border-radius: 6px;
    width: 100%;
}

/* --- Verification --- */
.captcha-group {
    width: 100%;
    margin-top: 10px;
}

/* --- Submit Button --- */
.submit-button {
    display: block;
    margin: 1rem auto 0;
    width: 50%;
    padding: 1rem;
    font-size: 1.1rem;
}

/* Validation highlighting */
input:invalid,
select:invalid,
textarea:invalid {
    border-color: var(--error);
}
input:invalid:focus,
select:invalid:focus,
textarea:invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

/* ------------------- */
/* 18. Overlay         */
/* ------------------- */

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1005;
}

#overlay-message-box {
    padding: 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

#overlay-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.calendar-day.disabled {
    color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}

button.time-slot:disabled {
    background-color: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
}
