/* ToolsPallets Contact Form — Public Styles (no bg, no icons, no header) */

.tpcf-wrap {
  --accent:  #e85d26;
  --bg:      transparent;
  --tc:      #1a1a2e;
  --rad:     12px;
  --font:    'Sora', system-ui, sans-serif;
  --border:  #e8e8f0;
  --muted:   #6b7280;
  --input-bg:#f9f9fc;

  font-family: var(--font);
  color: var(--tc);
  background: transparent;
  border-radius: 0;
  padding: 0;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: none;
  border: none;
  position: relative;
  overflow: visible;
}

/* ── Rows ── */
.tpcf-row { display: flex; gap: 16px; }
.tpcf-row--2 > * { flex: 1; }

/* ── Fields ── */
.tpcf-field {
  margin-bottom: 18px;
  animation: tpcf-fadein .4s ease both;
}
.tpcf-field:nth-child(1) { animation-delay: .05s; }
.tpcf-field:nth-child(2) { animation-delay: .10s; }
.tpcf-field:nth-child(3) { animation-delay: .15s; }
.tpcf-field:nth-child(4) { animation-delay: .20s; }

.tpcf-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.tpcf-field label span { color: var(--accent); }

/* ── Input wrapper ── */
.tpcf-input-wrap {
  position: relative;
}

/* No icons — inputs use standard padding */
.tpcf-input-wrap input,
.tpcf-input-wrap textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 14px;
  color: var(--tc);
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  border-radius: calc(var(--rad) - 2px);
  padding: 12px 16px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  box-sizing: border-box;
  -webkit-appearance: none;
}
.tpcf-input-wrap textarea {
  resize: vertical;
  min-height: 110px;
  padding-top: 14px;
}
.tpcf-input-wrap input::placeholder,
.tpcf-input-wrap textarea::placeholder {
  color: #b0b8c8;
}
.tpcf-input-wrap input:focus,
.tpcf-input-wrap textarea:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3.5px color-mix(in srgb, var(--accent) 18%, transparent);
}

/* Error state */
.tpcf-input-wrap.has-error input,
.tpcf-input-wrap.has-error textarea {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229,62,62,.12);
}

/* ── Button ── */
.tpcf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  padding: 14px 32px;
  border-radius: calc(var(--rad) - 2px);
  width: 100%;
  transition: all .22s cubic-bezier(.4,0,.2,1);
  margin-top: 4px;
  letter-spacing: .1px;
  position: relative;
  overflow: hidden;
}
.tpcf-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background .2s;
}
.tpcf-btn:hover::after { background: rgba(255,255,255,.1); }

.tpcf-btn--filled {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 45%, transparent);
}
.tpcf-btn--filled:hover { transform: translateY(-2px); box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 40%, transparent); }
.tpcf-btn--filled:active { transform: translateY(0); }

.tpcf-btn--outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.tpcf-btn--outline:hover { background: var(--accent); color: #fff; }

.tpcf-btn--pill {
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 45%, transparent);
}
.tpcf-btn--pill:hover { transform: translateY(-2px); }

.tpcf-btn:disabled {
  opacity: .7;
  cursor: not-allowed;
  transform: none !important;
}

/* ── Spinner ── */
.tpcf-spin {
  animation: tpcf-spin .7s linear infinite;
}

/* ── Success ── */
.tpcf-success {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f0faf4;
  border: 1.5px solid #68d391;
  border-radius: calc(var(--rad) - 2px);
  padding: 16px 20px;
  margin-bottom: 20px;
  color: #22543d;
  font-size: 14px;
  font-weight: 500;
  animation: tpcf-fadein .4s ease;
}
.tpcf-success-icon {
  width: 28px; height: 28px;
  background: #68d391;
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Error list ── */
.tpcf-error-list {
  background: #fff5f5;
  border: 1.5px solid #fc8181;
  border-radius: calc(var(--rad) - 2px);
  padding: 14px 18px;
  margin-bottom: 18px;
  font-size: 13px;
  color: #742a2a;
  animation: tpcf-fadein .3s ease;
}
.tpcf-error-list ul { margin: 6px 0 0 16px; padding: 0; }
.tpcf-error-list li { margin-bottom: 3px; }

/* ── Animations ── */
@keyframes tpcf-fadein {
  from { opacity:0; transform: translateY(10px); }
  to   { opacity:1; transform: translateY(0); }
}
@keyframes tpcf-spin {
  to { transform: rotate(360deg); }
}

/* ── Responsive ── */
@media (max-width: 560px) {
  .tpcf-row--2 { flex-direction: column; gap: 0; }
}
