@font-face {
  font-family: 'hebrew_light';
  src: url('../assets/fonts/BMW/BMWTypeNextProHebrew-Light.otf');
}

@font-face {
  font-family: 'hebrew_regular';
  src: url('../assets/fonts/BMW/BMWTypeNextProHebrew-Regular.otf');
}

@font-face {
  font-family: 'light';
  src: url('../assets/fonts/BMW/BMWTypeNext-Light.otf');
}

@font-face {
  font-family: 'regular';
  src: url('../assets/fonts/BMW/BMWTypeNext-Regular.otf');
}

:root {
  --design-width: 1920;
  --design-height: 911;
  --image-height-in-design: 849;
  --image-width-in-design: 1403;
  --mob-image-height-in-design: 850;
  --mob-image-width-in-design: 640;
  
  --right-section-hero-height: min(calc((var(--image-height-in-design) / var(--design-height)) * 100vh),calc((var(--image-height-in-design) / var(--design-width)) * 100vw));
  --right-section-hero-width: min(calc((var(--image-width-in-design) / var(--design-width)) * 100vw), calc((var(--image-width-in-design) / var(--design-height)) * 100vh));
  
  --right-section-strip-height: calc( (((var(--design-height)) - var(--image-height-in-design)) / var(--design-height)) * 100vh);
  --strip-position: center;
  
  --mob-form-width: 80%;
  --form-width: 80%;
  --form-max-width: 30vw;
  --form-section-width: calc(100vw - var(--right-section-hero-width));
}

* {
  padding: 0;
  margin: 0;
  direction: rtl;
  box-sizing: border-box;
}
.main_container {
  font-family: 'regular', 'hebrew_regular','sans-serif';
  display: flex;
  flex-direction: row;
  align-items: center;
}
.right-side-container{
  width: var(--right-section-hero-width);
}
.hero-container {
  background-image: url('../assets/desktop-bg.jpg');
  background-repeat: no-repeat;
  background-size: contain;
  width: 100%;
  height: var(--right-section-hero-height);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  container-type: size;
  padding: 2%;
  position: relative;
}
.hero-title1 {
  width: 25%;
}
.hero-title2 {
  width: 53%;
}
.hero-t1 {
  width: 22%;
  position: absolute;
  top: 5%;
  right: 2%;
}
.hero-logo {
  width: 5%;
  position: absolute;
  top: 2.5%;
  left: 2.5%;
}
.strip-container {
  height: 2.5vw;
  display: flex;
  width: 100%;
  justify-content: var(--strip-position);
  align-items: center;
}

.strip{
  object-fit: contain;
  /* max-width: 100%; */
  max-width: 90%;
  height: 60%;
  margin-top: unset;
  margin-bottom: unset;
  cursor: pointer;
}

.first-section-title {
  font-size: 5.833vw;
  line-height: 1;
  /* font-family: "bold"; */
}

.first-section-sub-title {
  font-size: 3.833vw;
  line-height: 1;
}

.first-section-text {
  font-size: 1.354vw;
  /* font-family: "regular"; */

}

.ford_logo {
  object-fit: contain;
  width: 1;
  margin-bottom: unset;
  margin-top: unset;
}

#strip1 {
  margin: 0 0 5vw 0;
  object-fit: contain;
  width: 75vw;
}
.second_section {
  width: var(--form-section-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: white;
}

.form-title {
  font-family: 'hebrew_regular', 'regular', 'sans-serif';
  color: black;
  text-align: center;
  font-size: 1.7vw;
}

.form {
  display: flex;
  flex-direction: column;
  width: var(--form-width);
  max-width: var(--form-max-width);
  gap: min(10px, 1vw);
  color: #828282;
  font-family: 'hebrew_light', 'light','sans-serif';
}

.input {
  font-family: 'light', 'hebrew_light','sans-serif';
  font-size: 1vw;
  padding:0.5vw;
  border: 1px solid black;
  width: 100%;
}
.input::placeholder {
  color: #a7a1a1;
}
select {
  color: #767676;
}
option {
  color:  #767676;
}

.dropdown {
  outline: 1px solid black;
  width: 100%;
}
.text {
  font-size: 1vw;
  text-align: center;
  line-height: 1.2;
}
.checkbox_container {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 1vw;
  justify-content: start;
}
.links-3 {
  font-size: 0.8vw;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
}
.links-3 a {
  color: #828282;
}

.checkbox_label {
  font-size: 0.7vw;
  color: #828282;
  line-height: 1.2;
}

.checkbox {
  height: 1vw;
  width: 1vw;
}

.submit_btn {
  font-size: 1.5vw;
  border: unset;
  background-color: #1c69d4;
  color: white;
  font-family: "hebrew_regular";
  cursor: pointer;
  letter-spacing: 2px;
  padding: 0.5vw 1vw 0.5vw 1vw;
  letter-spacing: unset;
}

.submit_btn:disabled {
  border: 1px solid #617692;
  background-color: #617692;
}

.text2 {
  /* color: #919191; */
  color: #535050;
  /* font-size: 3.5vw; */
  font-size: 1vw;
  line-height: 1.2;
}

.terms_link {
  color: black;
}

.thanks_modal,
.registration_over_modal,
.wrong_license_modal {
  display: none;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: 30vw;
  width: 80vw;
  background-color: white;
  padding: 10vw 0;
  gap: 10vw;
  z-index: 999;
}

.thanks {
  display: none;
}

.thanks,
.registration_over,
.wrong_license {
  width: 100%;
  text-align: center;
  font-size: 5vw;
  /* font-family: regular, sans-serif; */
  color: black;
}

.contacts {
  font-size: 5vw;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.backdrop {
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #00000080;
  bottom: 0;
}

.contacts span {
  display: flex;
  flex-direction: row-reverse;
  gap: 2vw;
}

.icon {
  object-fit: contain;
  width: 5vw;
}

.terms {
  font-size: 0.7vw;
  color: #828282;
}

.triangle {
  object-fit: contain;
  width: 10vw;
  position: absolute;
  bottom: -5vw;
}

dialog {
  display: none;
  flex-direction: column;
  position: fixed;
  margin: auto;
  border: 0;
  border-radius: 12px;
}

#dialog_close_btn {
  user-select: none;
  width: fit-content;
  border: 0;
  cursor: pointer;
  font-size: 2vw;
  padding: 0.3vw 1vw;
}

#pollutionDialog img {
  height: 30vw;
  width: 90vw;
  object-fit: contain;
}

.thanks_message {
  padding: 8vw;
  font-size: 6vw;
  text-align: center;
  line-height: 1.1;
}


.mobile { display: none; }
.desktop { display: block; }
.error::placeholder { color: #fc5050; }
.error { outline: 1px solid #fc5050; }

@media screen and (max-aspect-ratio: 1/1), screen and (max-width: 768px) {


  .main_container{
    flex-direction: column;
    width: 100vw;
    position: relative;
    height: unset;
  }

  .right-side-container{
    width: 100%;
  }

  .hero-container{
    background-image: url('../assets/mobile-bg.jpg');
    width: 100%;
    height: unset;
    aspect-ratio: calc(var(--mob-image-width-in-design) / var(--mob-image-height-in-design));
    padding: 15% 5% 10% 5%;
  }
  .hero-title1 {
    width: 50%;
  }
  .hero-title2 {
    width: 95%;
  }
  .hero-t1 {
    width: 42%;
    top: 6%;
    right: 3%;
  }
  .hero-logo {
    width: 10%;
    top: 4%;
    left: 4%;
  }
  .links-3 {
    font-size: 3vw;
  }
  .strip-container {
    position: absolute;
    height: fit-content;
    bottom: -60px;
    width: 100%;
    height: unset;
  }

  .strip {
    max-width: 90%;
    width: 90%;
  }

  .second_section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    padding: 3vw;
  }

  .form-title{
    font-size: 6vw;
  }
  .form {
      width: var(--mob-form-width);
      max-width: unset;
      gap: 3vw;
  }
  .input {
    font-size: 5vw;
    padding: 1vw;
  }
  .checkbox_label {
    font-size: 2.5vw;
  }
  .checkbox {
    height: 5vw;
    width: 5vw;
  }
  .terms {
    font-size: 3vw;
  }
  .submit_btn {
    height: 10vw;
    font-size: 5vw;
  }
  #pollutionDialog img {
    content: url('../assets/popup_mobile.png');
    height: 80vw;
    width: 90vw;
  }
  #dialog_close_btn {
    font-size: 5vw;
    padding: 1vw 3vw;
  }
  .mobile { display: block; }
  .desktop { display: none; }
}