/* Reset any potential invalid CSS at the start of the file */
@charset "UTF-8";

/* === ARTICLES / SEO SECTION === */
.articles-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.articles-section h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 700;
}

.articles-section .lead {
    text-align: center;
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Blog Articles Grid Styles */
.blog-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.article-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.article-card:hover::before {
    transform: scaleX(1);
}

.article-card h2 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    line-height: 1.4;
    font-weight: 600;
}

.article-card h2 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-card h2 a:hover {
    color: var(--primary-color);
}

.article-meta {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-category {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.article-excerpt {
    color: #4b5563;
    margin: 1.5rem 0;
    line-height: 1.7;
    font-size: 1rem;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

/* Full Article Styles */
.article {
    background: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 3rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.article h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 700;
}

.article h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content p + p {
    margin-top: 0;
}

.article-content ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
    list-style: none;
}

.article-content ul li {
    position: relative;
    margin-bottom: 0.75rem;
    padding-left: 1rem;
}

.article-content ul li::before {
    content: '✓';
    position: absolute;
    left: -1rem;
    color: var(--primary-color);
    font-weight: bold;
}

.article-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Blog Container for Individual Articles */
.blog-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.blog-article {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.article-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.article-header .article-meta {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
}

.blog-article .article-content {
    padding: 3rem;
}

/* Advantages Grid */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.advantage-item {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.advantage-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.advantage-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Program Grid */
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.program-item {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.program-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    margin: 3rem 0;
}

.cta-section h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Ensure bold text in blue CTA blocks keeps good contrast */
.cta-section strong {
    color: inherit;
}

/* Improve contrast for primary CTA button inside blue CTA sections */
.cta-section .cta-button {
    background-color: #ffffff;
    color: var(--primary-color);
    border: 2px solid #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.cta-section .cta-button:hover {
    background-color: #f1f5f9;
    color: var(--primary-color);
}

.article-cta {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin: 2rem 0;
}

.cta-inline {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cta-inline:hover {
    color: var(--accent-color);
}

/* FAQ Styles */
.faq {
    margin-top: 2rem;
}

.faq details {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    background: #fff;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.faq details:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text-color);
    padding: 0.5rem 0;
}

.faq details[open] summary {
    color: var(--primary-color);
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .articles-section {
        padding: 1rem;
    }
    
    .articles-section h1 {
        font-size: 2rem;
    }
    
    .blog-articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .article-card {
        padding: 1.5rem;
    }
    
    .article {
        padding: 2rem 1.5rem;
    }
    
    .article h2 {
        font-size: 1.8rem;
    }
    
    .article h3 {
        font-size: 1.4rem;
    }
    
    .blog-container {
        padding: 1rem;
    }
    
    .article-header {
        padding: 2rem 1rem;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .blog-article .article-content {
        padding: 2rem 1.5rem;
    }
    
    .advantages-grid,
    .program-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-section {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .article-card h2 {
        font-size: 1.2rem;
    }
    
    .article-header h1 {
        font-size: 1.6rem;
    }
    
    .article h2 {
        font-size: 1.6rem;
    }
}

/* === NAV: external blog link === */
.nav-external {
    display: inline-block;
    margin-left: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

/* === BOXED LAYOUT (80% width) === */
main,
.stage-container,
.footer-container,
.articles-section,
#about .about-container,
.legal-page,
.form-summary {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

/* Box hero inner content while keeping full-bleed background */
.hero > * {
    width: 80%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Box the hero container itself (no full width) */
.hero {
    width: 100%;
    max-width: none; /* allow full-bleed hero */
    margin-left: auto;
    margin-right: auto;
}

/* Mobile: widen boxed layout for better use of space */
/* Mobile: full width for very small screens to prevent horizontal scrolling */
@media (max-width: 768px) {
    .navbar,
    main,
    .stage-container,
    .footer-container,
    .articles-section,
    #about .about-container,
    .form-summary {
        width: 100%;
    }
    .hero,
    .hero > * {
        width: 100%;
    }
    
    /* Reduce padding on smaller screens to prevent overflow */
    main {
        padding: 0 1.5rem;
    }
    /* Tighter nav padding on mobile */
    nav {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 2.5rem 1.5rem;
    }

    /* Footer bottom bar full width on mobile */
    .footer-bottom {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .navbar,
    main,
    .stage-container,
    .footer-container,
    .articles-section,
    #about .about-container,
    .legal-page,
    .form-summary,
    .hero,
    .hero > * {
        width: 100%;
    }
    
    main {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
}

.nav-external:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .nav-external {
        font-size: 0.95rem;
        margin-left: 0.5rem;
    }
}

/* === Hero media helper (keep background from critical CSS) === */
.hero .hero-media {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === Map placeholder === */
.map-placeholder {
    position: relative;
    width: 100%;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    background: #e5e7eb;
}
.map-placeholder iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.map-skeleton {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #e5e7eb 0%, #f3f4f6 50%, #e5e7eb 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
.map-load-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

@media (min-width: 768px) {
    .map-placeholder { height: 340px; }
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
/* === VARIABLES === */
:root {
    --primary-color: #005A9C; /* A strong, professional blue */
    --secondary-color: #F8F9FA; /* A very light gray for section backgrounds */
    --accent-color: #007BFF; /* A brighter blue for interactive elements */
    --text-color: #343A40; /* A dark gray for readable text */
    --light-gray: #E9ECEF; /* For borders and dividers */
    --white: #ffffff;
    --border-radius: 8px; /* Slightly reduced for a sharper look */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* Softer, more subtle shadow */
    --transition: all 0.3s ease-in-out;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --primary-color: #60A5FA;
        --secondary-color: #020617;
        --accent-color: #3B82F6;
        --text-color: #E5E7EB;
        --light-gray: #1F2937;
        --white: #020617;
        --border-radius: 8px;
        --shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    }

    html:not([data-theme]) body {
        background-color: #020617;
        color: var(--text-color);
    }

    html:not([data-theme]) header {
        background-color: rgba(15, 23, 42, 0.9);
        border-bottom-color: #1F2937;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
    }

    html:not([data-theme]) section {
        border-bottom-color: #1F2937;
    }

    html:not([data-theme]) .article-card,
    html:not([data-theme]) .article,
    html:not([data-theme]) .blog-article,
    html:not([data-theme]) .cta-section,
    html:not([data-theme]) .enrollment-card,
    html:not([data-theme]) .tab-container,
    html:not([data-theme]) .form-summary,
    html:not([data-theme]) .session-card {
        background-color: #020617;
        color: var(--text-color);
        border-color: #1F2937;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
    }

    html:not([data-theme]) .advantage-item {
        background-color: #020617;
        border-color: #1F2937;
    }

    html:not([data-theme]) .program-item {
        background: linear-gradient(135deg, #020617, #111827);
        border-left-color: var(--primary-color);
    }

    html:not([data-theme]) .article-cta {
        background-color: #020617;
    }

    html:not([data-theme]) .faq details {
        background: #020617;
        border-color: #1F2937;
    }

    html:not([data-theme]) nav ul,
    html:not([data-theme]) #primary-navigation {
        background-color: #020617;
        border-top: 1px solid #1F2937;
    }

    html:not([data-theme]) nav ul li {
        border-bottom-color: #1F2937;
    }

    html:not([data-theme]) .hero-stat {
        background: rgba(15, 23, 42, 0.9);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.9);
    }

    html:not([data-theme]) .map-placeholder {
        background: #020617;
    }

    html:not([data-theme]) footer {
        background-color: #020617;
        color: var(--text-color);
    }

    html:not([data-theme]) .footer-bottom {
        background-color: #020617;
        border-top: 1px solid #1F2937;
        color: var(--text-color);
    }

    html:not([data-theme]) footer a {
        color: #93C5FD;
    }
}

/* Manual dark theme override via data-theme="dark" on <html> */
:root[data-theme="dark"] {
    --primary-color: #60A5FA;
    --secondary-color: #020617;
    --accent-color: #3B82F6;
    --text-color: #E5E7EB;
    --light-gray: #1F2937;
    --white: #020617;
    --border-radius: 8px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

html[data-theme="dark"] body {
    background-color: #020617;
    color: var(--text-color);
}

html[data-theme="dark"] header {
    background-color: rgba(15, 23, 42, 0.9);
    border-bottom-color: #1F2937;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

html[data-theme="dark"] section {
    border-bottom-color: #1F2937;
}

html[data-theme="dark"] .article-card,
html[data-theme="dark"] .article,
html[data-theme="dark"] .blog-article,
html[data-theme="dark"] .cta-section,
html[data-theme="dark"] .enrollment-card,
html[data-theme="dark"] .tab-container,
html[data-theme="dark"] .form-summary,
html[data-theme="dark"] .session-card {
    background-color: #020617;
    color: var(--text-color);
    border-color: #1F2937;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
}

html[data-theme="dark"] .advantage-item {
    background-color: #020617;
    border-color: #1F2937;
}

html[data-theme="dark"] .program-item {
    background: linear-gradient(135deg, #020617, #111827);
    border-left-color: var(--primary-color);
}

html[data-theme="dark"] .article-cta {
    background-color: #020617;
}

html[data-theme="dark"] .faq details {
    background: #020617;
    border-color: #1F2937;
}

html[data-theme="dark"] nav ul,
html[data-theme="dark"] #primary-navigation {
    background-color: #020617;
    border-top: 1px solid #1F2937;
}

html[data-theme="dark"] nav ul li {
    border-bottom-color: #1F2937;
}

html[data-theme="dark"] .hero-stat {
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.9);
}

html[data-theme="dark"] .map-placeholder {
    background: #020617;
}

html[data-theme="dark"] footer {
    background-color: #020617;
    color: var(--text-color);
}

html[data-theme="dark"] .footer-bottom {
    background-color: #020617;
    border-top: 1px solid #1F2937;
    color: var(--text-color);
}

html[data-theme="dark"] footer a {
    color: #93C5FD;
}

/* === GENERAL STYLES === */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background-color: var(--white);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent accidental horizontal scroll */
}

/* Global box-sizing for predictable sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 6px;
}

/* Responsive media defaults */
img, svg, video, canvas, iframe {
    max-width: 100%;
    height: auto;
}

/* === HEADER & NAVIGATION === */
header {
    background-color: var(--white);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.theme-toggle {
    margin-left: 1rem;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid var(--light-gray);
    background: var(--white);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
    outline: none;
    transition: var(--transition);
}

.theme-toggle::before {
    content: '☀';
}

.theme-toggle.is-dark::before {
    content: '🌙';
}

.theme-toggle:focus-visible {
    box-shadow: 0 0 0 2px var(--accent-color);
}

/* Navbar inner container (used sur certaines pages, harmonisé avec la home) */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
}

.logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    transition: var(--transition);
}
.logo img:hover {
    transform: scale(1.05);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    cursor: pointer;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}
/* Mobile navigation behavior */
@media (max-width: 768px) {
    nav {
        flex-direction: row;
        justify-content: space-between;
    }
    nav ul {
        position: fixed; /* overlay over page content */
        top: 75px;
        left: 0;
        right: 0;
        background-color: #fff;
        width: 100%;
        flex-direction: column;
        text-align: center;
        gap: 0;
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
        display: none;
        z-index: 2000; /* above sticky header and hero */
    }
    /* Stronger specificity to avoid conflicts with other stylesheets */
    #primary-navigation {
        position: fixed;
        top: 75px;
        left: 0;
        right: 0;
        background: #fff;
        width: 100%;
        flex-direction: column;
        text-align: center;
        gap: 0;
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
        display: none;
        z-index: 3000;
    }
    #primary-navigation.active { display: flex !important; }
    nav ul.active { display: flex; }
    nav ul li { border-bottom: 1px solid #f0f0f0; }
    /* Make links full-width, centered, with ample tap targets */
    nav ul li a {
        display: block;
        width: 100%;
        padding: 1.25rem 1rem;
        text-align: center;
    }
    .hamburger { display: flex; }
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    letter-spacing: 0.3px;
    font-size: 1rem;
}

nav ul li:last-child a {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white !important;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

nav ul li:last-child a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, #43A047 0%, #1B5E20 100%);
}

nav ul li:last-child a::after {
    display: none;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

nav ul li a:hover,
nav ul li a:hover::after,
nav ul li a.active::after {
    color: var(--accent-color);
    width: 100%;
}


/* === HERO SECTION === */
.hero {
    text-align: center;
    padding: 4rem 2rem 6rem;
    min-height: 50vh;
    background-image: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), image-set(
        url('anis/IMG-20250717-WA0014.webp') type('image/webp') 1x,
        url('anis/IMG-20250717-WA0014.jpg') type('image/jpeg') 1x
    );
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--light-gray);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 90, 156, 0.1) 0%, rgba(0, 123, 255, 0.05) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    color: #0b2239;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
    line-height: 1.1;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #0b2239;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0,0,0,0.15);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-cta-primary,
.hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

.hero-cta-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, #0056b3 100%);
    color: white;
    border: 2px solid transparent;
}

.hero-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
    background: linear-gradient(135deg, #0056b3 0%, var(--accent-color) 100%);
}

.hero-cta-secondary {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    backdrop-filter: blur(10px);
}

.hero-cta-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 90, 156, 0.2);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    min-width: 120px;
}

.hero-stat .stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.hero-stat .stat-label {
    display: block;
    font-size: 0.9rem;
    color: #4a5568;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 1;
}

.hero-scroll-indicator svg {
    width: 24px;
    height: 24px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}


/* === MAIN CONTENT === */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 3rem 0;
    border-bottom: 1px solid var(--light-gray);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section:last-child {
    border-bottom: none;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

/* About Section */
#about .about-container {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

#about .about-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

#about .about-stats {
    margin-top: 2rem;
    display: flex;
    gap: 2rem;
    background-color: var(--secondary-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--accent-color);
}

#about .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

#about .stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

#about .stat-label {
    font-size: 1rem;
    color: var(--text-color);
}

#about .about-image img {
    width: 100%;
    max-width: 280px;
    border-radius: 50%;
    border: 5px solid var(--white);
    box-shadow: var(--shadow);
}

/* Gallery Section */
#gallery .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

#gallery .gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

#gallery .gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Enrollment Section */
.form-download-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.form-download-buttons .cta-button-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}


.tab-container {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--light-gray);
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    background-color: var(--secondary-color);
}

.tab-button {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--text-color);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--accent-color);
}

/* Multi-step Form */
.progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #e0e0e0;
    transform: translateY(-50%);
    z-index: 1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100px; /* Adjust as needed */
}

.progress-step span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    border: 3px solid #e0e0e0;
    color: #e0e0e0;
    font-weight: bold;
    transition: all 0.4s ease;
    margin-bottom: 5px;
}

.progress-step.active span {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: #fff;
}

.progress-step.completed span {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: #fff;
}

.progress-step.completed span::after {
    content: '✓';
    font-size: 20px;
    color: #fff;
}

.progress-step p {
    font-size: 14px;
    color: #a0a0a0;
    text-align: center;
    transition: color 0.4s ease;
}

.progress-step.active p,
.progress-step.completed p {
    color: var(--primary-color);
    font-weight: 600;
}


.form-step {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
    scroll-margin-top: 100px; /* Add space for fixed headers */
}

.form-step.active {
    display: block;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.form-content {
    display: none;
    padding: 2.5rem;
    animation: fadeIn 0.5s ease-in-out;
}

.form-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

form {
    display: grid;
    gap: 1.5rem;
}

form h3 {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

form h4 {
    grid-column: 1 / -1;
    font-size: 1.2rem;
    color: var(--primary-color);
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 0.5rem;
    margin-top: 1rem;
}

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

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Unified Input Styles */
.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--secondary-color);
    color: var(--text-color);
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group input:focus, 
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

/* Validation Styling */
.form-group .is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.form-group .validation-error {
    color: #dc3545;
    font-weight: 500;
}

/* Custom Checkbox and Radio */
.checkbox-group,
.radio-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.checkbox-group label,
.radio-group label {
    cursor: pointer;
    font-weight: normal;
    margin-bottom: 0;
}

.checkbox-group input,
.radio-group input {
    display: none;
}

.checkbox-group .custom-control,
.radio-group .custom-control {
    width: 20px;
    height: 20px;
    border: 2px solid var(--light-gray);
    border-radius: 4px;
    display: inline-block;
    transition: var(--transition);
    flex-shrink: 0;
}

.radio-group .custom-control {
    border-radius: 50%;
}

.checkbox-group input:checked + .custom-control,
.radio-group input:checked + .custom-control {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: center;
}

.radio-group input:checked + .custom-control {
     background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
}

.form-group input[type="checkbox"] {
    display: none; /* Hide original checkbox */
}

.form-group input[type="checkbox"] + label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 30px;
}

.form-group input[type="checkbox"] + label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--light-gray);
    border-radius: 4px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.form-group input[type="checkbox"]:checked + label::before {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.form-group input[type="checkbox"] + label::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 50%;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: translateY(-60%) rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s;
}

.form-group input[type="checkbox"]:checked + label::after {
    opacity: 1;
}

.form-group-grid {
    display: grid;
    gap: 1.5rem;
}

.form-group-grid.two-cols {
    grid-template-columns: 1fr 1fr;
}

.form-group-grid.three-cols {
    grid-template-columns: 1fr 1fr 1fr;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.pricing-table {
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    margin-top: 1.5rem;
    overflow: hidden;
}

.pricing-table table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.pricing-table th, .pricing-table td {
    padding: 0.75rem;
    border: 1px solid var(--light-gray);
}

.pricing-table th {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.pricing-table .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* Contact Section */
#contact {
    text-align: center;
}

#contact h2 {
    margin-bottom: 1.5rem;
}

#contact a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

#contact a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Footer */
footer {
    padding: 2rem 0;
    background: transparent; /* box layout */
    border-top: none;
    color: var(--text-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 2rem;
    background-color: var(--secondary-color);
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.footer-column h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.footer-logo {
    height: 60px;
    border-radius: 50%;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.footer-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-info i {
    color: var(--accent-color);
    width: 20px;
    text-align: center;
}

.footer-info a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-map iframe {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.footer-bottom {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--light-gray);
    font-size: 0.9rem;
}

/* ===== Footer CTA ===== */
.footer-cta {
    margin-top: 1.5rem;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.footer-cta p {
    color: #343a40;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.footer-cta .cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white !important;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    margin-top: 0.5rem;
    font-size: 1rem;
}

.footer-cta .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, #43A047 0%, #1B5E20 100%);
}

.footer-cta .cta-button i {
    font-size: 1.1em;
}

/* Ensure the button is visible on all backgrounds */
.footer-cta .cta-button:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* WhatsApp Bubble */
.whatsapp-bubble {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: var(--transition);
    z-index: 1000;
}

.whatsapp-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.whatsapp-bubble a {
    color: white;
    font-size: 2rem;
    text-decoration: none;
}


/* === STAGE INTENSIF SECTION (OLD) === */
/* This is the old code, I'm commenting it out for reference but it can be deleted */
/*
.stage-section {
    background: transparent; 
    padding: 2rem 0;
    border-bottom: none;
}
.stage-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--secondary-color);
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2.5rem 2rem;
}

.stage-header {
    text-align: center;
    margin-bottom: 3rem;
}

.stage-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stage-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-color);
}

.stage-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.stage-card.subjects-card {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.sessions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.sessions-section {
    width: 100%;
}

.sessions-section h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

@media (max-width: 1024px) {
    .sessions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sessions-grid {
        grid-template-columns: 1fr;
    }
    
    .stage-card.subjects-card {
        margin-bottom: 1.5rem;
    }
}

.stage-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--light-gray);
    transition: var(--transition);
}

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

.stage-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-color);
}

.stage-card h3 i {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.subjects-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.subjects-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.subjects-list li::before {
    content: '✓';
    color: var(--accent-color);
    font-weight: 600;
}

.subjects-list li:last-child {
    border-bottom: none;
}

.format-info, .discount-info {
    margin-top: 1.5rem;
    background-color: var(--secondary-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.format-info i, .discount-info i {
    color: var(--accent-color);
}

.discount-info {
    background-color: #e7f3ff; 
    color: var(--primary-color);
    font-weight: 500;
}

.discount-info i {
    color: var(--primary-color);
}

.session-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--light-gray);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.session-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.session-card h4 {
    font-size: 1.2rem;
    margin: 0 0 0.75rem 0;
    color: var(--primary-color);
    font-weight: 600;
    padding-right: 2rem;
}

.session-card p {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.5;
}

.session-card p:last-child {
    margin-bottom: 0;
}

.session-dates {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.5rem 0 0 0;
    padding: 0.5rem 0.8rem;
    background: var(--accent-color-light);
    border: 1px solid var(--accent-color);
    border-radius: 6px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
    width: fit-content;
}

.session-dates svg { color: var(--primary-color); }
*/

/* === INTENSIVE COURSES SECTION === */
#stage-intensif {
    background: linear-gradient(135deg, #f5f8ff 0%, #e6f0ff 100%);
    padding: 5.5rem 0 6rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#stage-intensif::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    background-size: 200% 100%;
    animation: gradientBG 8s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#stage-intensif .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

#stage-intensif .text-center {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 4rem;
    position: relative;
}

#stage-intensif h2 {
    color: var(--primary-color);
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #2c3e50 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#stage-intensif h2::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), #6c63ff);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.25);
}

#stage-intensif .lead {
    font-size: 1.35rem;
    color: #4a5568;
    line-height: 1.7;
    margin: 1.5rem auto 0;
    max-width: 750px;
    font-weight: 400;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

#stage-intensif .text-muted {
    color: #6c757d;
    font-size: 1.1rem;
}

/* Format Section */
.format-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    padding: 3rem 3rem 2.5rem;
    margin-bottom: 3.5rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.format-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.format-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    transition: all 0.5s ease;
}

.format-section:hover::before {
    width: 8px;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
}

.format-section h3 {
    color: var(--primary-color);
    font-size: 1.7rem;
    margin: 0 0 1.75rem 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: -0.3px;
    position: relative;
    padding-bottom: 0.75rem;
}

.format-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), rgba(108, 99, 255, 0.5));
    border-radius: 3px;
}

.format-section h3 svg {
    width: 28px;
    height: 28px;
    color: var(--accent-color);
    filter: drop-shadow(0 2px 4px rgba(108, 99, 255, 0.2));
}

.format-section p {
    font-size: 1.15rem;
    color: #4a5568;
    margin: 0 0 1.75rem 0;
    line-height: 1.75;
    letter-spacing: 0.01em;
    max-width: 900px;
}

.format-section h4 {
    font-size: 1.4rem;
    color: #2d3748;
    margin: 2.5rem 0 1.25rem 0;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    padding-left: 10px;
}

.format-section h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(to bottom, var(--accent-color), #6c63ff);
    border-radius: 4px;
}

/* Subjects List */
.subjects-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin: 0.5rem 0 2rem 0;
    padding: 0;
    list-style: none;
}

.subjects-list li {
    background: linear-gradient(135deg, #f0f7ff 0%, #e1eeff 100%);
    color: var(--primary-color);
    padding: 0.7rem 1.4rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 123, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.subjects-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.subjects-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.12);
    color: #0056b3;
    border-color: rgba(0, 123, 255, 0.2);
}

.subjects-list li:hover::before {
    opacity: 1;
}

.subjects-list li::after {
    content: '•';
    margin-left: 0.5rem;
    color: var(--accent-color);
    font-size: 1.5rem;
    line-height: 1;
    position: relative;
    top: -1px;
}

.subjects-list li:last-child::after {
    display: none;
}

/* Info Alert */
.alert-info {
    background: linear-gradient(135deg, #e7f5ff 0%, #d8efff 100%);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 10px;
    font-size: 1.1rem;
    color: #0a58ca;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 2.5rem 0 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 123, 255, 0.1);
}

.alert-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 0;
}

.alert-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.alert-info svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 123, 255, 0.2));
}

.alert-info div {
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

.alert-info strong {
    color: #0a58ca;
    font-weight: 600;
}

.alert-info .highlight {
    display: inline-block;
    background: rgba(255, 255, 255, 0.7);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    margin: 0 0.2rem;
    border: 1px solid rgba(0, 123, 255, 0.1);
}

/* Sessions Grid */
.sessions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin: 3rem 0 1rem;
    padding: 0.5rem;
}

.session-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    transform: translateY(0);
}

.session-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.session-card .card-body {
    padding: 2.25rem 2rem 2rem;
    flex: 1;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.session-card h5 {
    font-size: 1.5rem;
    margin: 0.5rem 6rem 0.75rem 0; /* Increased right margin for badge */
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.3px;
    position: relative;
    padding-bottom: 0.75rem;
    padding-right: 0.5rem;
    max-width: calc(100% - 6.5rem); /* Prevent text from getting too close to badge */
}

.session-card h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), rgba(108, 99, 255, 0.3));
    border-radius: 3px;
}

.session-card h6 {
    font-size: 1rem;
    color: #6c757d;
    margin: 0 0 1.25rem;
    font-weight: 600;
    display: inline-block;
    background: rgba(108, 117, 125, 0.08);
    padding: 0.35rem 0.8rem;
    border-radius: 50px;
    letter-spacing: 0.3px;
}

.session-card p {
    margin: 0.5rem 0 2rem;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.session-card p svg {
    flex-shrink: 0;
    color: var(--accent-color);
    width: 18px;
    height: 18px;
    filter: drop-shadow(0 2px 3px rgba(108, 99, 255, 0.15));
}

.session-card .btn {
    width: 100%;
    margin-top: auto;
    padding: 0.9rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.05rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, var(--primary-color), #1a365d);
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.session-card .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color), #5a52d9);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.session-card .btn:hover::before {
    opacity: 1;
}

.session-card .btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.session-card .btn:disabled {
    background: #e9ecef;
    color: #adb5bd;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.session-card .btn:disabled:hover::before {
    opacity: 0;
}

/* Session badges */
.session-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: linear-gradient(135deg, var(--accent-color), #5a52d9);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    min-width: 110px;
    text-align: center;
    box-sizing: border-box;
}

.session-badge.coming-soon {
    background: linear-gradient(135deg, #6c757d, #5a6268);
}

.session-badge.completed {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    text-decoration: line-through;
    opacity: 0.9;
}

/* Completed session style */
.session-card.completed {
    position: relative;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    background-image: repeating-linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.02),
        rgba(0, 0, 0, 0.02) 10px,
        rgba(0, 0, 0, 0.03) 10px,
        rgba(0, 0, 0, 0.03) 20px
    );
    overflow: hidden;
}

.session-card.completed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.95) 0%, rgba(233, 236, 239, 0.95) 100%);
    z-index: 1;
    pointer-events: none;
}

.session-card.completed::after {
    content: 'TERMINÉ';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 3.5rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.05);
    z-index: 1;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
}

.session-card.completed .card-body {
    position: relative;
    z-index: 2;
}

.session-card.completed .session-badge {
    background: #6c757d;
    z-index: 3;
    box-shadow: none;
    text-decoration: line-through;
    opacity: 0.8;
}

.session-card.completed h5,
.session-card.completed h6,
.session-card.completed p,
.session-card.completed svg {
    color: #adb5bd;
    opacity: 0.9;
    position: relative;
}

.session-card.completed h5 {
    text-decoration: line-through;
    color: #6c757d;
    opacity: 0.8;
}

.session-card.completed h5::after {
    background: #dee2e6;
}

.session-card.completed h6 {
    background: rgba(108, 117, 125, 0.1);
    color: #adb5bd;
}

.session-card.completed .btn {
    background: #e9ecef;
    color: #adb5bd;
    box-shadow: none;
    cursor: not-allowed;
}

.session-card.completed .btn::before {
    display: none;
}

.session-card.completed:hover {
    transform: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    cursor: not-allowed;
}

/* Featured Session */
.session-card.featured {
    border: 2px solid var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .sessions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #stage-intensif {
        padding: 3rem 0;
    }
    
    #stage-intensif h2 {
        font-size: 2rem;
    }
    
    .format-section {
        padding: 1.8rem;
    }
    
    .sessions-grid {
        grid-template-columns: 1fr;
    }
    
    .subjects-list {
        justify-content: center;
    }
    
    .alert-info {
        flex-direction: column;
        text-align: center;
    }
    
    .alert-info svg {
        margin-bottom: 0.5rem;
    }
}

#stage-intensif .col-md-6 {
    flex: 0 0 auto;
    width: 50%;
}

#stage-intensif .col-lg-4 {
    flex: 0 0 auto;
    width: 33.33333333%;
}

#stage-intensif .mb-4 {
    margin-bottom: 1.5rem;
}

#stage-intensif .card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0,0,0,.125);
    border-radius: .25rem;
    transition: var(--transition);
}

#stage-intensif .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

#stage-intensif .h-100 {
    height: 100%;
}

#stage-intensif .shadow-sm {
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
}

#stage-intensif .border-primary {
    border-color: var(--primary-color);
}

#stage-intensif .card-body {
    flex: 1 1 auto;
    padding: 1.25rem;
}

#stage-intensif .d-flex {
    display: flex;
}

#stage-intensif .flex-column {
    flex-direction: column;
}

#stage-intensif .card-title {
    margin-bottom: .5rem;
}

#stage-intensif .text-primary {
    color: var(--primary-color);
}

#stage-intensif .card-subtitle {
    margin-top: -.25rem;
    margin-bottom: 0;
}

#stage-intensif .card-text {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

#stage-intensif .card-text svg {
    margin-right: 0.5rem;
}

#stage-intensif .btn {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: .375rem .75rem;
    font-size: 1rem;
    border-radius: .25rem;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

#stage-intensif .btn-primary {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

#stage-intensif .btn-primary:hover {
    background-color: #004a80;
    border-color: #004a80;
}

#stage-intensif .btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

#stage-intensif .btn:disabled {
    opacity: .65;
}

#stage-intensif .mt-auto {
    margin-top: auto;
}

/* Responsive Grid */
@media (max-width: 992px) {
    #stage-intensif .col-lg-4 {
        width: 50%;
    }
    #stage-intensif .col-lg-8 {
        width: 83.33333333%;
    }
}

@media (max-width: 768px) {
    #stage-intensif .col-md-6 {
        width: 100%;
    }
    #stage-intensif .col-lg-8 {
        width: 100%;
    }
}


/* Legal Page Styles */
.legal-page {
    max-width: 900px;
    margin: 4rem auto;
    background-color: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.legal-page h2 {
    text-align: left;
    margin-bottom: 2rem;
}

.legal-page h3 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 0.5rem;
}

.legal-page p, .legal-page li {
    line-height: 1.8;
}

.legal-page ul {
    padding-left: 20px;
}

.legal-page article {
    margin-bottom: 1.5rem;
}

.legal-form {
    margin-top: 3rem;
}

.form-group-inline {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
}

.form-group-inline .form-group {
    flex: 1;
}

.radio-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    margin-right: 20px;
    cursor: pointer;
}

.radio-group.horizontal {
    flex-direction: row;
}

.radio-group-vertical {
    display: flex;
    flex-direction: column;
}

.radio-group-vertical label {
    margin-bottom: 10px;
}

.checkbox-group-vertical {
    display: flex;
    flex-direction: column;
}

.checkbox-group-vertical label {
    margin-bottom: 10px;
}

.checkbox-group-horizontal {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
}

.checkbox-group-horizontal label {
    margin-right: 15px;
    margin-bottom: 10px;
}

.info-text {
    font-size: 0.9em;
    color: #666;
    background-color: #f7f9fc;
    padding: 10px;
    border-radius: 5px;
    margin: 15px 0;
    text-align: center;
}

/* Pricing Table */
.pricing-table {
    margin: 20px 0;
    border-collapse: collapse;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.pricing-table.static table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table.static th, .pricing-table.static td {
    padding: 15px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.pricing-table.static th {
    background-color: #f7f9fc;
    font-weight: 600;
}

.pricing-table.static td {
    background-color: #fff;
}

.pricing-table.static td strong {
    color: var(--primary-color);
}


.pricing-table table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table th, .pricing-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.pricing-table th {
    background-color: #f7f9fc;
}

.pricing-table .price {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.2em;
}

.creneaux-table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
}

.creneaux-table th, .creneaux-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}

.creneaux-table th {
    background-color: #f7f9fc;
    font-weight: 600;
}

.creneaux-table td {
    background-color: #fff;
}

.creneaux-table .checkbox-group {
    justify-content: center;
    margin: 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: var(--white);
    margin: 15% auto;
    padding: 2rem;
    border: 1px solid var(--light-gray);
    width: 90%;
    max-width: 500px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
    animation: slideInDown 0.4s ease-out;
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
}

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

#modal-message {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 500;
}

@keyframes slideInDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Custom File Input */
.file-input {
    display: none;
}

.file-input-label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--secondary-color);
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.file-input-label:hover {
    background-color: var(--light-gray);
}

.file-name {
    margin-left: 1rem;
    font-style: italic;
    color: var(--text-color);
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* === RESPONSIVE DESIGN === */
@media (max-width: 992px) {
    #about .about-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
     #about .about-image {
        order: -1;
        margin: 0 auto;
    }
    
    .stage-icons {
        gap: 2rem;
    }
    
    .stage-header h2 {
        font-size: 2.5rem;
    }
    
    .stage-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-details {
        flex-direction: column;
        align-items: center;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 768px) {
    nav {
        flex-direction: row; /* Keep logo and hamburger on one line */
        justify-content: space-between;
        position: relative; /* Anchor absolute dropdown */
    }

    .nav-links {
        position: absolute;
        top: 75px; /* Position below header */
        left: 0;
        background-color: #ffffff;
        width: 100%;
        flex-direction: column;
        text-align: center;
        gap: 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        z-index: 1000;
        display: none;
        padding: 0;
        margin: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        padding: 1.25rem 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .hamburger {
        display: flex; /* Show burger on mobile */
        cursor: pointer;
        font-size: 1.5rem;
        color: var(--primary-color);
    }

    .hero {
        padding: 2.5rem 1.25rem;
        min-height: 36vh;
        background-position: center top;
    }

    .hero h1 {
        font-size: 2.1rem;
        margin-bottom: 0.6rem;
        line-height: 1.2;
    }

    .hero p.hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 1.8rem;
        padding: 0 0.5rem;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .hero-cta-primary,
    .hero-cta-secondary {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        font-size: 1rem;
        padding: 0.9rem 1.4rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .hero-stat {
        flex: 1 1 100%;
        min-width: 0;
    }

    .hero-stat .stat-number {
        font-size: 1.8rem;
    }

    .hero-stat .stat-label {
        font-size: 0.85rem;
    }

    section {
        padding: 2rem 0;
    }

    h2 {
        margin-bottom: 1.5rem;
    }

    .tab-buttons {
        flex-direction: column;
    }

    .tab-button {
        width: 100%;
        border-bottom: 1px solid #ddd;
    }
    
    .stage-section {
        padding: 3rem 1rem;
    }
    
    .stage-icons {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stage-header h2 {
        font-size: 2rem;
    }
    
    .stage-subtitle {
        font-size: 1.1rem;
    }
    
    .stage-description {
        font-size: 1rem;
    }
    
    .subjects-section,
    .sessions-section,
    .pricing-section,
    .contact-section {
        padding: 1.5rem;
    }
    
    .session-card {
        position: relative;
    }
    
    .pricing-badge {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .sessions-grid {
        grid-template-columns: 1fr;
    }
}

.schedule-table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
}

.schedule-table th,
.schedule-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
    vertical-align: middle;
}

.schedule-table th {
    background-color: #f7f9fc;
    font-weight: 600;
}

.schedule-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.schedule-table .checkbox-group {
    justify-content: center;
    margin: 0;
}

.add-btn {
    background-color: #6c757d;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.add-btn:hover {
    background-color: #5a6268;
}

.added-contact {
    position: relative;
    padding: 20px;
    margin-top: 15px;
    border: 1px dashed #ccc;
    border-radius: 8px;
    background-color: #fafafa;
}

.pricing-table tr.highlighted {
    background-color: var(--accent-color-light) !important;
    --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4d4d;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.remove-btn:hover {
    background: #cc0000;
}

/* === FORM IMPROVEMENTS === */
.form-step {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s ease-in-out;
}

.form-step.active {
    opacity: 1;
    transform: translateX(0);
}

.form-step.prev {
    transform: translateX(-20px);
}

.form-step.next {
    transform: translateX(20px);
}

/* Progress Bar Improvements */
.progress-bar {
    margin: 2rem 0;
    padding: 1rem;
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.progress-step {
    position: relative;
    transition: all 0.4s ease;
}

.progress-step.active {
    transform: scale(1.1);
}

.progress-step.completed span {
    background: var(--accent-color);
    color: var(--white);
}

/* Form Validation Improvements */
.form-group {
    position: relative;
}

.form-group .validation-message {
    position: absolute;
    bottom: -20px;
    left: 0;
    font-size: 0.8rem;
    color: #dc3545;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.form-group.error .validation-message {
    opacity: 1;
    transform: translateY(0);
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #dc3545;
}

.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: #28a745;
}

/* Format Hints */
.format-hint {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 0.8rem;
    pointer-events: none;
}

/* === ENROLLMENT SECTION === */
.enrollment-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 1rem;
    position: relative;
    overflow: hidden;
}

.enrollment-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.enrollment-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.enrollment-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.enrollment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.enrollment-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.enrollment-card h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.enrollment-lead {
    color: #6c757d;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.download-options {
    margin: 2rem 0;
}

.download-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.2);
}

.download-btn i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.download-btn span {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.download-btn small {
    font-size: 0.8rem;
    opacity: 0.8;
    font-weight: 400;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.3);
    background: linear-gradient(135deg, #1e2b38 0%, #2980b9 100%);
}

.enrollment-steps {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.step {
    flex: 1;
    min-width: 150px;
    padding: 1.5rem 1rem;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 40%;
    right: -10%;
    width: 20%;
    height: 2px;
    background: #dee2e6;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 1rem;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.step p {
    color: #6c757d;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.4;
}

.enrollment-note {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #6c757d;
    font-size: 0.95rem;
}

.enrollment-note i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.enrollment-note a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.enrollment-note a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .enrollment-card {
        padding: 2rem 1.5rem;
    }
    
    .enrollment-steps {
        flex-direction: column;
        gap: 2rem;
    }
    
    .step {
        padding: 1rem 0;
    }
    
    .step:not(:last-child)::after {
        display: none;
    }
    
    .step::after {
        content: '';
        position: absolute;
        bottom: -1rem;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 2px;
        background: #dee2e6;
    }
    
    .step:last-child::after {
        display: none;
    }
    
    .download-btn {
        padding: 1.25rem 1.5rem;
    }
    
    .download-btn i {
        font-size: 2rem;
    }
    
    .download-btn span {
        font-size: 1rem;
    }
}

/* Save Progress Indicator */
.save-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.save-indicator.show {
    opacity: 1;
    transform: translateY(0);
}

.save-indicator i {
    color: #28a745;
}

/* Completion Progress */
.completion-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--light-gray);
    z-index: 1001;
}

.completion-progress-bar {
    height: 100%;
    background: var(--accent-color);
    width: 0;
    transition: width 0.3s ease;
}

/* Mobile Improvements */
@media (max-width: 768px) {
    .form-group-grid {
        grid-template-columns: 1fr !important;
    }

    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .form-navigation button {
        width: 100%;
    }

    .progress-bar {
        overflow-x: auto;
        padding-bottom: 1.5rem;
    }
}

/* Keyboard Navigation */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.form-navigation button:focus {
    outline: none;
}