/* ── Fenanjor Legajo — Front-end styles ───────────────────────────────── */

.fnj-wrap {
  max-width: 720px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
}

.fnj-section {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

.fnj-section h3 {
  margin-top: 0;
  color: #1a6e1a;
  border-bottom: 2px solid #1a6e1a;
  padding-bottom: 6px;
}

.fnj-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.fnj-field {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 180px;
}

.fnj-field label {
  font-size: 12px;
  font-weight: bold;
  color: #444;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.fnj-field input,
.fnj-field select {
  padding: 8px 10px;
  border: 1px solid #bbb;
  border-radius: 4px;
  font-size: 14px;
}

.fnj-field input:focus {
  outline: none;
  border-color: #1a6e1a;
  box-shadow: 0 0 0 2px rgba(26,110,26,.15);
}

/* ── Photo upload ──────────────────────────────────────────────────────── */
.fnj-foto-area {
  text-align: center;
}

.fnj-foto-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #1a6e1a;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
}

#fnj-foto-input { display: none; }

#fnj-foto-preview {
  display: none;
  margin-top: 12px;
  max-width: 100%;
  max-height: 280px;
  border-radius: 6px;
  border: 2px solid #1a6e1a;
  object-fit: cover;
}

/* ── Signature canvas ──────────────────────────────────────────────────── */
.fnj-sig-wrap {
  position: relative;
}

#fnj-signature-canvas {
  width: 100%;
  height: 180px;
  border: 3px solid #fff;
  border-radius: 6px;
  background: #fff;
  touch-action: none;
  cursor: crosshair;
  display: block;
}

#fnj-sig-clear {
  margin-top: 8px;
  background: #e44;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

/* ── Submit button ─────────────────────────────────────────────────────── */
.fnj-submit-btn {
  width: 100%;
  padding: 14px;
  background: #1a6e1a;
  color: #fff;
  font-size: 17px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 8px;
  transition: background .2s;
}
.fnj-submit-btn:hover  { background: #145214; }
.fnj-submit-btn:disabled { background: #888; cursor: not-allowed; }

/* ── Status messages ───────────────────────────────────────────────────── */
.fnj-status {
  display: none;
  padding: 14px 18px;
  border-radius: 6px;
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.5;
}
.fnj-status--info    { background: #e8f4fd; color: #0c5c8a; border: 1px solid #b3d7f0; }
.fnj-status--success { background: #e6f5e6; color: #155e15; border: 1px solid #9bd09b; }
.fnj-status--warning { background: #fff8e1; color: #7a5a00; border: 1px solid #ffe082; }
.fnj-status--error   { background: #fdecea; color: #8b0000; border: 1px solid #f5c2c2; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 500px) {
  .fnj-row { flex-direction: column; }
}