/* SentientForms frontend — neutral base that inherits theme typography.
   Sites can override via their own CSS (NALA dark styling ships in its
   site-specific stylesheet). */

.sf-container { max-width: 100%; }
.sf-form .sf-field { margin: 0 0 18px; }
.sf-form .sf-label { display: block; font-weight: 600; margin-bottom: 6px; }
.sf-form .sf-required { color: #c0392b; }
.sf-form input[type=text], .sf-form input[type=email], .sf-form input[type=tel],
.sf-form input[type=url], .sf-form input[type=number], .sf-form input[type=date],
.sf-form select, .sf-form textarea {
  width: 100%; box-sizing: border-box; padding: 10px 12px; font: inherit;
  border: 1px solid #c8c8c8; border-radius: 4px; background: #fff; color: inherit;
}
.sf-form textarea { resize: vertical; }
.sf-form select { height: auto; min-height: 44px; line-height: 1.4; }
.sf-form .sf-desc { font-size: 0.85em; opacity: 0.75; margin-top: 4px; }
.sf-form .sf-error { color: #c0392b; font-size: 0.85em; margin-top: 4px; min-height: 0; }
.sf-form .sf-form-error { color: #c0392b; margin: 0 0 12px; }
.sf-form .sf-choices { display: flex; flex-direction: column; gap: 6px; }
.sf-form .sf-choice { display: flex; align-items: baseline; gap: 8px; font-weight: 400; cursor: pointer; }
.sf-form .sf-choice input { flex: none; }

/* Honeypot — visually removed, still in DOM for bots */
.sf-hp { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }

/* Two-column layout parity with imported WPForms classes */
.sf-form .wpforms-one-half, .sf-form .sf-one-half { width: 48%; float: left; margin-left: 4%; box-sizing: border-box; }
.sf-form .wpforms-one-half.wpforms-first, .sf-form .sf-one-half.sf-first { margin-left: 0; clear: both; }
.sf-form .sf-field:not(.wpforms-one-half):not(.sf-one-half) { clear: both; }
@media (max-width: 600px) {
  .sf-form .wpforms-one-half, .sf-form .sf-one-half { width: 100%; float: none; margin-left: 0; }
}

/* Uploader */
.sf-uploader input[type=file] { display: none; }
.sf-upload-dropzone {
  border: 2px dashed #aaa; border-radius: 6px; padding: 28px 20px; text-align: center;
  cursor: pointer; display: flex; flex-direction: column; gap: 6px; transition: border-color .15s, background .15s;
}
.sf-upload-dropzone.sf-drag, .sf-upload-dropzone:hover { border-color: #666; background: rgba(0,0,0,0.03); }
.sf-upload-title { font-weight: 600; }
.sf-upload-hint { font-size: 0.8em; opacity: 0.7; }
.sf-upload-item { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 0.9em; }
.sf-upload-name { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-upload-progress { flex: 0 0 120px; height: 6px; background: rgba(0,0,0,0.12); border-radius: 3px; overflow: hidden; }
.sf-upload-bar { display: block; height: 100%; width: 0; background: #4a8f5c; transition: width .2s; }
.sf-upload-error .sf-upload-bar { background: #c0392b; }
.sf-upload-remove { flex: none; border: 0; background: none; font-size: 18px; line-height: 1; cursor: pointer; opacity: .6; }
.sf-upload-remove:hover { opacity: 1; }

/* Submit */
.sf-submit { position: relative; cursor: pointer; padding: 12px 28px; font: inherit; font-weight: 600; border-radius: 4px; border: 0; }
.sf-submit[disabled] { opacity: 0.7; cursor: default; }
.sf-spinner { display: none; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px;
  border: 2px solid rgba(255,255,255,0.4); border-top-color: currentColor; border-radius: 50%;
  animation: sf-spin .7s linear infinite; }
.sf-loading .sf-spinner { display: inline-block; }
@keyframes sf-spin { to { transform: rotate(360deg); } }

.sf-confirmation { padding: 18px 20px; border-left: 4px solid #4a8f5c; background: rgba(74,143,92,0.08); }
