/* Post Job, expressive 2026 hiring form */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Sora:wght@400;500;600;700&display=swap');

:root {
  --pj-ink: #07131f;
  --pj-muted: #5b6b7c;
  --pj-line: #d7e0ea;
  --pj-paper: #eef4f8;
  --pj-surface: #ffffff;
  --pj-teal: #0f766e;
  --pj-teal-bright: #14b8a6;
  --pj-sky: #0284c7;
  --pj-sun: #f59e0b;
  --pj-ok: #059669;
  --pj-glow: rgba(20, 184, 166, 0.18);
  --pj-display: "Fraunces", Georgia, serif;
  --pj-sans: "Sora", system-ui, sans-serif;
}

body.pj-body {
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(20, 184, 166, 0.22), transparent 55%),
    radial-gradient(700px 380px at 92% 8%, rgba(2, 132, 199, 0.16), transparent 50%),
    radial-gradient(600px 500px at 70% 100%, rgba(245, 158, 11, 0.08), transparent 45%),
    linear-gradient(180deg, #e8f3f4 0%, var(--pj-paper) 38%, #e7eef5 100%) !important;
  font-family: var(--pj-sans);
}

.pj-shell {
  position: relative;
  overflow: hidden;
}

.pj-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(7, 19, 31, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 19, 31, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), transparent 70%);
  opacity: 0.7;
}

.pj-page {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

.pj-hero {
  position: relative;
  margin-bottom: 1.5rem;
  padding: 1.45rem 1.45rem 1.5rem;
  border-radius: 24px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.12), transparent 42%),
    linear-gradient(145deg, #0b4f4a 0%, #0f766e 42%, #0369a1 100%);
  box-shadow:
    0 24px 50px rgba(7, 19, 31, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.2);
  overflow: hidden;
  animation: pj-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pj-hero::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -40px;
  top: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.35), transparent 68%);
  animation: pj-drift 8s ease-in-out infinite alternate;
}

.pj-hero::before {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  left: 35%;
  bottom: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 70%);
  animation: pj-drift 10s ease-in-out infinite alternate-reverse;
}

.pj-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 34rem;
}

.pj-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.7rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pj-kicker i {
  color: var(--pj-sun);
}

.pj-hero h1 {
  margin: 0;
  font-family: var(--pj-display);
  font-size: clamp(2rem, 4.4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.pj-hero h1 em {
  font-style: italic;
  font-weight: 600;
  color: #fde68a;
}

.pj-hero p {
  margin: 0.7rem 0 0;
  color: rgba(255,255,255,0.86);
  font-size: 1rem;
  line-height: 1.5;
}

.pj-hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.15rem;
}

.pj-hero-stats span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(7, 19, 31, 0.22);
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 0.78rem;
  font-weight: 500;
}

/* Progress */
.pj-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.35rem;
  animation: pj-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

.pj-progress .step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.85rem 0.85rem 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(10px);
  color: var(--pj-muted);
  box-shadow: 0 10px 24px rgba(7, 19, 31, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.pj-progress .step:hover {
  transform: translateY(-2px);
}

.pj-progress .step-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e2eaf1;
  color: var(--pj-muted);
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.pj-progress .step-label {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.pj-progress .step.active {
  border-color: rgba(20, 184, 166, 0.45);
  background: linear-gradient(180deg, #fff, #ecfdf9);
  color: var(--pj-teal);
  box-shadow: 0 14px 28px var(--pj-glow);
}

.pj-progress .step.active .step-icon {
  background: linear-gradient(145deg, var(--pj-teal-bright), var(--pj-teal));
  color: #fff;
  transform: scale(1.05);
}

.pj-progress .step.completed {
  border-color: rgba(5, 150, 105, 0.35);
  background: #ecfdf5;
  color: var(--pj-ok);
}

.pj-progress .step.completed .step-icon {
  background: var(--pj-ok);
  color: #fff;
}

/* Panel */
.pj-panel {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 24px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 24px 60px rgba(7, 19, 31, 0.08);
  backdrop-filter: blur(14px);
  overflow: hidden;
  animation: pj-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.pj-panel-body {
  padding: 1.35rem 1.35rem 1.6rem;
}

.pj-form {
  display: grid;
  gap: 0.95rem;
}

.pj-section {
  margin: 0;
  padding: 1.1rem 1.15rem 1.2rem;
  border: 1px solid var(--pj-line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.95), rgba(248, 252, 253, 0.9));
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  animation: pj-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pj-section:nth-child(1) { animation-delay: 0.12s; }
.pj-section:nth-child(2) { animation-delay: 0.16s; }
.pj-section:nth-child(3) { animation-delay: 0.2s; }
.pj-section:nth-child(4) { animation-delay: 0.24s; }
.pj-section:nth-child(5) { animation-delay: 0.28s; }
.pj-section:nth-child(6) { animation-delay: 0.32s; }
.pj-section:nth-child(7) { animation-delay: 0.36s; }

.pj-section:focus-within {
  border-color: rgba(20, 184, 166, 0.55);
  box-shadow: 0 0 0 4px var(--pj-glow);
  transform: translateY(-1px);
}

.pj-section-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.pj-section-num {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #99f6e4, #5eead4);
  color: #115e59;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 0.1rem;
}

.pj-section-head h2 {
  margin: 0;
  font-family: var(--pj-display);
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--pj-ink);
}

.pj-section-head p {
  margin: 0.15rem 0 0;
  font-size: 0.84rem;
  color: var(--pj-muted);
}

.pj-form .form-control,
.pj-form .form-select {
  border: 1.5px solid #c9d6e2;
  border-radius: 14px;
  padding: 0.78rem 0.95rem;
  font-size: 0.96rem;
  font-family: var(--pj-sans);
  color: var(--pj-ink);
  /* Use background-color only so Bootstrap select icons don't tile */
  background-color: #fff;
  box-shadow: 0 1px 0 rgba(7, 19, 31, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.pj-form .form-select {
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  background-size: 16px 12px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.pj-form .form-select.is-valid {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e"), url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.95rem center, center right 2.4rem;
  background-size: 16px 12px, 0.75rem 0.75rem;
  padding-right: 3.6rem;
}

.pj-form .form-select.is-invalid {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e"), url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.95rem center, center right 2.4rem;
  background-size: 16px 12px, 0.75rem 0.75rem;
  padding-right: 3.6rem;
}

.pj-form .form-control-lg,
.pj-form .form-select-lg {
  min-height: 52px;
}

.pj-form textarea.form-control {
  min-height: 132px;
  line-height: 1.55;
  resize: vertical;
}

.pj-form .form-control:focus,
.pj-form .form-select:focus {
  border-color: var(--pj-teal-bright);
  box-shadow: 0 0 0 4px var(--pj-glow);
  outline: none;
}

.pj-form .form-control.is-valid,
.pj-form .form-select.is-valid {
  border-color: #34d399;
}

.pj-form .form-control.is-invalid,
.pj-form .form-select.is-invalid {
  border-color: #f87171;
}

.pj-form .input-group-text {
  border: 1.5px solid #c9d6e2;
  border-right: 0;
  border-radius: 14px 0 0 14px;
  background: linear-gradient(180deg, #f0fdfa, #e6fffa);
  color: var(--pj-teal);
  font-weight: 700;
}

.pj-form .input-group .form-control {
  border-radius: 0;
}

.pj-form .input-group .form-select {
  border-radius: 0 14px 14px 0;
  max-width: 150px;
  background-color: #f8fafc;
}

.pj-pay-group .pj-currency {
  max-width: 7.5rem;
  flex: 0 0 7.5rem;
  border-radius: 14px 0 0 14px !important;
  font-weight: 700;
  font-size: 0.86rem;
  padding-left: 0.65rem;
  padding-right: 1.75rem;
  background-color: #f0fdfa;
  color: var(--pj-teal);
}

.pj-pay-group #salary {
  min-width: 0;
  flex: 1 1 auto;
}

.pj-pay-group #salaryType {
  max-width: 8.5rem;
  flex: 0 0 8.5rem;
}

.pj-location-wrap {
  position: relative;
}

.pj-location-wrap #location {
  padding-right: 2.75rem;
}

.pj-location-clear {
  position: absolute;
  top: 50%;
  right: 0.7rem;
  transform: translateY(-50%);
  width: 1.85rem;
  height: 1.85rem;
  border: 0;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.pj-location-clear:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.pj-location-clear[hidden] {
  display: none !important;
}

.pj-location-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.pj-chip {
  border: 1.5px solid #c9d6e2;
  background: #fff;
  color: var(--pj-ink);
  font-family: var(--pj-sans);
  font-size: 0.82rem;
  font-weight: 650;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.pj-chip:hover,
.pj-chip.is-active {
  border-color: var(--pj-teal-bright);
  background: #ecfdf5;
  color: #0f766e;
}

.pj-form .input-group > :first-child {
  border-radius: 14px 0 0 14px;
}

.pj-form .input-group > :last-child {
  border-radius: 0 14px 14px 0;
}

.pj-hint {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: var(--pj-muted);
  line-height: 1.4;
}

.pj-hint i {
  color: var(--pj-sky);
  margin-top: 0.1rem;
}

.pj-ai-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.pj-ai-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  background: linear-gradient(135deg, #0f766e, #0284c7);
  color: #fff;
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  font-size: 0.84rem;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.pj-ai-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  color: #fff;
}

.pj-ai-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.pj-ai-note {
  font-size: 0.8rem;
  color: var(--pj-muted);
}

/* Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.benefit-item {
  margin: 0;
}

.benefit-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.benefit-item label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  min-height: 52px;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid #d0dbe6;
  border-radius: 14px;
  background: #fff;
  color: var(--pj-ink);
  font-size: 0.9rem;
  font-weight: 550;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.benefit-item label i {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef6f8;
  color: var(--pj-teal);
}

.benefit-item input:checked + label {
  border-color: transparent;
  background: linear-gradient(135deg, #ecfdf5, #e0f2fe);
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.12);
  transform: translateY(-1px);
}

.benefit-item input:checked + label i {
  background: linear-gradient(145deg, var(--pj-teal-bright), var(--pj-sky));
  color: #fff;
}

.benefit-item label:hover {
  border-color: #9fb4c7;
}

/* Actions */
.pj-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.45rem;
  padding: 1rem;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(2, 132, 199, 0.08));
  border: 1px solid rgba(15, 118, 110, 0.12);
  animation: pj-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

.pj-submit {
  appearance: none;
  border: 0;
  border-radius: 16px;
  min-height: 56px;
  padding: 0.9rem 1.25rem;
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 45%, #0284c7 100%);
  color: #fff !important;
  font-family: var(--pj-sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(15, 118, 110, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.pj-submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  color: #fff !important;
  box-shadow: 0 20px 40px rgba(2, 132, 199, 0.28);
}

.pj-submit:disabled {
  background: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.pj-submit-note {
  margin: 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--pj-muted);
}

#jobTitleSuggestions.list-group {
  border: 1px solid var(--pj-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(7, 19, 31, 0.1);
}

#jobTitleSuggestions .list-group-item {
  border: 0;
  border-bottom: 1px solid var(--pj-line);
  padding: 0.75rem 0.95rem;
  font-size: 0.92rem;
}

#jobTitleSuggestions .list-group-item:last-child {
  border-bottom: 0;
}

#jobTitleSuggestions .list-group-item:hover,
#jobTitleSuggestions .suggestion-item:hover {
  background: #f0fdfa;
  cursor: pointer;
}

@keyframes pj-rise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pj-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-18px, 14px, 0); }
}

@media (max-width: 640px) {
  .pj-page {
    padding: 1.1rem 1rem 3rem;
  }

  .pj-hero {
    padding: 1.2rem 1.15rem 1.25rem;
    border-radius: 20px;
  }

  .pj-progress {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pj-panel-body {
    padding: 1rem;
  }

  .pj-section {
    padding: 0.95rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .pj-form .form-control,
  .pj-form .form-select,
  .pj-form textarea.form-control {
    font-size: 16px;
  }

  .pj-pay-group {
    flex-wrap: wrap;
  }

  .pj-pay-group .pj-currency {
    flex: 1 1 48%;
    max-width: none;
    border-radius: 14px 0 0 0 !important;
  }

  .pj-pay-group #salaryType {
    flex: 1 1 48%;
    max-width: none;
    border-radius: 0 14px 0 0 !important;
  }

  .pj-pay-group #salary {
    flex: 1 1 100%;
    border-radius: 0 0 14px 14px !important;
    border-top-width: 0;
  }
}
