/* ========================================
   BASE STYLES (Your Original Styles)
   ======================================== */
:root {
    --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

html {
    min-height: 100%;
}

.error {
    border: 1px solid red !important;
    outline: none;
}
.error:focus, .error:hover, .error:active, .radio-container:has(.error-message) input:focus {

    border: 1px solid red !important;
    outline: 3px solid rgba(255, 68, 68, 0.26) !important;
    box-shadow: 0 0 0 .25rem rgba(253, 13, 13, 0.25);
}

.error-message {
    color: red;
    font-size: 0.875em;
    margin-top: 0.25rem;
}

body {
    font-size: 18px;
    line-height: 1.6;
    font-family: var(--font-family-base);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #fff;
}

main {
    flex: 1 0 auto;
    width: 100%;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.2rem;
}

.navbar-logo {
    height: 35px;
    width: auto;
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1040;
    background-color: #fff;
}

.top-header {
    background-color: white;
    border-bottom: 1px solid #e9ecef;
    padding: 10px 0;
}

.main-navbar {
    background-color: white;
    border-bottom: 1px solid #e9ecef;
    padding: 0;
}

.navbar-custom {
    padding: 8px 0;
}

.navbar-toggler {
    border: none;
    padding: 4px 8px;
    color: #1d636d;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.main-navbar .nav-link {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    padding: 8px 15px;
    transition: color 0.3s ease;
}

/* Active menu styling */
.nav-link.active {
    color: #1d636d !important;
    text-decoration: underline !important;
    font-weight: 600;
}

/* Hover effect for non-active items */
.nav-link:not(.active):hover {
    color: #1d636d;
    transition: color 0.3s ease;
}

/* Main navbar styling */
.main-navbar {
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-link {
    color: #333;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    height: 100%;
}

.main-navbar .nav-link:hover {
    color: #1d636d;
}

.contact-info {
    font-weight: 600;
    text-decoration: none;
}

.hero-section {
    background: linear-gradient(135deg, rgb(15 46 61 / 85%), rgb(35 108 115 / 94%)),
        url('../images/banner-image.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 800px;
    margin-inline-start: auto;
    margin-inline-end: auto;
}

.button-container {
    text-align: center;
    width: 100%;
}

button[disabled]{
    opacity: 0.5;
    cursor: not-allowed !important;
}

.btn-simulate {
    background-color: white;
    color: #1d636d;
    font-weight: bold;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 0 auto;
    text-decoration: none;
}

.btn-modal {
    background-color: white;
    color: #1d636d;
    font-weight: bold;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 0 auto;
    text-decoration: none;
}

.btn-teal {
    background-color: #1d636d;
    color: white;
}

.btn-simulate:hover {
    background-color: #f8f9fa;
    color: #1d636d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-redirect {
    text-decoration: none;
}


.benefit-item {
    display: flex;
    align-items: flex-start;
    line-height: 25px;
    margin-bottom: 0;
    padding: 10px 0;
}

.benefit-icon {
    color: #008295;
    margin-inline-end: 15px;
    font-size: 1.2rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.table-section {
    background-color: #f8f9fa;
    padding: 50px 0;
}

.custom-table {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 0.95rem;
}

.custom-table th {
    background-color: #1d636d;
    color: white;
    font-weight: 600;
    text-align: center;
    padding: 15px 10px;
}

.custom-table td {
    text-align: center;
    padding: 12px 10px;
    vertical-align: middle;
}

.btn-custom {
    background-color: #1d636d;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 0 auto;
    /* Center the button */
}

.btn-custom:hover {
    background-color: #174f57;
    color: white;
    transform: translateY(-2px);
}

.required-field {
    color: red;
}

/* Fix for CTA section button centering */
.feature-card .btn-custom,
.feature-card .btn-outline-secondary {
    display: block;
    margin: 10px auto 0;
    text-align: center;
}

/* Ensure text-center applies to buttons */
.text-center .btn-custom,
.text-center .btn-outline-secondary {
    margin-inline-start: auto;
    margin-inline-end: auto;
}

.footer {
    background-color: #0f1b2a;
    color: #fff;
    padding: 20px 0;
}

.footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
/* 
.footer-content {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap: 0.5rem;
} */

.footer-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.footer-link:hover {
    text-decoration: underline;
}

.form-section {
    background-color: #f8f9fa;
    padding: 50px 0;
}

.solar-panel-img {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: auto;
}

.feature-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    height: 100%;
}

.lang-btn {
    border-color: #1d636d;
    color: #1d636d;
    font-weight: 600;
    font-size: 14px;
    padding: 5px 15px;
}

.lang-btn:hover,
.lang-btn.active {
    background-color: #1d636d;
    border-color: #1d636d;
    color: white;
}

.language-dropdown {
    border: 1px solid #1d636d;
    border-radius: 5px;
    background: white;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #1d636d;
    min-width: 80px;
}

.language-dropdown:hover {
    background-color: #f8f9fa;
}

.dropdown-menu {
    border: 1px solid #1d636d;
    border-radius: 5px;
    padding: 0;
    margin-top: 2px;
}

.dropdown.me-2 {
    margin-inline-end: 0 !important;
}

.dropdown-item {
    padding: 8px 15px;
    font-size: 14px;
    color: #1d636d;
    border: none;
    background: none;
}

.dropdown-item:active {
    background-color: white;
    color: black;
}

.flag-icon {
    width: 20px;
    height: 15px;
    margin-inline-end: 8px;
    border-radius: 2px;
}


.badge.bg-success.rounded-circle.p-3.mb-3 {
    padding: 1rem 1.30rem !important;
}

.badge.bg-success {
    background-color: #008295 !important;
}

/* Language switching styles */
[data-lang="fr"] {
    display: block;
}

[data-lang="en"] {
    display: none;
}

/* When lang-fr class is on body (default) */
.lang-fr [data-lang="fr"] {
    display: block;
}

.lang-fr [data-lang="en"] {
    display: none;
}

/* When lang-en class is on body */
.lang-en [data-lang="fr"] {
    display: none;
}

.lang-en [data-lang="en"] {
    display: block;
}

/* Button specific language switching */
.btn[data-lang="fr"] {
    display: inline-block;
    margin: 0 auto;
}

.btn[data-lang="en"] {
    display: none;
}

.lang-fr .btn[data-lang="fr"] {
    display: inline-block;
    margin: 0 auto;
}

.lang-fr .btn[data-lang="en"] {
    display: none;
}

.lang-en .btn[data-lang="fr"] {
    display: none;
}

.lang-en .btn[data-lang="en"] {
    display: inline-block;
    margin: 0 auto;
}

/* Specific button centering for different button types */
.btn-simulate[data-lang="fr"],
.btn-simulate[data-lang="en"] {
    display: inline-block;
    margin: 0 auto;
}

.lang-fr .btn-simulate[data-lang="fr"] {
    display: inline-block;
    margin: 0 auto;
}

.lang-fr .btn-simulate[data-lang="en"] {
    display: none;
}

.lang-en .btn-simulate[data-lang="fr"] {
    display: none;
}

.lang-en .btn-simulate[data-lang="en"] {
    display: inline-block;
    margin: 0 auto;
}

/* CTA section buttons */
.btn-custom[data-lang="fr"],
.btn-custom[data-lang="en"],
.btn-outline-secondary[data-lang="fr"],
.btn-outline-secondary[data-lang="en"] {
    display: block;
    margin: 10px auto 0;
    text-align: center;
}

.lang-fr .btn-custom[data-lang="fr"],
.lang-fr .btn-outline-secondary[data-lang="fr"] {
    display: block;
    margin: 10px auto 0;
    text-align: center;
}

.lang-fr .btn-custom[data-lang="en"],
.lang-fr .btn-outline-secondary[data-lang="en"] {
    display: none;
}

.lang-en .btn-custom[data-lang="fr"],
.lang-en .btn-outline-secondary[data-lang="fr"] {
    display: none;
}

.lang-en .btn-custom[data-lang="en"],
.lang-en .btn-outline-secondary[data-lang="en"] {
    display: block;
    margin: 10px auto 0;
    text-align: center;
}

/* ========================================
   TABLE FIXES FOR INVESTMENT EXAMPLES
   ======================================== */

/* Make table more responsive */
.custom-table {
    width: 100%;
    min-width: 500px;
}

/* Better table spacing */
.custom-table th,
.custom-table td {
    white-space: nowrap;
    min-width: 120px;
}

/* Investment table specific improvements */
.custom-table th:first-child,
.custom-table td:first-child {
    min-width: 150px;
    white-space: normal;
}

/* Registration form Styles */

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    /* text-align: center; */
    margin-bottom: 30px;
}

.form-message[success] {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.form-message[data-error] {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.hero-grid .form-message {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.radio-field {
    display: inline-flex;
    align-items: center;
    margin-inline-end: 20px;
    cursor: pointer;
}

/* .radio-form-btn {
    margin-inline-start: 0px;
    margin-inline-end: 5px;
} */

.radio-field input[type="radio"] {
    /* margin-inline-start: 8px; */
    margin-inline-end: 6px;
}

.field-wrapper {
    margin-bottom: 20px;
}

.field-wrapper label:first-child {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.hide-form-field {
    display: none;
}

.row-field {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 767px) {
    .row-field {
        grid-template-columns: 1fr;
    }
}

.form-field.select select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: white;
}

.btn-blue {
    background-color: #1d636d;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-blue:hover {
    background-color: #174f57
}

.btn-blue:disabled {
    background-color: #eaeaea;
}

.successMessage {
    text-align: center;
}

.successMessage h3 {
    color: #2E7D32;
    margin-bottom: 15px;
}
.form-check-input:checked {
    background-color: #1d636d;
    border-color: #1d636d;
}

/* Mobile table improvements */
@media (max-width: 767.98px) {
    .custom-table {
        min-width: 700px;
    }

    .custom-table th,
    .custom-table td {
        font-size: 0.75rem;
        padding: 8px 4px;
        min-width: 100px;
    }

    .custom-table th:first-child,
    .custom-table td:first-child {
        min-width: 120px;
    }
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Desktop navigation improvements */
@media (min-width: 992px) {
    .main-navbar .nav-link {
        padding: 8px 0 8px 35px !important;
    }

    /* Home icon specific styling for desktop */
    .main-navbar .nav-link[title="Accueil"] {
        padding: 8px 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
    }

    .main-navbar .nav-link[title="Accueil"] i {
        font-size: 16px;
    }

    /* Ensure buttons are centered on desktop */
    .feature-card .btn-custom,
    .feature-card .btn-outline-secondary {
        display: inline-block;
        margin: 10px auto 0;
    }
}

/* Tablet styles */
@media (min-width: 768px) and (max-width: 991.98px) {
    body {
        font-size: 17px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }
    .custom-table {
        font-size: 0.9rem;
    }
}

/* Navigation mobile styles */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: white;
        padding: 10px;
        border-radius: 5px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
        margin-top: 10px;
        border: 1px solid #e9ecef;
    }

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

    .navbar-nav .nav-link {
        padding: 12px 15px;
        border-bottom: 1px solid #eee;
        font-size: 16px;
    }

    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }

    .navbar-nav .nav-link:hover {
        background-color: #f8f9fa;
    }

    /* Mobile header layout */
    .top-header .d-flex {
        gap: 8px;
    }

    .navbar-toggler {
        padding: 6px 8px;
        font-size: 1rem;
        background: none;
        /* border: 1px solid #1d636d; */
        border-radius: 4px;
        color: #1d636d;
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }

    .navbar-toggler:hover {
        background-color: rgba(45, 80, 22, 0.1);
    }
}

/* Mobile Responsive Styles */
@media (max-width: 767.98px) {

    /* Base font size adjustment */
    body {
        font-size: 16px;
    }

    /* Header adjustments */
    .top-header {
        padding: 8px 0;
    }

    .navbar-logo {
        height: 25px;
    }
    .language-dropdown {
        padding: 6px 8px;
        min-width: 60px;
    }

    /* Mobile hamburger and language dropdown alignment */
    .top-header .d-flex {
        align-items: center;
    }

    .flag-icon {
        width: 16px;
        height: 12px;
        margin-inline-end: 4px;
    }

    /* Hero section mobile */
    .hero-section {
        padding: 40px 0;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
        padding: 0 10px;
    }

    .btn-simulate {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* Benefits section mobile */
    .benefit-item {
        margin-bottom: 15px;
        padding: 8px 0;
    }

    .benefit-icon {
        margin-inline-end: 10px;
        font-size: 1.1rem;
    }

    /* Image adjustments */
    .solar-panel-img {
        margin-top: 20px;
    }

    /* Table mobile */
    .custom-table {
        font-size: 0.8rem;
    }

    .custom-table th {
        padding: 10px 5px;
        font-size: 0.75rem;
    }

    .custom-table td {
        padding: 8px 5px;
        font-size: 0.8rem;
    }

    /* Form mobile */
    .feature-card {
        padding: 20px 15px;
        margin: 0 10px;
    }

    .btn-custom {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
        margin-top: 10px;
    }

    /* Ensure buttons are centered on mobile */
    .feature-card .btn-custom,
    .feature-card .btn-outline-secondary {
        display: block;
        margin: 10px auto 0;
        text-align: center;
        width: 100%;
    }

    /* Spacing adjustments */
    .py-5 {
        padding: 2.5rem 0 !important;
    }

    /* .container {
        padding-left: 15px;
        padding-right: 15px;
    } */

    /* Mobile specific utilities */
    .mobile-center {
        text-align: center;
    }

    .mobile-full-width {
        width: 100%;
    }

    .col-lg-4,
    .col-lg-5,
    .col-lg-7,
    .col-lg-8 {
        margin-bottom: 20px;
    }

    /* Additional responsive utilities */
    .table-responsive {
        border: none;
    }

    .lead {
        font-size: 1.1rem;
    }

    h4 {
        font-size: 1.2rem;
    }

    .btn-lg {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* Small mobile devices */
@media (max-width: 575.98px) {
    body {
        font-size: 15px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .btn-simulate {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .custom-table th {
        font-size: 0.7rem;
        padding: 8px 3px;
    }

    .custom-table td {
        font-size: 0.75rem;
        padding: 6px 3px;
    }

    .benefit-item span {
        font-size: 0.9rem;
    }

    .navbar-logo {
        height: 30px;
    }

    .language-dropdown {
        font-size: 11px;
        padding: 4px 6px;
        min-width: 50px;
    }

    .navbar-toggler {
        padding: 3px 5px;
        font-size: 1rem;
    }

    /* Table scrolling for small screens */
    .custom-table {
        min-width: 400px;
    }

    .custom-table th,
    .custom-table td {
        min-width: 100px;
    }
}

/* Additional Mobile Utilities */
@media (max-width: 767.98px) {
    .mobile-center {
        text-align: center !important;
    }

    .mobile-full-width {
        width: 100% !important;
    }

    /* Better touch targets for mobile */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    /* Improved form inputs for mobile */
    .form-control {
        min-height: 44px;
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    /* Better spacing for mobile lists */
    ul:not(.dropdown-menu) li {
        margin-bottom: 8px;
    }

    /* Mobile-friendly image sizing */
    img {
        max-width: 100%;
        height: auto;
    }
}

/* @media screen {
    padding: 0;
} */

/* ==========================
   New Template Styles
   ========================== */
.primary-header {
    position: sticky;
    top: 0;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(8, 15, 40, 0.08);
    z-index: 1050;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #2d3086;
    text-decoration: none;
}

.logo img {
    height: 30px;
    width: auto;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 0;
}

.hamburger span {
    width: 28px;
    height: 2px;
    background: #2d3086;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-close {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: #fff;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #0f1b2a;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a.is-active,
.nav-links a:hover {
    color: #2d3086;
}

.nav-links a.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #fbbf24;
}

.nav-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-contact {
    text-decoration: none;
    padding: 10px 18px;
    background: #2d3086;
    color: #fff;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.nav-contact:hover {
    color: #fff;
    opacity: 0.9;
}

.language-switcher .language-dropdown {
    border: 1px solid rgba(13, 24, 59, 0.1);
    background: #fff;
    padding: 6px 12px;
    /* border-radius: 999px; */
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    color: #0f1b2a;
}

.language-switcher .flag-icon {
    width: 20px;
    height: 14px;
    object-fit: cover;
}

@media (max-width: 992px) {
    .primary-nav {
        position: fixed;
        inset: 0;
        background: rgba(13, 24, 59, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        padding: 2rem;
    }

    .primary-nav.is-open {
        transform: translateX(0);
    }

    .menu-close {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: none;
        border: none;
        font-size: 2rem;
        color: #fff;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
    }

    .nav-links a {
        color: #fff;
        font-size: 1.1rem;
    }

    .nav-meta {
        flex-direction: column;
    }

    .nav-contact {
        width: 100%;
        text-align: center;
    }

    .hamburger {
        display: flex;
    }
}

.hero-banner {
    padding: 0 0 30px;
}

.credilec-img {
    width: 100%;
}

/* .hero-content-wrapper {
    padding: 40px 0 60px;
} */

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    align-items: stretch;
}

.hero-media img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
}

.registration-box {
    background: #fff;
    border-radius: 16px;
}

.hero-pretitle {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #fbbf24;
    margin-bottom: 10px;
}

.hero-heading {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: #2d3086;
    font-weight: 800;
    margin-bottom: 15px;
}

.hero-description {
    color: #0f1b2a;
    margin-bottom: 20px;
}

.hero-points {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

.hero-points li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 500;
}

.hero-points li::before {
    content: '•';
    color: #fbbf24;
    font-size: 1.5rem;
}

.registration-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 15px 45px rgba(13, 24, 59, 0.08);
}

.registration-card--embedded {
    box-shadow: none;
    padding: 0;
}

.registration-card-eyebrow {
    text-transform: uppercase;
    color: #fbbf24;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.registration-card-title {
    font-size: clamp(2rem, 4vw, 2.6rem);
    color: #2d3086;
    line-height: 1.1;
}

.registration-card-desc {
    margin-bottom: 20px;
    color: #0f1b2a;
}

.registration-card .form-control,
.registration-card .form-select {
    border-radius: 8px;
    min-height: 46px;
}

.testimonials-section,
.financing-section,
.howto-section,
.solar-info-section,
.info-cards-section,
.publications-section {
    padding: 60px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.testimonial-video {
    border: none;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.testimonial-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(15, 27, 42, 0.85);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.65));
    color: #fff;
}

.financing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    align-items: center;
}

.financing-image-box {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.financing-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.financing-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 27, 42, 0.2), rgba(15, 27, 42, 0.7));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    width: 100%;
}

.howto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.howto-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    /* box-shadow: 0 20px 60px rgba(13, 24, 59, 0.05); */
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.howto-video {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.howto-video img {
    width: 100%;
    display: block;
}

.howto-list {
    padding-left: 18px;
}

.solar-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    align-items: center;
}

.solar-chart {
    width: 100%;
    border-radius: 12px;
    margin: 20px 0;
}

.solar-image-box img {
    width: 100%;
    border-radius: 16px;
}

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.info-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    /* box-shadow: 0 20px 40px rgba(13, 24, 59, 0.05); */
    text-align: center;
}

.info-card img {
    width: 100%;
    border-radius: 12px;
    margin: 15px 0;
}

.publications-grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 768px) {
    .publications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.publication-card {
    gap: 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(13, 24, 59, 0.05);
    flex-wrap: wrap;
}

/* .publication-card img {
    width: 200px;
    border-radius: 12px;
} */

.publication-content {
    flex: 1;
}

.download-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    color: #2d3086;
    font-weight: 600;
}

.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 27, 42, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 2000;
}

.video-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.video-modal .modal-content {
    background: transparent;
    border: none;
    max-width: 960px;
    width: 100%;
    position: relative;
}

.video-frame {
    width: 100%;
    padding-top: 56.25%;
    position: relative;
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.contact-section {
    padding: 80px 0;
    background: #f5f8fc;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    align-items: stretch;
}

.contact-left {
    background: #2d3086;
    color: #fff;
    border-radius: 16px 0 0 16px;
    padding: 30px;
}

.contact-left h1 {
    font-size: clamp(2rem, 4vw, 2.6rem);
    margin-bottom: 10px;
}

.contact-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fbbf24;
    font-weight: 600;
}

.contact-info {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-info-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.contact-info-item a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.contact-right {
    background: #fff;
    border-radius: 0 16px 16px 0;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(13, 24, 59, 0.08);
}

.contact-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-right .form-field:not(:last-child) {
    margin-bottom: 16px;
}

.contact-right .form-control {
    border-radius: 10px;
    min-height: 48px;
}

.contact-right textarea.form-control {
    min-height: 140px;
}

.btn-blue {
    background: #2d3086;
    color: #fff;
}

.btn-blue:hover {
    color: #fff;
    opacity: 0.9;
}

body.menu-open,
body.modal-open {
    overflow: hidden;
}

/* Template Header */
.template-header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1100;
}

.template-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.template-header .nav-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* .template-header .container,
.template-footer .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
} */

.template-header .logo {
    font-size: 28px;
    font-weight: bold;
    color: #2d3086;
    letter-spacing: 1px;
    text-decoration: none;
}

.template-header nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.template-header nav .drawer-header {
    display: none;
}

.template-header nav .drawer-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.template-header .header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.template-header nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.template-header nav a:hover,
.template-header nav a.active {
    color: #1117b6;
}

.template-header .lang-flags {
    display: flex;
    gap: 8px;
    align-items: center;
}

.template-header .flag {
    width: 20px;
    height: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.template-header .hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 0;
}

.template-header .hamburger span {
    width: 28px;
    height: 2px;
    background: #2d3086;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.template-header .menu-close {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: #fff;
}

@media (max-width: 768px) {
    .template-header .nav-wrapper {
        gap: 12px;
    }

    .template-header nav {
        position: fixed;
        inset: 0;
        background: #fff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        gap: 0;
        padding: 0;
        width: 100%;
        max-width: 100%;
        overflow-y: auto;
    }

    .template-header nav.active {
        transform: translateX(0);
        z-index: 99999;
    }

    .template-header nav .drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 20px 20px 12px;
        margin-bottom: 10px;
        border-bottom: 1px solid #e9ecef;
    }

    .template-header nav .drawer-logo-img {
        height: 30px;
        width: auto;
    }

    .template-header nav .drawer-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
    }

    .template-header .hamburger {
        display: flex;
    }

    .template-header .menu-close {
        display: block;
        position: static;
        color: #1d636d;
        font-size: 2rem;
        line-height: 1;
    }

    .template-header nav a:not(.drawer-logo) {
        /* color: #333; */
        font-size: 16px;
        width: 100%;
        padding: 12px 20px;
        border-bottom: 1px solid #e9ecef;
        margin: 0;
    }

    .template-header nav a.active {
        background: #3e406d21;
    }

    .template-header .lang-flags {
        gap: 20px;
    }
}

/* Template Footer */
.template-footer {
    background: #1f2937;
    border-top: 1px solid #e5e7eb;
    padding: 20px 0;
    color: #fff;
    margin-top: auto;
}

.template-footer .footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.template-footer .footer-link {
    text-decoration: none;
    font-weight: 600;
}

.template-footer .footer-link:hover {
    text-decoration: underline;
}

.page-404-body {
    background-color: #f3f4ff;
}

.page-404-wrapper {
    padding: 80px 0;
}

.page-404-card {
    background: #fff;
    border-radius: 24px;
    border: 1px solid rgba(45, 48, 134, 0.15);
}

.page-404-card h1 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: #2d3086;
}

.page-404-card p {
    color: #4b5563;
}

.page-404-card .btn-simulate {
    color: #2d3086;
}

.page-404-card .btn-simulate:hover {
    background-color: #24266b;
    color: white;
}

.page-404-code {
    color: #2d3086;
}

@media (width < 1400px) {
    .container {
        max-width: 100% !important;
    }
    .hero-banner-container {
        padding: 0;
    }
}

/* @media (width < 768px) {
    .template-footer .footer-content {
        flex-direction: column;
        justify-content: center;
    }
}
