.tf-wrapper { margin: 0 auto; }
.tf-fields { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2rem; row-gap: 1.1rem; }
.tf-field { display: flex; flex-direction: column; gap: 0.35rem; grid-column: 1 / -1; }
.tf-field--half { grid-column: auto / span 1; }
@media (max-width: 749px) { .tf-field--half { grid-column: 1 / -1; } }
.tf-field[hidden] { display: none; }
.tf-label {
  font-weight: 600;
  /* match Formful's custom CSS: labels use the theme's heading font */
  font-family: var(--typeHeaderPrimary), var(--typeHeaderFallback), sans-serif;
}
.tf-req { color: #c62828; }
.tf-input, .tf-select, .tf-textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 4px;
  background: #fff;
  color: inherit;
  font: inherit;
}
.tf-input:focus, .tf-select:focus, .tf-textarea:focus { outline: 2px solid rgba(0,0,0,0.6); outline-offset: 1px; }
.tf-field--invalid .tf-input, .tf-field--invalid .tf-select, .tf-field--invalid .tf-textarea, .tf-field--invalid .tf-dropzone { border-color: #c62828; }
.tf-error { color: #c62828; font-size: 0.85em; margin: 0; }
.tf-help { font-size: 0.85em; opacity: 0.75; margin: 0; }
.tf-checkbox-row { display: flex; gap: 0.6rem; align-items: flex-start; }
.tf-checkbox-row .tf-label { font-weight: 400; }
.tf-checkbox { width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; flex: none; }
.tf-dropzone {
  border: 2px dashed rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  padding: 1.4rem 1rem;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.tf-dropzone--over { border-color: rgba(0, 0, 0, 0.7); background: rgba(0, 0, 0, 0.04); }
.tf-dropzone-hint { font-size: 0.8em; opacity: 0.6; }
.tf-file-input { display: none; }
.tf-file-list { list-style: none; margin: 0.4rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.tf-file-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.9em; }
.tf-file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.tf-file-size { opacity: 0.6; }
.tf-file-remove { border: none; background: none; cursor: pointer; font-size: 1.1em; line-height: 1; padding: 0.2rem 0.4rem; }
.tf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.tf-turnstile { margin: 1rem 0; min-height: 0; }
.tf-turnstile:not(:empty) { min-height: 65px; }
.tf-submit { margin-top: 1rem; min-width: 10rem; cursor: pointer; }
.tf-submit[disabled] { opacity: 0.6; cursor: wait; }
.tf-banner--error {
  background: #fdecea;
  color: #b71c1c;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
}
.tf-thanks {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #c8e6c9;
  border-radius: 4px;
  padding: 1.2rem 1.4rem;
  font-weight: 600;
}
.tf-setup-note { opacity: 0.7; font-style: italic; }
@media (prefers-color-scheme: dark) {
  .tf-input, .tf-select, .tf-textarea { background: rgba(255,255,255,0.06); }
}
