@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');

@font-face {
  font-family: 'Proxima Nova';
  src: url('./fonts/proximanova_regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Proxima Nova';
  src: url('./fonts/proximanova_semibold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
}

body {
  font-family: 'Proxima Nova', sans-serif;
  margin: 0;
  padding: 0;
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 1000;
}

/* Form Modal */
.form-modal {
  position: fixed;
  top: 50%;
  right: -350px;
  width: 335px;
  max-height: 90vh;
  background: #FFFFFF;
  padding: 40px 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: right 0.4s, top 0.4s;
  box-sizing: border-box;
  transform: translateY(-50%);
  overflow-y: auto;
  z-index: 1000000 !important;
}

.form-modal.active {
  right: 0;
}

/* Inputs */
.form-modal input {
  width: 100%;
  height: 43px;
  border-radius: 5px;
  border: 1px solid #C0C0C0;
  padding: 8px 12px;
  font-size: 14px;
  box-sizing: border-box;
}

.form-group {
  margin-bottom: 10px;
}

/* Submit Button */
.form-modal button[type="submit"] {
  width: 100%;
  height: 47px;
  background-color: #FF681E;
  color: #FFFFFF;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  font-family: 'Proxima Nova', sans-serif;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 15px;
  font-size: 15px;
}

.form-modal button[type="submit"]:hover {
  background-color: #e67e00;
}

/* Toggle Button (Default: Chrome/Firefox/Edge) */
#toggleBtn {
  position: fixed;

  right: -1px;
  background: #FF681E;
  color: white;
  padding: 22px 22px;
  border: none;
  cursor: pointer;
  z-index: 1200;
  font-weight: 600;
  font-size: 18px;
  font-family: 'Proxima Nova', sans-serif;
  display: inline-block;
  white-space: nowrap;
  text-orientation: mixed;
  transition: right 0.4s ease;
  writing-mode: vertical-lr !important;
  transform: rotate(180deg);
  transform-origin: center;
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
  border-top-right-radius: 15px;
  border-bottom-right-radius: 15px;
}






/* Hover & Active */
#toggleBtn:hover {
  background: #FF681E;
}

#toggleBtn.active {
  right: 334px;
}

/* Labels */
.label-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #202020;
  display: block;
}

/* Vehicle input wrapper */
.input-wrapper {
  display: flex;
  align-items: center;
  height: 47px;
  width: 100%;
}

.blue-box {
  width: 40px;
  height: 100%;
  background: #022487;
  border-radius: 5px 0 0 5px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  padding-top: 19px;
}

#vehicleReg {
  height: 100%;
  flex: 1;
  border: none;
  border-radius: 0 5px 5px 0;
  text-align: center;
  font-family: 'Oswald', sans-serif;
  font-size: 25px;
  outline: none;
  background-color: #F6D834;
  box-sizing: border-box;
  margin: 0;
}

#vehicleReg::placeholder {
  color: #C2A81B;
}

/* Policy text */
.policy-text {
  margin-top: 15px;
  width: 100%;
  font-size: 12px;
  color: #202020;
  line-height: 1.4;
  text-align: left;
}

/* Error Messages */
.error-message {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: red;
  font-family: 'Proxima Nova', sans-serif;
  visibility: hidden;
  height: 0;
}

.input-error+.error-message {
  visibility: visible;
  height: auto;
}

/* Responsive Media Queries with default Chrome/Firefox behavior */
/* @media (max-width: 414px) {
  .form-modal {
    width: 86%;
    right: -100%;
    top: 15% !important;
    transform: translateY(0);
  }

  .form-modal.active {
    right: 0;
  }

  #toggleBtn.active {
    right: 86%;
  }

  #toggleBtn {
    padding: 20px 12px;
    height: 170px;
    top: 15% !important;
    transform: translateY(0);
  }
} */

@media (max-width: 375px) {
  .form-modal {
    width: 84%;
    right: -100%;
    top: 19% !important;
    transform: translateY(0);
  }

  #toggleBtn.active {
    right: 84%;
  }

  #toggleBtn {
    padding: 20px 10px;
    height: 170px;
    top: 19% !important;
    /* transform: translateY(0); */
  }
}

@media (max-width: 344px) {
  .form-modal {
    width: 88%;
    right: -100%;
    top: 16% !important;
     transform: translateY(0);
  }

  #toggleBtn.active {
    right: 88%;
  }

  #toggleBtn {
    padding: 12px 5px;
    height: 160px;
    top: 16% !important;
    /* transform: translateY(0); */
  }
}

@media(min-width: 376px) and (max-width: 490px) {
  .form-modal {
    top: 16% !important;
    transform: translateY(0);
  }

  #toggleBtn {
    top: 16% !important;
    /* transform: translateY(0); */
  }
}


@media (max-width: 568px) {
  .form-modal {
    top: 22%;
    transform: translateY(0);
  }

  #toggleBtn {
    top: 22%;
    /* transform: translateY(0); */
  }
}

/* 768px – 800px: Large Tablets (portrait/landscape) */
@media (min-width: 768px) and (max-width: 800px) {
  .form-modal {
    top: 20% !important;
    transform: translateY(0);
  }

  #toggleBtn {
    top: 20% !important;
    /* transform: translateY(0); */
  }
}

/* 801px – 991px: Tablets / Small Laptops */
@media (min-width: 801px) and (max-width: 991px) {
  .form-modal {
    top: 18% !important;
    transform: translateY(0);
  }

  #toggleBtn {
    top: 18% !important;
    /* transform: translateY(0); */
  }
}

@media (min-width: 992px) and (max-width: 1022px) {
  .form-modal {
    top: 18% !important;
    transform: translateY(0);
  }

  #toggleBtn {
    top: 18% !important;
    /* transform: translateY(0); */
  }
}

@media (min-width: 1023px) and (max-width: 1199px) {
  .form-modal {
    top: 20% !important;
    transform: translateY(0);
  }

  #toggleBtn {
    top: 20% !important;
    /* transform: translateY(0); */
  }
}

@media (min-width: 1200px) {
  .form-modal {
    top: 28%;
    transform: translateY(0);
  }

  #toggleBtn {
    top: 28%;
    /* transform: translateY(0); */
  }
}


@media (min-width: 1280px) {
  .form-modal {
    top: 30%;
    transform: translateY(0);
  }

  #toggleBtn {
    top: 30%;
    /* transform: translateY(0); */
  }
}

@media (min-width: 1400px) {
  .form-modal {
    top: 29%;
    transform: translateY(0);
  }

  #toggleBtn {
    top: 29%;
    /* transform: translateY(0); */
  }
}

@media (min-width: 1600px) {
  .form-modal {
    top: 26%;
    transform: translateY(0);
  }

  #toggleBtn {
    top: 26%;
    /* transform: translateY(0); */
  }
}