#lead-form-widget-wrapper {
  font-family: "Poppins", sans-serif;

  * {
    box-sizing: border-box;
  }

  div[data-lastpass-icon-root] {
    display: none;
  }

  #no-service-content {
    background-color: #fff;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    min-height: 425px;
    .no-service-heading {
      font-size: 22px;
      color: #000;
      margin-bottom: 15px;
      font-weight: 600;
      line-height: 32px;
    }

    .no-service-sub-heading {
      color: #000;
      margin-bottom: 0;
      font-size: 14px;
      line-height: 22px;
    }
  }

  .lead-form-heading {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 32px;
    text-align: center;
  }

  #lead-form-error {
    margin: 20px auto;
    color: #D90000;
    font-size: 12px;
    text-align: center;
  }

  .form-inner-wrapper {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: repeat(4, 1fr);

    @media screen and (min-width: 640px) {
      grid-template-columns: repeat(2, 1fr);
      grid-template-rows: repeat(2, 1fr);
      gap: 24px;
    }
    @media screen and (min-width: 1200px) {
      grid-template-columns: repeat(4, 1fr);
      grid-template-rows: repeat(1, 1fr);
    }

    .search-input-wrapper {
      position: relative;
      border: 1px solid #989898;
      background-color: #fff;
      border-radius: 4px;
      display: flex;
      align-items: center;
      padding: 10px 13px;
      color: rgba(96, 96, 96, .85);
      .icon {
        color: rgba(96, 96, 96, .85);
        font-weight: 300;
        margin-right: 10px;
      }
      &.error {
        border-color: #D90000;
      }
      .error-message {
        color: #D90000;
        font-size: 12px;
        position: absolute;
        left: 0;
        bottom: -20px;
        @media screen and (min-width: 640px) {
          bottom: -23px;
        }
      }
      & input {
        width: 100%;
        border: 0;
        font-size: 14px;
        height: 20px;
        padding: 0 0 0 3px;
        color: rgba(0, 0, 0, .85);
        background: transparent;
        outline: 0;
        line-height: 14px;
        &#bedroom-count {
          width: 10px;
        }
        &::placeholder {
          color: rgba(96, 96, 96, .85);
        }
      }

      #bedroom-unit {
        margin-left: 3px;
        line-height: 1;
        color: rgba(0, 0, 0, .85);
      }

      .button-wrapper {
        display: flex;
        align-items: center;
        margin-left: auto;
        gap: 5px;

        & button {
          appearance: none;
          border: 0;
          border-radius: 0;
          background: transparent;
          padding: 0;
          transition: all .25s ease-in-out;

          &:hover {
            background: rgba(237, 237, 237, 1);
          }
        }
      }

      .search-results {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: fit-content;
        max-height: 338px;
        background: #fff;
        border-radius: 4px;
        z-index: 1;
        overflow-y: auto;
        box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);

        &::-webkit-scrollbar {
					width: 6px;
				}

				&::-webkit-scrollbar-track {
					background: transparent;
				}

        &::-webkit-scrollbar-thumb {
          border-radius: 8px;
          background-color: rgba(96, 96, 96, .85);
        }

        &.active {
          display: flex;
          flex-wrap: wrap;
        }

        & button {
          width: 100%;
          background-color: transparent;
          border-radius: 0;
          border: 0;
          font-size: 14px;
          opacity: 0.85;
          padding: 16px;
          transition: all .25s ease-in-out;
          text-align: left;

          & span {
            white-space: nowrap;
          }

          &:hover {
            background-color: rgba(242, 242, 242, 1);
          }
        }
      }
    }
  }

  .button {
    border: 0;
    background: #000;
    border-radius: 4px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    height: 48px;
    line-height: 48px;
    padding: 0;
    transition: all .25s ease-in-out;
    &:hover {
      opacity: .8;
    }

    &.made-comfy-next-button {
      width: 100%;
      max-width: 260px;
      margin: 40px auto 0;
      @media screen and (min-width: 640px) {
        margin: 60px auto 0;
      }
    }
  }

  .widget-result-wrapper {
    font-family: "Poppins", sans-serif;
    padding: 40px 24px 24px;
    color: #000;
    background-color: #fff;
    display: flex;
    flex-direction: column;

    @media screen and (min-width: 640px) {
      padding: 60px 40px 40px;
    }

    @media screen and (min-width: 1200px) {
      flex-direction: row;
      padding: 40px 0 40px;
    }

    .widget-result-value-wrapper {
      width: 100%;
      border-bottom: 1px solid #989898;

      @media screen and (min-width: 1200px) {
        max-width: 433px;
        padding-left: 40px;
        padding-right: 40px;
        border-bottom: 0;
      }

      .widget-result-heading {
        font-weight: 600;
        font-size: 20px;
        margin-bottom: 16px;
        line-height: 28px;

        @media screen and (min-width: 640px) {
          font-size: 26px;
          max-width: 550px;
          margin-bottom: 24px;
          line-height: 36px;
        }

        @media screen and (min-width: 1200px) {
          margin-bottom: 39px;
          margin-top: 15px;
        }
      }

      .widget-result-value {
        font-size: 36px;
        font-weight: 600;
        margin-bottom: 16px;
        line-height: 29px;

        @media screen and (min-width: 640px) {
          font-size: 48px;
          margin-bottom: 24px;
          line-height: 1.4;
        }

        @media screen and (min-width: 1200px) {
          margin-bottom: 40px;
        }
        .unit {
          font-size: 16px;

          @media screen and (min-width: 640px) {
            font-size: 18px;
          }
        }
      }
      .terms {
        font-size: 12px;
        line-height: 21px;
        padding-bottom: 40px;

        @media screen and (min-width: 640px) {
          padding-bottom: 50px;
        }

        @media screen and (min-width: 1200px) {
          padding-bottom: 0;
        }
      }
    }

    .widget-result-form-wrapper {
      width: 100%;
      padding-top: 40px;

      @media screen and (min-width: 640px) {
        padding-top: 50px;
      }

      @media screen and (min-width: 1200px) {
        max-width: calc(100% - 433px);
        border-left: 1px solid #989898;
        padding-top: 0;
        padding-left: 95px;
        padding-right: 95px;
      }

      .update-form-heading {
        font-size: 16px;
        font-weight: 600;
        line-height: 26px;
        text-align: center;
        margin-bottom: 8px;
        margin-top: 75px;
        text-align: left;
        @media screen and (min-width: 640px) {
          text-align: center;
          margin-bottom: 24px;
        }
      }
    }

    .widget-result-thank-wrapper{
      width: 100%;
      max-width: 627px;
      text-align: center;
      margin: auto;
    }

    .widget-result-form-heading {
      font-size: 17px;
      font-weight: 600;
      line-height: 36px;
      margin-bottom: 24px;
      text-align: center;

      @media screen and (min-width: 640px) {
        font-size: 22px;
      }
    }

    .fieldset {
      display: flex;
      flex-direction: column;
      gap: 8px;
      justify-content: center;
      @media screen and (min-width: 640px) {
        flex-direction: row;
        gap: 32px;
      }
      &.hidden {
        display: none;
      }
      & input[type=radio] {
        display: none;
        &:checked + .pesudo-radio:after {
          background-color: #000;
        }
      }
      & label {
        position: relative;
        font-size: 14px;
        color: #000;
        display: flex;
        white-space: nowrap;
        align-items: center;
        cursor: pointer;
        gap: 8px;

      }
      .pesudo-radio {
        position: relative;
        &:before {
          content: "";
          width: 24px;
          height: 24px;
          border-radius: 50%;
          border: 1px solid #707070;
          display: block;
          background-color: #fff;
        }
        &:after {
          position: absolute;
          content: "";
          width: 12px;
          height: 12px;
          border-radius: 50%;
          display: block;
          background-color: #fff;
          left: 7px;
          top: 50%;
          transform: translateY(-50%);
        }
      }
    }

    .next-button {
      text-align: center;
      &.hidden {
        display: none;
      }
    }
    .fields {
      display: grid;
      grid-template-columns: repeat(1, 1fr);
      grid-template-rows: repeat(4, 1fr);
      gap: 16px;
      margin-bottom: 28px;
      margin-top: 65px;

      @media screen and (min-width: 640px) {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
      }
      &.hidden {
        display: none;
      }
      & input, & select {
        border: 1px solid #989898;
        border-radius: 4px;
        padding: 13px 16px;
        font-size: 14px;
        width: 100%;
        height: 100%;
        &::placeholder {
          color: #606060;
        }
        &.error {
          border-color: #D90000;
        }
      }
    }

    .pesudo-select-wrapper {
      position: relative;
    }

    .pesudo-select {
      border: 1px solid #989898;
      border-radius: 4px;
      padding: 13px 16px;
      font-size: 14px;
      width: 100%;
      height: 100%;
      position: relative;
      cursor: pointer;

      .pesudo-icon {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        opacity: 0.85;
        right: 8px;
      }
    }

    .pesudo-select-options {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      width: fit-content;
      max-height: 338px;
      background: #fff;
      border-radius: 4px;
      z-index: 1;
      overflow-y: auto;
      box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);

      &::-webkit-scrollbar {
        width: 6px;
      }

      &::-webkit-scrollbar-track {
        background: transparent;
      }

      &::-webkit-scrollbar-thumb {
        border-radius: 8px;
        background-color: rgba(96, 96, 96, .85);
      }

      &.active {
        display: flex;
        flex-wrap: wrap;
      }

      & button {
        width: 100%;
        background-color: transparent;
        border-radius: 0;
        border: 0;
        font-size: 14px;
        opacity: 0.85;
        padding: 10px 16px;
        transition: all .25s ease-in-out;
        text-align: left;

        & span {
          white-space: nowrap;
        }

        &:hover {
          background-color: rgba(242, 242, 242, 1);
        }
      }
    }

    .button-wrapper {
      display: flex;
      gap: 32px;
      flex-direction: column;
      @media screen and (min-width: 640px) {
        align-items: end;
        flex-direction: row;
        gap: 16px;
      }
      &.hidden {
        display: none;
      }
      .content {
        width: 100%;
        font-size: 14px;
        font-weight: 500;
        line-height: 22px;
      }
      .button {
        width: 100%;
      }

      .button-inner-wrapper {
        position: relative;
        width: 100%;

      }
      #update-form-error-message {
        position: absolute;
        top: -30px;
        left: 0;
        width: 100%;
        font-size: 12px;
        color: #D90000;
        text-align: center;
      }
    }

    #thank-message {
      font-size: 18px;
      font-weight: 600;
      line-height: 28px;
      text-align: center;
      margin-top: 112px;
      padding-bottom: 97px;
    }
  }

  .lead-form-progress-bar-wrapper {
    width: 90%;
    margin: auto;
    display: flex;
    align-items: center;

    @media screen and (min-width: 640px) {
      max-width: 655px;
    }
    .lead-form-progress-point  {
      display: block;
      position: relative;
      width: 20px;
      height: 20px;
      border-radius: 100%;
      &:before {
        content: '';
        display: block;
        width: 100%;
        height: 100%;
        transition: all 1.5s ease-in-out;
        background-color: #000;
        opacity: 50%;
        border-radius: 50%;
      }
      &::after {
        position: absolute;
        z-index: 1;
        top: 0;
        border-radius: 50%;
        left: 0;
        content: '';
        display: block;
        width: 0;
        height: 100%;
        transition: all 1s ease-in-out;
        background-color: #000;
      }
      &.active {
        &::after {
          width: 100%;
        }
      }

      .text {
        position: absolute;
        font-size: 12px;
        left: 50%;
        transform: translateX(-50%);
        bottom: -50px;
        text-align: center;
        width: 100px;

        @media screen and (min-width: 980px) {
          width: 140px;
          bottom: -30px;
          & br {
            display: none;
          }
        }
      }
    }
    .lead-form-progress-bar {
      position: relative;
      width: calc((100% - 60px)/2);
      height: 4px;
      &:before {
        content: '';
        display: block;
        width: 100%;
        height: 100%;
        transition: all .5s ease-in-out;
        background-color: #000;
        opacity: 50%;
      }
      &::after {
        position: absolute;
        z-index: 1;
        top: 0;
        left: 0;
        content: '';
        display: block;
        width: 0;
        height: 100%;
        transition: all 1.5s ease-in-out;
        background-color: #000;
      }
      &.active {
        &::after {
          width: 100%;
        }
      }
    }
  }
}
