/* ============================================================
   Soledad Forms – Frontend Styles
   ============================================================ */

.sf-form-wrap {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  max-width: 100%;
}

/* ── Inputs ───────────────────────────────────────── */
.sf-input,
.sf-textarea,
.sf-input-file {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
  background: #fff;
  box-sizing: border-box;
  outline: none;
  transition: border-color .2s;
  -webkit-appearance: none;
}
.sf-input:focus,
.sf-textarea:focus {
  border-color: #999;
  box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}
.sf-textarea { resize: vertical; min-height: 140px; }

/* File input */
.sf-input-file {
  padding: 8px;
  cursor: pointer;
  background: #fafafa;
}

/* ── Contact form 3-col row ───────────────────────── */
.sf-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.sf-col       { flex: 1 1 160px; min-width: 0; }
.sf-col-full  { flex: 1 1 100%; }

/* ── Job form stacked ─────────────────────────────── */
.sf-field-group {
  margin-bottom: 16px;
}
.sf-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  margin-bottom: 5px;
}
.sf-label small { font-weight: 400; color: #888; font-size: 11px; }
.sf-req { color: #e53e3e; }

/* ── Submit button ────────────────────────────────── */
.sf-btn {
  display: inline-block;
  padding: 10px 28px;
  background: #1a1a2e;
  color: #fff !important;
  border: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 3px;
  transition: background .2s, transform .1s;
}
.sf-btn:hover   { background: #2d2d5e; }
.sf-btn:active  { transform: scale(.98); }
.sf-btn:disabled { opacity: .6; cursor: not-allowed; }

/* ── Notices ──────────────────────────────────────── */
.sf-notice {
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 18px;
}
.sf-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.sf-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ── Validation highlight ─────────────────────────── */
.sf-field-error { border-color: #e53e3e !important; }

/* ── Loading spinner on button ────────────────────── */
.sf-btn.sf-loading::after {
  content: "";
  display: inline-block;
  width: 12px; height: 12px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  margin-left: 8px;
  vertical-align: middle;
  animation: sf-spin .6s linear infinite;
}
@keyframes sf-spin { to { transform: rotate(360deg); } }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 600px) {
  .sf-row { flex-direction: column; gap: 12px; }
}
