/* SCOM2K7 Trial Capture: the optional panel beneath a trial download button.
   Self-contained (prefixed) so it needs nothing from the theme beyond .btn,
   using the site's tokens: blue #1D4ED8, body text #374151, muted #6B7280,
   border #E5E7EB, 0.5rem radius. */

.s2k-tc {
  margin: 0 0 0.75rem;
  padding: 1rem 1rem 1.125rem;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 0.5rem;
  color: #374151;
  font-size: 0.9375rem;
  line-height: 1.5;
  text-align: left;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  animation: s2k-tc-in 0.25s ease-out;
}
.s2k-tc:focus { outline: none; }
.s2k-tc:focus-visible { outline: 2px solid #1D4ED8; outline-offset: 2px; }

@keyframes s2k-tc-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .s2k-tc { animation: none; }
}

.s2k-tc__title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}
.s2k-tc__body {
  margin: 0 0 0.875rem;
  color: #374151;
}

.s2k-tc__field { margin: 0 0 0.75rem; }
.s2k-tc__row { display: block; }

.s2k-tc__label {
  display: block;
  margin: 0 0 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
}
.s2k-tc__label span {
  font-weight: 400;
  color: #6B7280;
}

.s2k-tc__input,
.s2k-tc__select {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.625rem 0.875rem;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 0.5rem;
  color: #111827;
  font: inherit;
  font-size: 0.9375rem;
  line-height: 1.4;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.s2k-tc__input::placeholder { color: #9CA3AF; }
.s2k-tc__input:focus,
.s2k-tc__select:focus {
  outline: none;
  border-color: #1D4ED8;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}
.s2k-tc__select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.25rem;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

/* Honeypot: off screen, never displayed, still in the form. */
.s2k-tc__hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.s2k-tc__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 0.25rem;
}
.s2k-tc .btn.s2k-tc__send {
  padding: 0.625rem 1.5rem;
  font-size: 0.9375rem;
}
.s2k-tc .btn.s2k-tc__send[disabled] {
  opacity: 0.7;
  cursor: default;
  transform: none;
}
.s2k-tc__dismiss {
  margin: 0;
  padding: 0.25rem 0;
  background: none;
  border: 0;
  color: #6B7280;
  font: inherit;
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.s2k-tc__dismiss:hover { color: #374151; }
.s2k-tc__dismiss:focus-visible {
  outline: 2px solid #1D4ED8;
  outline-offset: 2px;
  border-radius: 2px;
}

.s2k-tc__error {
  margin: 0.5rem 0 0;
  color: #B91C1C;
  font-size: 0.875rem;
}
.s2k-tc__error[hidden] { display: none; }

.s2k-tc__thanks {
  margin: 0;
  color: #374151;
}
