/* Contact Page */

.contactBlock {
  border-radius: var(--roundedEdge);
  padding: 3.75rem;
  margin-bottom: 2rem;
  &.address {
    background: var(--blockBackground);
    color: var(--headingText);
    h4 {
      margin-bottom: 2rem;
	  font-size: clamp(36px, 1.2vw, 54px);
    }
    h5 {
      &.last {
        margin-top: 2rem;
      }
    }
    .blogname {
      margin: 0 auto;
    }
    img {
      margin-right: 0.75rem;
    }
  }
  &.yellowCard {
    background: var(--yellowBlock);
    p {
      color: var(--headingText);
    }
    a {
      color: var(--headingText);
      text-decoration: underline;
    }
    img {
      max-width: 75%;
      margin-bottom: 2rem;
    }
  }
}

.cf7-contact-row {
  display: flex;
  gap: 20px;
  width: 100%;
  @media (max-width: 767px) {
    flex-direction: column;
    gap: 0;
  }
}

.cf7-contact-row .cf7-field {
  width: 100%;
  @media (max-width: 767px) {
    width: 100%;
  }
}

/* Contact Form Stuff */
/* Contact Form Homepage */

.cf7-contact-wrap {
  max-width: 1820px;
  margin: auto;
  padding: 60px;
  border-radius: var(--roundedEdge);
  display: grid;
  grid-template-columns: 100% 1fr;
  gap: 80px;
  background: var(--blockBackground);
  .cf7-left {
    h2 {
      margin: 0 0 50px;
    }
  }
  .cf7-right {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 60px 50px;
    align-items: start;
  }
  .cf7-submit-group {
    display: flex;
    gap: 10px;
    .wpcf7-submit {
      background: var(--blockBackground);
      border: none;
      border-radius: 15px;
      padding: 18px 40px;
      cursor: pointer;
      color: var(--headingText);
    }
    .cf7-arrow {
      width: 70px;
      border: none;
      border-radius: 15px;
      background: var(--blockBackground);
      font-size: clamp(18px, 1.2vw, 30px);
      cursor: pointer;
    }
  }
  .cf7-field {
    display: flex;
    flex-direction: column;
    &.message {
      grid-row: span 2;
    }
    label {
      margin-bottom: 10px;
      font-size: clamp(12px, 1.2vw, 24px);
      line-height: clamp(22px, 1.2vw, 34px);
      color: var(--bodyText);
    }
    input,
    textarea {
      border: 1px solid var(--border);
      border-radius: var(--buttonRadius);
      padding: 8px;
      background: var(--white);
      width: 100%;
      outline: none;
      margin-bottom: 2rem;
    }
    textarea {
      resize: none;
      height: 220px;
    }
  }
}

.cf7-submit-group {
  .siiButton {
    button {
      span {
        background-color: var(--button);
      }
    }
  }
}

.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

@media (max-width: 991px) {
  .cf7-contact-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 30px;

    .cf7-right {
      grid-template-columns: 1fr;
    }

    .cf7-field {
      &.message {
        grid-row: auto;
      }
    }

    .cf7-left h2 {
      font-size: clamp(24px, 1.2vw, 42px);
    }
  }
}

@media (max-width: 991px){
    .cf7-contact-wrap {
    .cf7-submit-group {
        flex-direction: column;
    }
}
}
