/*
 * WoolEstonia — wholesale CMS page ID 17
 * Large banner, two-column product list and compact contact form.
 */

body.cms-17 .rte > div:first-child {
  max-width: 1100px;
  margin-right: auto !important;
  margin-left: auto !important;
  padding: 20px 0 !important;
  font-family: inherit !important;
}

body.cms-17 .rte > div:first-child > h1 {
  margin-bottom: 24px !important;
  font-size: clamp(24px, 3vw, 32px) !important;
  line-height: 1.25 !important;
}

body.cms-17 .rte > div:first-child > p {
  max-width: 960px;
  margin-right: auto !important;
  margin-left: auto !important;
}

/* Banner and wholesale product lists */
body.cms-17 .rte > div:first-child > div {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 48px !important;
  align-items: stretch;
  margin-top: 20px;
}

body.cms-17 .rte > div:first-child > div > div {
  grid-column: 1 / -1;
  grid-row: 1;
  text-align: center !important;
}

body.cms-17 .rte > div:first-child > div > div > img {
  float: none !important;
  display: block !important;
  width: min(100%, 920px) !important;
  max-width: 920px !important;
  height: auto !important;
  margin: 0 auto !important;
  border-radius: 16px !important;
  box-shadow: 0 14px 38px rgb(0 0 0 / 14%) !important;
}

body.cms-17 .rte > div:first-child > div > ul {
  min-width: 0;
  margin: 0 !important;
  padding: 20px 30px 20px 48px !important;
  color: #4c4c4c !important;
  font-size: 15px !important;
  line-height: 1.8 !important;
  text-align: left !important;
  background: #faf9f7;
  border: 1px solid #ece8e1;
  border-radius: 12px;
}

/* Contact form card */
body.cms-17 .wpcf7 {
  box-sizing: border-box;
  width: 100%;
  max-width: 760px;
  margin: 42px auto 24px;
  padding: 32px;
  background: #faf9f7;
  border: 1px solid #e8e3dc;
  border-radius: 16px;
  box-shadow: 0 14px 38px rgb(0 0 0 / 9%);
}

body.cms-17 .wpcf7 form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
}

body.cms-17 .wpcf7 form > br {
  display: none;
}

body.cms-17 .wpcf7 form > h3 {
  grid-column: 1 / -1;
  margin: 0 0 6px;
  font-size: 21px;
  line-height: 1.3;
  text-align: center;
}

body.cms-17 .wpcf7 form > label {
  min-width: 0;
  margin: 0;
  color: #3f3f3f;
  font-size: 14px;
  line-height: 1.4;
}

body.cms-17 .wpcf7 form > label:nth-of-type(3),
body.cms-17 .wpcf7 form > label:nth-of-type(4) {
  grid-column: 1 / -1;
}

body.cms-17 .wpcf7 .form-control {
  box-sizing: border-box;
  display: block;
  width: 100% !important;
  min-height: 46px;
  margin: 8px 0 0 !important;
  padding: 10px 13px;
  color: #333;
  font-size: 15px !important;
  line-height: 1.4;
  background: #fff;
  border: 1px solid #d7d2cb;
  border-radius: 7px;
  box-shadow: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

body.cms-17 .wpcf7 .form-control:focus {
  border-color: #777;
  outline: 0;
  box-shadow: 0 0 0 3px rgb(0 0 0 / 7%);
}

body.cms-17 .wpcf7 textarea.form-control {
  min-height: 160px;
  height: 160px !important;
  resize: vertical;
}

body.cms-17 .wpcf7 .wpcf7-submit {
  grid-column: 1 / -1;
  justify-self: center;
  min-width: 180px;
  margin: 4px 0 0;
  padding: 12px 26px;
  color: #fff;
  font-size: 14px;
  line-height: 1.3;
  background: #222;
  border: 0;
  border-radius: 6px;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

body.cms-17 .wpcf7 .wpcf7-submit:hover,
body.cms-17 .wpcf7 .wpcf7-submit:focus {
  background: #e90046;
  transform: translateY(-1px);
}

body.cms-17 .wpcf7 .ajax-loader,
body.cms-17 .wpcf7 .wpcf7-response-output {
  grid-column: 1 / -1;
}

body.cms-17 .wpcf7 .wpcf7-response-output {
  margin: 0;
}

body.cms-17 .wpcf7 > .clearfix {
  display: none;
}

/* Do not apply global article-image styling to form CAPTCHA/images */
body.cms-17 .wpcf7 img {
  float: none !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 767px) {
  body.cms-17 .rte > div:first-child {
    padding: 10px 0 !important;
  }

  body.cms-17 .rte > div:first-child > div {
    grid-template-columns: 1fr;
    gap: 18px !important;
  }

  body.cms-17 .rte > div:first-child > div > div {
    grid-column: 1;
  }

  body.cms-17 .rte > div:first-child > div > div > img {
    width: 100% !important;
    border-radius: 12px !important;
  }

  body.cms-17 .rte > div:first-child > div > ul {
    padding: 17px 22px 17px 42px !important;
  }

  body.cms-17 .wpcf7 {
    margin-top: 30px;
    padding: 20px;
    border-radius: 12px;
  }

  body.cms-17 .wpcf7 form {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  body.cms-17 .wpcf7 form > h3,
  body.cms-17 .wpcf7 form > label,
  body.cms-17 .wpcf7 form > label:nth-of-type(3),
  body.cms-17 .wpcf7 form > label:nth-of-type(4),
  body.cms-17 .wpcf7 .wpcf7-submit,
  body.cms-17 .wpcf7 .ajax-loader,
  body.cms-17 .wpcf7 .wpcf7-response-output {
    grid-column: 1;
  }

  body.cms-17 .wpcf7 .wpcf7-submit {
    width: 100%;
  }
}
