/* Shared Post a Job card — homepage hero + customer dashboard */

.nfpa-post-job-notice {
  max-width: 640px;
  margin-bottom: 1rem;
}

.nfpa-post-job-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 12px 48px rgba(15, 31, 61, 0.14);
  width: 100%;
  max-width: 640px;
}

.nfpa-post-job-card--hero {
  flex: 0 1 640px;
  animation: nfpaFadeUp 0.7s 0.15s ease both;
}

@keyframes nfpaFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nfpa-post-job-card--dashboard {
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 1px 2px rgba(15, 31, 61, 0.04);
  border: 1.5px solid #cbd5e1;
}

.nfpa-pjf-section {
  border: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.nfpa-pjf-section legend {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f1f3d;
  margin-bottom: 0.85rem;
  padding: 0;
  text-transform: none;
  letter-spacing: 0;
}

.nfpa-pjf-section-intro {
  font-size: 0.82rem;
  color: #64748b;
  margin: -0.35rem 0 1rem;
  line-height: 1.45;
}

.nfpa-job-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1rem 0.25rem;
  margin-bottom: 0.75rem;
}

.nfpa-job-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.nfpa-job-item__title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f1f3d;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.nfpa-job-item__remove {
  background: none;
  border: none;
  color: #64748b;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.nfpa-job-item__remove:hover {
  color: #dc2626;
  background: #fef2f2;
}

.nfpa-job-items .nfpa-job-item:only-child .nfpa-job-item__remove {
  display: none;
}

.nfpa-item-details-hint {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0 0 0.75rem;
  font-style: italic;
}

.nfpa-item-details .nfpa-pjf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.nfpa-add-item-btn,
.nfpa-add-link-btn {
  display: inline-block;
  background: none;
  border: 1.5px dashed #cbd5e1;
  color: #00b4a0;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  text-align: center;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.nfpa-add-item-btn:hover,
.nfpa-add-link-btn:hover {
  border-color: #00b4a0;
  background: rgba(0, 180, 160, 0.06);
}

.nfpa-job-link-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  align-items: center;
}

.nfpa-job-link-row input {
  flex: 1;
}

.nfpa-link-remove {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 8px;
  color: #64748b;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.nfpa-link-remove:hover {
  color: #dc2626;
  border-color: #fecaca;
}

.nfpa-pjf-field-hint {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0.35rem 0 0;
}

.nfpa-post-job-card input[type="file"] {
  padding: 0.5rem;
  background: #fff;
  font-size: 0.85rem;
}

.nfpa-post-job-card__head h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f1f3d;
  margin: 0 0 0.3rem;
  font-family: inherit;
}

.nfpa-post-job-card__head p {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0 0 1.4rem;
}

.nfpa-post-job-card .nfpa-pjf-group,
.nfpa-post-job-card .form-group {
  margin-bottom: 1rem;
}

.nfpa-post-job-card label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f1f3d;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.nfpa-post-job-card label .optional {
  font-weight: 400;
  text-transform: none;
  color: #64748b;
}

.nfpa-pjf-required {
  color: #00b4a0;
}

.nfpa-post-job-card select,
.nfpa-post-job-card input,
.nfpa-post-job-card textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #0f1f3d;
  background: #fafbfc;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
}

.nfpa-post-job-card select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.nfpa-post-job-card select:focus,
.nfpa-post-job-card input:focus,
.nfpa-post-job-card textarea:focus {
  border-color: #00b4a0;
  box-shadow: 0 0 0 3px rgba(0, 180, 160, 0.12);
  background: #ffffff;
}

.nfpa-post-job-card textarea {
  resize: vertical;
  min-height: 80px;
}

.nfpa-pjf-row,
.nfpa-post-job-card .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.nfpa-pjf-submit,
.nfpa-post-job-card .btn-primary {
  width: 100%;
  background: #00b4a0;
  color: #ffffff;
  border: none;
  padding: 0.9rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 0.5rem;
  font-family: inherit;
}

.nfpa-pjf-submit:hover,
.nfpa-post-job-card .btn-primary:hover {
  background: #00d4bc;
  color: #0f1f3d;
}

.nfpa-pjf-note,
.nfpa-post-job-card .form-note {
  text-align: center;
  font-size: 0.78rem;
  color: #64748b;
  margin: 0.75rem 0 0;
}

.nfpa-pjf-guest-hint {
  text-align: center;
  font-size: 0.82rem;
  color: #64748b;
  margin: 0.65rem 0 0;
}

.nfpa-pjf-guest-hint a {
  color: #00b4a0;
  font-weight: 600;
  text-decoration: none;
}

/* Dashboard context: show notice above card */
.nfpa-mjq-center > .nfpa-post-job-card--dashboard {
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .nfpa-pjf-row,
  .nfpa-post-job-card .form-row,
  .nfpa-item-details .nfpa-pjf-row {
    grid-template-columns: 1fr;
  }

  .nfpa-post-job-card {
    padding: 1.5rem;
  }

  .nfpa-post-job-card--hero {
    max-width: 100%;
  }
}
