/* Octave Testimonials: brand styles (Octave Brand Guide palette). Square shapes; 2px on fields and buttons. */
.ot, .ot-row, .ot-carousel {
  --ot-navy: #2f4156;
  --ot-cream: #fdf8f2;
  --ot-raised: #f4ede3;
  --ot-ink: #2f2f2f;
  --ot-muted: #5e6470;
  --ot-line: #d9cfc1;
  --ot-red: #c42a41;
  --ot-serif: "Libre Baskerville", Baskerville, Georgia, serif;
  --ot-sans: Poppins, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Testimonials on a page ---------- */
.ot-row {
  display: grid !important;
  grid-template-columns: repeat(var(--ot-cols, 3), minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}
.ot-row[data-count="2"] { --ot-cols: 2; }
.ot-row[data-count="1"] { --ot-cols: 1; max-width: 760px; }
.ot-item { display: flex; min-width: 0; }
.ot-item .octave-quote { width: 100%; }
.ot-quote-text p + p { margin-top: 0.75em !important; }
@media (max-width: 900px) {
  .ot-row { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Carousel ---------- */
.ot-carousel { --ot-gap: 1.25rem; position: relative; }
.ot-track {
  display: grid !important;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--ot-show, 3) - 1) * var(--ot-gap)) / var(--ot-show, 3));
  gap: var(--ot-gap) !important;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  padding: 6px 0 4px; /* room for the card lift on hover */
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.ot-track::-webkit-scrollbar { display: none; }
.ot-track > .ot-item { scroll-snap-align: start; }
/* Each card is as tall as its own words, so one long testimonial doesn't stretch the rest. */
body .ot-carousel .ot-track { align-items: start !important; overflow-y: hidden; transition: height 0.3s ease; }
@media (prefers-reduced-motion: reduce) { body .ot-carousel .ot-track { transition: none; } }
body .ot-carousel .ot-track .octave-quote { justify-content: flex-start !important; }
.ot-track:focus-visible { outline: 2px solid var(--ot-navy); outline-offset: 4px; }
.ot-nav { display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem; margin-top: 1rem; }
.ot-nav[hidden] { display: none; }
.ot-status { margin-right: auto; font-family: var(--ot-sans); font-size: 0.85rem; color: var(--ot-muted); }
.ot-arrow {
  display: inline-grid; place-items: center;
  width: 2.75rem; height: 2.75rem; padding: 0;
  border: 1.5px solid var(--ot-navy); border-radius: 2px;
  background: transparent; color: var(--ot-navy);
  font-size: 1.15rem; line-height: 1; cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.ot-arrow:hover:not([disabled]) { background: var(--ot-navy); color: var(--ot-cream); }
.ot-arrow:focus-visible { outline: 2px solid var(--ot-navy); outline-offset: 2px; }
.ot-arrow[disabled] { opacity: 0.35; cursor: default; }
@media (max-width: 900px) {
  /* One card at a time, with the next one peeking in so it's clear there's more. */
  .ot-track { grid-auto-columns: 84%; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .ot-track { grid-auto-columns: calc((100% - var(--ot-gap)) / 1.6); }
}
@media (prefers-reduced-motion: reduce) {
  .ot-track { scroll-behavior: auto; }
}

/* ---------- The form ---------- */
.ot {
  max-width: 760px;
  margin: 0 auto;
  font-family: var(--ot-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ot-ink);
}
.ot *, .ot *::before, .ot *::after { box-sizing: border-box; }
.ot :is(a, button, input, select, textarea):focus-visible { outline: 2px solid var(--ot-navy); outline-offset: 2px; }

.ot-form {
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border-top: 3px solid var(--ot-navy);
  background: var(--ot-raised);
}
.ot-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.1rem 1.25rem; }
.ot-field { display: flex; flex-direction: column; gap: 0.35rem; margin: 0 !important; }
.ot-field-wide { grid-column: 1 / -1; }
.ot-field label { font-size: 0.92rem; font-weight: 500; }
.ot-req { color: var(--ot-red); }
.ot-field :is(input, select, textarea) {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1.5px solid var(--ot-line);
  border-radius: 2px;
  background: var(--ot-cream);
  color: var(--ot-ink);
  font: inherit;
  box-shadow: none;
}
.ot-field textarea { min-height: 9rem; resize: vertical; }
.ot-field :is(input, select, textarea):focus { border-color: var(--ot-navy); outline: none; }
.ot-help { font-size: 0.85rem; line-height: 1.5; color: var(--ot-muted); }
.ot-count { font-size: 0.8rem; color: var(--ot-muted); text-align: right; }
.ot-count.is-low { color: var(--ot-red); }
.ot-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.ot-consent { display: flex; gap: 0.7rem; align-items: flex-start; margin-top: 1.4rem; font-size: 0.92rem; line-height: 1.55; cursor: pointer; }
.ot-consent input { flex: 0 0 auto; width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; accent-color: var(--ot-navy); }

.ot-submit {
  margin-top: 1.5rem;
  padding: 0.9rem 1.6rem;
  border: 0;
  border-radius: 2px;
  background: var(--ot-red);
  color: var(--ot-cream);
  font-family: var(--ot-sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.ot-submit:hover { transform: translateY(-2px); }
.ot-submit[disabled] { opacity: 0.6; cursor: wait; transform: none; }
.ot-note { margin: 0.75rem 0 0 !important; font-size: 0.85rem; color: var(--ot-muted); }

.ot-error { margin: 1rem 0; padding: 0.8rem 1rem; border-left: 3px solid var(--ot-red); background: #fbeaec; color: #7a1a28; }
.ot-error[hidden] { display: none; }

.ot-thanks { padding: clamp(1.5rem, 5vw, 2.5rem); border-top: 3px solid var(--ot-navy); background: var(--ot-raised); }
.ot-thanks > * { margin: 0 0 0.75rem !important; }
.ot-thanks > *:last-child { margin-bottom: 0 !important; }
.ot-eyebrow { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ot-red); }
.ot .ot-title { font-family: var(--ot-serif) !important; font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 700; line-height: 1.2; color: var(--ot-ink); }
.ot-link { color: var(--ot-red); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 600px) {
  .ot-fields { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .ot-submit { transition: none; }
  .ot-submit:hover { transform: none; }
}
