HEX
Server: nginx/1.18.0
System: Linux test-ipsremont 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
User: ips (1000)
PHP: 8.0.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //var/www/innodrive/src/scss/blocks/contacts-form.scss
.contacts-form {
  text-align: center;

  h3 {
    margin: 0;
    font-size: 30px;
    line-height: 1.2;
    text-align: left;
    letter-spacing: -0.02em;
    color: $color-primary-blue;
  }

  input,
  textarea,
  select {
    padding: 18px 18px;
    border: 1px solid #e0e0e0;
    box-shadow: none;
    background-color: #f9fafc;
    font-size: 16px;
    font-family: "PT Sans", Helvetica, sans-serif;

    &::placeholder {
      color: #b9b9b9;
    }
  }

  select {
    color: #b9b9b9;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    appearance: none !important;
    background: url('../../assets/img/arrow.svg') no-repeat right #f9fafc;
    background-position-x: calc(100% - 12px);
    background-size: 22px;
  }

  .button-link {
    margin-top: 15px;
  }

  &.contains-error {
    input.has-error,
    textarea.has-error,
    select.has-error {
      border-color: red;

      &:focus {
        outline: red;
      }
    }

    + .modal__response {
      position: unset;
      background: transparent;
      border: none;
      box-shadow: none;
      border-radius: 0;
      transform: none;
      margin: 0;
      padding: 0;
      max-width: none;
      width: 100%;
      p {
        color: red;
        margin: 0;
        font-size: 18px;
        line-height: 21px;
        text-align: center;
      }

      > div {
        display: none;
      }
    }

    .contacts-form__fieldset.has-error {
      input[type="checkbox"] {
        + label {
          &::before {
            border-color: red;
          }
        }
      }
    }
    .contacts-form__fieldset--file.has-error {
      span {
        border-color: red;
      }
      p {
        color: red;
      }
    }
  }
}

.news-form-fieldsets {
  display: flex;
  justify-content: stretch;

  .news-form-fieldsets-part {

  }

  .comment-part {
    padding-left: 10px;
    width: 100%;
    height: 126px;

    #contacts-comment {
      width: 100%;
      height: 100%;
    }
  }
}

.contacts-form__fieldset {
  display: flex;
  margin-top: 28px;
  width: 100%;

  input[type="text"] {
    width: 290px;
    height: 49px;
    margin-right: 10px;

    &:last-of-type {
      margin-right: 0;
    }
  }

  select {
    width: 290px;
    height: 49px;
    padding: 10px 18px;

    &:first-of-type {
      margin-left: 10px;
      margin-right: 10px;
    }
  }

  input[type="checkbox"] {
    display: none;

    + label {
      position: relative;
      padding-left: 25px;

      &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        display: inline-block;
        box-sizing: border-box;
        width: 14px;
        height: 14px;
        background-color: #f9fafc;
        border: 1px solid #e0e0e0;
      }

      &::after {
        position: absolute;
        top: -1px;
        left: 2px;
        display: block;
        width: 10px;
        height: 10px;
        font-family: 'Font Awesome 5 Pro', Helvetica, sans-serif;
        font-weight: 400;
        font-size: 10px;
      }
    }

    &:checked {
      + label {
        &::after {
          content: "\f00c";
        }
      }
    }
  }

  input[type="file"] {
    order: -1;
  }

  textarea {
    width: 100%;
    height: 94px;
    resize: none;
    padding: 14px 18px;
  }

  &--file {
    align-items: flex-start;
    justify-content: flex-start;

    p {
      text-align: left;
      margin: 0 0 0 auto;
      max-width: 235px;
      font-size: 14px;
      line-height: 17px;
      color: #939393;
    }

    > span,
    label {
      display: inline-flex;
      align-items: center;
      height: 49px;
      padding: 5px 18px;
      border: 1px solid #e0e0e0;
      color: #b9b9b9;
    }

    label {
      font-size: 18px;
      margin-right: 30px;
      width: 150px;
      background-color: #e0e0e0;
      justify-content: center;
      color: #939393;
      cursor: pointer;

      span:not(:first-of-type) {
        display: none;
      }

      &.js-loaded {
        span:first-of-type {
          display: none;
        }

        span:not(:first-of-type) {
          display: inline;
        }
      }
    }

    > span {
      position: relative;
      display: inline-block;
      width: 210px;
      padding: 15px 18px;
      font-size: 16px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      text-align: left;
      line-height: 1;
      background-color: #f9fafc;

      svg.icon {
        position: absolute;
        top: 21px;
        right: 15px;
        display: none;
        height: 8px;
        width: 8px;
        fill: red;
        cursor: pointer;
      }

      &.js-loaded {
        padding: 18px 30px 18px 18px;
        font-size: 13px;

        svg.icon {
          display: block;
        }
      }
    }
  }

  &--policy {
    justify-content: flex-start;
    margin-top: 25px;
    font-size: 14px;
    line-height: 17px;
    color: #b9b9b9;
    text-align: left;

    label {
      margin-left: 0;
    }

    a {
      font-size: inherit;
      text-decoration: underline;
    }
  }

  &.full-element {
    > input,
    select {
      width: calc((100% - 10px * 2) / 3);
    }
  }

  &.two-element {
    > input,
    select {
      width: calc((100% - 10px) / 2);
    }

    > * {
      &:last-of-type {
        margin-right: 0;
      }
    }
  }
}

@include media('tablet-m') {
  .contacts-form__fieldset {
    input[type="text"] {
      width: calc(50% - 10px);
    }

    textarea {
      height: 165px;
    }

    &--file {
      justify-content: flex-start;
      align-items: center;

      > span {
        width: 40%;
      }

      > p {
        max-width: 350px;
      }
    }
  }
}

@include media('tablet-s') {
  .contacts {
    padding-bottom: 26px;
  }

  .contacts-form {
    padding: 10px 0;

    h3 {
      font-size: 18px;
    }

    input,
    textarea,
    select {
      padding: 16px 8px;
      font-size: 13px;
      line-height: 16px;
    }

    .button-link {
      margin-top: 24px;
    }
  }

  .contacts-form__fieldset {
    flex-wrap: wrap;
    margin-top: 13px;

    input[type="text"] {
      width: 100%;
      height: 33px;

      &:first-of-type {
        margin-right: 0;
      }

      &:not(:first-of-type) {
        margin-top: 19px;
      }
    }

    select {
      width: 100%;
      height: 33px;
      padding: 7px 8px;

      &:first-of-type {
        margin-top: 19px;
      }
    }

    textarea {
      height: 96px;
      padding: 6px 8px;
    }

    &--file {
      > span,
      label {
        height: 32px;
        padding: 8px 11px;
        font-size: 13px;
        line-height: 16px;
      }

      > span {
        width: 42%;
      }

      label {
        width: 100px;
        margin-right: 0;
      }

      > p {
        width: 100%;
        margin-top: 9px;
        margin-left: 0;
        font-size: 9px;
        line-height: 13px;
      }
    }

    &--policy {
      flex-wrap: nowrap;

      input[type="checkbox"] {
        + label {
          font-size: 10px;
          line-height: 13px;

          &::after {
            top: 1px;
          }
        }
      }
    }

    &.full-element {
      flex-direction: column;
      > input,
      select {
        width: 100%;
        margin-right: 0;
        margin-left: 0;
      }
    }

    &.two-element {
      > input,
      select {
        width: 100%;
        margin-right: 0;
        margin-left: 0;
      }
    }
  }

  .contacts__map {
    height: 255px;
    margin-top: 18px;
  }
}