/* JSJ Employment Application — front-end form styles.
   Scoped under .jsj-page so it won't collide with the WordPress theme. */

.jsj-page * , .jsj-page *::before, .jsj-page *::after { box-sizing: border-box; }

.jsj-page {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: #222;
  background: #fff;
  max-width: 900px;
  margin: 24px auto;
  padding: 32px 36px 40px;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}

.jsj-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid #1a3a6b;
  padding-bottom: 12px;
  margin-bottom: 6px;
}
.jsj-app-header h1 { font-size: 20px; font-weight: 800; color: #1a3a6b; line-height: 1.2; margin: 0; }
.jsj-app-header h2 { font-size: 15px; font-weight: 600; color: #444; margin: 0; }

.jsj-app-notices { font-size: 11px; color: #b00; font-weight: bold; margin-bottom: 18px; line-height: 1.7; }

.jsj-section-header {
  background: #1a3a6b;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 10px;
  margin: 20px 0 10px;
  letter-spacing: .04em;
}

.jsj-field-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.jsj-field { display: flex; flex-direction: column; flex: 1 1 160px; }
.jsj-field.sm { flex-basis: 80px; }
.jsj-field.md { flex-basis: 140px; }
.jsj-field.lg { flex-basis: 260px; }
.jsj-field.xl { flex-basis: 100%; }

.jsj-page label {
  font-size: 10px;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: 3px;
}
.jsj-page input[type="text"],
.jsj-page input[type="email"],
.jsj-page input[type="tel"],
.jsj-page input[type="date"],
.jsj-page textarea,
.jsj-page select {
  border: none;
  border-bottom: 1.5px solid #999;
  padding: 4px 2px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  background: transparent;
  width: 100%;
  transition: border-color .15s;
}
.jsj-page input:focus,
.jsj-page textarea:focus,
.jsj-page select:focus { border-bottom-color: #1a3a6b; }
.jsj-page textarea { resize: vertical; min-height: 48px; border: 1.5px solid #999; padding: 6px; border-radius: 2px; }

.jsj-radio-group { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.jsj-radio-group label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  color: #222;
}
.jsj-page input[type="radio"] { accent-color: #1a3a6b; width: 14px; height: 14px; cursor: pointer; }

.jsj-question-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.jsj-question-row .jsj-q-text { flex: 1 1 300px; font-size: 12px; padding-top: 2px; }
.jsj-question-row .jsj-radio-group { flex: 0 0 auto; }
.jsj-question-row .jsj-field { flex: 1 1 200px; }

.jsj-edu-row { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }

.jsj-emp-card, .jsj-ref-card { border: 1px solid #ddd; border-radius: 4px; padding: 12px; margin-bottom: 14px; }
.jsj-emp-card-title { font-size: 11px; font-weight: 700; color: #1a3a6b; margin-bottom: 8px; text-transform: uppercase; }

.jsj-disclaimer-text {
  font-size: 12px;
  color: #333;
  line-height: 1.6;
  background: #f7f7f7;
  border-left: 4px solid #1a3a6b;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: 0 4px 4px 0;
}

.jsj-sig-area { margin-bottom: 16px; }
.jsj-sig-area label {
  font-size: 12px;
  font-weight: 700;
  color: #333;
  display: block;
  margin-bottom: 6px;
  text-transform: none;
  letter-spacing: 0;
}
#jsjSigCanvas {
  border: 1.5px solid #999;
  border-radius: 4px;
  display: block;
  cursor: crosshair;
  touch-action: none;
  background: #fff;
  width: 100%;
  max-height: 120px;
}
.jsj-sig-controls { display: flex; gap: 10px; margin-top: 6px; }
.jsj-btn-clear { padding: 5px 14px; font-size: 12px; border: 1.5px solid #999; background: #fff; border-radius: 3px; cursor: pointer; }
.jsj-btn-clear:hover { background: #f5f5f5; }

.jsj-submit-row { text-align: center; margin-top: 24px; }
.jsj-btn-submit {
  background: #01AA09;
  color: #fff;
  border: none;
  padding: 12px 48px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: .04em;
  transition: background .15s;
}
.jsj-btn-submit:hover { background: #142e56; }
.jsj-btn-submit:disabled { opacity: .7; cursor: default; }

.jsj-page hr { border: none; border-top: 1px solid #e0e0e0; margin: 16px 0; }

@media (max-width: 600px) {
  .jsj-page { padding: 16px; }
  .jsj-field { flex-basis: 100% !important; }
}
