/*
 * Testimonial form + footer accessibility repair.
 * Scoped to the testimonial page so live production and the VS Code
 * workspace render the same design without changing forms elsewhere.
 */
html body.testimonials-page .testimonial-review {
  background: #faf8f5;
  color: #26211e;
  padding: clamp(40px, 5vw, 76px) 0 clamp(62px, 6vw, 90px);
}
html body.testimonials-page .testimonial-review > .container {
  width: min(1100px, calc(100% - 40px));
}
html body.testimonials-page .testimonial-review .head {
  max-width: 820px;
  margin-bottom: 30px;
}
html body.testimonials-page .testimonial-review .head h2 {
  color: #171717 !important;
  font-family: var(--font-display, "Syne", sans-serif);
  font-size: clamp(2.125rem, 4vw, 3.375rem) !important;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.045em;
  text-wrap: balance;
}
html body.testimonials-page .testimonial-review .head p {
  max-width: 62ch;
  margin-top: 12px;
  color: #4e4842;
  font-size: 1rem;
  line-height: 1.65;
}
html body.testimonials-page #testimonialForm {
  max-width: 1040px;
  gap: 18px;
}
html body.testimonials-page #testimonialForm .form-section {
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid #d9cfc6;
  border-radius: 12px;
  background: #fffdfa;
  box-shadow: none;
}
html body.testimonials-page #testimonialForm .field-row {
  gap: 16px 20px;
}
html body.testimonials-page #testimonialForm .field {
  min-width: 0;
  margin-top: 0;
  gap: 8px;
}
html body.testimonials-page #testimonialForm .field-row + .field-row,
html body.testimonials-page #testimonialForm .field-row + .field {
  margin-top: 20px;
}
html body.testimonials-page #testimonialForm .field > label {
  display: block;
  margin: 0;
  color: #302b27;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.45;
}
html body.testimonials-page #testimonialForm .field :is(input:not([type="checkbox"]), textarea, select) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #ada198;
  border-radius: 8px;
  background: #fff;
  color: #26211e;
  font: 500 1rem/1.45 var(--font-body, "DM Sans", sans-serif);
  caret-color: #a32d0c;
  opacity: 1;
  box-shadow: none;
  color-scheme: light;
}
html body.testimonials-page #testimonialForm .field select {
  cursor: pointer;
}
html body.testimonials-page #testimonialForm .field textarea {
  min-height: 146px;
  resize: vertical;
}
html body.testimonials-page #testimonialForm .field :is(input:not([type="checkbox"]), textarea, select):focus-visible {
  outline: 3px solid #a32d0c;
  outline-offset: 2px;
  border-color: #a32d0c;
  box-shadow: 0 0 0 2px rgba(163,45,12,.08);
}
html body.testimonials-page #testimonialForm :is(input, select, textarea)::placeholder {
  color: #69605a;
  opacity: 1;
}
html body.testimonials-page #testimonialForm .tagRow {
  align-items: flex-start;
  gap: 10px 12px;
  margin-top: 22px;
}
html body.testimonials-page #testimonialForm .tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 13px;
  border: 1px solid #d7c9bf;
  border-radius: 8px;
  background: #f9f4ef;
  color: #322d29;
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.4;
  white-space: normal;
}
html body.testimonials-page #testimonialForm .tag input[type="checkbox"] {
  appearance: auto;
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 0;
  padding: 0;
  accent-color: #a32d0c;
  flex: 0 0 18px;
}
html body.testimonials-page #testimonialForm .submit-area {
  justify-items: start;
}
html body.testimonials-page #testimonialForm .btn--submit {
  width: min(100%, 300px);
  min-height: 50px;
  border: 1px solid #a32d0c;
  border-radius: 8px;
  background: #a32d0c;
  color: #fff;
  box-shadow: none;
  font-size: 1rem;
  font-weight: 800;
}
html body.testimonials-page #testimonialForm .btn--submit:hover {
  background: #83250b;
  border-color: #83250b;
}
html body.testimonials-page #testimonialForm .btn--submit:focus-visible {
  outline: 3px solid #171717;
  outline-offset: 3px;
}
html body.testimonials-page #testimonialForm .formMessage {
  max-width: 76ch;
  color: #302b27;
}

/* Isolated release: replaces the legacy 1fr / auto / 1fr footer only here. */
html body.testimonials-page .footer {
  background: #171717;
  border-top: 1px solid #443b35;
  color: #f5eee8;
}
html body.testimonials-page .footer .footer__inner {
  display: grid !important;
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr) !important;
  grid-template-areas: "brand links" "copy copy" !important;
  align-items: start !important;
  gap: 16px 30px !important;
  min-height: 0 !important;
  padding: 36px 0 105px !important;
  text-align: left !important;
}
html body.testimonials-page .footer .footer__inner > .brand {
  grid-area: brand !important;
  display: inline-flex;
  align-items: center;
  justify-self: start !important;
  width: fit-content;
  max-width: 230px;
  min-width: 0;
  gap: 10px;
  color: #fff !important;
}
html body.testimonials-page .footer .brand__name {
  display: inline-block !important;
  color: #fff !important;
  font: 800 16px/1.1 var(--font-display, "Syne", sans-serif);
  letter-spacing: .03em;
  white-space: nowrap;
}
html body.testimonials-page .footer .brand img {
  display: block;
  flex: 0 0 76px !important;
  width: 76px !important;
  height: 50px !important;
  max-width: 76px !important;
  max-height: 50px !important;
  padding: 6px !important;
  border-radius: 6px;
  background: #fff;
  object-fit: contain;
}
html body.testimonials-page .footer .footer__links {
  grid-area: links !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: start;
  justify-content: flex-start !important;
  gap: 3px 17px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  color: #e3d9d1;
  font-size: 13px;
  line-height: 1.4;
}
html body.testimonials-page .footer .footer__links > :is(a,button) {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  max-width: 100%;
  color: #e3d9d1;
  font-size: 13px;
  line-height: 1.4;
  text-underline-offset: 4px;
}
html body.testimonials-page .footer .footer__links > :is(a,button):hover {
  color: #ffb099;
}
html body.testimonials-page .footer .footer-copy {
  grid-area: copy !important;
  justify-self: start !important;
  max-width: none !important;
  color: #c7bdb5;
  font-size: 13px;
  line-height: 1.6;
  text-align: left !important;
  white-space: normal;
}
@media (max-width: 1050px) {
  html body.testimonials-page .footer .footer__inner {
    grid-template-columns: minmax(0,1fr) !important;
    grid-template-areas: "brand" "links" "copy" !important;
    gap: 16px !important;
    padding: 30px 0 105px !important;
  }
  html body.testimonials-page .footer .footer__links {
    justify-content: flex-start !important;
  }
  html body.testimonials-page .footer .footer__inner > .brand,
  html body.testimonials-page .footer .footer-copy {
    justify-self: start !important;
    text-align: left !important;
  }
}
@media (max-width: 620px) {
  html body.testimonials-page .testimonial-review > .container {
    width: calc(100% - 32px);
  }
  html body.testimonials-page .testimonial-review .head h2 {
    font-size: clamp(1.875rem, 8vw, 2.5rem) !important;
  }
  html body.testimonials-page #testimonialForm .field-row {
    grid-template-columns: minmax(0,1fr);
    gap: 18px;
  }
  html body.testimonials-page #testimonialForm .tagRow {
    display: grid;
    grid-template-columns: minmax(0,1fr);
  }
  html body.testimonials-page #testimonialForm .tag {
    width: 100%;
  }
  html body.testimonials-page #testimonialForm .btn--submit {
    width: 100%;
  }
  html body.testimonials-page .footer .footer__inner {
    padding-bottom: max(110px, calc(92px + env(safe-area-inset-bottom, 0px))) !important;
  }
  html body.testimonials-page .footer .footer__links > :is(a,button) {
    min-height: 44px;
  }
}
