@charset "utf-8";

.p-contact {
  background: var(--color-l-green);
  padding: 52px 0 140px;

  @media (width < 768px) {
    padding: 40px 0 100px;
  }

  .p-contact__head {
    border-bottom: 1px solid #c4d0bd;
    padding-bottom: 2px;
  }

  .p-contact__box {
    margin-top: 105px;

    @media (width < 768px) {
      margin-top: 80px;
    }
  }

  .form .container {
    margin: 0 auto;
    max-width: 924px;
    display: flex;
    flex-direction: column;
    gap: 37px;
  }

  .row {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
  }

  .col-md-4 {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0;
  }

  .label {
    margin: 0;
  }

  .d-inline-block {
    background: #5a5a5a;
    border-radius: 2px;
    padding: 0 4px;
    font-size: 12px;
    font-weight: 400;
    color: var(--color-white);
    line-height: 1.5;
  }

  .d-inline-block.requiredText {
    background: #d80e0e;
  }

  .col-md-8 {
    max-width: 100%;
    padding: 0;
    flex: 0 0 100%;
  }

  .input,
  .select,
  .textarea {
    width: 100%;
    height: 50px;
    background: #f6f6f6;
    border: 1px solid #d3d3d3;
    border-radius: 3px;
    padding: 1em;
  }

  .input::placeholder,
  .textarea::placeholder {
    color: #555555;
  }

  .textarea {
    height: 197px;
  }

  .select {
    max-width: 210px;
    width: 100%;
    padding: 0 1em;
    appearance: none;
    background: #f6f6f6 url('https://e-mot-weld.com/system_panel/uploads/images/select-arrow.svg') no-repeat center right 20px / 12px 8px;
    cursor: pointer;
  }

  .p-contact-privacy {
  }

  .p-contact-privacy__box {
    overflow-y: scroll;
    height: 155px;
    padding: 34px 46px 36px 28px;
    background: #f6f6f6;
    border: 1px solid #d3d3d3;
    line-height: 2;

    @media (width < 768px) {
      padding: 1em;
    }
  }

  .p-contact-privacy__box > * + .p-contact-privacy__text {
    margin-top: 36px;
  }

  .p-contact-privacy__box > * + .p-contact-privacy__heading {
    margin-top: 68px;
  }

  .p-contact-privacy__text {
    letter-spacing: 0.08em;

    a:hover {
      opacity: 0.7;
    }
  }

  .p-contact-privacy__heading {
    width: 100%;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.64;
    letter-spacing: 0.08em;
    padding-bottom: 15px;
    border-bottom: 1px solid #cecece;
    display: inline-flex;
    gap: 15px;
    align-items: center;
  }

  .p-contact-privacy__heading::before {
    content: '';
    width: 14px;
    height: 14px;
    background: #303030;
    border-radius: 3px;
    flex-shrink: 0;
  }

  .p-contact-privacy__check {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;

    input {
      cursor: pointer;
    }

    label {
      color: #454545;
      line-height: 1;
      letter-spacing: 0em;
    }
  }

  .privacyformError {
    top: 0;
    left: 0;
  }

  .p-contact__submit {
    margin: 46px auto 0;

    @media (width < 768px) {
      margin: 20px auto 0;
    }
  }

  .p-contact__back {
    margin: 60px auto 0;
    width: fit-content;
  }

  .button,
  .p-contact__back a {
    background: none;
    color: var(--color-white);
    width: 183px;
    height: 47px;
    padding: 0 20px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid var(--color-green);
    background: var(--color-green);
    transition: all 0.3s ease;
  }

  .button:hover,
  .p-contact__back a:hover {
    color: var(--color-green);
    background: var(--color-l-green);
  }
}
