@import url('../../commons/styles/loader.css');

.survey-form {
  font-family: var(--service-font-family, var(--body-font-family));
  color: var(--primary-main);

  .survey-form__wrapper {
    position: relative;
    background-color: var(--tertiary-light-grey, #f5f5f5);
    display: flex;
    justify-content: center;
  }

  .g-container {
    padding: 2.5rem 1.25rem;

    @media (width >=1024px) {
      padding: 4rem 3.5rem;
    }
  }

  .heading-section {
    margin-bottom: 2rem;
  }

  .heading-section__title {
    :is(h1, h2, h3, h4, h5, h6, p) {
      font-size: var(--heading-font-6-mob, 1.5rem);
      font-weight: var(--fw-700, 700);
      line-height: var(--heading-lh-11-mob-display, 1.875rem);
      margin: 0 0 0.75rem 0;

      @media (width >=1024px) {
        font-size: var(--heading-font-5-des, 2rem);
      }
    }
  }

  .heading-section__description {
    font-size: var(--body-font-size-xxs, 0.875rem);
    font-weight: var(--fw-300, 300);
    line-height: 1.25rem;
    margin: 0;
  }

  /* Form base styles (copied from commons/book-service-appointment-login) */
  .form__wrapper {
    padding: 1.5rem;
    background-color: var(--tertiary-white);

    @media (min-width: 1024px) {
      padding: 3rem;
    }

    input[type='text'],
    input[type='tel'] {
      background: none;
      width: 100%;
      border: none;
      border-bottom: 1px solid var(--dark-grey-shade-7);
      font-size: var(--body-font-size-xxs);
      line-height: 1.25rem;
      padding: var(--space-4px) 0;
      font-family: var(--body-font-family);

      &:focus {
        outline: none;
      }

      @media (min-width: 1024px) {
        padding: var(--space-8px) 0;
        font-size: var(--body-font-size-xs);
        font-family: var(--font-primary-nexa);
      }
    }

    .dropdown-container {
      width: 100%;

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

      label {
        width: 100%;

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

      .label {
        font-size: var(--heading-font-8-mob);
        line-height: var(--heading-lh-19-mob-text-small);
        margin-bottom: 8px;
      }
    }

    .custom-select {
      position: relative;
      display: block;

      &::after {
        content: '';
        position: absolute;
        right: 0;
        top: 5px;
        height: 1.5rem;
        width: 1.5rem;
        background: url(/icons/select_down.svg) no-repeat center/contain;
        pointer-events: none;
      }

      .custom-select__selected {
        width: 100%;
        padding: 8px 24px 8px 0;
        border: none;
        border-bottom: 1px solid var(--tertiary-deep-Grey);
        display: flex;
        justify-content: space-between;
        color: var(--primary-main);
        font-size: var(--heading-font-8-mob);
        line-height: var(--heading-lh-19-mob-text-small);
        font-family: var(--font-primary-nexa);
        cursor: pointer;
        background: none;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;

        &:focus {
          outline: none;
        }
      }

      .custom-select__options {
        position: absolute;
        overflow-y: auto;
        max-height: 200px;
        width: 100%;
        display: flex;
        flex-direction: column;
        box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.06);
        background: var(--tertiary-white);
        z-index: 10;
      }

      .custom-option {
        padding: 12px 16px;
        cursor: pointer;
        color: var(--secondary-main);
        font-size: var(--heading-font-11-mob-text-small);
        line-height: var(--heading-lh-25-mob-text-small);
        display: flex;
        justify-content: space-between;
        align-items: center;

        &:hover {
          background-color: var(--tertiary-light-grey);
        }
      }

      .custom-option.selected::after {
        content: '';
        display: inline-block;
        width: 1rem;
        height: 1rem;
        background-image: url(/icons/tick.svg);
        background-size: contain;
        background-repeat: no-repeat;
      }
    }
  }

  .form__wrapper-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 16px 24px 16px;

    @media (min-width: 1024px) {
      padding: 24px 24px 24px 24px;
    }
  }

  .form__input-grid {
    @media (min-width: 1024px) {
      display: flex;
      flex-direction: column;
      column-gap: 2rem;
    }
  }

  .form__input {
    margin-bottom: 1rem;
    position: relative;

    &.form__input--disclaimer {
      p:not(:last-child) {
        margin-bottom: 4px;

        @media (min-width: 1024px) {
          margin-bottom: 0;
        }
      }
    }
  }

  .form__input--label {
    font-weight: var(--fw-500);
  }

  .form__foot {
    display: flex;
    gap: 8px;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 1.5rem;

    @media (min-width: 1024px) {
      gap: 0;
    }
  }

  .form__input--disclaimer,
  .form__input--radio {
    p {
      margin: 0;
    }

    font-size: var(--body-font-size-xxxxs);
    line-height: 1.25rem;
    color: var(--tertiary-deep-Grey);

    strong {
      font-weight: var(--fw-500);
    }

    a {
      color: var(--primary-main);
      font-weight: var(--fw-500);
    }

    @media (min-width: 1024px) {
      grid-column: span 2;
      line-height: 1.25rem;
    }
  }

  .form__input--radio-container {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .form__input--radio-label {
    display: flex;
    align-items: center;
  }

  .form__input--mobile {
    @media (min-width: 1024px) {
      &:has(> .form__input.form__input--otp) {
        flex-direction: column;
        width: 50%;
      }
    }
  }

  .form__input--captcha,
  .form__input--mobile {
    &:has(input[type='text']:read-only, input[type='tel']:read-only) {
      &::after {
        content: '';
        position: absolute;
        right: 0;
        top: 8px;
        mask: url(/icons/check-circle-success.svg);
        background: var(--green-shade-1);
        font-weight: normal;
        font-size: 0.8em;
        width: 1.5rem;
        height: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
      }
    }
  }

  .form__input--radio {
    input[type='radio'] {
      accent-color: var(--primary-main);
      margin-top: 0;
      height: 14px;
      width: 14px;
    }
  }

  .form__input--radio-label.checked {
    color: var(--primary-main);
  }

  .form__input--otp {
    display: flex;
    gap: 1.25rem;

    input[type='text'],
    input[type='tel'] {
      text-align: center;
    }

    @media (width>=1024px) {
      margin-right: 1.5rem;
    }
  }

  .form__input-items {
    position: relative;
    margin-top: 0.5rem;
  }

  .form__input-items .form__input-items--button,
  .form__input-items .form__input-button--resend {
    @media (width>=1366px) {
      bottom: var(--space-4px);
    }
  }

  .form__error {
    display: block;
    line-height: 0.75rem;
    font-size: var(--body-font-size-xxxs);
    color: var(--primary-red);
    margin-top: 0.5rem;
  }

  .form__helper {
    display: block;
    line-height: 0.75rem;
    font-size: var(--body-font-size-xxxs);
    color: var(--secondary-main);
    margin-top: 0.5rem;
  }

  .form__input-items--button {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }

  .form__input-button {
    font-family: var(--font-primary-nexa);
    font-size: var(--body-font-size-xxxs);
    line-height: 1rem;
    font-weight: var(--fw-400);
    background: none;
    outline: none;
    border: none;
    cursor: pointer;
    margin-top: 1rem;
    flex-shrink: 0;

    &:disabled {
      cursor: unset;
      color: var(--tertiary-deep-Grey);
    }

    &:focus {
      outline: none;
    }
  }

  .form__input-button--otp {
    margin-bottom: 1.25rem;
  }

  .form__input-button--resend {
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    font-size: var(--body-font-size-xxxxs);
    line-height: normal;

    @media (min-width: 1024px) {
      margin-bottom: 0;
    }
  }

  .form__error-highlight {
    background: var(--secondary-red);
    padding: 8px 12px;
    display: block;
    margin-bottom: 1rem;

    @media (min-width: 1024px) {
      margin-bottom: 1.5rem;
    }
  }

  .form__button {
    width: 100%;
    padding: 0.5rem 1rem;
    font-family: var(--font-primary-nexa);
  }

  .form__button--submit {
    width: 100%;
    margin: 0;
    border: none;
    background: var(--primary-main);
    color: var(--tertiary-white);
    cursor: pointer;
    font-size: var(--body-font-size-xxs);
    line-height: 1.25rem;
    grid-column: span 2;
    font-family: var(--body-font-family);

    &::after {
      content: none;
    }

    &:disabled {
      background: var(--tertiary-medium-grey);
      color: var(--tertiary-light-grey);
      cursor: unset;
    }

    @media (min-width: 768px) {
      width: auto;
    }
  }

  .form__tooltip {
    max-height: 20px;
    margin-left: 8px;
    position: relative;

    .form__tooltip-text {
      display: none;
      position: absolute;
      bottom: calc(100% + 16px);
      color: var(--tertiary-white);
      background: var(--secondary-main);
      padding: 8px 12px;
      width: 200px;
      transform: translateX(-45%);
      text-align: center;
      font-size: var(--body-font-size-xxxxs);
      line-height: var(--heading-lh-17-mob-text-normal);
    }

    .form__tooltip-arrow {
      display: none;
      position: absolute;
      height: 0;
      width: 0;
      border-left: 10px solid transparent;
      border-right: 10px solid transparent;
      border-top: 17px solid var(--secondary-main);
      bottom: 100%;
    }

    &:hover {

      .form__tooltip-text,
      .form__tooltip-arrow {
        display: block;
      }
    }
  }

  .bsa-car-select-stack {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;

    @media (min-width: 1024px) {
      grid-column: span 2;
    }

    .dropdown {
      margin-bottom: 8px;
    }
  }

  .bsa-car-select-stack__heading {
    display: block;
    margin-bottom: 0.25rem;
  }

  .bsa-car-entry-mode {
    margin-bottom: 1.25rem;

    .bsa-car-entry-mode__radios {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
      width: 100%;

      @media (min-width: 1024px) {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 2rem;
      }
    }

    .bsa-car-entry-mode__option {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      font-size: var(--body-font-size-xs);
      line-height: 1.4;
      cursor: pointer;
      width: 100%;
      max-width: 100%;
      text-align: left;

      @media (min-width: 1024px) {
        width: auto;
        font-size: var(--body-font-size-s, 1rem);
        gap: 0.875rem;
      }

      input[type='radio'] {
        width: 1.125rem;
        height: 1.125rem;
        min-width: 1.125rem;
        min-height: 1.125rem;
        margin: 0;
        accent-color: var(--primary-main);
        flex-shrink: 0;
        cursor: pointer;
      }
    }

    .bsa-car-entry-mode__option-text {
      text-align: left;
    }

    .bsa-car-entry-mode__option.checked {
      color: var(--primary-main);
    }
  }

  .bsa-car-add-fields {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
  }

  /* Arena form overrides (copied from blocks/services/book-service-appointment-login) */
  .survey-form__contents {
    width: 100%;
    max-width: 800px;

    .form__wrapper-inner {
      padding: 0;

      .form__inner--input {
        margin-bottom: 0;
        width: 100%;
      }

      input[type='text'],
      input[type='tel'] {
        border-bottom: 0.5px solid var(--light-grey-shade-6);
        color: var(--primary-main);
      }

      .form__input {
        margin-bottom: 1rem;

        @media (width >=1024px) {
          margin-bottom: 2.5rem;
        }
      }

      &:has(.form__input-button--otp) {
        .form__input {
          margin-bottom: 1rem;
          display: flex;
          flex-direction: column;
          position: relative;

          @media (width>1024px) {
            margin-bottom: 1.875rem;
          }
        }
      }

      .form__input--mobile:has(.form__input-button--otp) {
        display: flex;
        flex-direction: column;
        margin-bottom: 1.5rem;

        .form__inner--input {
          input {
            margin-bottom: var(--space-2px);
          }
        }

        .form__input-items {
          @media (width >=1024px) {
            border: 0;
          }
        }

        .form__input-button--otp {
          width: 100%;
          padding: 0;
          margin: 0;
          font-size: var(--body-font-size-xxs);
          line-height: var(--heading-lh-4--mob-text-medium);
          color: var(--primary-main);
          border: none;

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

          &:disabled {
            color: var(--inactive-content);
          }
        }
      }

      .form__input--otp {
        margin: var(--space-24px) 0;
        gap: 0;

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

        .form__inner--otp {
          display: flex;
          gap: 1rem;

          input {
            color: var(--light-grey-shade-6);
            border-bottom: 1px solid var(--light-grey-shade-6);
          }

          input[type='tel'] {
            border-bottom: 0.5px solid var(--light-grey-shade-6);
            border-image: none;
          }
        }
      }

      .form__input-button--resend {
        &:disabled {
          color: var(--inactive-content);
        }

        position: absolute;
        right: 0;
        margin: 0;
        padding: 0;
        bottom: -2rem;
        color: var(--primary-blue-700);

        @media (width>=1024px) {
          width: max-content;
          left: 5rem;
          bottom: 0;
        }
      }

      .form__button--submit {
        padding: 0.5rem 1rem;
        line-height: var(--heading-lh-4--mob-text-medium);
        background-color: var(--primary-blue-700);

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

        &:disabled {
          background-color: var(--bars-unselected);
          color: var(--inactive-content);
        }
      }
    }

    .form__input--radio {
      input[type='radio'] {
        height: 12px;
        width: 12px;
      }
    }

    .form__inner--input,
    .form__inner--button {
      align-self: flex-end;
    }

    .form__wrapper {
      .custom-select {
        .custom-select__selected {
          padding: var(--space-4px) 0 var(--space-4px);
          border-bottom: 0.5px solid var(--light-grey-shade-6);
          font-size: var(--body-font-size-xxs);
          font-weight: var(--fw-400);
          line-height: var(--heading-lh-19-mob-display);

          @media (width>=1024px) {
            font-size: var(--body-font-size-xs);
          }
        }
      }
    }

    .form__input-button--verify {
      border: 1px solid var(--secondary-main);
      color: var(--secondary-main);
      padding: 8px 12px;
      cursor: pointer;
      font-size: var(--body-font-size-xxs);
      line-height: var(--heading-lh-19-mob-display);
      font-weight: var(--fw-500);

      &:hover&:not(:disabled) {
        background-color: var(--tertiary-light-grey);
        transition: all 0.2s linear;
      }

      &:disabled {
        border-color: var(--tertiary-medium-grey);
        color: var(--tertiary-medium-grey);
        cursor: default;
      }
    }
  }

  .found_car {
    border: 1px solid var(--light-grey-shade-5, #e1e1e1);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .found_car-block {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .found_car-image img {
    width: 80px;
    height: auto;
  }

  .owner_data {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
  }

  .owner_detail {
    display: flex;
    flex-direction: column;
  }

  .owner_label {
    font-size: var(--body-font-size-xxs, 0.75rem);
    color: var(--neutrals-sub-texts-paragraphs, #5b5b5b);
    margin: 0;
  }

  .owner_value {
    margin: 0;
    font-weight: var(--fw-500);
    font-size: var(--body-font-size-xs, 0.75rem);
  }

  .hidden {
    display: none;
  }

  /* SurveyFormCarDropdown styles (copied from book-service-appointment-login) */
  .car-list__img-car {
    img {
      height: 40px;

      @media (min-width: 1024px) {
        height: 64px;
      }
    }
  }

  .car-list {
    max-width: 400px;
    background: none;
    border: none;
    outline: none;
    padding: 0;
    font: var(--font-primary-nexa);
    width: 100%;
  }

  .car-list__items {
    min-height: 105px;
    max-width: 400px;
    padding: 1rem;
    display: block;
    cursor: pointer;

    &:has(.car-list__radio--centered) {
      min-height: 52px;

      @media (min-width: 1024px) {
        min-height: 72px;
      }
    }

    &.focused,
    &:hover {
      background: var(--tertiary-light-grey);
    }
  }

  .car__list-items--car {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
  }

  .car__list-date--label {
    font-size: var(--body-font-size-xxxxs);
    line-height: var(--heading-lh-19-mob-text-small);
    text-transform: uppercase;
    margin-right: 8px;
    color: var(--secondary-main);
    margin-left: 25px;

    @media (min-width: 1024px) {
      margin-left: 29px;
    }
  }

  .car__list-date--value {
    font-size: var(--body-font-size-xxxs);
    line-height: var(--heading-lh-19-mob-text-small);
    color: var(--primary-main);
  }

  .car__list-date--recent {
    color: var(--orange-shade-1);
  }

  .car__list-date--past {
    color: var(--primary-red);
  }

  .car-list__text--large {
    font-size: var(--heading-font-8-mob);
    line-height: var(--heading-lh-19-mob-text-small);
    font-weight: var(--fw-500);

    @media (min-width: 1024px) {
      font-size: var(--heading-font-16-des);
      line-height: var(--heading-lh-21-des-text-small);
    }
  }

  .car-list__items-selected {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gradient-4);
  }

  .car-list__items-selected--text {
    font-size: var(--body-font-size-xs);
    line-height: var(--heading-lh-19-mob-text-small);
    font-weight: var(--fw-500);
    color: var(--primary-main);

    @media (min-width: 1024px) {
      font-size: var(--body-font-size-s);
      line-height: var(--heading-lh-21-des-text-small);
    }
  }

  .car-list__reg-label {
    color: var(--secondary-main);
    text-transform: uppercase;
    font-size: var(--body-font-size-xxxxs);
    font-weight: var(--fw-400);
    line-height: 1.25rem;
    margin-bottom: 4px;
    text-align: left;
  }

  .car-list__radio {
    display: flex;
    align-items: start;

    input[type='radio'] {
      margin-right: 0.75rem;
      appearance: none;
      width: 1rem;
      height: 1rem;
      border: 1px solid var(--primary-main);
      border-radius: 50%;
      padding: 0;
      position: relative;
      cursor: pointer;
      display: inline-block;

      &:checked::before {
        content: '';
        width: 0.75rem;
        height: 0.75rem;
        background-color: var(--primary-main);
        border-radius: 50%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
      }
    }

    input[type='checkbox'] {
      /* Add if not using autoprefixer */
      -webkit-appearance: none;
      /* Remove most all native input styles */
      appearance: none;
      /* For iOS < 15 */
      background-color: #fff;
      /* Not removed via appearance */
      margin: 0;
      margin-right: 13px;
      width: 12px;
      height: 12px;
      border: 1px solid #515151;
      border-radius: 0;
      transform: translateY(4px);
      display: grid;
      place-content: center;

      @media (width>=768px) {
        width: 16px;
        height: 16px;
        transform: translateY(2px);
      }
    }

    input[type='checkbox']::before {
      content: '';
      width: 8.25px;
      height: 6px;
      transform: scale(0);
      transform-origin: bottom left;
      transition: 120ms transform ease-in-out;
      box-shadow: inset 1em 1em var(--form-control-color);
      /* Windows High Contrast Mode */
      background-color: CanvasText;

      @media (width>=768px) {
        width: 11px;
        height: 8px;
      }
    }

    input[type='checkbox']:checked::before {
      transform: scale(1);
      background: url('/icons/check-tick.svg');
      background-size: contain;
      background-position: center;
      background-repeat: no-repeat;
    }

    input[type='checkbox']:checked {
      background: var(--primary-main);
      border: 1px solid #000;
    }

    input[type='checkbox']:focus {
      outline: 0;
    }

    input[type='checkbox']:disabled {
      --form-control-color: var(--form-control-disabled);

      color: var(--form-control-disabled);
      cursor: not-allowed;
    }
  }

  .car-list__radio--centered {
    align-items: center;
  }

  .car-list__img {
    display: flex;
    gap: 0;
    align-items: center;

    @media (min-width: 1024px) {
      gap: 0.75rem;
    }
  }

  .car-list__reg-number {
    font-size: var(--body-font-size-xs);
    font-weight: var(--fw-500);
    line-height: 1.25rem;

    @media (min-width: 1024px) {
      font-size: var(--body-font-size-s);
      line-height: 1.5rem;
    }
  }

  .car-list__img-icon {
    content: '';
    display: inline-block;
    background: url('/icons/chevron-left.svg') no-repeat center;
    width: 1rem;
    height: 1rem;
    transform: rotate(-90deg);
    cursor: pointer;
    outline: none;
    border: none;
  }

  .dropdown {
    position: relative;
    width: 100%;

    @media (min-width: 768px) {
      grid-column: span 2;
      max-width: 380px;
    }
  }

  .dropdown-items {
    background: var(--tertiary-white);
    position: absolute;
    display: block;
    width: 100%;
    max-width: 400px;
    top: 100%;
    left: 0;
    z-index: 1000;
    overflow: auto;
    max-height: 350%;

    .car-list__items {

      &.focused,
      &:hover {
        background: var(--tertiary-light-grey);
      }
    }

    @media (min-width: 1024px) {
      max-height: 175%;
      border-bottom: 1px solid var(--tertiary-light-grey);
    }
  }

  .car-list__error {
    font-size: var(--body-font-size-xxs);
    font-weight: var(--fw-400);
    line-height: 1.25rem;
    color: var(--tertiary-black);

    @media (min-width: 1024px) {
      max-width: 240px;
    }
  }

  .car-list__button {
    width: 100%;

    @media (min-width: 1024px) {
      width: auto;
    }

    a {
      display: block;
      width: 100%;
      padding: 0.5rem 1rem;
      background: var(--tertiary-white);
      color: var(--primary-main);
      text-align: center;
      font-size: var(--body-font-size-xxs);
      font-weight: var(--fw-400);
      line-height: 1.25rem;

      @media (min-width: 1024px) {
        display: inline-block;
        min-width: 144px;
      }
    }
  }

  .car-list__items-error {
    max-width: 100%;
    flex-direction: column;
    cursor: unset;

    @media (min-width: 1024px) {
      flex-direction: row;
      justify-content: space-between;
    }
  }

  .car-dropdown-container__info {
    font-size: var(--body-font-size-xxs);
    line-height: 1.25rem;
    color: var(--tertiary-black);
  }

  /* Arena theme overrides (copied from blocks/services/book-service-appointment-login) */
  .car-dropdown-container {
    margin-bottom: 1rem;

    .car-list__items {
      min-height: 86px;
    }

    .dropdown {
      margin: 1.5rem 0 1rem 0;

      @media (width>=1024px) {
        margin-bottom: 12px;
        margin-top: 0;
      }

      .car-list {
        background: var(--gradients-accent-section-bg-1);
        max-width: none;
        width: inherit;

        .car-list__icon {
          display: flex;

          .car-list__img-icon {
            width: 1.5rem;
            height: 1.5rem;
          }
        }
      }

      .dropdown-items {
        max-width: none;
        box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.12);
        top: 100%;

        .dropdown-label {
          display: none;
          color: var(--tertiary-black);
          font-family: var(--body-font-arena);
          font-size: var(--body-font-size-xxs);
          font-style: normal;
          font-weight: var(--fw-700);
          line-height: var(--heading-lh-8-mob-display);
          margin-bottom: var(--space-4px);
          padding-left: var(--space-16px);

          @media (width>=1024px) {
            font-size: var(--body-font-size-xs);
            margin-bottom: var(--space-24px);
          }
        }

        .car-list__items {
          padding: 16px;
          padding-bottom: 14px;

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

          .car-list__text {
            .car-list__reg-label {
              color: var(--inactive-content);
              font-size: var(--body-font-size-xxxxs);
              font-weight: var(--fw-500);
              line-height: var(--heading-lh-19-mob-display);
              text-transform: uppercase;
              margin-bottom: 4px;
            }

            .car-list__reg-number {
              color: var(--primary-main);
              font-size: var(--body-font-size-xs);
              font-style: normal;
              font-weight: var(--fw-500);
              line-height: var(--heading-lh-19-mob-display);

              @media (width>=1024px) {
                font-size: var(--body-font-size-s);
                font-weight: var(--fw-700);
                line-height: var(--heading-lh-21-des-text-small);
              }
            }
          }
        }

        .car__list-items--date {
          line-height: 0;
        }

        .dropdown-items {
          .car__list-date--label {
            color: var(--secondary-main);
            text-align: center;
            font-size: var(--body-font-size-xxxxs);
            font-style: normal;
            font-weight: var(--fw-500);
            line-height: var(--heading-lh-19-mob-display);
            text-transform: uppercase;
          }
        }

        .car__list-items--car {
          margin-bottom: 0;
        }

        .car-list__items-selected {
          min-height: 86px;
        }

        .car-list__items:last-child {
          margin: 0;
        }
      }

      .car-list__items-selected {
        background: none;

        .car-list__img {
          order: 2;
          height: 54px;
        }

        .car-list__icon {
          order: 3;
        }
      }

      .hidden {
        display: none;
      }

      .car-list__items {
        padding: 0.75rem;
        max-width: none;

        @media (min-width: 768px) {
          padding: 1.25rem 1rem;
          gap: 1rem;
        }

        .car-list__img-car {
          height: 3.5rem;

          img {
            height: 54px;
          }
        }

        .car-list__text {
          .car-list__reg-label {
            color: var(--tertiary-black);
            font-size: var(--body-font-size-xxxs);
            font-weight: var(--fw-300);
            line-height: var(--heading-lh-21-mob-text-small);
            margin-bottom: 12px;
          }

          .car-list__reg-number {
            text-align: left;
            font-size: var(--body-font-size-xs);
            font-weight: var(--fw-700);
            line-height: var(--heading-lh-19-mob-display);
          }
        }
      }

      .car-list__items:has(input[type='radio']:checked) {
        background-color: var(--secondary-gray-20);
      }

      .car-list__radio {
        align-items: start;

        input[type='radio'] {
          border: 0.667px solid var(--bars-unselected);

          &:checked::before {
            background-color: var(--primary-blue-700);
          }
        }
      }

      .car-list__radio--centered {
        align-items: center;
        height: 40px;

        .car-list__text {
          line-height: 0;
        }

        input[type='checkbox']:disabled {
          margin-bottom: 8px;
        }
      }
    }

    .car-list__items-selected--text {
      color: var(--tertiary-black);
      font-size: var(--body-font-size-xs);
      font-style: normal;
      font-weight: var(--fw-700);
      line-height: var(--heading-lh-19-mob-display);
    }

    .car-list__text--large {
      color: var(--tertiary-black);
      font-size: var(--body-font-size-xs);
      font-style: normal;
      font-weight: var(--fw-700);
      line-height: var(--heading-lh-19-mob-display);
    }

    .car-list__img-icon {
      height: 24px;
      width: 24px;
    }

    .dropdown-items::-webkit-scrollbar {
      display: none;
    }

    .car__list-date--past {
      color: var(--primary-main);
      text-align: center;
      font-size: var(--body-font-size-xxxs);
      font-style: normal;
      font-weight: var(--fw-600);
      line-height: var(--heading-lh-19-mob-display);
    }

    .car-list__radio {
      input[type='checkbox'] {
        width: 12px;
        height: 12px;
        margin-right: 12px;

        @media (min-width: 1024px) {
          width: 16px;
          height: 16px;
        }
      }
    }

    .car-list__button {
      width: 100%;

      @media (min-width: 1024px) {
        width: auto;
      }

      a {
        display: block;
        width: 100%;
        padding: 0.5rem 1rem;
        background: var(--primary-blue-700);
        color: var(--secondary-gray-20);
        text-align: center;
        font-size: var(--body-font-size-xxs);
        font-weight: var(--fw-400);
        line-height: var(--heading-lh-19-mob-display);
        transition: all 0.4s;

        &:hover {
          background: var(--primary-blue-900);
        }

        @media (min-width: 1024px) {
          display: inline-block;
          min-width: 144px;
        }
      }
    }
  }

  /* State / city / workshop dropdowns (copied from book-service-appointment + bsa-fast-track) */
  .location-selector {
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
  }

  .survey-form__workshop-title {
    font-size: var(--body-font-size-xs);
    font-weight: var(--fw-500);
    margin: 0 0 1rem;
  }

  .ws-dropdown {
    margin-bottom: 24px;
    position: relative;

    &:has(.ws-dropdown-label:disabled) {
      &.enter-dropdown {
        .relative-wrapper {
          &::after {
            opacity: 0.6;
          }
        }
      }
    }

    &.enter-dropdown {
      .relative-wrapper {
        position: relative;

        &::after {
          position: absolute;
          content: '';
          height: 1.5rem;
          width: 1.5rem;
          background-image: url(/icons/arrow-dropdown.svg);
          background-size: contain;
          background-repeat: no-repeat;
          pointer-events: none;
          top: 0;
          right: 0;
        }
      }
    }

    .relative-wrapper {
      position: relative;
    }

    .ws-dropdown-label {
      background: transparent;
      border: 0;
      display: flex;
      width: 100%;
      padding: 4px 0;
      justify-content: space-between;
      align-items: center;
      overflow: hidden;
      color: var(--primary-main);
      text-overflow: ellipsis;
      font-size: 14px;
      font-weight: var(--fw-400);
      line-height: var(--heading-lh-6-des);
      border-bottom: 0.5px solid var(--light-grey-shade-6);
      font-family: var(--body-font-family);
      outline: none;
      cursor: pointer;

      &:disabled {
        opacity: 0.6;
        cursor: not-allowed;

        .ws-label-text {
          opacity: 0.6;
        }
      }

      .ws-label-text {
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }

      .ws-chevron {
        height: 1.5rem;
        width: 1.5rem;
        flex: none;
        background-image: url(/icons/arrow-dropdown.svg);
        background-size: contain;
        background-repeat: no-repeat;
        pointer-events: none;
      }

      @media (width >=1024px) {
        font-size: var(--heading-font-8-mob);
        line-height: var(--heading-lh-6-des);
      }
    }

    .ws-dropdown-menu-wrapper {
      box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.06);
      position: absolute;
      background: var(--tertiary-white);
      width: 100%;
      max-height: 10rem;
      overflow: auto;
      z-index: 2;

      ul {
        margin: 0;
        z-index: 1;
        position: relative;

        li.ws-menu-item {
          color: var(--secondary-main);
          display: flex;
          flex-direction: column;
          row-gap: 8px;
          cursor: pointer;
          font-size: 0.875rem;
          font-weight: var(--fw-400);
          line-height: var(--heading-lh-6-des);
          padding: 0.625rem 1rem;

          &:hover {
            background-color: var(--tertiary-light-grey);
          }

          @media (width >=1024px) {
            row-gap: 12px;
          }

          .ws-label-text {
            font-size: 14px;
            text-align: start;
            font-weight: var(--fw-400);
            line-height: var(--heading-lh-6-des);
            display: flex;
            justify-content: space-between;

            .tick {
              width: 20px;
              height: 20px;
              display: none;
              background-image: url(/icons/active-checkbox.svg);
              background-repeat: no-repeat;
              background-size: contain;
              margin-left: 8px;

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

            @media (width >=1024px) {
              font-size: var(--heading-font-8-mob);
            }
          }

          &.selected {
            color: var(--primary-main);

            .ws-label-text {
              font-weight: var(--fw-500);

              .tick {
                display: block;
              }
            }
          }
        }
      }

      .ws-dropdown-overlay {
        position: fixed;
        top: 0;
        left: 0;
        display: block;
        width: 100vw;
        max-width: 100%;
        height: 100vh;
        z-index: 0;
      }
    }
  }

  .survey-form__pincode {
    position: relative;
    margin-bottom: 24px;
    display: flex;
    gap: 1.5rem;

    input {
      width: 100%;
      font-size: 14px;
      outline: none;
      height: 32px;
      border: none;
      border-bottom: 1px solid var(--tertiary-black);
      color: var(--secondary-main);
      line-height: var(--heading-lh-6-des);
      padding: 4px 32px 4px 0;
      background: transparent;
      font-family: var(--body-font-family);

      &::placeholder {
        color: var(--secondary-main);
      }

      @media (width >=1024px) {
        font-size: var(--heading-font-8-mob);
        font-weight: var(--fw-400);
        height: 40px;
        padding: 8px 32px 8px 0;
      }
    }

    .pincode-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      margin-top: 0;

      &::after {
        content: '';
        height: 24px;
        width: 24px;
        display: inline-block;
        background-image: url(/icons/detect_location.svg);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        cursor: pointer;
        border: none;
        background-color: transparent;

        &:disabled {
          opacity: 0.6;
          cursor: not-allowed;
        }

      }
    }
  }

  .workshop-address-dropdown {
    .ws-dropdown-menu-wrapper {
      max-height: 26.25rem;

      li.ws-menu-item .ws-label-text {
        padding-bottom: var(--space-24px);

        .workshop-dropdown-item-text {
          display: flex;
          flex-direction: column;
          flex: 80%;
          gap: 1rem;
          width: 100%;

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

          .workshop-label {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            width: 100%;
          }

          .workshop-description {
            font-size: var(--body-font-size-xxxs);
            font-weight: var(--fw-400);
            line-height: var(--heading-lh-24-mob-text-small);
            width: 172px;

            @media (width >=1024px) {
              line-height: var(--heading-lh-6-des);
              width: 275px;
            }
          }
        }

        .tick {
          background-image: url('/icons/tick.svg');
        }
      }
    }
  }

  .survey-form__success-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
  }

  .survey-form__success-modal {
    position: relative;
    width: 100%;
    max-width: 500px;
    background: var(--tertiary-white);
    border-radius: 8px;
    padding: 3.5rem 2.5rem 3rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  .survey-form__icon-container {
    display: flex;
    justify-content: center;
  }

  .survey-form__icon-tick {
    width: 64px;
    height: 64px;
    background-image: url(/icons/check_circle.svg);
    background-size: contain;
    background-position: center;
    display: block;
  }

  .survey-form__success-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    height: 24px;
    width: 24px;
    border: none;
    cursor: pointer;
    background-color: transparent;
    background-image: url(/icons/close.svg);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
  }

  .survey-form__success-message {
    margin: 0;
    font-size: var(--heading-font-17-mob-text-medium);
    font-weight: var(--fw-500);
    line-height: var(--heading-lh-13-mob);
    color: var(--secondary-main);
    margin-bottom: 0.5rem;
  }

  .survey-form__success-info-message {
    margin: 0;
    font-size: var(--body-font-size-xxs);
    font-weight: var(--fw-400);
    line-height: var(--heading-lh-19-mob-text-small);
    color: var(--secondary-main);

    p {
      margin: 0;
    }

    strong {
      font-weight: var(--fw-500);
    }
  }

  .survey-form__success-link a {
    border: 1px solid var(--tertiary-white);
    color: var(--tertiary-white);
    background-color: var(--primary-blue-700);
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: var(--body-font-size-xxs);
    line-height: var(--heading-lh-19-mob-display);
    font-weight: var(--fw-500);

    &:hover&:not(:disabled) {
      background-color: var(--primary-blue-800);
      transition: all 0.2s linear;
    }
  }
}
