/* SPM Services — Contact page */

body.spm-contact {
  background: #fff;
  padding-top: 0 !important;
}

.contact-main {
  background: #fff;
  padding: 92px 0 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(320px, 1.14fr);
  gap: 48px 80px;
  align-items: start;
}

.contact-copy h2 {
  max-width: 420px;
  margin: 0 0 16px;
  font-family: var(--font-head);
  font-size: clamp(32px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: #17172b;
}

.contact-copy p {
  max-width: 430px;
  margin: 0 0 28px;
  color: #8b919e;
  font-size: 18px;
  line-height: 1.65;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: #8b919e;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
}

.contact-links a:hover {
  color: #6aa33c;
}

.contact-links svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: #7dce7a;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-form .wpcf7-form {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
}

.contact-field .wpcf7-form-control-wrap {
  display: block;
}

.contact-phone .wpcf7-form-control-wrap {
  display: contents;
}


.wpcf7-response-output {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0;
  border: 0;
  color: #3d7a38;
  font-size: 14px;
  font-weight: 500;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
  color: #a33c3c;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.contact-field.full {
  grid-column: 1 / -1;
}

.contact-field label {
  color: #8b919e;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}

.contact-req {
  color: #d14343;
}

.contact-error {
  color: #d14343;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
}

body.spm-contact .contact-form .wpcf7-not-valid-tip {
  display: none;
}

.contact-field.is-invalid input,
.contact-field.is-invalid select,
.contact-field.is-invalid textarea,
.contact-field.is-invalid .contact-phone,
body.spm-contact .contact-field .wpcf7-not-valid {
  border-color: #d14343;
}

body.spm-contact .contact-phone input.wpcf7-not-valid {
  border: 0;
  box-shadow: none;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  border: 1px solid #c8cbd0;
  border-radius: 6px;
  background: #fff;
  color: #1c2430;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-field input,
.contact-field select {
  height: 46px;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #c5cad3;
}

body.spm-contact .contact-form textarea,
body.spm-contact .contact-field textarea {
  height: 112px;
  min-height: 112px;
  max-width: none;
  padding: 11px 14px;
  border: 1px solid #c8cbd0;
  border-radius: 6px;
  box-shadow: none;
  resize: vertical;
  box-sizing: border-box;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus,
.contact-phone:focus-within {
  border-color: #86c881;
  box-shadow: 0 0 0 3px rgba(134, 200, 129, 0.16);
}

.contact-field select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%239aa3ad' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.contact-field select:invalid {
  color: #c5cad3;
}

.contact-field select option {
  color: #1c2430;
}

.contact-phone {
  display: flex;
  align-items: center;
  height: 46px;
  border: 1px solid #e4e7ee;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.contact-phone select,
.contact-phone select:focus {
  width: 78px;
  height: 100%;
  flex-shrink: 0;
  border: 0;
  border-right: 1px solid #e4e7ee;
  border-radius: 0;
  box-shadow: none;
  padding: 0 26px 0 12px;
  background-position: right 10px center;
  color: #3e4652;
  font-weight: 500;
}

.contact-phone input,
.contact-phone input:focus {
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.spm-contact .contact-form input[type="submit"],
body.spm-contact .contact-form .contact-submit {
  grid-column: 1 / -1;
  width: 100%;
  height: 48px;
  min-height: 48px;
  margin: 4px 0 0;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: #86c881;
  color: #fff;
  box-shadow: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 48px;
  cursor: pointer;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.15s ease;
}

body.spm-contact .contact-form input[type="submit"]:hover,
body.spm-contact .contact-form .contact-submit:hover {
  background: #74b870;
  color: #fff;
}

body.spm-contact .contact-form .wpcf7-spinner {
  position: absolute;
  right: 16px;
  bottom: 12px;
  margin: 0;
}

.contact-note {
  grid-column: 1 / -1;
  margin: 0;
  color: #3d7a38;
  font-size: 14px;
  font-weight: 500;
}

.contact-note.is-error {
  color: #a33c3c;
}

/* Reused SPM About Teams map, spaced like the contact page. */
body.spm-contact .about-teams {
  padding: 36px 0 88px;
  background: #fff;
}

body.spm-contact .about-map {
  margin-bottom: 0;
}

@media (max-width: 991px) {
  .contact-main {
    padding: 56px 0 12px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  body.spm-contact .about-teams {
    padding-bottom: 56px;
  }
}

@media (max-width: 767px) {
  .contact-form .wpcf7-form {
    grid-template-columns: 1fr;
  }

  body.spm-contact .about-teams {
    padding-top: 12px;
  }
}
