/* TPAL Contact Form styles */
:root {
  --tpal-primary: #1133AF;
  --tpal-bg: #ffffff;
  --tpal-text: #0f172a;
  --tpal-muted: #6b7280;
  --tpal-ring: rgba(17, 51, 175, 0.35);
  --tpal-border: #e5e7eb;
  --tpal-radius: 14px;
  --tpal-font: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

.tpal-cf {
  font-family: var(--tpal-font);
  background: var(--tpal-bg);
  color: var(--tpal-text);
  border-radius: 18px;
  padding: clamp(16px, 2.5vw, 28px);
  border: 1px solid var(--tpal-border);
  box-shadow: 0 8px 30px rgba(2, 6, 23, 0.06);
}

.tpal-contact-panel .tpal-cf {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

.tpal-cf,
.tpal-cf *,
.tpal-cf *::before,
.tpal-cf *::after {
  box-sizing: border-box;
  font-family: var(--tpal-font);
}

.tpal-cf__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.tpal-cf__field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tpal-cf__field--full { grid-column: 1 / -1; margin-top: 6px; }

.tpal-cf__label {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.2px;
}

.tpal-cf input[type="text"],
.tpal-cf input[type="email"],
.tpal-cf textarea {
  width: 100%;
  border: 1px solid var(--tpal-border);
  border-radius: var(--tpal-radius);
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  line-height: 1.5;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease, transform .02s ease;
  outline: none;
  max-width: 100%;
}

.tpal-cf textarea {
  min-height: 280px;
  resize: vertical;
}

.tpal-cf input::placeholder,
.tpal-cf textarea::placeholder {
  color: var(--tpal-muted);
  opacity: .9;
}

/* Focus & hover */
.tpal-cf input:focus,
.tpal-cf textarea:focus {
  border-color: var(--tpal-primary);
  box-shadow: 0 0 0 6px var(--tpal-ring);
}

.tpal-cf input:hover,
.tpal-cf textarea:hover {
  border-color: #cbd5e1;
}

/* Honeypot hidden */
.tpal-cf__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Actions */
.tpal-cf__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}

.tpal-cf__button {
  appearance: none;
  border: none;
  border-radius: 16px;
  padding: 16px 28px;
  font-weight: 700;
  letter-spacing: .2px;
  background: var(--tpal-primary);
  color: #fff;
  cursor: pointer;
  transition: transform .02s ease, box-shadow .15s ease, opacity .15s ease;
  width: 100%;
}

.tpal-cf__button:hover { box-shadow: 0 8px 30px rgba(17, 51, 175, .35); }
.tpal-cf__button:active { transform: translateY(1px); }
.tpal-cf__button[disabled] { opacity: .6; cursor: not-allowed; }

.tpal-cf__status {
  font-size: 14px;
  color: var(--tpal-muted);
}

/* Responsive */
@media (max-width: 800px) {
  .tpal-cf__row { grid-template-columns: 1fr; }
  .tpal-cf__button { width: 100%; }
}
