html[data-scroll-comp='accessories-enquiry-form'] {
  scroll-padding-top: 55px;

  @media (width >=1024px) {
    scroll-padding-top: 115px;
  }
}

.accessories-enquiry-form-wrapper {
  position: relative;

  &::before {
    background: var(--primary-main);
    height: 16px;
    width: 100%;
    position: absolute;
    top: -1px;
    left: 0;

    @media (width >=1024px) {
      height: 24px;
    }
  }

  &::after {
    position: absolute;
    height: 16px;
    display: block;
    right: 0;
    left: 0;
    top: 0;
    background-color: var(--tertiary-light-grey);
    clip-path: polygon(218px 0, 100% 0, 100% 100%, 205px 100%);

    @media (width >=768px) {
      clip-path: polygon(576px 0, 100% 0, 100% 100%, 565px 100%);
    }

    @media (width >=1024px) {
      height: 24px;
      clip-path: polygon(734px 0, 100% 0, 100% 100%, 724px 100%);
    }

    @media (width >=1366px) {
      clip-path: polygon(986px 0, 100% 0, 100% 100%, 972px 100%);
    }

    @media (width >=1920px) {
      clip-path: polygon(1400px 0, 100% 0, 100% 100%, 1385px 100%);
    }
  }

  &:has(.subscribe-page-variant),
  &:has(.get-quote-variant) {

    &::before,
    &::after {
      content: none;
    }
  }

  .get-quote-variant {
    .phone-otp-field {
      @media (width >=1024px) {
        order: 99;
      }
    }

    .btn-primary-outline {
      color: var(--primary-main);

      @media (width >=1024px) {
        width: auto;
      }
    }

    .call-icon {
      background: url(/icons/call-icon-black.svg) no-repeat;
      width: 20px;
      height: 20px;
    }

    .form-button {
      display: flex;
      flex-direction: column-reverse;
      gap: 16px;

      @media (width >=768px) {
        gap: 24px;
        flex-direction: row;
      }

      @media (width >=1024px) {
        gap: 16px;
      }

      button {
        width: 100%;

        @media (width >=768px) {
          width: 50%;
        }

        @media (width >=1024px) {
          width: auto;
        }
      }
    }
  }
}

/* bottom-fix css */

.accessories-enquiry-form-container:has(.bottom-fix) {
  .mobile-form-dialog.open {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9;
    background: var(--black-075);
    backdrop-filter: blur(6px);
  }

  .acc-form-parent {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100%;
    max-width: 80%;
    height: 70%;
    transform: translate(-50%, calc(-50% - 100vh));
    transition: transform 0.6s ease;
    z-index: 9;

    @media (width <1200px){
      min-height: 362px;
    }

    &.animate-in {
      transform: translate(-50%, -50%);
    }

    &::before {
      position: absolute;
      content: '';
      height: 16px;
      display: block;
      right: 0;
      left: 0;
      top: -15px;
      background: var(--tertiary-white);
      clip-path: polygon(48% 0, 100% 0, 100% 100%, 45% 100%);
    }

    @media (width <480px) {
      max-width: calc(100% - 32px);
    }
  }

  .acc-form {
    position: fixed;
    top: 50%;
    left: 50%;
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--tertiary-white);
    padding: 24px 16px 16px 16px;
    z-index: 9;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    .form-bottom {
      margin-top: auto;
    }

    @media (width <1200px) {
      overflow: auto;
      min-height: 362px;
    }

    @media (width >=1200px) {
      top: unset;
      bottom: 0;
      left: 0;
      max-width: 100%;
      height: auto;
      transform: translate3d(0, 200px, 0);
      transition: all 0.5s ease;
      box-shadow: 0 0 10px grey;
      z-index: 9;
      padding-block: 12px;
      padding-inline: 3.5rem;

      &.animate-in {
        transform: translate3d(0, 0, 0);
        opacity: 1;
      }
    }

    .accessories-enquiry-form-wrapper {
      &::before {
        background: none;
      }

      &::after {
        background: var(--gradient-18);
        height: 16px;
        top: -15px;

        @media (width >=1200px) {
          clip-path: polygon(63% 0, 100% 0, 100% 100%, 62% 100%);
        }
      }
    }

    .heading {
      margin-bottom: 0;
      font-size: var(--heading-xs-nexa, var(--heading-m-arena));
      line-height: var(--lh-20px-nexa, var(--lh-24px-arena));
      font-weight: var(--fw-500);
    }

    .form-input {
      /* background: var(--tertiary-white);
      border-bottom: 0; */
      padding: 10px 6px;
    }

    .custom-dropdown-select {
      .dropdown-label::after {
        background: url(/icons/arrow_drop_down_gray.svg) no-repeat;
        /* right: 8px; */
      }

      .dropdown-list {
        bottom: 100%;

        @media (width <1200px) {
          top: 100%;
          bottom: unset;
        }
      }
    }

    .form-button {
      .btn {
        clip-path: none;
        margin-right: 12px;

        @media (width <1200px) {
          width: 100%;
          margin-top: 10px;
          margin-right: 0;
        }
      }
    }

    .resentOtp-Container {
      @media (width >=1200px) {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
      }

      &:has(.invalid-otp) {
        @media (width >=1200px) {
          bottom: -36px;
        }
      }

      .resend-otp {
        margin-left: inherit;
      }
    }

    .disclaimer-wrap {
      margin: 0;

      .form-check-box {
        & input[type='checkbox'] {
          width: 14px;
          height: 14px;

          &:checked::after {
            top: 0.5px;
            left: 4px;
          }
        }
      }

      .text-medium {
        font-size: var(--body-xs-nexa, var(--body-xxs-arena));
        line-height: var(--lh-16px-nexa, var(--lh-16px-arena));
      }
    }
  }

  .form-wrap .g-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 12px;

    .car-models,
    .name-field,
    .phone-otp-field,
    .phone-field,
    .otp-field {
      width: 100%;

      @media (width >=1200px) {
        flex: 1;
        min-width: 180px;
        max-width: 200px;
      }

      /* &:last-child {
        max-width: fit-content;
      } */
    }

    .phone-field {
      .input-box-wrapper {
        @media (width<1200px) {
          display: block;
        }

        .auth-btn {
          text-align: right;
        }
      }
    }

    .phone-otp-field:has(.otp-field) {
      width: auto;
    }
  }

  .form-button {
    margin-left: auto;
  }

  .bottom-fix-close-button {
    position: absolute;
    top: 0;
    right: 16px;
    border: none;
    font-size: 20px;
    cursor: pointer;
    background: url(/icons/bottom-sticky-close.svg) no-repeat;
    width: 24px;
    height: 24px;

    @media (width >=1200px) {
      top: unset;
      right: 22px;
    }
  }

  .accessories-enquiry-form {
    padding: 0px;
    background: var(--tertiary-white);
  }

  .acc-btn {
    position: fixed;
    bottom: 0;
    z-index: 9;
    padding: 8px 16px;
    right: var(--container-margin);
    background: var(--primary-main);

    span {
      font-size: var(--heading-m-nexa);
      font-weight: var(--fw-300);
      height: 22px;
      display: inline-block;
      vertical-align: top;
      margin-left: 6px;
    }

    @media (width <1200px) {
      width: 50px;
      height: 50px;
      bottom: 84px;
      border-radius: 100%;
      overflow: hidden;
      color: transparent;
      padding: 0;

      &::before {
        content: '';
        display: inline-block;
        width: 100%;
        height: 100%;
        background-image: url(/icons/acc-icon.png);
        background-size: 50%;
        background-position: 58% 50%;
        background-repeat: no-repeat;
      }
    }

    @media (width >=1024px) and (width < 1200px) {
      right: calc(var(--container-margin) * 2.5);
    }

    @media (width >=1200px) {
      right: calc(var(--container-margin) * 3.5);
      transform: translate3d(0, 100px, 0);
      opacity: 0;
      transition:
        transform 0.6s ease,
        opacity 0.6s ease;

      &.btn-in {
        transform: translate3d(0, 0, 0);
        opacity: 1;
      }
    }

    .accessories-enquiry-form-wrapper::before {
      content: none;
    }

    .bottom-fix {
      padding: 0;
    }
  }

  .custom-dropdown-select .dropdown-list {
    @media (width <1200px) {
      max-height: 37vh;
    }
  }

  .exchange {
    width: 100%;

    @media (width >=1200px) {
      width: 237px;
    }
    @media (width >=1300px) {
      width: 260px;
    }
  }
}

.accessories-enquiry-form {
  padding-block: 48px;
  background: var(--tertiary-light-grey);

  @media (width >=1024px) {
    padding-block: 80px;
  }

  .dropdown-list {
    display: none;
    max-height: 180px;

    &.active {
      display: block;
    }
  }

  .send-otp-btn:disabled {
    opacity: 0.5;
  }

  .heading {
    margin-bottom: var(--m-40px);
  }
}

body.arena {
  .accessories-enquiry-form-wrapper {
    .accessories-enquiry-form {
      background: var(--white-smoke);
    }

    .get-quote-variant {
      .form-button {
        flex-direction: column-reverse;

        @media (width >=768px) {
          flex-direction: row;
        }
      }

      .call-icon {
        background: url(/icons/call-icon-blue.svg) no-repeat;
      }
    }

    .disclaimer-wrap .form-check-box {
      label {
        color: var(--tertiary-black);
        font-size: var(--body-xxs-arena);
        line-height: var(--lh-14px-arena);

        @media (width >=1024px) {
          font-size: var(--body-xs-arena);
          line-height: var(--lh-20px-arena);
        }
      }
    }
  }

  .accessories-enquiry-form-container:has(.bottom-fix) {
    .bottom-fix-close-button {
      top: 24px
    }

    .acc-form {
      @media (width <1200px) {
        padding-top: 56px;
      }

      .heading {
        font-weight: var(--fw-600);
      }
    }

    .acc-form-parent {
      &::before {
        content: none;
      }
    }

    .custom-dropdown-select {
      .dropdown-label::after {
        background: url(/icons/arrow_drop_down_light.svg) no-repeat center;
      }
    }

    .send-otp-btn {
      @media (width < 1200px) {
        margin-top: 8px;
      }
    }

    .acc-btn {
      @media (width >=1024px) and (width < 1200px) {
        right: calc(var(--container-margin) * 3);
      }
    }
  }
}

.acc-btn {
  display: none;
}

.accessories-enquiry-form:has(.bottom-fix) .acc-btn {
  display: block;
}

@media (width <1200px) {

  html:has(.mobile-form-dialog.open),
  body:has(.mobile-form-dialog.open) {
    overflow: hidden;
  }
}

body.hypercommercial {
  .accessories-enquiry-form-container:has(.bottom-fix) {
    .acc-form .btn {
      border: 1px solid var(--com-text-color-red);
      background: var(--com-text-color-red);

      &:hover {
        background-color: var(--com-red-hover);
      }

      &:disabled {
        opacity: 0.5;
      }
    }

    & .form-wrap .g-row {

      & .car-models,
      & .name-field,
     
      & .otp-field {
        @media (width >=1200px) {
          max-width: 165px;
          min-width: 140px;
        }
      }
      & .phone-field,
      & .phone-otp-field {
        /* for smaller screens like 1280px */
        @media (width >=1200px) {
          min-width: 112px;
          max-width: 116px;
        }
        @media (width >=1300px){
          max-width: 165px;
          min-width: 140px;
        }
      }
    }

    .send-otp-btn {
      color: var(--com-text-color-red);
    }

    .acc-btn {
      @media (width < 1200px) {
        display: none;
      }
    }
  }
}
