/* ────────────────────────────────────────────────────────────────
   JSOH FORMS LIBRARY · jsoh-forms.css · v4
   Dark navy floating card · 3px amber stroke all sides · refined
   Drop at: assets/jsoh-forms.css
   ──────────────────────────────────────────────────────────────── */

.jsoh-form,
form.jsoh-form {
  display: block !important;
  position: relative !important;
  background: #0f1f33 !important;
  border: 3px solid #e8a020 !important;
  border-radius: 12px !important;
  padding: 32px 32px 28px !important;
  max-width: 480px !important;
  width: 100% !important;
  margin: 0 auto !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28) !important;
  box-sizing: border-box !important;
  font-family: 'Raleway', sans-serif !important;

  --jf-amber: #e8a020;
  --jf-amber-dark: #c98815;
  --jf-warm: #f8f4ea;
  --jf-text-dark: #0f1f33;
  --jf-label: #c8d0db;
  --jf-text-light: #d8dde6;
  --jf-error: #e87878;
  --jf-success: #5cba6f;
}

.jsoh-form *,
.jsoh-form *::before,
.jsoh-form *::after {
  box-sizing: border-box !important;
}

/* ── INTERNAL FORM HEADER (guide forms only) ────────────────────── */
.jsoh-form .jsoh-form-header {
  margin: 0 0 22px !important;
  padding: 0 0 16px !important;
  border-bottom: 1px solid rgba(232, 160, 32, 0.45) !important;
}

.jsoh-form .jsoh-form-title {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1.2 !important;
  margin: 0 0 6px !important;
}

.jsoh-form .jsoh-form-sub {
  font-family: 'Raleway', sans-serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  color: rgba(255, 255, 255, 0.55) !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

/* ── FIELDS ──────────────────────────────────────────────────────── */
.jsoh-form .jsoh-field {
  margin: 0 0 13px !important;
  padding: 0 !important;
}

.jsoh-form .jsoh-field label {
  display: block !important;
  color: var(--jf-label) !important;
  font-family: 'Raleway', sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  margin: 0 0 6px !important;
  line-height: 1.3 !important;
}

.jsoh-form .jsoh-field label .req {
  color: var(--jf-amber) !important;
  margin-left: 3px !important;
  font-weight: 700 !important;
}

.jsoh-form .jsoh-field label .opt {
  color: #6e7989 !important;
  font-size: 10px !important;
  margin-left: 6px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.jsoh-form .jsoh-field input,
.jsoh-form .jsoh-field select,
.jsoh-form .jsoh-field textarea {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  font-family: 'Raleway', sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 400 !important;
  color: var(--jf-text-dark) !important;
  background: var(--jf-warm) !important;
  border: 1px solid transparent !important;
  border-radius: 3px !important;
  padding: 9px 12px !important;
  margin: 0 !important;
  line-height: 1.4 !important;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

.jsoh-form .jsoh-field input::placeholder,
.jsoh-form .jsoh-field textarea::placeholder {
  color: #9ca8b8 !important;
  opacity: 1 !important;
  font-style: normal !important;
}

.jsoh-form .jsoh-field select {
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%204%205%22%3E%3Cpath%20fill%3D%22%23666%22%20d%3D%22M2%200L0%202h4zm0%205L0%203h4z%22%2F%3E%3C%2Fsvg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 8px !important;
  padding-right: 28px !important;
}

.jsoh-form .jsoh-field input:focus,
.jsoh-form .jsoh-field select:focus,
.jsoh-form .jsoh-field textarea:focus {
  outline: none !important;
  border-color: var(--jf-amber) !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(232, 160, 32, 0.18) !important;
}

.jsoh-form .jsoh-field input:-webkit-autofill,
.jsoh-form .jsoh-field input:-webkit-autofill:hover,
.jsoh-form .jsoh-field input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 30px var(--jf-warm) inset !important;
  -webkit-text-fill-color: var(--jf-text-dark) !important;
}

.jsoh-form .jsoh-field textarea {
  min-height: 82px !important;
  resize: vertical !important;
  line-height: 1.5 !important;
}

.jsoh-form .jsoh-field.error input,
.jsoh-form .jsoh-field.error select,
.jsoh-form .jsoh-field.error textarea {
  border-color: var(--jf-error) !important;
}

.jsoh-form .jsoh-field .field-error {
  display: none !important;
  font-size: 11px !important;
  color: var(--jf-error) !important;
  margin-top: 4px !important;
}

.jsoh-form .jsoh-field.error .field-error {
  display: block !important;
}

/* ── CONSENT CHECKBOX ────────────────────────────────────────────── */
.jsoh-form .jsoh-checkbox {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  margin: 18px 0 6px !important;
  padding: 0 !important;
  cursor: pointer !important;
  user-select: none !important;
}

.jsoh-form .jsoh-checkbox input[type="checkbox"] {
  margin: 2px 0 0 !important;
  accent-color: var(--jf-amber) !important;
  width: 15px !important;
  height: 15px !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
}

.jsoh-form .jsoh-checkbox span {
  font-family: 'Raleway', sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 400 !important;
  color: var(--jf-text-light) !important;
  line-height: 1.55 !important;
}

.jsoh-form .jsoh-checkbox span strong {
  color: #ffffff !important;
  font-weight: 600 !important;
}

/* ── PRIVACY / TERMS LINKS (directly below consent) ─────────────── */
.jsoh-form .jsoh-form-links {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 4px 0 20px 25px !important;
  padding: 0 !important;
  font-family: 'Raleway', sans-serif !important;
  font-size: 11px !important;
}

.jsoh-form .jsoh-form-links a {
  color: var(--jf-amber) !important;
  text-decoration: underline !important;
  text-decoration-color: rgba(232, 160, 32, 0.45) !important;
  text-underline-offset: 2px !important;
  transition: text-decoration-color 0.15s !important;
  font-weight: 500 !important;
}

.jsoh-form .jsoh-form-links a:hover {
  text-decoration-color: var(--jf-amber) !important;
}

.jsoh-form .jsoh-form-links span {
  color: #6e7989 !important;
}

/* ── HONEYPOT ─────────────────────────────────────────────────── */
.jsoh-form .jsoh-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ── INVISIBLE TURNSTILE ─────────────────────────────────────── */
.jsoh-form .jsoh-turnstile {
  /* Position offscreen so Turnstile can render properly while staying invisible */
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ── SUBMIT BUTTON (2px radius — authority feel) ─────────────── */
.jsoh-form .jsoh-submit {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  font-family: 'Raleway', sans-serif !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
  background: var(--jf-amber) !important;
  border: none !important;
  border-radius: 2px !important;
  padding: 14px 28px !important;
  margin: 2px 0 0 !important;
  cursor: pointer !important;
  transition: background 0.15s, transform 0.05s !important;
  text-align: center !important;
  text-decoration: none !important;
  line-height: 1.2 !important;
}

.jsoh-form .jsoh-submit:hover:not(:disabled) {
  background: var(--jf-amber-dark) !important;
}

.jsoh-form .jsoh-submit:active:not(:disabled) {
  transform: translateY(1px) !important;
}

.jsoh-form .jsoh-submit:disabled {
  background: #6e7989 !important;
  cursor: not-allowed !important;
  opacity: 0.7 !important;
}

/* ── STATUS MESSAGES ────────────────────────────────────────────── */
.jsoh-form .jsoh-form-status {
  display: none !important;
  padding: 11px 14px !important;
  border-radius: 3px !important;
  margin: 0 0 14px !important;
  font-size: 12.5px !important;
  line-height: 1.5 !important;
  font-family: 'Raleway', sans-serif !important;
}

.jsoh-form .jsoh-form-status.error {
  display: block !important;
  background: rgba(232, 120, 120, 0.12) !important;
  border-left: 3px solid var(--jf-error) !important;
  color: #ffb8b8 !important;
}

.jsoh-form .jsoh-form-status.success {
  display: block !important;
  background: rgba(92, 186, 111, 0.12) !important;
  border-left: 3px solid var(--jf-success) !important;
  color: #aae0b3 !important;
}

/* ── LOADING SPINNER ───────────────────────────────────────────── */
.jsoh-loading {
  display: inline-block !important;
  width: 13px !important;
  height: 13px !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-top-color: #ffffff !important;
  border-radius: 50% !important;
  animation: jsoh-spin 0.7s linear infinite !important;
  margin-right: 10px !important;
  vertical-align: middle !important;
}

@keyframes jsoh-spin {
  to { transform: rotate(360deg); }
}

/* ── MOBILE ─────────────────────────────────────────────────────── */
@media (max-width: 540px) {
  .jsoh-form,
  form.jsoh-form {
    padding: 26px 22px 24px !important;
    border-radius: 10px !important;
  }
  .jsoh-form .jsoh-form-title { font-size: 20px !important; }
  .jsoh-form .jsoh-field { margin-bottom: 12px !important; }
  .jsoh-form .jsoh-submit { font-size: 13px !important; padding: 13px 24px !important; }
  .jsoh-form .jsoh-form-links {
    margin-left: 25px !important;
    flex-wrap: wrap !important;
  }
}
