@font-face {
    font-family: 'GEELY Light';
    src: url('fonts/GEELYLight20150902.woff2') format('woff2'),
         url('fonts/GEELYLight20150902.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'rubik-medium';
    src: url('fonts/Rubik-Medium.woff') format('woff'),
         url('fonts/Rubik-Medium.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'rubik-regular';
    src: url('fonts/Rubik-Regular.woff') format('woff'),
         url('fonts/Rubik-Regular.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'rubik-regular', Arial, sans-serif;
    background: #ffffff;
    overflow-x: hidden;
    /* height: 100vh; */
}

.container {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100vh;
    
}

.logo-black{
   display: block; 
   text-align: center;
}

.logo-black img{
    width: 55%;
    margin: 2vh auto;
}

.logo-white{
    display: none;
}

.form-area {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 22%;
    background: #e8edf5; 
    padding-top: 2vh;
    position: relative;
    height: 100vh;
}

.form-title {
    font-family: 'rubik-medium', Arial, sans-serif;
    font-size: 24px; /* Adjust size as needed */
    color: #5d80b5; /* Color for part of the title */
    text-align: center;
    margin-bottom: -20px;
}

/* Additional title part styling if needed */
.form-title span {
    color: #231f20; 
    display: block;
}

/* .form{
    width: 90%;
    height: 80%;
    overflow-y: auto;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background: #e8edf5;
} */

.onFormSubmittedFeedback{
    background: #e8edf5;
}

div[data-form-block-id] .onFormSubmittedFeedback {
    margin: 50px auto;
    background: #e8edf5;
}

.main-area {
    width: 100%;
    background: #587eb6; 
    background-image: url("images/blueBg.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    /* padding: 20px;  */
}

.car-details {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 80%;
    margin-top: 4%;
    /* margin-right: 5%; */
    position: relative;
    transform: translateX(-10%);
}

.carImage{
    flex: 0 1 auto;
    max-width: 35%;
    padding-bottom: 135px;
    position: relative;
    z-index: 2;
}

.range {
    position: absolute;
    z-index: 1;
    top: -10%; 
    width: 35%;
    right: -15%;
    text-align: center;
    direction: rtl;
    /* transform: translateX(-70%); */
    border-radius: 10px;
    border: 1px solid white;
    padding: 10px 5px;
    font-size: 1.2vw; /* Adjust font size as needed */
    color: rgb(255, 255, 255);
}

.date-range {
    display: inline;
    font-family: 'rubik-medium', Arial, sans-serif;
    position: absolute; 
    bottom: 4%;           
    right: -10%;           /* Center it horizontally */
    font-size: calc(5vw + 1vh);    /* Larger font size */
    font-family: 'Rubik', sans-serif; /* Font style from your setup */
    color: #ffffff;         /* Text color */
    z-index: 10;         /* Make sure it's above the car image */
}

 .carImage img{
    width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
    transition: opacity 0.5s ease-in-out;
    opacity: 0; 
    display: none;
 }

 .carImage img.active {
    opacity: 1;
    display: block;
}

 .big-text {
    font-family: 'GEELY Light', Arial, sans-serif;
    position: relative;
    /* text-align: left; */
    flex: 0 1 auto;
    display: flex;
    flex-direction: column; 
    align-items: flex-start;
    font-size: calc(7vw + 5vh + 2vmin);
    /* white-space: nowrap; */
    margin-right: -20vw;
    margin-left: 5%;
    line-height: 0.8;
    white-space: nowrap;
}

.big-text span {
    display: block;
    /* text-align: left; */
}

.big-text .word1 {
    color: #c0cae0; /* Blue */
}

.big-text .word2 {
    color: #ffffff; /* Light grey */
}

.big-text .word3 {
    color: #000000; /* Black */
    white-space: nowrap;
}

.black-strip {
    direction: rtl;
    background-color: #000000;
    color: #a1bad7;
    text-align: center;
    padding: 10px 0;
    position: absolute;
    width: 100%;
    height: 9%;
    bottom: 21%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'rubik-medium', Arial, sans-serif;
}

.black-strip .sale-week {
    color: #ffffff; /* White color for 'שבוע מכירות' */
    margin-left: 1%; /* Spacing between the two parts */
}

.black-strip span {
    font-size: calc(2.5vw + 1vh);
    line-height: 1; 
    margin-bottom: 20px;
}

.date-range-mobile {
    display: none;
}

.buttons-area {
    background: #ffffff; 
    display: flex;
    justify-content: center;
    align-items: center; 
    padding: 5px 0;
    width: 100%;
    height: 12%;
    position: absolute;
    bottom: 9%;
}

.buttons-area img {
    
    cursor: pointer;
    transition: opacity  0.3s ease;
    margin: 0 4%; /* Spacing between buttons */
}

.button{
    transform: scale(0.8);
}

.buttons-area img:hover {
    opacity: 0.8; 
}

.active {
    opacity: 1 !important; /* Ensures the active state is fully visible */
}

.info-text {
    background: #ffffff; 
    color: #000000;
    text-align: center;
    width: 100%;
    height: 9%;
    position: absolute;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.info-text p{
    font-size: 1em;
    text-align: right;
    padding: 0 2%;
}

.buttonContainer{
    display: flex;
    justify-content: center;
    width: 100%;
}

#callButton, #formButton {
    font-size: 6vw;
    background-color: #94aacf; /* Sample blue color, adjust as needed */
    color: white;
    border: 1px #c7d4e6 solid;
    border-radius: 25px; /* Rounded corners */
    padding: 1% 5%;
    margin: 4% 2%;
    cursor: pointer;
    display: none;
}

.info-text2{
    background: #ffffff;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
    text-align: right;
    height: 100vh;

    /* background-image: url("images/infoDesktop.png");
    background-size: cover;
    background-repeat: no-repeat; */
}
.info-text2 img{
    content: url("images/infoDesktop.png");
    width: 90%;
}
.seperator{
    height: 1px;
    background-color: #eeeeee;
    transform: scaleY(0.3);
    transform-origin: 0 0;
}

.form {
    font-family: 'Rubik', sans-serif;
    padding: 10px; /* Adding some padding around the form content */
    box-sizing: border-box;
}

.form .closeMe{
    display: none;
}

.form-area div[data-editorblocktype="Text"] {
    display: none; /* Hide original title */
}

.original-title-selector {
    display: none;
    height: 0;
    margin: 0;
    padding: 0;
}

.form-area .columnContainer {
    padding: 0;
    margin: 0;
    width: 100% !important; /* Force single column layout */
}

.form-area .lp-form-field {
    padding: 10px 0; /* Reduce or adjust vertical padding */
    width: 100%; /* Ensure fields use full container width */
}

.form-area input, .form-area select {
    width: calc(100% - 20px); /* Full width minus padding */
    margin: 0 auto; /* Center align fields */
    display: block; /* Ensure elements don't inline */
}

.form-area input, .form-area select, .form-area button[type="submit"] {
    margin-bottom: 10px;
    margin-top: 0; /* Consistent spacing between elements */
}

.form-area .columnContainer,
.form-area .marketing-field,
.form-area .lp-form-field {
    padding: 0;
    margin: 0;
    width: 100%; /* Ensure full width */
}

.form p:first-of-type {
    color: #000000; /* Light blue color for the first part */
    font-size: 24px;
    font-weight: 500; /* Medium weight assuming Rubik-Medium is approx. 500 */
    text-align: center;
}

.form p:first-of-type + p {
    color: #000000; /* Black color for the second part */
    font-size: 24px;
    font-weight: 500;
    text-align: center;
    margin-top: -20px; /* Negative margin to pull the titles closer together */
}

.f_cb, .f_text{
    font-family: 'rubik-regular', Arial, sans-serif;
    font-size: 13px;
}

.columnContainer, .emptyContainer{

    Padding:0 !important;
    
}

input::placeholder, select::placeholder, textarea::placeholder { 
    color: white; /* Ensures placeholders are white */
}

/* Styling for inputs to match the provided design */
.form-area input[type="text"],
.form-area input[type="email"],
.form-area input[type="tel"],
.form-area select {
    background-color: #6f8ebe; /* Light blue background */
    border: 1px solid transparent; /* Remove border */
    color: #ffffff; /* White text color */
    margin-bottom: 10px; /* Reduce space between fields */
    padding: 10px 15px; /* Comfortable padding inside inputs */
    border-radius: 20px; /* Rounded corners for inputs */
    font-family: 'rubik-medium', Arial, sans-serif;
    font-size: 16px;
    width: 100%;
}

div.columnContainer:has(>button[type="submit"]){
    /* padding: 0; */
}

/* Adjusting the send button */
.form-area button[type="submit"] {
    background-color: #231f20; /* Nearly black background for the button */
    color: #ffffff; /* White text */
    font-family: 'rubik-medium', Arial, sans-serif;
    text-transform: uppercase; /* Uppercase text for emphasis */
    border: none; /* No border */
    padding: 5px 1px; /* Comfortable padding */
    height: auto;
    font-size: 18px;
    border-radius: 25px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
    margin-top: -30px; /* Space above the button */
    display: block;
    width: 100%;
}

.hidden {
    display: none;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}


/* Checkbox and corresponding label styling */
.form-area input[type="checkbox"] {
    margin-right: 10px;
    float: right;
}

label {
    display: block; /* Ensuring labels appear on new line */
    margin: 10px 0; /* Spacing around labels */
    color: black;
    text-align: right;
    font-size: 14px;
    width: 100%;
}

/* Textarea adjustments for comments or larger text inputs */
textarea {
    height: 100px; /* Larger height for text area */
    padding: 10px; /* Padding inside textarea */
    background-color: #f0f0f0; /* Matching background color */
}

@media (min-height: 800px){
    .form-area input[type="text"],
    .form-area input[type="email"],
    .form-area input[type="tel"],
    .form-area select {
        margin-bottom: 20px; 
        padding: 10px 15px; 
        width: 80%;
    }
    .form input {
        height: 45px;
    }

    .f_text p{
        padding-top: 30px;
    }
}

@media (max-width: 768px) {

    .form {
        padding: 10px; /* Smaller padding on smaller screens */
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select,
    button {
        font-size: 16px; /* Slightly smaller font size on small screens */
    }

    .form-area label {
        font-size: 12px; 
    }

    .form .closeMe{
        display: block;
    }

    .container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: auto;
    }

    .logo-black{
        display: none; 
    }

    .logo-white{
        display: block; 
        margin: 5% auto;
        width: 25%;
    }

    .logo-white img{
        width: 100%;
    }

    .main-area {
        background-image: url("images/bgMobile.jpg");
        padding: 10px;
    }

    .car-details {
        /* flex-direction: column; */
        margin-top: -5%;
        width: 80%;
        margin-left: 5%;
    }

    .carImage {
        order: 2; /* Position the car image below the text */
        max-width: 100%;
        padding-top: 18%;
        margin-left: 3%;
    }

    .range {
        font-size: 0.9rem; 
        width: 22vw;
        padding: 5px 3px;
        top: 2%;
    }

    .carImage img{
        width: 125%;
    }

    .big-text {
        
        font-size: calc(12vw + 5vh + 2vmin);
        text-align: center;
        margin-right: -170px;
        margin-left: 5%;
        margin-top: -2%;
    }

    .form-area {
        position: fixed;
        /* display: none; */
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.9);
        transform: translateY(100%); /* Initially off-screen */
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
    }

    .form-area input[type="text"],
    .form-area input[type="email"],
    .form-area input[type="tel"],
    .form-area select {
        margin-bottom: 20px; 
        padding: 5px 15px;
    }

    .black-strip{
        height: auto;
        bottom: 25%;
        font-size: 2.5vw; 
        color: #a1bad7;
        flex-direction: column; 
        padding: 1% 0;
        justify-content: space-around;
        bottom: 34%;
    }

    .black-strip span{
        margin-top: 0;
        margin-bottom: 3%;
    }

    .black-strip .sale-week {
        font-size: 16vw; 
        color: white; 
    }

    .black-strip .sale-details {
        font-size: 4.8vw; 
        font-family: 'rubik-regular', Arial, sans-serif;
        margin-top: -3%; 
        margin-bottom: 1%;
    }

    .date-range{
        display: none;
    }

    .date-range-mobile {
        display: inline;
        font-size: 10vw !important; 
        color: white; /* White color for visibility */
        margin-top: 0%; /* Space from previous element */
    }

    .buttons-area{
        height: 9%;
        bottom: 25%;
    }

    .buttons-area img {
        height: 9vw;
        margin: 0 5% 5px 5%; /* Spacing between buttons */
    }

    .button{
        transform: scale(1.1);
    }

    .info-text{
        background-color: #587eb6;
        color: #ffffff;
        font-size: 14px;
        display: flex;
        justify-content: space-around;
        align-items: center;
        height: 25%;
        bottom: 0;
    }

    .info-text p{
        font-size: 0.8em;
        padding: 0 4%;
        margin-top: -2%;
        width: 85%;
    }

    .info-text2{
        transform: translateY(105%);
    }

    .info-text2 img{
        content: url("images/infoMobile.svg");
    }

    #callButton, #formButton {
        display: block; 
    }
    #callButton{
        background-color: #2b2d36;
    }

}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
