.contact-us-page {
  background-color: #f7f7f7;
}

.contact-us_wrapper {
  display: flex;
  padding: 3em;
}

.contact-block {
  display: flex;
  width: calc(100% / 3);
  flex-direction: column;
  padding: 2em;
  justify-content: space-evenly;
  margin: 1em;
  box-sizing: border-box;
  word-break: break-word;

  &.contact-image {
    img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }
  }

  &:nth-child(1) {
    background-color: var(--color-secondary-bg);
    padding: 1em;
  }

  &:nth-child(2) {
    background-color: var(--color-third-bg);
  }

  &:nth-child(3) {
    background-color: var(--color-fifth-bg);
  }
}

.contact_title {
  color: var(--color-primary-bg);
  font-family: var(--font-family-secondary);
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  text-transform: capitalize;
  margin: 0;
  padding: 0;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact_text {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-lg);
  font-weight: normal;
  display: flex;
  gap: 8px;

  p {
    margin: 0;
    margin-bottom: 0.9rem;
    padding: 0;
  }
}

.outline {
  margin: 15px 0;
  border-top: 1px solid #000;
  width: 50%;
}

.contact_network {
  display: flex;
  gap: 70px;
  row-gap: 20px;
  flex-wrap: wrap;

  .contact-link_network {
    text-decoration: none;
    display: flex;

    .icon-wrapper {
      display: flex;
      align-items: center;

      img {
        height: 32px;
        width: 32px;
      }
    }
  }
}

.contact-form {
  display: flex;
  flex-direction: column;

  .nf-form-content input[type=email] {
    background-color: inherit;
    border-color: var(--color-primary-bg);
    border-width: 0 0 1px 0;
    font-family: var(--font-family-primary);
    padding: 0.5rem 1rem;
    max-height: 40px;
    margin-bottom: 24px;
    font-size: var(--font-size-base);

    &:focus {
      box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
      outline: 0;
      background-color: inherit;
    }
  }

  .nf-form-content input[type=submit] {
    font-size: var(--font-size-sm);
    min-height: 40px;
    font-family: var(--font-family-primary);
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 50px 50px 50px 50px;
    background-color: var(--color-light);
    color: var(--color-primary-text);
    width: 100%;
    height: unset;
    cursor: pointer;
    transition: 0.8s;

    &:hover {
    color: #1c1f2e;
    fill: #1c1f2e;
    background-color: #85e9e1;
    }
  }

  .nf-after-form-content {
    display: none;
  }

  .nf-error.field-wrap .nf-field-element:after {
    height: 38px;
    width: 38px;
    line-height: 40px;
  }

  .nf-pass.field-wrap .nf-field-element:after {
    right: 10px;
    line-height: 40px;
  }

  #ninja_forms_required_items, .nf-field-container {
    margin-bottom: 0.5rem;
  }
}

html[lang="he-IL"] {
  .nf-error.field-wrap .nf-field-element:after {
    right: unset;
    left: 1px;
  }

  .nf-pass.field-wrap .nf-field-element:after {
    right: unset;
    left: 10px;
  }
  
  .contact_title {
    font-size: var(--font-size-xxl);
  }
}

@media (max-width: 1024px) {
  .contact-us_wrapper {
    column-gap: 1em;
    row-gap: 2em;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 2em;
  }

  .contact-block {
    &:nth-child(1) {
      width: 100%;
      margin: 0;
    }

    &:nth-child(2) {
      width: calc(100% / 2 - 8px);
      margin: 0;
      padding: 1em;
    }

    &:nth-child(3) {
      width: calc(100% / 2 - 8px);
      margin: 0;
      padding: 1em;
    }
  }

  .icon-wrapper {
    .ssp-icon {
      height: 16px;
    }
  }

  .contact_text {
    font-size: var(--font-size-base);
  }

  .contact_network {
    gap: 50px;
    padding: 16px 0;

    .contact-link_network {
      .icon-wrapper {
        img {
          height: 24px;
        }
      }
    }
  }

  .contact_title {
    font-size: var(--font-size-3xl);
  }

  html[lang="he-IL"] {
    .contact_title {
      font-size: var(--font-size-xl-lg);
    }
  }
}

@media (max-width: 768px) {
  .contact-us_wrapper {
    padding: 3.5em 1.5em;
  }

  .contact-block {
    &:nth-child(2) {
      width: 100%;
    }

    &:nth-child(3) {
      width: 100%;
    }
  }

  .contact_title {
    font-size: var(--font-size-xxl);
  }
}