/*------------------------------------*\
  $ENQUIRY
\*------------------------------------*/

@keyframes fade-in {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
}

.enquiry-form {
  &.is-visible {
    display: block;

    @include mq($until: mq960) {
      @include position(fixed, 0, 0, 0, 0);
      padding: 30px;
      width: 100%;
    }

    z-index: 101;

    background-color: #f5f5f5;
    box-shadow: 0 0 10px rgba(#000, 0.2);

    animation-name: fade-in;
    animation-duration: .4s;

    overflow-y: scroll;

    @include mq(mq960) {
      @include position(fixed, 50%, false, false, 50%);
      transform: translate(-50%, -50%);
      width: 780px;
      max-width: 95%;
      padding: 60px;
    }

    .message-box {
      display: none;
    }
  }

  &__close {
    display: none;

    .enquiry-form.is-visible & {
      display: block;

      @include position(absolute, 30px, 30px, false, false);

      @include mq(mq960) {
        top: 60px;
        right: 60px;
      }

      svg {
        width: 13px;
        height: 12px;
        fill: #323232;
      }
    }
  }

  &__title {
    .enquiry-form.is-visible & {
      margin-bottom: 40px;
      text-align: center;

      h3 {
        color: #e92b32;
        font: {
          family: $nav-font;
          size: font-size(22);
          weight: 500;
        }
      }
    }
  }

  &__form {
    max-width: 100%;
    margin: 0 auto;

    .enquiry-form.is-visible & {
      max-width: 660px;
    }

    .field {
      @include mq(mq768) {
        @include span(4 of 8);

        &:nth-of-type(2) {
          clear: both;
        }

        &:nth-of-type(2n + 1):not(:first-of-type) {
          @include last;
        }

        &:last-of-type {
          @include span(8 of 8);
        }
      }

      @include mq(mq960) {
        @include span(8 of 16);

        &:nth-of-type(2) {
          clear: both;
        }

        &:nth-of-type(2n + 1):not(:first-of-type) {
          @include last;
        }

        &:last-of-type {
          @include span(16 of 16);
        }
      }
    }

    .btn {
      float: left;
      clear: both;
    }

    p {
      text-align: left;
    }
  }

  label {
    display: none;
  }
}