/* =================================================================
   Форма заявки ТВИНПРО — стили компонента (вариант «Карточки», 2 колонки)
   Подключение: <link rel="stylesheet" href="/local/form/form.css">
   Все правила ограничены классами .tp-* — глобальные стили сайта не затрагиваются.
   Размеры в px, поэтому корневой font-size сайта на вид не влияет.
   ================================================================= */

/* ================================================================
   TwinPro - universal request form (prototype)
   Embedding: wrap markup in .tp-, no changes to site CSS required.
   All dimensions in px (site root 1rem = 12px).
   ================================================================ */

.tp-request {
  --tp-blue: #498fcd;
  --tp-blue-dark: #35709f;
  --tp-blue-soft: #f3f8ff;
  --tp-ink: #1f2429;
  --tp-muted: #6b7683;
  --tp-border: #dce3eb;
  --tp-border-strong: #c3cfdb;
  --tp-white: #fff;
  --tp-radius: 14px;
  --tp-shadow: 0 18px 44px -26px rgba(31, 36, 41, 0.55);
  --tp-font: "Roboto-Regular", Roboto, -apple-system, "Segoe UI", Arial, sans-serif;
  --tp-font-medium: "Roboto-Medium", Roboto, -apple-system, "Segoe UI", Arial, sans-serif;
  text-align: left;
  color: var(--tp-ink);
  font-family: var(--tp-font);
  font-size: 14px;
  line-height: 1.55;
}

/* ------------------------------------------------------------ demo bar */

.tp-form {
  scroll-margin-top: 130px;
  display: block; /* override site form { display: flex } */
  position: relative;
  box-sizing: border-box;
  margin: 0 0 24px;
  padding: 26px 28px 28px;
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius);
  background: var(--tp-white);
  box-shadow: var(--tp-shadow);
  font-family: var(--tp-font);
  font-size: 14px;
  line-height: 1.55;
  color: var(--tp-ink);
}

.tp-form *,
.tp-form *::before,
.tp-form *::after {
  box-sizing: border-box;
}

.tp-form__head {
  margin: 0 0 20px;
}

.tp-form__title {
  margin: 0 0 6px;
  font-family: var(--tp-font-medium);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--tp-ink);
}

.tp-form__subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--tp-muted);
}

/* ----------------------------------------------------------------- panel */

.tp-services {
  min-width: 0;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
}

.tp-services__legend {
  display: block;
  margin: 0 0 7px;
  padding: 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tp-muted);
}

/* --- variant A: pills --- */

.tp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tp-chip {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.tp-chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.tp-chip__body {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--tp-border);
  border-radius: 999px;
  background: var(--tp-white);
  color: var(--tp-ink);
  font-size: 13.5px;
  white-space: nowrap;
  transition: border-color 0.18s, background 0.18s, color 0.18s, box-shadow 0.18s;
}

.tp-chip:hover .tp-chip__body {
  border-color: var(--tp-blue);
  color: var(--tp-blue-dark);
}

.tp-chip input:checked + .tp-chip__body {
  border-color: var(--tp-blue);
  background: var(--tp-blue);
  color: #fff;
  box-shadow: 0 8px 18px -10px rgba(73, 143, 205, 0.9);
}

.tp-chip input:focus-visible + .tp-chip__body {
  box-shadow: 0 0 0 3px rgba(73, 143, 205, 0.28);
}

.tp-chip__icon {
  display: inline-flex;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: currentColor;
  opacity: 0.9;
}

.tp-chip__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* --- variant B: cards --- */

.tp-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tp-card {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.tp-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.tp-card__body {
  display: flex;
  gap: 12px;
  height: 100%;
  padding: 11px 14px 12px;
  border: 1px solid var(--tp-border);
  border-radius: 12px;
  background: var(--tp-white);
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}

.tp-card:hover .tp-card__body {
  border-color: var(--tp-blue);
}

.tp-card input:checked + .tp-card__body {
  border-color: var(--tp-blue);
  background: var(--tp-blue-soft);
  box-shadow: inset 0 0 0 1px var(--tp-blue);
}

.tp-card input:focus-visible + .tp-card__body {
  box-shadow: 0 0 0 3px rgba(73, 143, 205, 0.28);
}

.tp-card__icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--tp-blue-soft);
  color: var(--tp-blue-dark);
  transition: background 0.18s, color 0.18s;
}

.tp-card input:checked + .tp-card__body .tp-card__icon {
  background: var(--tp-blue);
  color: #fff;
}

.tp-card__icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.tp-card__text {
  min-width: 0;
}

.tp-card__title {
  display: block;
  font-family: var(--tp-font-medium);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--tp-ink);
}

.tp-card__hint {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--tp-muted);
}

/* --- variant C: compact list --- */

.tp-select-wrap {
  position: relative;
}

.tp-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 2px solid var(--tp-muted);
  border-bottom: 2px solid var(--tp-muted);
  transform: rotate(45deg);
  pointer-events: none;
}

.tp-form .tp-select {
  width: 100%;
  height: 46px;
  padding: 0 42px 0 14px;
  border: 1px solid var(--tp-border);
  border-radius: 10px;
  background: var(--tp-white);
  color: var(--tp-ink);
  font-family: var(--tp-font);
  font-size: 14px;
  line-height: 46px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.tp-form .tp-select:hover,
.tp-form .tp-select:focus {
  border-color: var(--tp-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(73, 143, 205, 0.16);
}

/* ------------------------------------------------------------------ info */

.tp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  margin: 0 0 14px;
}

.tp-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tp-field {
  min-width: 0;
  margin: 0 0 14px;
}

.tp-grid .tp-field {
  margin: 0;
}

.tp-label {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--tp-muted);
}

.tp-optional {
  font-weight: 400;
  color: #98A2B3;
}

/* --------------------------------------------------------------- teaser */
.tp-teaser {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(73, 143, 205, 0.22);
  border-radius: 12px;
  background: var(--tp-blue-soft);
  animation: tpFade 0.25s ease;
}

.tp-teaser.is-hidden {
  display: none;
}

.tp-teaser__body {
  min-width: 0;
  flex: 1 1 auto;
}

.tp-teaser__badge {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tp-blue-dark);
}

.tp-teaser__title {
  margin: 0 0 3px;
  font-family: var(--tp-font-medium);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--tp-ink);
}

.tp-teaser__lead {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #4a5561;
}

.tp-teaser__link {
  flex: 0 0 auto;
  font-size: 12.5px;
  color: var(--tp-blue-dark);
  text-decoration: underline;
  text-decoration-color: rgba(53, 112, 159, 0.4);
  text-underline-offset: 2px;
  white-space: nowrap;
}

.tp-teaser__link:hover {
  text-decoration-color: currentColor;
}

@media (max-width: 640px) {
  .tp-teaser {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ------------------------------------------------------------- benefits */
.tp-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.tp-benefits li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 6px 12px;
  border: 1px solid rgba(73, 143, 205, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  line-height: 1.3;
  color: #35709f;
  list-style: none;
}

.tp-benefits li::before {
  content: "";
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: rgba(73, 143, 205, 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2335709f' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5'/%3E%3C/svg%3E") center/8px 8px no-repeat;
}

.tp-acc {
  margin: 0 0 18px;
  border: 1px solid rgba(73, 143, 205, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  overflow: hidden;
}

.tp-acc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  font-family: var(--tp-font-medium);
  font-size: 13.5px;
  color: var(--tp-ink);
  cursor: pointer;
  list-style: none;
}

.tp-acc__head::-webkit-details-marker {
  display: none;
}

.tp-acc__head::after {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-right: 2px solid var(--tp-muted);
  border-bottom: 2px solid var(--tp-muted);
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.tp-acc[open] .tp-acc__head::after {
  margin-top: 2px;
  transform: rotate(-135deg);
}

.tp-acc__body {
  padding: 0 16px 14px;
}

.tp-acc__body .tp-list {
  margin-bottom: 0;
}

.tp-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  padding: 11px 20px;
  border-radius: 10px;
  background: var(--tp-blue);
  color: #fff;
  font-family: var(--tp-font-medium);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.18s;
}

.tp-cta:hover {
  background: var(--tp-blue-dark);
  color: #fff;
  text-decoration: none;
}

.tp-info__panel.is-flash {
  animation: tpFlash 1.6s ease;
}

@keyframes tpFlash {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(73, 143, 205, 0);
  }
  30% {
    box-shadow: 0 0 0 3px rgba(73, 143, 205, 0.35);
  }
}

/* ------------------------- media: steps in a row (3 columns) --------- */
@media (min-width: 900px) {
  .tp-steps--row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .tp-steps--row .tp-step {
    flex-direction: column;
    gap: 8px;
  }
}

/* --------------------- media: two-column request (form + info) ------- */
@media (min-width: 1200px) {
  .tp-request {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 28px;
    align-items: start;
  }

  .tp-request > .tp-form {
    margin-bottom: 0;
  }

  .tp-request > .tp-info {
    margin-top: 0;
    position: sticky;
    top: 130px;
  }

  .tp-teaser {
    display: none;
  }
}

@media (min-width: 1200px) {
  .tp-request > .tp-info {
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
  }
}

/* single column layout */
@media (min-width: 1200px) {
  .tp-request {
    display: block;
  }

  .tp-request > .tp-form {
    margin-bottom: 24px;
  }

  .tp-request > .tp-info {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
    margin-top: 24px;
  }

  .tp-teaser {
    display: block;
  }
}

/* two-column layout (opt-in) */
@media (min-width: 1200px) {
  .tp-request--split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 28px;
    align-items: start;
  }

  .tp-request--split > .tp-form {
    margin-bottom: 0;
  }

  .tp-request--split > .tp-info {
    position: sticky;
    top: 130px;
    margin-top: 0;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
  }

  .tp-request--split .tp-teaser {
    display: none;
  }
}

/* split layout: panel tuned for narrow column */
@media (min-width: 1200px) {
  .tp-request--split .tp-info__panel {
    padding: 22px 22px 20px;
  }

  .tp-request--split .tp-info__title {
    font-size: 19px;
    line-height: 1.3;
  }

  .tp-request--split .tp-info__lead {
    margin-bottom: 14px;
    font-size: 13.5px;
  }

  .tp-request--split .tp-info__text {
    margin-bottom: 18px;
    font-size: 13.5px;
    line-height: 1.55;
  }

  .tp-request--split .tp-benefits {
    margin-bottom: 16px;
  }

  .tp-request--split .tp-benefits li {
    padding: 5px 10px;
    font-size: 11.5px;
  }

  .tp-request--split .tp-steps--row {
    grid-template-columns: minmax(0, 1fr);
  }

  .tp-request--split .tp-step {
    padding: 12px 14px;
    font-size: 13px;
  }

  .tp-request--split .tp-info__sub {
    margin-bottom: 10px;
    font-size: 14px;
  }

  .tp-request--split .tp-list li {
    font-size: 13px;
  }

  .tp-request--split .tp-callout {
    margin-bottom: 14px;
    padding: 12px 14px;
    font-size: 13px;
  }

  .tp-request--split .tp-note {
    font-size: 12px;
  }
}

/* hygiene: no trailing gap inside panels */
.tp-info__panel > :last-child {
  margin-bottom: 0;
}

/* floating label */
.tp-field--float {
  position: relative;
}

.tp-field--float .tp-label {
  max-width: calc(100% - 14px);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 11px;
  margin: 0;
  padding: 0 5px;
  background: #fff;
  color: #9aa5b1;
  font-size: 13.5px;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
  transition: top 0.16s ease, font-size 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.tp-field--float .tp-input,
.tp-field--float .tp-textarea {
  padding-top: 19px;
  padding-bottom: 5px;
}

.tp-field--float.tp-field--area .tp-label {
  top: 15px;
  transform: none;
}

.tp-field--float .tp-input:focus + .tp-label,
.tp-field--float .tp-input:not(:placeholder-shown) + .tp-label,
.tp-field--float .tp-textarea:focus + .tp-label,
.tp-field--float .tp-textarea:not(:placeholder-shown) + .tp-label {
  top: 0;
  font-size: 10.5px;
  color: #498fcd;
  transform: translateY(-50%);
}

.tp-field--float.is-invalid .tp-label {
  color: #c9302c;
}

/* compact density: fit one screen */
.tp-form {
  padding: 18px 20px 18px;
}

.tp-form__head {
  margin: 0 0 12px;
}

.tp-form__title {
  margin-bottom: 3px;
  font-size: 17px;
}

.tp-form__subtitle {
  font-size: 11.5px;
}

.tp-services {
  margin-bottom: 14px;
}

.tp-services__legend {
  margin-bottom: 7px;
  font-size: 11px;
}

.tp-chip__body {
  gap: 7px;
  height: 36px;
  padding: 0 13px;
  font-size: 12.5px;
}

.tp-chip__icon {
  width: 16px;
  height: 16px;
}

.tp-card__body {
  gap: 10px;
  padding: 10px 12px;
}

.tp-card__icon {
  width: 30px;
  height: 30px;
}

.tp-card__title {
  font-size: 13px;
}

.tp-card__hint {
  font-size: 11px;
}

.tp-grid {
  gap: 8px 12px;
  margin-bottom: 8px;
}

.tp-field {
  margin-bottom: 8px;
}

.tp-form .tp-input {
  height: 44px;
}

.tp-form .tp-textarea {
  min-height: 52px;
}

.tp-consent {
  margin: 2px 0 8px;
  font-size: 12px;
}

.tp-form .tp-submit {
  min-height: 42px;
  padding: 0 22px;
  font-size: 13.5px;
}

.tp-drop {
  gap: 2px;
  padding: 11px 14px;
}

.tp-drop__hint {
  font-size: 11px;
}

.tp-teaser {
  margin-bottom: 12px;
  padding: 10px 12px;
}

.tp-teaser__title {
  font-size: 13px;
}

.tp-teaser__lead {
  font-size: 12px;
}

/* very short viewports */
@media (max-height: 820px) {
  .tp-form {
    padding: 14px 16px 14px;
  }

  .tp-form__subtitle,
  .tp-services__legend {
    display: none;
  }

  .tp-form .tp-textarea {
    min-height: 44px;
  }

  .tp-drop__hint,
  .tp-teaser {
    display: none;
  }

  .tp-actions__note {
    display: none;
  }
}

/* ===== restored from session log (exact pre-breakage values) ===== */
/* ===== restored from session log (exact pre-breakage values) ===== */
.tp-form__body {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.tp-dyn {
  margin-bottom: 6px;
}

.tp-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 14px;
  border: 1.5px dashed var(--tp-border-strong);
  border-radius: 12px;
  background: #fbfcfe;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}

.tp-drop__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #498FCD;
}

.tp-drop__title {
  font-size: 12.5px;
  line-height: 1.3;
  font-weight: 600;
  color: #1F2429;
}

.tp-files {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.tp-file {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 8px;
  border-radius: 8px;
  background: #EAF3FD;
  font-size: 11.5px;
  line-height: 1.3;
}

.tp-file__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp-file__size {
  margin-left: auto;
  color: #6B7684;
  white-space: nowrap;
}

.tp-file__remove {
  flex: 0 0 auto;
  padding: 0 2px;
  border: 0;
  background: none;
  color: #98A2B3;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.tp-error {
  display: none;
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.3;
  color: #D64545;
}

.tp-systems {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tp-system {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #DCE3EB;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.tp-system__body {
  font-size: 12.5px;
  line-height: 1.25;
  color: #1F2429;
}

.tp-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11.5px;
  line-height: 1.35;
  color: #5A6570;
  cursor: pointer;
}

.tp-consent__box {
  position: relative;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border: 1.5px solid #C6D6E6;
  border-radius: 4px;
  background: #fff;
  transition: border-color .15s ease, background .15s ease;
}

.tp-form__error {
  margin: 8px 0 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: #FDECEC;
  color: #C43C3C;
  font-size: 12px;
  line-height: 1.35;
}

.tp-form__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 20px;
  text-align: center;
}

.tp-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #E8F4EA;
  color: #3E9E52;
}

.tp-success__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1F2429;
}

.tp-success__text {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: #5A6570;
}

.tp-again {
  margin-top: 4px;
  padding: 9px 18px;
  border: 1px solid #C6D6E6;
  border-radius: 10px;
  background: #fff;
  font-size: 12.5px;
  color: #35709F;
  cursor: pointer;
}

.tp-info__badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #EAF3FD;
  color: #35709F;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.tp-step__num {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #498FCD;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
}

.tp-callout__title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: #1F2429;
}

.tp-request .is-hidden {
  display: none !important;
}

.tp-drop input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.tp-drop {
  min-height: 64px;
}

/* fit-one-screen tuning */
.tp-form {
  padding: 16px 20px;
}

.tp-form .tp-input {
  height: 42px;
}

.tp-form .tp-textarea {
  min-height: 46px;
}

.tp-grid {
  gap: 7px 12px;
}

.tp-consent {
  margin: 2px 0 10px;
}

.tp-card__hint {
  display: none;
}

.tp-teaser__lead {
  display: none;
}

@media (max-height: 950px) {
  .tp-form__subtitle {
    display: none;
  }
}

@media (max-height: 820px) {
  .tp-card__body {
    padding: 8px 10px;
  }

  .tp-card__icon {
    width: 26px;
    height: 26px;
  }

  .tp-form .tp-input {
    height: 40px;
  }

  .tp-form .tp-textarea {
    min-height: 40px;
  }

  .tp-grid {
    gap: 6px 10px;
  }

  .tp-form .tp-submit {
    min-height: 38px;
  }
}

/* final height shave */
.tp-actions__note {
  display: none;
}

.tp-teaser__badge {
  display: none;
}

.tp-teaser {
  padding: 9px 12px;
  margin-bottom: 10px;
}

.tp-form__head {
  margin-bottom: 10px;
}

/* beat site rule ".page ul li:before" (3x3 black dot) */
.tp-request .tp-benefits li::before {
  content: "";
  position: static;
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  margin: 0;
  border-radius: 50%;
  background: rgba(73, 143, 205, 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2335709f' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5'/%3E%3C/svg%3E") center/8px 8px no-repeat;
}

.tp-request .tp-list li::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  width: 14px;
  height: 14px;
  margin: 0;
  border-radius: 50%;
  background: rgba(73, 143, 205, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2335709f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5'/%3E%3C/svg%3E") center/9px 9px no-repeat;
}

.tp-request .tp-step::before,
.tp-request .tp-benefits li::marker,
.tp-request .tp-list li::marker {
  content: none;
}

/* beat site ".page ul li" padding/margin */
.tp-request .tp-benefits li {
  position: relative;
  max-width: 100%;
  margin: 0;
  padding: 6px 12px;
  line-height: 1.25;
}

.tp-request .tp-list li {
  position: relative;
  margin: 0;
  padding: 0 0 0 24px;
}

.tp-request .tp-steps {
  margin: 0 0 12px;
  padding: 0;
}

.tp-request .tp-step {
  margin: 0;
  padding: 14px 16px;
}

.tp-request .tp-steps--row .tp-step {
  padding: 12px 14px;
}

/* ===== visibility helper (panels / conditional fields / teaser) ===== */
.tp-request .is-hidden {
  display: none !important;
}

/* =================================================================
   Layout system (final layer)
   Spacing scale: 4 / 8 / 12 / 16 / 24
   ================================================================= */

/* --- form shell --- */
.tp-request .tp-form {
  padding: 20px 22px;
  border-radius: 16px;
}

.tp-request .tp-form__head {
  margin-bottom: 12px;
}

.tp-request .tp-form__title {
  margin: 0 0 4px;
  font-size: 17px;
  line-height: 1.3;
}

.tp-request .tp-form__subtitle {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
}

/* --- services --- */
.tp-request .tp-services {
  margin: 0 0 12px;
  padding: 0;
}

.tp-request .tp-services__legend {
  margin-bottom: 8px;
  font-size: 11.5px;
}

.tp-request .tp-chips {
  gap: 8px;
}

.tp-request .tp-cards {
  gap: 8px;
}

.tp-request .tp-chip__body {
  padding: 8px 12px;
}

.tp-request .tp-card__body {
  padding: 10px 12px;
}

.tp-request .tp-chip,
.tp-request .tp-card {
  min-width: 0;
}

/* --- teaser --- */
.tp-request .tp-teaser {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
}

/* --- fields --- */
.tp-request .tp-grid {
  gap: 10px 12px;
  margin-bottom: 10px;
}

.tp-request .tp-field {
  margin-bottom: 10px;
}

.tp-request .tp-form .tp-input {
  height: 44px;
}

.tp-request .tp-form .tp-textarea {
  min-height: 64px;
}

/* --- file drop --- */
.tp-request .tp-dyn {
  margin-bottom: 6px;
}

.tp-request .tp-drop {
  min-height: 84px;
  padding: 14px 16px;
  gap: 6px;
  border-radius: 12px;
}

.tp-request .tp-drop__icon {
  width: 24px;
  height: 24px;
}

.tp-request .tp-drop__title {
  font-size: 12.5px;
}

.tp-request .tp-drop__hint {
  font-size: 11px;
}

/* --- systems --- */
.tp-request .tp-systems {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.tp-request .tp-system {
  padding: 10px 12px;
  gap: 8px;
  border-radius: 10px;
}

.tp-request .tp-system__body {
  font-size: 12px;
  line-height: 1.35;
}

/* --- consent, actions --- */
.tp-request .tp-consent {
  margin: 2px 0 8px;
  font-size: 11.5px;
  line-height: 1.4;
}

.tp-request .tp-form .tp-submit {
  min-height: 46px;
  font-size: 14px;
  border-radius: 12px;
}

.tp-request .tp-actions {
  gap: 12px;
}

.tp-request .tp-actions__note {
  font-size: 11px;
}

/* --- info panel --- */
.tp-request .tp-info__panel {
  padding: 22px;
  border-radius: 16px;
}

.tp-request .tp-info__badge {
  margin-bottom: 10px;
}

.tp-request .tp-info__title {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.3;
}

.tp-request .tp-info__lead {
  margin: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.55;
}

.tp-request .tp-benefits {
  gap: 8px;
  margin: 0 0 14px;
}

.tp-request .tp-benefits li {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  line-height: 1.25;
}

.tp-request .tp-steps {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
}

.tp-request .tp-step {
  padding: 12px 14px;
  gap: 10px;
  border-radius: 12px;
}

.tp-request .tp-step__num {
  width: 22px;
  height: 22px;
  font-size: 11.5px;
}

.tp-request .tp-acc {
  margin: 0 0 12px;
}

.tp-request .tp-callout {
  padding: 12px 14px;
  border-radius: 12px;
}

.tp-request .tp-cta {
  margin-top: 12px;
}

@media (min-width: 900px) {
  .tp-request:not(.tp-request--split) .tp-form--cards .tp-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  .tp-request .tp-form--cards .tp-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --- narrow info column (two-column layout) --- */
@media (min-width: 900px) {
  .tp-request--split .tp-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .tp-request--split .tp-form--cards .tp-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tp-request--split .tp-systems {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tp-request--split .tp-card__hint {
    display: none;
  }

  .tp-request--split .tp-chip__title,
  .tp-request--split .tp-chip__label,
  .tp-request--split .tp-card__title {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .tp-request--split .tp-info__panel {
    padding: 20px;
  }
}

/* --- mobile --- */
@media (max-width: 720px) {
  .tp-request .tp-form {
    padding: 16px;
  }

  .tp-request .tp-info__panel {
    padding: 16px;
  }

  .tp-request .tp-systems {
    grid-template-columns: 1fr;
  }

  .tp-request .tp-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tp-request .tp-drop {
    min-height: 72px;
    padding: 12px 14px;
  }
}

@media (max-width: 480px) {
  .tp-optional {
    display: none;
  }
}

/* --- short viewports: keep form within one screen --- */
@media (max-height: 820px) and (min-width: 900px) {
  .tp-request .tp-form {
    padding: 16px 18px;
  }

  .tp-request .tp-form__head {
    margin-bottom: 8px;
  }

  .tp-request .tp-services {
    margin-bottom: 8px;
  }

  .tp-request .tp-field {
    margin-bottom: 8px;
  }

  .tp-request .tp-grid {
    margin-bottom: 8px;
  }

  .tp-request .tp-dyn {
    margin-bottom: 8px;
  }

  .tp-request .tp-form .tp-textarea {
    min-height: 48px;
  }

  .tp-request .tp-drop {
    min-height: 68px;
    padding: 10px 14px;
  }

  .tp-request .tp-system {
    padding: 8px 10px;
  }

  .tp-request .tp-consent {
    margin-bottom: 8px;
  }

  .tp-request .tp-form .tp-submit {
    min-height: 42px;
  }
}

/* --- hidden states must win over layout rules --- */
.tp-request .tp-form__success[hidden] {
  display: none;
}

.tp-request .tp-form__error:empty {
  display: none;
}

/* --- chips: text may wrap, never overflow --- */
.tp-request .tp-chip__label,
.tp-request .tp-chip__title,
.tp-request .tp-card__title {
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  .tp-request .tp-chips {
    grid-template-columns: 1fr;
  }
}

/* =================================================================
   Switchers as a narrow column beside the form
   ================================================================= */
.tp-request {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.tp-request .tp-form {
  grid-column: 2;
  grid-row: 1;
}

.tp-request .tp-info {
  grid-column: 2;
  grid-row: 2;
  margin-top: 16px;
}

@media (min-width: 1200px) {
  .tp-request--split {
    grid-template-columns: 148px minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .tp-request--split .tp-info {
    grid-column: 3;
    grid-row: 1;
    margin-top: 0;
  }
}

@media (max-width: 1199px) {
  .tp-request {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tp-request .tp-form {
    grid-column: 1;
    grid-row: 2;
  }

  .tp-request .tp-info {
    grid-column: 1;
    grid-row: 3;
    margin-top: 0;
  }
}

/* --- interactive states --- */
.tp-request .tp-form .tp-input:focus,
.tp-request .tp-form .tp-textarea:focus {
  border-color: #498FCD;
  box-shadow: 0 0 0 3px rgba(73, 143, 205, 0.14);
  outline: none;
}

.tp-request .tp-form .tp-submit {
  background: #498FCD;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(31, 36, 41, 0.12);
  transition: background .15s ease, box-shadow .15s ease;
}

.tp-request .tp-form .tp-submit:hover {
  background: #35709F;
  box-shadow: 0 2px 10px rgba(53, 112, 159, 0.28);
}

.tp-request .tp-chip:has(input:checked),
.tp-request .tp-card:has(input:checked) {
  border-color: #498FCD;
  background: #F3F8FF;
}

/* =================================================================
   Information delivery (P1-P3)
   ================================================================= */

.tp-request:not(.tp-request--split) .tp-info__lead,
.tp-request:not(.tp-request--split) .tp-info__text,
.tp-request:not(.tp-request--split) .tp-list li {
  font-size: 15px;
  line-height: 1.7;
}

/* form density */
.tp-request .tp-form {
  padding: 18px 20px;
}

.tp-request .tp-form .tp-input {
  height: 42px;
}

.tp-request .tp-form .tp-textarea {
  min-height: 52px;
}

.tp-request .tp-field {
  margin-bottom: 8px;
}

.tp-request .tp-services {
  margin-bottom: 10px;
}

.tp-request .tp-form__head {
  margin-bottom: 10px;
}

.tp-request .tp-teaser {
  margin-bottom: 8px;
  padding: 8px 10px;
}

.tp-request .tp-consent {
  margin-bottom: 10px;
}

.tp-request .tp-form .tp-submit {
  min-height: 44px;
}

.tp-request .tp-drop {
  min-height: 76px;
  padding: 12px 14px;
}

/* panel density */
.tp-request .tp-info__panel {
  padding: 18px 20px;
}

.tp-request .tp-info__title {
  margin-bottom: 6px;
  font-size: 18px;
}

.tp-request .tp-info__lead {
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.55;
}

.tp-request .tp-info__text {
  margin-bottom: 10px;
  font-size: 12.5px;
  line-height: 1.55;
}

.tp-request .tp-info__sub {
  margin-bottom: 8px;
  font-size: 13px;
}

.tp-request .tp-benefits {
  margin-bottom: 10px;
  gap: 6px;
}

.tp-request .tp-benefits li {
  padding: 4px 10px;
  font-size: 11.5px;
}

.tp-request .tp-steps {
  margin-bottom: 10px;
  gap: 8px;
}

.tp-request .tp-step {
  padding: 10px 12px;
  font-size: 12px;
}

.tp-request .tp-acc {
  margin-bottom: 8px;
}

.tp-request .tp-info__note {
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 1.55;
}

/* two columns: panel fills the height, CTA pinned to the bottom */
@media (min-width: 1200px) {
  .tp-request--split .tp-info {
    display: flex;
  }

  .tp-request--split .tp-info__panel {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .tp-request--split .tp-cta {
    margin-top: auto;
    padding-top: 12px;
  }
}

/* smoother panel swap */
.tp-request .tp-info__panel.is-flash {
  animation: tp-panel-in 0.28s ease;
}

@keyframes tp-panel-in {
  from { opacity: 0.35; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

/* submit loading state */
.tp-request .tp-form .tp-submit.is-loading {
  position: relative;
  color: transparent;
}

.tp-request .tp-form .tp-submit.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: tp-spin 0.7s linear infinite;
}

@keyframes tp-spin {
  to { transform: rotate(360deg); }
}

/* =================================================================
   Panel fits the form height (inner scroll + pinned CTA)
   ================================================================= */
@media (min-width: 1200px) {
  .tp-request--split .tp-info__panel {
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 0;
    scrollbar-width: thin;
  }

  .tp-request--split .tp-cta {
    position: sticky;
    bottom: 0;
    margin-top: auto;
    padding: 12px 0 16px;
    background: #fff;
    box-shadow: 0 -10px 14px -10px rgba(31, 36, 41, 0.18);
  }
}

/* one column: shorter form so the panel starts within view */
.tp-request:not(.tp-request--split) .tp-form {
  padding: 16px 18px;
}

.tp-request:not(.tp-request--split) .tp-field {
  margin-bottom: 6px;
}

.tp-request:not(.tp-request--split) .tp-form .tp-input {
  height: 40px;
}

.tp-request:not(.tp-request--split) .tp-form .tp-textarea {
  min-height: 48px;
}

.tp-request:not(.tp-request--split) .tp-teaser {
  margin-bottom: 6px;
  padding: 6px 10px;
}

.tp-request:not(.tp-request--split) .tp-drop {
  min-height: 68px;
  padding: 10px 12px;
}

.tp-request:not(.tp-request--split) .tp-form .tp-submit {
  min-height: 42px;
}

/* =================================================================
   Design pass: fields, contrast, targets, groups (P1-P3)
   ================================================================= */

/* --- P1: inputs --- */
.tp-request .tp-form .tp-input {
  height: 46px;
  padding: 20px 14px 6px;
  border: 1px solid #DCE3EB;
  border-radius: 10px;
  font-size: 14px;
  color: #1F2429;
  background: #fff;
}

.tp-request .tp-form .tp-textarea {
  min-height: 64px;
  padding: 22px 14px 10px;
  border: 1px solid #DCE3EB;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: #1F2429;
  background: #fff;
}

.tp-request .tp-field--float .tp-label {
  font-size: 12.5px;
  color: #5A6570;
}

.tp-request .tp-field--float .tp-input:focus + .tp-label,
.tp-request .tp-field--float .tp-textarea:focus + .tp-label,
.tp-request .tp-field--float .tp-input:not(:placeholder-shown) + .tp-label,
.tp-request .tp-field--float .tp-textarea:not(:placeholder-shown) + .tp-label {
  color: #35709F;
}

/* required marker */
.tp-request .tp-field--float .tp-label[for="tp-name"]::after,
.tp-request .tp-field--float .tp-label[for="tp-phone"]::after,
.tp-request .tp-field--float .tp-label[for="tp-email"]::after,
.tp-request .tp-field--float .tp-label[for="tp-company"]::after {
  content: " *";
  color: #D64545;
  font-weight: 700;
}

.tp-request .tp-chip__body {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.tp-request .tp-consent__box {
  width: 18px;
  height: 18px;
}

.tp-request .tp-consent input:checked + .tp-consent__box::after {
  left: 5px;
  top: 1px;
  width: 6px;
  height: 10px;
}

/* --- P2: group headings --- */
.tp-request .tp-group {
  margin: 14px 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6B7684;
}

.tp-request .tp-services__legend {
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6B7684;
}

/* --- P2: teaser moves below the actions --- */
.tp-request .tp-form__body {
  display: flex;
  flex-direction: column;
}

.tp-request .tp-actions {
  order: 20;
}

.tp-request .tp-form__error {
  order: 21;
}

.tp-request .tp-teaser {
  order: 30;
  margin: 10px 0 0;
}

/* --- P2: info panel details --- */
.tp-request .tp-info__badge {
  font-size: 11px;
}

.tp-request .tp-step {
  font-size: 12.5px;
  line-height: 1.45;
}

.tp-request .tp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}

/* --- P3: progressive optional field --- */
.tp-request .tp-field.is-collapsed {
  display: none;
}

.tp-request .tp-reveal {
  display: inline-flex;
  align-items: center;
  align-self: end;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #35709F;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.tp-request .tp-reveal:hover {
  text-decoration: underline;
}

/* two columns: compact so the submit button stays in view */
@media (min-width: 1200px) {
  .tp-request--split .tp-form {
    padding: 16px 18px;
  }

  .tp-request--split .tp-form .tp-input {
    height: 44px;
  }

  .tp-request--split .tp-form .tp-textarea {
    min-height: 52px;
  }

  .tp-request--split .tp-drop {
    min-height: 64px;
    padding: 10px 12px;
  }

  .tp-request--split .tp-field {
    margin-bottom: 6px;
  }

  .tp-request--split .tp-group {
    margin: 10px 0 6px;
  }

  .tp-request--split .tp-services {
    margin-bottom: 8px;
  }

  .tp-request--split .tp-chip__body {
    min-height: 38px;
  }

  .tp-request--split .tp-consent {
    margin-bottom: 8px;
  }
}

/* actions stay visible while the form is on screen */
.tp-request .tp-actions {
  position: sticky;
  bottom: 10px;
  z-index: 5;
  padding: 8px 0;
  background: #fff;
  box-shadow: 0 -8px 12px -10px rgba(31, 36, 41, 0.16);
}

/* =================================================================
   Final look: side panel, unified fields, highlighted info, CTA
   ================================================================= */

/* 1. switchers beside the form on any screen wider than 768px */
@media (max-width: 1199px) {
  .tp-request {
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 16px;
  }

  .tp-request .tp-form {
    grid-column: 2;
    grid-row: 1;
  }

  .tp-request .tp-info {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (max-width: 767px) {
  .tp-request {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tp-request .tp-form,
  .tp-request .tp-info {
    grid-column: 1;
  }

  .tp-request .tp-form {
    grid-row: 2;
  }

  .tp-request .tp-info {
    grid-row: 3;
  }
}

/* 2. all inputs share one shape */
.tp-request .tp-form .tp-input,
.tp-request .tp-form .tp-textarea,
.tp-request--split .tp-form .tp-input,
.tp-request--split .tp-form .tp-textarea {
  height: 46px;
  min-height: 46px;
  padding: 20px 14px 6px;
  border: 1px solid #DCE3EB;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4;
  color: #1F2429;
  background: #fff;
}

.tp-request .tp-form .tp-textarea,
.tp-request--split .tp-form .tp-textarea {
  height: auto;
  min-height: 78px;
  padding: 22px 14px 10px;
  resize: vertical;
}

.tp-request .tp-drop,
.tp-request--split .tp-drop {
  border: 1px dashed #C6D6E6;
  border-radius: 10px;
}

/* 3. organisation field is always visible */
.tp-request .tp-field.is-collapsed {
  display: block;
}

.tp-request .tp-reveal {
  display: none;
}

/* 4. information panel is a highlighted card */
.tp-request .tp-info__panel {
  position: relative;
  border: 1px solid #D7E4F2;
  border-left: 3px solid #498FCD;
  border-radius: 14px;
  background: #F8FBFF;
  box-shadow: 0 2px 10px rgba(31, 36, 41, 0.05);
}

/* 5. accordions look like accordions */
.tp-request .tp-acc {
  margin: 0 0 10px;
  border: 1px solid #DCE3EB;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.tp-request .tp-acc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #1F2429;
  cursor: pointer;
  list-style: none;
}

.tp-request .tp-acc__head::-webkit-details-marker {
  display: none;
}

.tp-request .tp-acc__head::after {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin: -4px 3px 0 0;
  border-right: 2px solid #498FCD;
  border-bottom: 2px solid #498FCD;
  transform: rotate(45deg);
  transition: transform .2s ease, margin-top .2s ease;
}

.tp-request .tp-acc[open] .tp-acc__head::after {
  margin-top: 2px;
  transform: rotate(-135deg);
}

.tp-request .tp-acc__head:hover {
  background: #F3F8FF;
}

.tp-request .tp-acc__body {
  padding: 0 14px 12px;
}

/* 6. panel CTA is a real button */
.tp-request .tp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid #498FCD;
  border-radius: 10px;
  background: #498FCD;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.tp-request .tp-cta:hover {
  background: #35709F;
  border-color: #35709F;
  box-shadow: 0 2px 10px rgba(53, 112, 159, 0.28);
}

/* =================================================================
   Content: form + info only (no third column)
   ================================================================= */
.tp-request {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.tp-request .tp-form {
  grid-column: 1;
  grid-row: 1;
}

.tp-request .tp-info {
  grid-column: 1;
  grid-row: 2;
  margin-top: 0;
}

@media (min-width: 1200px) {
  .tp-request--split {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  }

  .tp-request--split .tp-info {
    grid-column: 2;
    grid-row: 1;
  }
}

/* =================================================================
   Fields: strict two columns, textarea full width
   ================================================================= */
.tp-request .tp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  margin-bottom: 8px;
}

.tp-request .tp-grid .tp-field {
  margin-bottom: 0;
}

/* =================================================================
   Fit one screen
   ================================================================= */
.tp-request .tp-form {
  padding: 16px 18px;
}

.tp-request .tp-form__head {
  margin-bottom: 8px;
}

.tp-request .tp-services {
  margin-bottom: 8px;
}

.tp-request .tp-group {
  margin: 10px 0 6px;
}

.tp-request .tp-field {
  margin-bottom: 8px;
}

.tp-request .tp-dyn {
  margin-bottom: 8px;
}

.tp-request .tp-form .tp-textarea {
  min-height: 64px;
}

.tp-request .tp-drop {
  min-height: 72px;
  padding: 10px 12px;
}

.tp-request .tp-consent {
  margin-bottom: 8px;
}

.tp-request .tp-form .tp-submit {
  min-height: 44px;
}

.tp-request .tp-info__panel {
  padding: 16px 18px;
}

.tp-request .tp-benefits,
.tp-request .tp-steps {
  margin-bottom: 10px;
}

/* fields must fill their grid cell */
.tp-request .tp-form__body {
  align-items: stretch;
}

.tp-request .tp-grid > .tp-field,
.tp-request .tp-field {
  width: 100%;
  min-width: 0;
  max-width: none;
}

.tp-request .tp-form .tp-input,
.tp-request .tp-form .tp-textarea,
.tp-request .tp-form .tp-drop {
  display: block;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.tp-request .tp-form .tp-drop {
  display: flex;
}

/* =================================================================
   Fit the form into one screen (height)
   ================================================================= */
.tp-request .tp-form {
  padding: 14px 16px;
}

.tp-request .tp-form__head {
  margin-bottom: 6px;
}

.tp-request .tp-services {
  margin-bottom: 6px;
}

.tp-request .tp-group {
  margin: 8px 0 4px;
}

.tp-request .tp-field {
  margin-bottom: 6px;
}

.tp-request .tp-grid {
  gap: 8px 12px;
  margin-bottom: 6px;
}

.tp-request .tp-dyn {
  margin-bottom: 6px;
}

.tp-request .tp-form .tp-textarea {
  min-height: 56px;
}

.tp-request .tp-drop {
  min-height: 64px;
  padding: 9px 12px;
}

.tp-request .tp-form .tp-submit {
  min-height: 42px;
}

.tp-request .tp-consent {
  margin-bottom: 6px;
}

/* short viewports: tighter */
@media (max-height: 820px) {
  .tp-request .tp-form {
    padding: 12px 14px;
  }

  .tp-request .tp-form .tp-input {
    height: 42px;
    min-height: 42px;
    padding: 18px 12px 5px;
  }

  .tp-request .tp-form .tp-textarea {
    min-height: 46px;
    padding: 18px 12px 8px;
  }

  .tp-request .tp-drop {
    min-height: 56px;
    padding: 8px 10px;
  }

  .tp-request .tp-drop__hint {
    display: none;
  }

  .tp-request .tp-group {
    margin: 6px 0 3px;
    font-size: 10px;
  }

  .tp-request .tp-form .tp-submit {
    min-height: 40px;
  }

  .tp-request .tp-actions__note {
    display: none;
  }
}

/* =================================================================
   Compact mode for laptops (900px height and below)
   ================================================================= */
@media (max-height: 900px) {
  .tp-request .tp-form {
    padding: 12px 14px;
  }

  .tp-request .tp-form__head {
    margin-bottom: 6px;
  }

  .tp-request .tp-form__subtitle {
    display: none;
  }

  .tp-request .tp-services {
    margin-bottom: 6px;
  }

  .tp-request .tp-group {
    margin: 6px 0 3px;
    font-size: 10px;
  }

  .tp-request .tp-field {
    margin-bottom: 6px;
  }

  .tp-request .tp-dyn {
    margin-bottom: 6px;
  }

  .tp-request .tp-form .tp-input {
    height: 42px;
    min-height: 42px;
    padding: 18px 12px 5px;
  }

  .tp-request .tp-form .tp-textarea {
    min-height: 46px;
    padding: 18px 12px 8px;
  }

  .tp-request .tp-drop {
    min-height: 56px;
    padding: 8px 10px;
  }

  .tp-request .tp-drop__hint {
    display: none;
  }

  .tp-request .tp-form .tp-submit {
    min-height: 40px;
  }

  .tp-request .tp-actions__note {
    display: none;
  }
}

/* extra compact for 768px-tall screens */
@media (max-height: 800px) {
  .tp-request .tp-form {
    padding: 10px 12px;
  }

  .tp-request .tp-group {
    display: none;
  }

  .tp-request .tp-form .tp-input {
    height: 40px;
    min-height: 40px;
    padding: 17px 11px 4px;
  }

  .tp-request .tp-form .tp-textarea {
    min-height: 40px;
    padding: 16px 11px 6px;
  }

  .tp-request .tp-drop {
    min-height: 48px;
    padding: 6px 10px;
  }

  .tp-request .tp-form .tp-submit {
    min-height: 38px;
  }

  .tp-request .tp-field,
  .tp-request .tp-dyn,
  .tp-request .tp-services,
  .tp-request .tp-consent {
    margin-bottom: 4px;
  }

  .tp-request .tp-form__head {
    margin-bottom: 4px;
  }

  .tp-request .tp-teaser {
    display: none;
  }
}

/* selected service: clean outline instead of a tinted plate */
.tp-request .tp-chip,
.tp-request .tp-card {
  border: 1px solid #DCE3EB;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  overflow: hidden;
}

.tp-request .tp-chip:hover,
.tp-request .tp-card:hover {
  border-color: #B9CDE2;
}

.tp-request .tp-chip:has(input:checked),
.tp-request .tp-card:has(input:checked) {
  background: #fff;
  border-color: #498FCD;
  box-shadow: inset 0 0 0 1px #498FCD;
}

.tp-request .tp-chip input,
.tp-request .tp-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  appearance: none;
  background: none;
  border: 0;
  box-shadow: none;
}

.tp-request .tp-chip input:focus-visible ~ *,
.tp-request .tp-card input:focus-visible ~ * {
  outline: none;
}

/* remove any square plate from pseudo elements */
.tp-request .tp-chip::before,
.tp-request .tp-card::before,
.tp-request .tp-chip::after,
.tp-request .tp-card::after {
  background: none;
  box-shadow: none;
}

/* =================================================================
   Pills match their outline; buttons share one style
   ================================================================= */

/* pills: border follows the pill shape */
.tp-request .tp-chip {
  border: 1px solid #DCE3EB;
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
  box-shadow: none;
}

.tp-request .tp-chip:hover {
  border-color: #B9CDE2;
}

.tp-request .tp-chip:has(input:checked) {
  border-color: #498FCD;
  background: #fff;
  box-shadow: inset 0 0 0 1px #498FCD;
}

.tp-request .tp-chip .tp-chip__body,
.tp-request .tp-card .tp-card__body {
  border: 0;
  border-radius: inherit;
  background: transparent;
  box-shadow: none;
}

.tp-request .tp-chip .tp-chip__body {
  font-size: 12px;
}

/* buttons: one system */
.tp-request .tp-form .tp-submit,
.tp-request .tp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: #498FCD;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(31, 36, 41, 0.12);
  transition: background .15s ease, box-shadow .15s ease;
}

.tp-request .tp-form .tp-submit {
  width: 100%;
}

.tp-request .tp-form .tp-submit:hover,
.tp-request .tp-cta:hover {
  background: #35709F;
  box-shadow: 0 2px 10px rgba(53, 112, 159, 0.28);
}

.tp-request .tp-form .tp-submit:disabled {
  background: #A9C6E0;
  box-shadow: none;
  cursor: default;
}

/* pills: radius aligned with inputs, visible selected outline, soft shadow */
.tp-request .tp-chip {
  border: 1px solid #DCE3EB;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(31, 36, 41, 0.06);
  overflow: hidden;
}

.tp-request .tp-chip:hover {
  border-color: #B9CDE2;
  box-shadow: 0 2px 6px rgba(31, 36, 41, 0.1);
}

.tp-request .tp-chip:has(input:checked) {
  border-color: #498FCD;
  background: #fff;
  box-shadow: inset 0 0 0 1px #498FCD, 0 2px 8px rgba(73, 143, 205, 0.22);
}

.tp-request .tp-chip .tp-chip__body {
  border-radius: inherit;
}

.tp-request .tp-chip .tp-chip__body,
.tp-request .tp-chip .tp-chip__icon {
  color: #1F2429;
}

.tp-request .tp-chip:has(input:checked) .tp-chip__body,
.tp-request .tp-chip:has(input:checked) .tp-chip__icon {
  color: #35709F;
}

/* cards: same soft shadow language */
.tp-request .tp-card {
  box-shadow: 0 1px 2px rgba(31, 36, 41, 0.06);
}

.tp-request .tp-card:hover {
  box-shadow: 0 2px 6px rgba(31, 36, 41, 0.1);
}

.tp-request .tp-card:has(input:checked) {
  box-shadow: inset 0 0 0 1px #498FCD, 0 2px 8px rgba(73, 143, 205, 0.22);
}

/* =================================================================
   Pills: horizontal, 46px tall like the inputs
   ================================================================= */
.tp-request .tp-chip,
.tp-request--split .tp-chip {
  height: 46px;
  min-height: 46px;
}

.tp-request .tp-chip__body,
.tp-request--split .tp-chip__body {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  height: 46px;
  min-height: 46px;
  padding: 0 14px;
  font-size: 12.5px;
  line-height: 1.25;
}

.tp-request .tp-chip__icon {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tp-request .tp-chip__icon svg {
  width: 16px;
  height: 16px;
}

.tp-request .tp-chip__label,
.tp-request .tp-chip__title {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* pills follow the same height as inputs in compact modes */
.tp-request .tp-chip .tp-chip__body {
  font-size: 12.5px;
}

@media (max-height: 900px) {
  .tp-request .tp-chip,
  .tp-request--split .tp-chip,
  .tp-request .tp-chip__body,
  .tp-request--split .tp-chip__body {
    height: 42px;
    min-height: 42px;
  }

  .tp-request .tp-chip .tp-chip__body {
    font-size: 12px;
  }
}

@media (max-height: 800px) {
  .tp-request .tp-chip,
  .tp-request--split .tp-chip,
  .tp-request .tp-chip__body,
  .tp-request--split .tp-chip__body {
    height: 40px;
    min-height: 40px;
  }

  .tp-request .tp-chip .tp-chip__body {
    font-size: 11.5px;
  }
}

/* =================================================================
   Pills read as chips, not as tiles: light, content-width, one line
   ================================================================= */
.tp-request .tp-chips,
.tp-request--split .tp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tp-request .tp-chip,
.tp-request--split .tp-chip {
  flex: 0 1 auto;
  width: auto;
  height: 38px;
  min-height: 38px;
  border-radius: 10px;
}

.tp-request .tp-chip__body,
.tp-request--split .tp-chip__body {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  width: auto;
  height: 38px;
  min-height: 38px;
  padding: 0 12px;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.tp-request .tp-chip__icon,
.tp-request--split .tp-chip__icon {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
}

.tp-request .tp-chip__icon svg,
.tp-request--split .tp-chip__icon svg {
  width: 14px;
  height: 14px;
}

.tp-request .tp-chip:has(input:checked) .tp-chip__icon {
  color: #498FCD;
}

/* cards keep their own weight: taller tiles with hints */
.tp-request .tp-card {
  min-height: 64px;
}

/* =================================================================
   Pills: refined chip design
   ================================================================= */
.tp-request .tp-chip,
.tp-request--split .tp-chip {
  background: #F5F8FC;
  border: 1px solid transparent;
  border-radius: 10px;
  box-shadow: none;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.tp-request .tp-chip:hover,
.tp-request--split .tp-chip:hover {
  background: #EDF3FA;
  border-color: #D7E4F2;
  box-shadow: 0 2px 6px rgba(31, 36, 41, 0.07);
}

.tp-request .tp-chip:has(input:checked),
.tp-request--split .tp-chip:has(input:checked) {
  background: #fff;
  border-color: #498FCD;
  box-shadow: 0 2px 10px rgba(73, 143, 205, 0.18);
}

/* icon in a soft circle */
.tp-request .tp-chip__icon,
.tp-request--split .tp-chip__icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #E7EEF7;
  color: #498FCD;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .16s ease, color .16s ease;
}

.tp-request .tp-chip__icon svg,
.tp-request--split .tp-chip__icon svg {
  width: 14px;
  height: 14px;
}

.tp-request .tp-chip:has(input:checked) .tp-chip__icon {
  background: #498FCD;
  color: #fff;
}

.tp-request .tp-chip__body,
.tp-request--split .tp-chip__body {
  gap: 8px;
  padding: 0 12px 0 8px;
  font-size: 12px;
  font-weight: 500;
  color: #1F2429;
}

.tp-request .tp-chip:has(input:checked) .tp-chip__body {
  color: #1F2429;
  font-weight: 600;
}

/* icon colour wins over earlier chip rules */
.tp-request .tp-chip .tp-chip__icon,
.tp-request--split .tp-chip .tp-chip__icon {
  color: #498FCD;
}

.tp-request .tp-chip .tp-chip__icon svg,
.tp-request--split .tp-chip .tp-chip__icon svg {
  stroke: currentColor;
}

.tp-request .tp-chip:has(input:checked) .tp-chip__icon,
.tp-request--split .tp-chip:has(input:checked) .tp-chip__icon {
  color: #fff;
}

/* =================================================================
   Info panel: children keep their height (accordions were collapsing)
   ================================================================= */
@media (min-width: 1200px) {
  .tp-request--split .tp-info__panel > * {
    flex: 0 0 auto;
  }

  .tp-request--split .tp-info__panel > .tp-cta {
    margin-top: auto;
  }
}

/* accordion spacing rhythm */
.tp-request .tp-acc {
  margin: 0 0 8px;
}

.tp-request .tp-acc:last-of-type {
  margin-bottom: 10px;
}

.tp-request .tp-acc__body {
  padding: 0 14px 12px;
}

.tp-request .tp-acc__body .tp-list {
  margin: 0;
}

.tp-request .tp-acc__body .tp-list li {
  margin-bottom: 6px;
  padding-left: 20px;
  font-size: 12px;
  line-height: 1.5;
}

.tp-request .tp-acc__body .tp-list li:last-child {
  margin-bottom: 0;
}

/* info panel: spacing aligned to the 4/8/12/16 scale */
.tp-request .tp-info__badge {
  margin-bottom: 8px;
}

.tp-request .tp-info__title {
  margin-bottom: 8px;
}

.tp-request .tp-info__lead {
  margin-bottom: 12px;
}

.tp-request .tp-benefits {
  margin-bottom: 12px;
}

.tp-request .tp-info__text {
  margin-bottom: 12px;
}

.tp-request .tp-info__sub {
  margin-bottom: 8px;
}

.tp-request .tp-steps {
  margin-bottom: 12px;
}

.tp-request .tp-acc {
  margin-bottom: 8px;
}

.tp-request .tp-callout {
  margin-bottom: 12px;
}

.tp-request .tp-info__note {
  margin-bottom: 12px;
}

/* note spacing: override more specific earlier rule */
.tp-request .tp-info__panel .tp-info__note {
  margin-bottom: 12px;
}

.tp-request .tp-info__panel .tp-acc:last-of-type {
  margin-bottom: 8px;
}

/* notes in the info panel (actual class is .tp-note) */
.tp-request .tp-info__panel .tp-note {
  margin-bottom: 12px;
  font-size: 12.5px;
  line-height: 1.55;
}

/* =================================================================
   Pills variant: segmented service selector (full redesign, v59)
   A single bordered block, adaptive 2-4 columns, hairline dividers,
   radio indicator instead of icon tiles.
   ================================================================= */
.tp-form--pills .tp-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(212px, 1fr));
  gap: 1px;
  padding: 0;
  border: 1px solid #DCE3EB;
  border-radius: 12px;
  background: #DCE3EB;
  overflow: hidden;
}

.tp-form--pills .tp-chip {
  display: block;
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  transition: none;
}

.tp-form--pills .tp-chip:hover {
  background: #F6FAFE;
  border-color: transparent;
  box-shadow: none;
}

.tp-form--pills .tp-chip:has(input:checked) {
  background: #35709F;
  box-shadow: none;
}

.tp-form--pills .tp-chip:has(input:checked):hover {
  background: #2F6691;
}

/* the tile icon is gone: the radio carries the state */
.tp-form--pills .tp-chip__icon,
.tp-form--pills .tp-chip__icon svg {
  display: none;
}

.tp-form--pills .tp-chip__body {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: auto;
  height: auto;
  min-height: 46px;
  padding: 10px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
  white-space: normal;
  color: #3A4550;
  text-align: left;
  transition: color .15s ease;
}

.tp-form--pills .tp-chip__body::before {
  content: "";
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  box-sizing: border-box;
  border: 1.5px solid #C3CEDA;
  border-radius: 50%;
  background: #fff;
  transition: border-width .14s ease, border-color .14s ease;
}

.tp-form--pills .tp-chip:hover .tp-chip__body::before {
  border-color: #8FB4D6;
}

.tp-form--pills .tp-chip:has(input:checked) .tp-chip__body {
  color: #fff;
  font-weight: 600;
}

.tp-form--pills .tp-chip:has(input:checked) .tp-chip__body::before {
  border-width: 5px;
  border-color: #fff;
}

.tp-form--pills .tp-chip:has(input:focus-visible) {
  box-shadow: inset 0 0 0 2px #498FCD;
}

.tp-form--pills .tp-chip:has(input:checked):has(input:focus-visible) {
  box-shadow: inset 0 0 0 2px #fff;
}

.tp-form--pills .tp-chip:has(input:focus-visible) .tp-chip__body {
  outline: none;
}

@media (max-height: 900px) {
  .tp-form--pills .tp-chip__body {
    min-height: 42px;
    padding: 8px 12px;
  }
}

@media (max-height: 800px) {
  .tp-form--pills .tp-chip__body {
    min-height: 40px;
    font-size: 12px;
  }
}

@media (max-width: 560px) {
  .tp-form--pills .tp-chips {
    grid-template-columns: 1fr;
  }
}

/* =================================================================
   Consent checkbox: one indicator only (v63)
   The native input was still visible next to the custom box, and the
   custom box had no base ::after, so the tick never appeared.
   ================================================================= */
.tp-request .tp-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.45;
  color: #5A6570;
  cursor: pointer;
}

/* native input keeps the state and the keyboard focus, nothing else */
.tp-request .tp-consent input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
  appearance: none;
  pointer-events: none;
}

.tp-request .tp-consent__box {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1.5px solid #C0CDDA;
  border-radius: 5px;
  background: #fff;
  transition: none;
}

.tp-request .tp-consent:hover .tp-consent__box {
  border-color: #8FB4D6;
}

.tp-request .tp-consent__box::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
}

.tp-request .tp-consent input:checked + .tp-consent__box,
.tp-request .tp-consent:hover input:checked + .tp-consent__box {
  border-color: #498FCD;
  background: #498FCD;
}

.tp-request .tp-consent input:checked + .tp-consent__box::after {
  left: 4.5px;
  top: 2px;
  width: 6px;
  height: 10px;
  opacity: 1;
  transform: rotate(45deg);
}

.tp-request .tp-consent input:focus-visible + .tp-consent__box {
  box-shadow: 0 0 0 3px rgba(73, 143, 205, .22);
}

.tp-request .tp-consent.is-invalid .tp-consent__box {
  border-color: #D64545;
}

.tp-request .tp-consent.is-invalid input:checked + .tp-consent__box {
  border-color: #D64545;
  background: #D64545;
}

/* =================================================================
   Info panel steps: the numbered dot sits on the content line,
   the text is indented instead of hugging the dot (v67)
   ================================================================= */
.tp-request .tp-info__panel .tp-step {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  padding-left: 0;
  padding-right: 0;
}

/* centre the 22px dot on the first text line */
.tp-request .tp-info__panel .tp-step__num {
  margin-top: -2px;
}

/* =================================================================
   Invalid state: show the message and mark the field
   ================================================================= */
.tp-request .tp-field.is-invalid .tp-error,
.tp-request .tp-dyn.is-invalid .tp-error {
  display: block;
}

.tp-request .tp-field.is-invalid .tp-input,
.tp-request .tp-field.is-invalid .tp-textarea,
.tp-request .tp-field.is-invalid .tp-select {
  border-color: #d64545;
}

.tp-request .tp-field.is-invalid .tp-input:focus,
.tp-request .tp-field.is-invalid .tp-textarea:focus,
.tp-request .tp-field.is-invalid .tp-select:focus {
  border-color: #d64545;
  box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.16);
}

/* =================================================================
   MODX: AjaxForm / FormIt
   AjaxForm marks fields with .error and writes messages into
   .error_<name>; those slots carry .tp-error as well, so both
   client-side and server-side errors look the same.
   ================================================================= */
.tp-request .tp-input.error,
.tp-request .tp-textarea.error,
.tp-request .tp-select.error {
  border-color: #d64545;
}

.tp-request .tp-error.error {
  display: block;
}

.tp-request .tp-error:empty {
  display: none;
}

/* AjaxForm marks the consent checkbox itself as .error */
.tp-request .tp-consent input.error + .tp-consent__box {
  border-color: #d64545;
}

/* =================================================================
   Panel scrolling: one scroller inside the info block (no horizontal
   bar) and a scrollbar styled like the site body scrollbar
   ================================================================= */
@media (min-width: 1200px) {
  .tp-request > .tp-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-right: 6px;
  }

  .tp-request--split .tp-info__panel {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #498fcd #f5f5f5;
  }

  .tp-request > .tp-info::-webkit-scrollbar,
  .tp-request--split .tp-info__panel::-webkit-scrollbar {
    width: 10px;
    background-color: #f5f5f5;
  }

  .tp-request > .tp-info::-webkit-scrollbar-track,
  .tp-request--split .tp-info__panel::-webkit-scrollbar-track {
    background-color: #f5f5f5;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.18);
    border-radius: 0;
  }

  .tp-request > .tp-info::-webkit-scrollbar-thumb,
  .tp-request--split .tp-info__panel::-webkit-scrollbar-thumb {
    border-radius: 0;
    background-color: #498fcd;
  }
}

/* submit stays disabled until the consent checkbox is checked */
.tp-request .tp-form .tp-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.2);
}

/* shorter laptops: keep the form within one screen */
@media (min-width: 1200px) and (max-height: 880px) {
  .tp-request .tp-form {
    padding: 14px 18px;
  }

  .tp-request .tp-services {
    margin-bottom: 10px;
  }

  .tp-request .tp-card {
    min-height: 56px;
  }

  .tp-request .tp-card__body {
    padding: 8px 11px 8px;
    gap: 8px;
  }

  .tp-request .tp-card__icon {
    width: 22px;
    height: 22px;
  }

  .tp-request .tp-card__title {
    font-size: 12.5px;
  }

  .tp-request .tp-drop {
    min-height: 48px;
    padding: 8px 10px;
  }

  .tp-request .tp-drop__icon {
    width: 20px;
    height: 20px;
  }

  .tp-request .tp-drop__hint {
    display: none;
  }

  .tp-request .tp-form .tp-input {
    min-height: 38px;
  }

  .tp-request .tp-submit {
    min-height: 40px;
  }

  .tp-request .tp-actions {
    padding: 6px 0;
  }

  .tp-request .tp-consent {
    margin: 2px 0 8px;
  }
}

/* антиспам-ловушка: поле уведено за экран, человек его не видит и не заполняет */
.tp-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.page {
    min-height: calc(100vh - 470px);
    padding: 10px 0;
    text-align: justify;
}