/* Base text styles */

html body .gform_wrapper {
  .gform_fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  input[type=text],
  input[type=email],
  input[type=tel],
  select,
  textarea {
    background: #FFFFFF;
    color: #0F2C4D;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 24px;
    box-sizing: border-box;
    border-radius: 6px;
    border: 1px solid #697680;
    padding: 12px 16px;
    height: auto;
    width: 100%;

    &:focus,
    &:active {
      border: 1px solid #2CA874;
    }

    &::placeholder {
      font-family: 'Inter', sans-serif;
      font-size: 14px;
      line-height: 24px;
      color: #d1d8dc;
    }

    & div {
      font-family: 'Inter', sans-serif;
      font-size: 14px;
      line-height: 24px !important;
    }
  }

  label {
    color: #0F2C4D;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
  }

  /* Checkbox styling */

  input[type=checkbox] {
    appearance: none;
    width: 20px;
    height: 20px;
    padding: 0 !important;
    background: transparent;
    margin: 0;
    border-radius: 6px;
    border: 1px solid #D1D8DC !important;
    position: relative;
    transition: background .25s, border .25s;
    vertical-align: middle;

    &:checked {
      background: #2CA874 !important;
      border: 1px solid #2CA874 !important;

      &::before {
        content: url("/wp-content/uploads/2021/12/check-white.svg");
        position: absolute;
        left: 2px;
        width: 12px;
        height: 12px;
      }
    }

    & + label:checked {
      color: #3B6070;
    }
  }

  /* Textarea specific styles */

  textarea {
    min-height: 120px;
    width: 100% !important;

    &.textarea {
      height: 0;
      margin-top: 0 !important;
      color: #2F2F2F !important;

      &::placeholder {
        color: #8898A0;
      }
    }
  }

  /* Select specific styles */

  select {
    appearance: none;
    color: #0F2C4D !important;

    & option {
      color: #2F2F2F !important;
    }
  }

  /* Error state handling */

  .validation_message {
    width: 100% !important;
    color: #e02d3c !important;
    font-size: 0.75rem;
    line-height: 1rem;
    margin-bottom: 0.25rem;
  }

  .gfield_required_text {
    display: none;
  }
}


.getquote-form {
  opacity: 0;
  visibility:  hidden;
  pointer-events: none;
  transition: opacity .5s var(--cubic-bezier);

  &.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;

    > .et_pb_row {
      transform: translateY(0);
    }
  }

  > .et_pb_row {
    transform: translateY(-80px);
    transition: transform .25s var(--cubic-bezier);
  }

  .getquote-close {
    cursor: pointer;
    transition: filter .25s var(--cubic-bezier);

    &:hover {
      filter: opacity(100%);
    }
  }
}
