/* Ts-Immo Formulaires de contact — styles du formulaire contextuel. */
.tsl-form {
  --tsl-accent: var(--tsv-color-accent, #0369a1);
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem 1.5rem;
  border: 1px solid var(--tsv-color-border, #e2e8f0);
  border-radius: var(--tsv-radius, 14px);
  background: var(--tsv-color-bg, #fff);
  max-width: 640px;
}

.tsl-title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-family: var(--tsv-font-head, inherit);
  color: var(--tsv-color-dark, #0f172a);
}

.tsl-row {
  margin-bottom: 0.85rem;
}

.tsl-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

@media (max-width: 480px) {
  .tsl-row-2 {
    grid-template-columns: 1fr;
  }
}

.tsl-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: #475569;
}

.tsl-field input,
.tsl-field select,
.tsl-field textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--tsv-radius-sm, 9px);
  background: var(--tsv-color-bg-alt, #f8fafc);
  font-size: 0.95rem;
  font-family: inherit;
  box-sizing: border-box;
}

.tsl-field input:focus,
.tsl-field select:focus,
.tsl-field textarea:focus {
  outline: none;
  border-color: var(--tsl-accent);
  background: var(--tsv-color-bg, #fff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tsl-accent) 18%, transparent);
}

/* Honeypot — masqué pour les humains, visible pour les bots. */
.tsl-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.tsl-actions {
  margin-top: 0.5rem;
}

.tsl-submit {
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: var(--tsv-radius-sm, 9px);
  background: var(--tsl-accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.tsl-submit:hover {
  filter: brightness(0.95);
}

.tsl-submit:disabled {
  opacity: 0.6;
  cursor: progress;
}

.tsl-feedback {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.tsl-feedback.tsl-error {
  color: #b91c1c;
}

.tsl-feedback.tsl-ok {
  color: #15803d;
}

.tsl-consent {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: #94a3b8;
}
