/*!!!!!!!
HEADER
NAV
INDEX
VIND-MAKELAAR
VIEW-OFFERTE/RENEW
FOOTER
MOBILE
*/

body {
    background-color: rgba(109, 149, 174, 0.1);
    color: #45464E;
    font-family: 'Satoshi', sans-serif;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Container for consistent max-width across sections */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Ensure images are responsive by default */
img {
    max-width: 100%;
    height: auto;
}
h2 {
    font-size: clamp(1.8em, 4vw, 2.9em);
    font-weight: 500;
}
p{
    line-height: 2;
}
input::placeholder, textarea::placeholder, select::placeholder {
    opacity: 0.5;
}
/*!!!!!!!!   HEADER   !!!!!!!!*/
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5em;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    background: transparent; /* Remove white background */
    z-index: 1000; /* Keep it above other content */
}

.orange-icon {
    filter: brightness(0) saturate(100%) invert(38%) sepia(94%) saturate(2261%) hue-rotate(2deg) brightness(101%) contrast(103%);
}

.header-dark nav ul li a {
    color: #45464E;
}

.header-dark nav ul li a:hover {
    color: #ff5100; /* Keep hover effect */
}

nav {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.nav-left, .nav-right {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

.nav-left {
    justify-content: flex-start;
}

.nav-left li{
    margin: 0;
}

.nav-right {
    justify-content: flex-end;
}

nav ul li {
    margin: 0 0.3em;
}

nav ul li a{
    text-decoration: none;
    color: white;
    padding: 1em 0.8em;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    margin-right: 1em;
    font-weight: 450;
}

nav ul li a:hover {
    color: #ff5100;
}

.nav-left img {
    width: auto;
    height: auto;
    min-width: 3em;
    max-height: 4em;
}

.hero {
    min-height: 100vh;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 5%;
    text-align: left;
    color: white;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* 50% dark overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1em;
}

.hero-links{
    display: flex;
    margin-top: 3em;
}

.hero-formula {
    color: white;
    text-underline-offset: 12px;
    font-weight: lighter;
    text-decoration-thickness: from-font;
    margin-left: 2em;
    margin-top: 0.5em;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 500;
    margin: 0;
    max-width: min(60%, 800px);
    word-wrap: break-word;
    white-space: normal;
    margin-top: 2em;
    line-height: 1.2em;
}

.content {
    padding: 3em;
}

.page-banner {
    width: 100%;
    min-height: 50vh;
    height: clamp(300px, 50vh, 600px);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 5%;
    text-align: left;
    color: white;
    overflow: hidden;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* 50% dark overlay */
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
}

.page-banner h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 450;
    margin: 0;
}


.familyblock {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background-color: white;
    padding: 4em 0;
}

.familytext {
    flex: 1;
    padding: 8em;
}

.familytext h2 {
    font-size: 2.4em;
    line-height: 1.2em;
}

.familytext p {
    margin: 2em 0;
    opacity: 0.6;
    line-height: 1.3em;
}

.familytext a {
    margin-top: 4em;
}

.familytext ul li {
    color: #45464E;
    opacity: 0.6;
}

.familyimage {
    width: min(50vw, 600px);
    min-height: 400px;
    height: clamp(400px, 93vh, 800px);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    border-radius: 8px 0 0 8px;
}

.bike-logo-small {
  max-width: 120px;
  height: auto;
  margin: 1rem 0;
  display: block;
}

.lees-meer-toggle {
    display: inline-block;
    color: #ff5100;
    cursor: pointer;
    text-decoration: underline;
    margin-top: 10px;
}

.bikesblock {
    display: flex;
    flex-direction: column; /* Stack everything vertically */
    align-items: center; /* Center the block content */
    background-color: #ff5100;
    padding: 7em 0;
}

.bikesblock h2 {
    font-size: 2.2em;
    color: white;
    margin-bottom: 2em;
    text-align: center;
    word-wrap: break-word;
    max-width: 25%;
    line-height: 1.4;
}

.bikescontent {
    display: flex;
    align-items: center; /* Center image and options vertically */
    margin-left: -30em; /* Shift the whole block to the left */
}

.image-display {
    flex: 0 0 auto; /* Prevent stretching */
    display: flex;
    justify-content: flex-end; /* Align image to the right inside the block */
}

.bike-image {
    width: min(50vw, 600px);
    min-height: 400px;
    height: clamp(400px, 93vh, 800px);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.options {
    flex: 0 0 250px; /* Fixed width for options */
}

.options ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.options li {
    cursor: pointer;
    padding: 10px 0 3px; /* Reduce bottom padding */
    color: white;
    opacity: 0.4;
    transition: opacity 0.3s;
    font-size: 1.8em;
    position: relative;
    width: fit-content; /* Make element only as wide as content */
    border-bottom: 2px solid white;
    margin-bottom: 0.8em;
    line-height: 1.2; /* Tighten line height */
}

.options li.active {
    opacity: 1;
    font-weight: 500;
}

/* Optional hover effect */
.options li:hover {
    opacity: 0.7;
}

#map {
    height: clamp(400px, 80vh, 600px);
    width: min(90vw, 1200px);
    max-width: 1200px;
    margin: 6em auto 10em auto;
    border-radius: 1rem;
}

.maptext {
    text-align: center;
}

.maptext h2 {
    padding: 2vh min(12em, 10%);
    margin-top: 2em;
}
.maptext p {
    padding: 2vh min(20%, 15em);
    opacity: 60%;
}

.zipcode-input {
    margin-top: 2em;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

#zipcode {
    padding: 0.8em;
    border: 1px solid rgba(69, 70, 78, 0.6);
    border-radius: 33px;
    box-sizing: border-box;
    background: transparent;
    width: 10em;
}



footer {
    background-color: #ff5100;
    color: white;
    padding: 2em 1em;
}

footer img {
    max-height: 1.2em;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3em;
    padding: 3em 0;
}
.footer-bottom a{
    text-decoration: none;
    color: white;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    margin-right: 1em;
}
.footer-columns {
    display: flex;
    gap: 3em;
    margin: auto;
    flex-wrap: wrap;
}

.footer-col {
    flex: 1 1 15%;
    min-width: 12em;
}

.footer-col h3 {
    margin-bottom: 0.8em;
    font-size: 1.2em;
    font-weight: 500;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.6em;
    opacity: 0.6;
}

.footer-col:last-child ul {
    display: flex;
    gap: 1em; /* Ensures there is a gap between the social icons */
}

.footer-col:last-child ul li a {
    display: inline-block;
    margin: 0;
    padding: 0;
}

footer .nav-left li{
    opacity: 1;
}

.hover-footer:hover {
    opacity: 1;
}

.footer-legal {
    opacity: 0.6;
    gap: 4.5em;
}

iframe {
    margin-top: 4em;
    border: 0.2em solid #ccc;
    border-radius: 0.4em;
    height: 100vh;
}

#tracker-code {
    display: block;
    padding: 0.8em;
    border: 1px solid rgba(69, 70, 78, 0.6);
    border-radius: 33px;
    box-sizing: border-box;
    background: transparent;
    width: 20%;
    margin: 1em auto;
}

#tracker-code-section label , #invoice-upload-section label{
    font-size: 1.4em;
    font-weight: bold;
}

#tracker-code-section, #invoice-upload-section {
    margin-top: 2em;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#invoice-upload-section {
    margin-top: 2em;
}

#invoice-upload-section label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: bold;
}

#invoice-upload-section input[type="file"] {
    padding: 0.8em;
    border: 1px solid rgba(69, 70, 78, 0.6);
    border-radius: 33px;
    background: transparent;
    cursor: pointer;
    width: 100%;
    max-width: 400px;
}

#submitDocument, #clear-signature, #generatePdf {
    display: block;
    padding: 0.8em 1.2em;
    background-color: #ff5100;
    color: white;
    border: none;
    border-radius: 33px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 1em auto;
}
#clear-signature, #generatePdf {
    margin: 0;
}
#submitDocument:hover, #clear-signature:hover, #generatePdf:hover {
    color: #ff5100;
    background-color: white;
}

/* Center and space signature section */
#signature-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 3em 0;
    gap: 2em;
}

#signatureCanvas {
    border: 0.15em solid #000;
    border-radius: 0.3em;
    background: #fff;
}

/* Center button below canvas */
.sig-btns {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 500px;
    margin-top: 1em;
}

/* Optional: space below heading */
.sign-heading {
    text-align: center;
    margin-top: 3em;
    font-size: 1.4em;
}

.burger {
    display: none;
    background: none;
    border: none;
    font-size: 2em;
    color: white;
    cursor: pointer;
    z-index: 1001;
}

/* Tablet and medium screens */
@media (max-width: 1024px) {
    .familytext {
        padding: 4em 2em;
    }
    
    .bikescontent {
        margin-left: -15em;
    }
    
    .maptext h2 {
        padding: 2vh 5%;
    }
    .maptext p {
        padding: 2vh 10%;
    }
}

/* Small tablet and landscape phone */
@media (max-width: 820px) {
    .familyblock {
        flex-direction: column;
        gap: 2em;
        padding: 2em 1em;
    }
    
    .familyimage {
        width: 100%;
        height: 40vh;
        border-radius: 8px;
    }
    
    .familytext {
        padding: 2em 1em;
    }
    
    .bikescontent {
        flex-direction: column;
        margin-left: 0;
        margin-bottom: 2em;
    }
    
    .bike-image {
        width: 80vw;
        height: 35vh;
    }
    
    .bikesblock h2 {
        max-width: 80%;
        margin-bottom: 1em;
    }
}

/*MOBILE*/
@media (max-width: 768px) {
    /*HEADER and index*/
    header {
      flex-direction: column;
      align-items: flex-start;
      padding: 1em;
    }
    
    .header-dark nav ul li a {
        color: white;
    }

    .hero {
        height: 100vh;
        background-size: cover;         /* zooms/crops image to fill */
        background-position: center;
        padding: 2em 1em;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
        max-width: 100%;
        margin-top: 5em;
    }

    h2 {
        font-size: 1.9em;
        margin-bottom: 1em;
    }

    .hero-content {
        align-items: center;
    }
  
    .hero-links {
        flex-direction: column;
        gap: 1em;
    }

    .hero-links a {
        margin-top: 1em;
        margin-left: 0;
    }

    .bikesblock {
        padding: 0;
    }

    .bikesblock h2{
        max-width: 90% !important;
        margin-top: 2em;
    }

    .bikescontent {
        flex-direction: column;
        margin-left: 0;
        margin-bottom: 4em;
    }

    .bike-image {
        width: 90vw;
        height: clamp(200px, 30vh, 300px);
        margin-bottom: 3em;
    }

    .familyblock {
      display: flex;
      flex-direction: column;
      gap: 1em;
      padding: 1em;
    }
  
    .familyimage {
      width: 100%;
      height: clamp(250px, 40vh, 350px);
      background-size: cover;
      background-position: center;
      border-radius: 8px;
    }

    /* Make sure nav is in a row for mobile */
    nav {
        flex-direction: row; /* Keep logo and burger horizontally aligned */
        align-items: center;  /* Vertically center the items */
        justify-content: space-between; /* Space out the logo and burger button */
    }

    /* Show burger button and logo in one row */
    .nav-container {
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }

    /* Ensure the logo and burger button are properly aligned */
    .nav-left, .nav-right {
        display: flex;
        align-items: center;
    }

    /* Make sure logo does not disappear and is correctly aligned */
    .nav-left img {
        width: auto;
        height: auto;
        min-width: 3em;
        max-height: 4em;
    }

    /* Make sure burger button is visible and aligned */
    .burger {
        display: block;
        background: none;
        border: none;
        font-size: 2em;
        color: white;
        cursor: pointer;
    }

    /* Style for the mobile menu */
    .nav-right {
        position: absolute;
        top: 100%;
        right: 0;
        background-color: #111;
        flex-direction: column;
        width: 100%;
        display: none;
        padding: 1em 0;
        z-index: 1000;
    }

    .nav-right.show {
        display: flex; /* Show the menu when the burger button is clicked */
    }

    .nav-right li {
        margin: 0.5em 0;
        text-align: center;
    }

    .familytext {
        padding: 0;
    }


    /*FORMULES*/
    .tab-buttons {
        margin: 1em auto !important;
        margin-top: 1em !important;
        max-width: calc(100vw - 2em) !important;
        width: fit-content !important;
    }

    .formule-tabs {
        margin: 0 !important;
        padding: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    
    .formule-tabs .tab-content {
        width: calc(100vw - 2em) !important;
        max-width: calc(100vw - 2em) !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }
    
    .formule-tabs .tab-header,
    .formule-tabs .why-blocks,
    .formule-tabs .when-blocks {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }


    /*VIND MAKELAAR*/
    .maptext h2, .maptext p {
        padding: 0;
    }

    #map {
        height: clamp(250px, 40vh, 400px);
        width: 95vw;
        max-width: 500px;
        border-radius: 1rem;
    }

    
    /*CONTACT*/
    .contact-wrapper {
        display: block !important;
        margin-left: 0 !important;
        height: auto !important;
        padding-left: 2em !important;
        box-sizing: border-box;
        margin-top: 0 !important;
    }
    .contact-text {
        width: 100% !important;
    }
    .form-row {
        display: block !important;
    }
    .contact-form input, .contact-form textarea {
        width: 15em !important;
        margin-bottom: 1em;
    }
    .contact-form form{
        margin-top: 2em;
        gap: 0 !important;
    }


    /*FORM*/
    .content {
        margin-top: 3em;
    }
    .form-step-content {
        flex-direction: column;
        gap: 3em !important;
        margin-bottom: 15em;
    }

    .bike-list {
        grid-template-columns: repeat(2, minmax(7em, 1fr)) !important;
    }

    .form-step-form {
        width: 88% !important;
        padding-left: 0 !important;
    }

    .form-step input {
        display: block;
    }

    .electric-bike input[type="checkbox"] {
        display: inline-block;
    }

    .form-step-form .custom-radio input[type="radio"] {
        display: inline-block;
    }

    .form-step-text {
        width: unset !important;
        text-align: center;
    }

    .form-step-text h2 {
        font-size: 2em !important;
    }

    .form-step.active {
        width: 100% !important;
    }

    .electric-bike {
        margin-left: 0 !important;
    }

    .form-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        backdrop-filter: blur(10px); /* Blurs content behind */
        background-color: rgba(109, 149, 174, 0.1); /* Same as body */
        z-index: 1000;
        padding: 1.5em 1em 2em;
    }

    .form-wrapper {
        padding-bottom: 5em; /* Adjust the space below the form to account for buttons */
    }
    
    .form-container {
        margin-bottom: 5em; /* Ensures the form doesn't overlap the fixed footer */
    }


    .file-upload label {
        display: block;
        font-weight: 600;
        font-size: 16px;
        margin-bottom: 12px;
    }

    .file-upload-row {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .file-upload-row input[type="file"] {
        font-size: 14px;
        padding: 1em;
    }

    /*FOOTER*/
    .footer-columns {
        flex-direction: column;
        gap: 2em;
        align-items: flex-start;
    }

    .footer-col {
        flex: unset;       /* Remove the flex property */
        min-width: unset;  /* Remove the min-width property */
    }

    .footer-col h3 {
        font-size: 1.1em;
    }

    .footer-col ul li {
        font-size: 1em;
    }

    /* Ensure that social section moves below the rest and is centered */
    .footer-col:last-child {
        width: 100%;
        order: 99; /* Push the socials block to the bottom */
    }

    .footer-col:last-child ul li {
        padding: 0;
        margin: 0;
    }

    .footer-cta {
        padding: 0 !important;  /* Add !important to force the override */
        display: block !important;
    }

    .footer-cta h2 {
        font-size: 1.5em;
        margin-bottom: 1em !important;
    }

    .footer-cta a {
        font-size: 0.95em;
        padding: 0.6em 1.2em;
        margin-bottom: 1em !important;
    }
    
    .footer-legal {
        margin-left: 2em;
    }


    .modal-content {
        width: auto !important;
        height: auto !important;
    }

    #tracker-code {
        width: 100%;
    }
  }

/* Landscape mobile orientation fixes */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        padding: 0 2%;
    }
    
    .hero h1 {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
        margin-top: 1em;
        max-width: 70%;
    }
    
    .hero-content {
        gap: 0.5em;
    }
    
    .hero-links {
        margin-top: 1.5em;
    }
    
    .page-banner {
        height: 100vh;
        min-height: 100vh;
    }
    
    .page-banner h1 {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
    }
    
    .familyimage {
        height: 80vh;
    }
    
    .bike-image {
        height: 70vh;
    }
    
    #map {
        height: 70vh;
    }
}

/* Very wide screens */
@media (min-width: 1400px) {
    .familytext {
        padding: 8em 10em;
    }
    
    .bikescontent {
        margin-left: -25em;
    }
}

.show {
    display: flex;
}