.trinity-demo-wrap,
.trinity-demo-wrap * {
  box-sizing: border-box;
}

.trinity-demo-wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  overflow: hidden;
  background: #e9e6ff;
  color: #000a46;
  border-radius: 0;
  font-family: "Public Sans", "public-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.trinity-demo-page {
  display: grid;
  grid-template-columns: 30.8% 69.2%;
  width: 100%;
  min-height: 665px;
  background: #e9e6ff;
}

.trinity-demo-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 118px 22px 60px 26px;
  background: #e9e6ff;
}

.trinity-demo-photo {
  width: 96px;
  height: 96px;
  margin-bottom: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: #d7d3f5;
  background-image: url("https://trinity.stek-media.de/wp-content/uploads/2026/04/Schulung.webp");
  background-repeat: no-repeat;
  background-position: 58% 31%;
  background-size: 245%;
}

.trinity-demo-title {
  margin: 0 0 26px;
  color: #000a46;
  font-family: "Roc Grotesk", "Public Sans", sans-serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.trinity-demo-text {
  max-width: 278px;
  margin: 0;
  color: #000a46;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
}

.trinity-demo-form-area {
  min-height: 665px;
  padding: 70px 56px 58px 84px;
  background: #fff;
  border-left: 9px solid #b8a1ff;
  border-radius: 8px;
	margin-top: 20px;
}

.trinity-demo-form {
  display: grid;
  grid-template-columns: 250px 1fr;
  align-items: start;
  width: 100%;
  max-width: 660px;
  margin: 0;
  column-gap: 64px;
}

.trinity-form-left,
.trinity-form-right {
  display: flex;
  flex-direction: column;
  gap: 23px;
}

.trinity-appointment,
.trinity-interests {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.trinity-field-label,
.trinity-interests-title {
  display: block;
  margin: 0 0 6px;
  padding: 0;
  color: #777ca8;
  font-family: "Public Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.trinity-required {
  color: #777ca8;
}

.trinity-demo-form input[type="text"],
.trinity-demo-form input[type="email"],
.trinity-demo-form input[type="tel"],
.trinity-demo-form textarea {
  width: 100%;
  height: 31px;
  padding: 6px 10px;
  appearance: none;
  color: #000a46;
  background: #edeaff;
  border: 1px solid #c9c4ff;
  border-radius: 5px;
  box-shadow: none;
  outline: none;
  font-family: "Public Sans", sans-serif;
  font-size: 13px;
  font-weight: 400;
}

.trinity-demo-form input[type="text"]:focus,
.trinity-demo-form input[type="email"]:focus,
.trinity-demo-form input[type="tel"]:focus,
.trinity-demo-form textarea:focus {
  background: #fff;
  border-color: #b8a1ff;
  box-shadow: 0 0 0 2px rgb(184 161 255 / 25%);
}

.trinity-demo-form textarea {
  height: 70px;
  min-height: 70px;
  resize: vertical;
}

.trinity-demo-form textarea::placeholder {
  color: #b8bad5;
  opacity: 0.7;
}

.trinity-demo-form .wpcf7-not-valid {
  border-color: #b71c1c !important;
}

.trinity-demo-form .wpcf7-not-valid-tip {
  margin-top: 4px;
  color: #b71c1c;
  font-size: 11px;
  line-height: 1.25;
}

/* CF7-Wochentage als runde Auswahlknöpfe */
.trinity-weekdays.wpcf7-form-control {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 15px;
}

.trinity-weekdays .wpcf7-list-item {
  margin: 0;
}

.trinity-weekdays label {
  position: relative;
  display: block;
  cursor: pointer;
}

.trinity-weekdays input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.trinity-weekdays .wpcf7-list-item-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  color: #777ca8;
  background: #fff;
  border: 1.5px solid #c9c4ff;
  border-radius: 50%;
  font-family: "Public Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.trinity-weekdays label:hover .wpcf7-list-item-label {
  background: #f3f1ff;
}

.trinity-weekdays input[type="checkbox"]:checked + .wpcf7-list-item-label {
  color: #000a46;
  background: #b8a1ff;
  border-color: #b8a1ff;
}

.trinity-weekdays input[type="checkbox"]:focus-visible + .wpcf7-list-item-label {
  outline: 2px solid #000a46;
  outline-offset: 2px;
}

/* Doppelter Zeitregler; die Werte landen in den CF7-Hidden-Feldern. */
.trinity-time-range {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 250px;
}

.trinity-time-pill {
  min-width: 50px;
  height: 20px;
  padding: 0;
  color: #777ca8;
  background: #fff;
  border: 1px solid #c9c4ff;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  user-select: none;
}

.trinity-time-track-wrap {
  position: relative;
  display: flex;
  align-items: center;
  height: 24px;
  flex: 1;
  cursor: pointer;
  touch-action: none;
}

.trinity-time-track,
.trinity-time-fill {
  position: absolute;
  height: 5px;
  border-radius: 999px;
  pointer-events: none;
}

.trinity-time-track {
  right: 0;
  left: 0;
  background: #d8d1ff;
}

.trinity-time-fill {
  background: #b8a1ff;
}

.trinity-time-thumb {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 10px;
  height: 22px;
  padding: 0;
  cursor: grab;
  background: transparent;
  border: 0;
  transform: translate(-50%, -50%);
  touch-action: none;
}

.trinity-time-thumb::before {
  position: absolute;
  top: 2px;
  left: 4px;
  width: 2px;
  height: 18px;
  content: "";
  background: #777ca8;
}

.trinity-time-thumb:focus-visible {
  outline: 2px solid #000a46;
  outline-offset: 2px;
}

.trinity-time-thumb:active {
  cursor: grabbing;
}

/* Interessen */
.trinity-interests {
  margin-bottom: 87px;
}

.trinity-interests-title {
  margin-bottom: 14px;
}

.trinity-interests-grid.wpcf7-form-control {
  display: grid;
  grid-template-columns: 205px 160px;
  gap: 11px 28px;
}

.trinity-interests-grid .wpcf7-list-item {
  margin: 0;
}

.trinity-interests-grid label {
  display: flex;
  align-items: center;
  min-height: 18px;
  gap: 11px;
  cursor: pointer;
  user-select: none;
}

.trinity-interests-grid input[type="checkbox"] {
  position: relative;
  width: 15px;
  height: 15px;
  margin: 0;
  flex-shrink: 0;
  appearance: none;
  cursor: pointer;
  background: #fff;
  border: 2px solid #777ca8;
  border-radius: 0;
}

.trinity-interests-grid input[type="checkbox"]:checked {
  background: #b8a1ff;
  border-color: #b8a1ff;
}

.trinity-interests-grid input[type="checkbox"]:checked::after {
  position: absolute;
  top: 0;
  left: 4px;
  width: 4px;
  height: 8px;
  content: "";
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.trinity-interests-grid input[type="checkbox"]:focus-visible {
  outline: 2px solid #000a46;
  outline-offset: 2px;
}

.trinity-interests-grid .wpcf7-list-item-label {
  color: #777ca8;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.trinity-right-small,
.trinity-privacy-note {
  width: 250px;
}

.trinity-submit-row {
  margin-top: -3px;
}

.trinity-demo-form .trinity-submit-btn {
  width: 178px;
  height: 37px;
  padding: 0 22px;
  cursor: pointer;
  color: #000a46;
  background: #ffea18;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  font-family: "Public Sans", sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.trinity-demo-form .trinity-submit-btn:hover {
  background: #f2dc00;
}

.trinity-demo-form .trinity-submit-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.trinity-demo-form .wpcf7-spinner {
  margin: 8px 0 0 10px;
  vertical-align: middle;
}

.trinity-privacy-note {
  margin: 42px 0 0;
  color: #777ca8;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.45;
}

.trinity-privacy-note a {
  color: #777ca8;
  font-weight: 800;
  text-decoration: none;
}

.trinity-privacy-note a:hover {
  text-decoration: underline;
}

/* CF7-Antwortbox an der Position des [response]-Tags */
.trinity-demo-form-area .wpcf7-response-output {
  margin: 0 0 18px !important;
  padding: 14px 18px !important;
  color: #000a46;
  background: #f3f1ff;
  border: 1px solid #c9c4ff !important;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

.wpcf7 form.sent .trinity-demo-form-area .wpcf7-response-output {
  color: #1b5e20;
  background: #e8f5e9;
  border-color: #c8e6c9 !important;
}

.wpcf7 form.invalid .trinity-demo-form-area .wpcf7-response-output,
.wpcf7 form.failed .trinity-demo-form-area .wpcf7-response-output,
.wpcf7 form.spam .trinity-demo-form-area .wpcf7-response-output,
.wpcf7 form.unaccepted .trinity-demo-form-area .wpcf7-response-output {
  color: #b71c1c;
  background: #ffebee;
  border-color: #ffcdd2 !important;
}

@media (min-width: 1280px) {
  .trinity-demo-form {
    grid-template-columns: 265px 1fr;
    max-width: 710px;
    column-gap: 66px;
  }

  .trinity-time-range,
  .trinity-right-small,
  .trinity-privacy-note {
    width: 265px;
  }

  .trinity-interests-grid.wpcf7-form-control {
    grid-template-columns: 215px 165px;
    column-gap: 30px;
  }
}

@media (max-width: 1100px) {
  .trinity-demo-wrap {
    max-width: 100%;
  }

  .trinity-demo-page {
    grid-template-columns: 1fr;
  }

  .trinity-demo-intro {
    padding: 58px 42px 44px;
  }

  .trinity-demo-form-area {
    min-height: auto;
    padding: 58px 42px;
    border-top: 9px solid #b8a1ff;
    border-left: 0;
    border-radius: 8px 8px 0 0;
  }

  .trinity-demo-form {
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
    column-gap: 42px;
  }

  .trinity-interests {
    margin-bottom: 40px;
  }

  .trinity-interests-grid.wpcf7-form-control {
    grid-template-columns: 1fr;
  }

  .trinity-time-range,
  .trinity-right-small,
  .trinity-privacy-note {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .trinity-demo-form {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .trinity-demo-intro {
    padding: 48px 24px 36px;
  }

  .trinity-demo-form-area {
    padding: 42px 24px;
  }

  .trinity-demo-title {
    font-size: 30px;
  }

  .trinity-demo-text {
    max-width: 100%;
    font-size: 16px;
  }

  .trinity-demo-form .trinity-submit-btn {
    width: 100%;
  }
}
