@import url("https://fonts.googleapis.com/css2?family=Titillium+Web:wght@400;600;700&display=swap");

$device-sm: 480px;
$device-md: 768px;
$device-lg: 992px;

@mixin media($device) {
  @media only screen and (min-width: $device) {
    @content;
  }
}

:root {
  --clr-primary-200: #f7911d;
  --clr-primary-400: #fbb03b;
  --clr-primary-500: #f7931e;
  --clr-input-background: #f4f4f4;
  --style-input-border: 1px solid #e8e8e8;
  --style-input-radius: 8px;
  --clr-gradient-blue: linear-gradient(
    217deg,
    #202e45 0%,
    #223148 32%,
    #435b7b 100%
  );
  --clr-primary-gradient: linear-gradient(106deg, #f9aa4e 35%, #f79521 90%);
  --border-radius: 8px;
  font-size: 16px;
}

#bm-design {
  &.form-container {
    display: flex;
    font-family: "Titillium Web", Helvetica Neue, Helvetica, Arial, sans-serif !important;
    font-size: 16px;
  }

  .sidebar {
    display: none;
    flex-direction: column;
    overflow: hidden;
    width: 380px;
    min-width: 380px;
    border-radius: 1rem;
    color: #ffffff;
    text-align: left;
    background-image: var(--clr-gradient-blue);
    margin-right: 1.5rem;
    max-height: 750px;

    @include media($device-lg) {
      display: flex;
    }

    &__image {
      background-color: var(--clr-primary-500);
      width: 100%;
      height: 260px;
      border: none;
      object-fit: cover;
    }

    &__body {
      display: flex;
      flex-direction: column;
      padding: 1.25rem;
    }

    &__caption {
      display: flex;
      align-items: center;
      justify-content: center;
      margin-top: -60px;
      padding: 1rem;
      align-self: center;
      backdrop-filter: blur(10px);
      background: rgba(248, 248, 248, 0.1);
      border-radius: var(--border-radius);

      .caption {
        font-size: 20px;
        line-height: 2rem;
        margin: 0;
      }
    }

    &__list {
      display: flex;
      flex-direction: column;
      row-gap: 1.5rem;
      list-style-type: none;
      padding: 3rem 0;
      margin: 0;
      margin-top: 20px;
    }

    &__actions {
      margin-top: auto;
      font-weight: 600;
      padding: 1.25rem;

      a {
        display: block;
      }

      .login {
        display: inline-flex;
        color: var(--clr-primary-400);
        text-decoration: underline;
      }

      .telidesk-logo {
        width: 80px;
        transition: transform 200ms ease-in-out;
      }
    }
  }

  .form {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;

    &__section {
      display: flex;
      flex-direction: column;
      margin: 0;
      width: 100%;
      padding: 0;
    }

    &__plans {
      width: 100% !important;
      padding: 0;
    }

    &__fields {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 2rem 1.5rem;
      padding: 0;
      width: 100%;
      margin-top: 1rem;

      &--row {
        grid-template-columns: 1fr;
      }
    }

    &__title {
      font-size: 2.5rem;
      text-align: left;
      font-family: "Titillium Web";
      font-weight: 700;
    }

    &__caption {
      text-align: left;
      margin-bottom: 2rem;
    }

    &-group {
      display: flex;
      flex-direction: column;
      margin: 0;

      .control-label {
        text-align: left;
        padding: 0;
        margin-bottom: 0.5rem;
        width: 100%;
      }
      .checkbox {
        label {
          display: flex;
          align-items: center;
          text-align: left;
        }
        input[type="checkbox"] {
          --checkbox-size: 1rem;
          height: var(--checkbox-size);
          width: var(--checkbox-size);
          margin: 0;
          margin-right: 0.75rem;
          accent-color: var(--clr-primary-400);
        }

        p {
          margin: 0;
          font-size: 0.875rem;
        }
      }
      div {
        padding: 0;
      }
    }

    &__packages {
      display: grid;
      grid-template-columns: repeat(2, minmax(170px, 1fr));
      gap: 0.75rem;
      list-style: none;
      padding: 0;
      margin: 0;
      margin-bottom: 2rem;

      @include media($device-lg) {
        grid-template-columns: repeat(4, minmax(180px, 1fr));
      }

      .package {
        padding: 0.75rem;
        background: #f4f4f4;
        border-radius: var(--border-radius);
        border: 2px solid transparent;
        cursor: pointer;
        transition: transform ease-out 250ms;

        &:hover {
          border-color: var(--clr-primary-400);
        }

        &--selected {
          color: white;
          background: var(--clr-primary-gradient);
          border: 2px solid var(--clr-primary-500);
        }

        &__title {
          font-weight: 600;
          margin: 10px 0;
          margin-bottom: 0;
        }

        &__caption {
          font-size: 14px;
        }

        &__icon {
          display: none;
        }

        &__price {
          font-weight: 600;
          font-size: 1.5rem;
        }
      }
    }

    &__input {
      width: 100%;
      max-width: 400px;

      input,
      select,
      textarea {
        height: 3.125rem;
        background-color: var(--clr-input-background);
        border: var(--style-input-border);
        border-radius: var(--border-radius);
        box-shadow: none;
        font-weight: 600;
      }

      textarea {
        resize: none;
      }
    }

    &__inputs {
      display: grid;
      grid-template-columns: 1fr 1fr;
      column-gap: 1rem;
    }

    & #termstext {
      margin-bottom: 30px;
      min-height: 140px;
      font-weight: 500;
      text-align: left;
      box-shadow: none;
      overflow: hidden;
      border-radius: var(--border-radius);
      border: var(--style-input-border);
      background-color: var(--clr-input-background);

      @include media($device-md) {
        min-height: 100px;
      }
    }

    & #recaptcha_widget {
      margin-top: 40px;
    }

    #submit-button {
      display: flex;
      justify-content: flex-end;
      align-self: flex-end;
      column-gap: 1rem;
      margin: 0;
      padding: 0;
      margin-top: 3rem;
      width: 100%;

      @include media($device-md) {
        margin-top: auto;
      }
    }

    #telidesk-logo {
      width: 100px;
      transition: transform 200ms ease-in-out;
      margin-bottom: 3rem;

      @include media($device-lg) {
        display: none;
      }
    }

    #send_sms {
      margin-top: 20px;
    }

    #copy-address {
      min-height: 0;
      font-size: 0.875rem;
      font-weight: 500;

      @include media($device-md) {
        align-self: flex-end;
        margin: auto 0;
      }
    }

    .btn {
      --bg-color: var(--clr-primary-gradient);
      --font-color: white;

      text-decoration: none;
      font-size: 1rem;
      font-weight: 600;
      color: var(--font-color) !important;
      border-radius: var(--border-radius);
      width: 180px;
      min-height: 47px;
      border: none;
      // padding: 0.75em 2em;
      margin: 0;
      box-shadow: none;
      text-shadow: none;
      background-image: var(--bg-color);
      background-color: var(--bg-color);
      transition: transform 250ms cubic-bezier(0.83, 0, 0.17, 1),
        background-position ease 300ms !important;

      &:hover {
        background-position: right !important;
        transform: scale(0.97) !important;
      }

      &--outline {
        --bg-color: transparent;
        --font-color: var(--clr-primary-400);
        border: 2px solid var(--font-color);
      }

      &__back {
        margin-right: auto;
      }
    }
  }
  .loader-container {
    display: none !important;
  }
}
