@import './../../styles/variables/index.scss';

.contactUsContainer {
  max-width: 1366px;
  padding: 0 16px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;

  @media (min-width: 560px) {
    padding: 0 32px;
  }

  @media (min-width: 900px) {
    padding: 0 43px;
  }

  .container {
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    max-width: 1198px;
    width: 100%;
    margin-bottom: 104px;
    gap: 87px;

    @media (min-width: 900px) {
      flex-direction: row;
    }

    .formContainer {
      display: flex;
      flex-direction: column;
      width: 100%;

      @media (min-width: 560px) {
        max-width: 576px;
        align-self: center;
      }

      @media (min-width: 900px) {
        max-width: 427px;
      }

      .containerLine {
        overflow: hidden;
        width: 100%;
        position: absolute;
        top: calc(100% - 2px);
        left: 0;
        height: 2px;
      }

      .h4_italic {
        margin-bottom: 50px;
        @media (min-width: 560px) {
          margin-bottom: 40px;
        }
      }

      .form_control {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: relative;
        overflow: hidden;
        margin-bottom: 16px;

        @media (min-width: 560px) {
          margin-bottom: 6px;
          flex-direction: row;
        }

        @media (min-width: 900px) {
          max-width: 425px;
        }

        svg {
          min-width: 768px;
        }

        label {
          min-width: 22%;
          margin-bottom: 8px;
          padding: 8px 0 0;
          vertical-align: top;
          margin-bottom: 0;
          width: 100%;

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

          @media (min-width: 560px) {
            padding: 18px 0;
          }
          @media (min-width: 560px) {
            width: auto;
          }
        }

        &.filled {
          label {
            color: #9f9dc8;
          }
        }

        input,
        textarea {
          flex: 1;
          border: none;
          outline: none;
          color: $main-blue;
          padding: 8px 0 16px;
          width: 100%;

          @media (min-width: 560px) {
            padding: 18px 16px;
          }
        }
        textarea {
          min-height: 28.352px;
          resize: vertical;
        }

        .errorImage {
          display: none;
          position: absolute;
          width: 16px;
          height: 16px;
          right: 0;
          top: 23px;
        }

        .showErrorImage {
          display: block;
        }

        &.error {
          label,
          input,
          input::placeholder,
          textarea,
          textarea::placeholder {
            color: $red;
          }
          .containerLineError {
            line {
              stroke: red;
            }
          }
        }
      }

      button {
        float: right;
        margin-top: 32px;
        outline: none;
        border: none;
        background: none;
        padding: 0;
        cursor: pointer;
        position: relative;
        overflow: hidden;

        .h5 {
          color: $medium-blue;
        }
        > div {
          > span {
            > span {
              &:first-child {
                line-height: 13px;
              }
              &:last-child {
                background: $white;
                z-index: 111;
                position: relative;
              }
            }
          }
        }
      }
    }

    .mapContainer {
      height: 420px;
      width: 100%;

      @media (min-width: 900px) {
        max-width: 598px;
      }

      > div {
        position: relative;
        height: 420px;
      }
      img {
        object-fit: cover;
        width: 100%;
        height: 100%;
      }
    }
  }
}
