/* ToolsPallets Contact Form — Public Styles */

.tpcf-wrap {
  --accent:  #e85d26;
  --bg:      #ffffff;
  --tc:      #1a1a2e;
  --rad:     12px;
  --font:    'Sora', system-ui, sans-serif;
  --border:  #e8e8f0;
  --muted:   #6b7280;
  --shadow:  0 2px 8px rgba(0,0,0,.07), 0 8px 32px rgba(0,0,0,.06);
  --input-bg:#f9f9fc;

  font-family: var(--font);
  color: var(--tc);
  background: var(--bg);
  border-radius: var(--rad);
  padding: 40px 44px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* Decorative corner blob */
.tpcf-wrap::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 180px; height: 180px;
  background: var(--accent);
  border-radius: 50%;
  opacity: .06;
  pointer-events: none;
}
.tpcf-wrap::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 200px; height: 200px;
  background: var(--accent);
  border-radius: 50%;
  opacity: .04;
  pointer-events: none;
}

/* ── Icon ── */
.tpcf-icon-row {
  margin-bottom: 18px;
}
.tpcf-icon-blob {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 70%, #ff9966) 100%);
  box-shadow: 0 4px 16px rgba(232,93,38,.3);
  animation: tpcf-pop .5s cubic-bezier(.34,1.56,.64,1) both;
}
.tpcf-icon-blob svg rect { fill: transparent; }

/* ── Heading ── */
.tpcf-title {
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--tc);
  letter-spacing: -.4px;
  line-height: 1.2;
}
.tpcf-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 28px;
  line-height: 1.6;
}

/* ── 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;
}
.tpcf-input-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  display: flex;
  align-items: center;
  pointer-events: none;
  transition: color .2s;
}
.tpcf-input-icon--top {
  top: 16px;
  transform: none;
}

.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 12px 42px;
  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);
}
.tpcf-input-wrap:focus-within .tpcf-input-icon { color: var(--accent); }

/* 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-pop {
  from { opacity:0; transform: scale(.7); }
  to   { opacity:1; transform: scale(1); }
}
@keyframes tpcf-spin {
  to { transform: rotate(360deg); }
}

/* ── Responsive ── */
@media (max-width: 560px) {
  .tpcf-wrap { padding: 28px 20px; }
  .tpcf-row--2 { flex-direction: column; gap: 0; }
  .tpcf-title { font-size: 22px; }
}
