.careers-page {
  background: #f3f5f9;
  min-height: 100vh;
  color: #0f172a;
}

.hero {
  background: linear-gradient(135deg, #0f274d 0%, #143b75 50%, #1d4f94 100%);
  color: #f8fafc;
  padding: 64px 28px 52px;
}

.hero-content {
  max-width: min(1680px, calc(100vw - 56px));
  margin: 0 auto;
  width: 100%;
}

.eyebrow {
  margin: 0 0 10px;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.9;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

.hero-subtitle {
  margin: 0;
  max-width: 760px;
  opacity: 0.94;
  font-size: 1.05rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-tags span {
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.15);
  font-size: 12px;
  font-weight: 600;
}

.careers-grid {
  max-width: min(1680px, calc(100vw - 56px));
  margin: 0 auto;
  padding: 28px 28px 48px;
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(620px, 1.28fr);
  gap: 28px;
}

.jobs-card,
.form-card {
  border: 1px solid #d8dfeb;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  padding: 22px;
  width: 100%;
  min-width: 0;
}

.jobs-card h2,
.form-card h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
}

.culture-card {
  border: 1px solid #d8dfeb;
  border-radius: 12px;
  padding: 14px;
  background: #f8fbff;
  margin-bottom: 14px;
}

.culture-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.culture-card p {
  margin: 0 0 8px;
  color: #334155;
}

.culture-card p:last-child {
  margin-bottom: 0;
}

.culture-card ul {
  margin: 0;
  padding-left: 18px;
  color: #334155;
}

.search-controls {
  border: 1px solid #d8dfeb;
  border-radius: 12px;
  background: #ffffff;
  padding: 16px;
  margin-bottom: 14px;
}

.search-reset-btn {
  border: 1px solid #c8d1e3;
  border-radius: 8px;
  padding: 8px 10px;
  background: #ffffff;
  font-weight: 600;
  cursor: pointer;
}

.upload-help {
  font-size: 12px;
  color: #475569;
}

.required-upload-dropzone {
  display: grid;
  gap: 8px;
  border: 1px dashed #9fb2d9;
  border-radius: 10px;
  padding: 10px;
  background: #f8fbff;
  overflow: hidden;
}

.required-upload-dropzone.dragover {
  border-color: #1d4ed8;
  background: #eef4ff;
}

.file-error {
  color: #b81f1f;
  font-size: 12px;
  margin-top: 4px;
}

.job-list {
  display: grid;
  gap: 12px;
}

.priority-openings {
  border: 1px solid #d8dfeb;
  border-radius: 12px;
  background: #f8fbff;
  padding: 14px;
  margin-bottom: 14px;
}

.priority-openings-header h3 {
  margin: 0;
  font-size: 1.05rem;
}

.priority-openings-header p {
  margin: 8px 0 12px;
  color: #475569;
  font-size: 0.92rem;
}

.job-item {
  border: 1px solid #d8dfeb;
  border-radius: 12px;
  background: #f8fbff;
  padding: 14px;
  cursor: pointer;
}

.job-item h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.job-item p {
  margin: 0;
  color: #334155;
}

.job-item-actions {
  margin-top: 10px;
}

.job-apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #1d4ed8;
  color: #ffffff;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.job-item-active {
  border-color: #1d4ed8;
  box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.2);
  background: #eef4ff;
}

.jobs-note {
  margin: 14px 0 0;
  color: #475569;
  font-size: 0.95rem;
}

.form-card-inactive {
  opacity: 0.95;
}

.form-card-inactive form {
  display: none;
}

.form-row {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.form-row label {
  font-weight: 600;
  font-size: 0.95rem;
}

.form-row label span {
  color: #dc2626;
  margin-left: 4px;
}

.form-row input,
.form-row select,
.form-row textarea {
  border: 1px solid #c8d1e3;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 0.98rem;
  font-family: inherit;
  background: #ffffff;
  color: #0f172a;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.form-row textarea {
  resize: vertical;
}

.form-row input[type="file"] {
  padding: 9px 10px;
}

.form-row-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-footer {
  margin-top: 10px;
}

#submitBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #1d4ed8;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 11px 18px;
  cursor: pointer;
}

#submitBtn[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-disclaimer {
  margin: 10px 0 0;
  font-size: 12px;
  color: #475569;
}

.form-status {
  margin-top: 10px;
  font-weight: 700;
}

.form-status.success {
  color: #0f7b3a;
}

.form-status.error {
  color: #b81f1f;
}

@media (max-width: 1240px) {
  .careers-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 44px;
  }

  .hero,
  .careers-grid {
    padding-left: 16px;
    padding-right: 16px;
  }

  .form-row-split {
    grid-template-columns: 1fr;
  }
}

.jobs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.jobs-result-summary {
  color: #334155;
  font-size: 0.95rem;
  font-weight: 600;
}

.careers-right-rail {
  display: grid;
  gap: 18px;
  align-content: start;
  width: 100%;
  min-width: 0;
}

.job-detail-card {
  border: 1px solid #d8dfeb;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  padding: 22px;
  width: 100%;
  min-width: 0;
}

.job-detail-placeholder h2,
.job-detail-headline {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.02;
  color: #0f172a;
}

.job-detail-placeholder .jobs-note {
  margin-top: 10px;
}

.job-detail-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.job-detail-subtitle {
  margin: 10px 0 0;
  font-size: 1rem;
  color: #334155;
}

.job-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.job-detail-badges,
.job-item-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.job-detail-badges {
  margin-bottom: 16px;
}

.job-detail-badges span,
.job-item-badges span {
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid #d8dfeb;
  background: #f8fbff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
}

.job-item-badges .priority-badge {
  border-color: #0b3fb4;
  background: #1d4ed8;
  color: #ffffff;
}

.job-item-badges .priority-group-badge {
  border-color: #9fb2d9;
  background: #eef4ff;
  color: #0f274d;
}

.job-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.job-detail-panel {
  border: 1px solid #d8dfeb;
  border-radius: 14px;
  padding: 14px;
  background: #f8fbff;
  min-width: 0;
}

.job-detail-label {
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
}

.job-detail-richtext,
.job-detail-list {
  color: #334155;
  line-height: 1.7;
}

.job-detail-richtext p,
.job-detail-list p {
  margin: 0 0 10px;
}

.job-detail-richtext p:last-child,
.job-detail-list p:last-child {
  margin-bottom: 0;
}

.job-detail-richtext ul {
  margin: 0;
  padding-left: 18px;
}

.application-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.job-item {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.job-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.job-item-pay {
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 800;
  white-space: nowrap;
}

.job-item-excerpt {
  margin: 0;
  color: #334155;
  line-height: 1.6;
}

.job-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0;
}

.job-details-link {
  background: #ffffff;
  color: #1d4ed8;
  border-color: #c8d1e3;
}

@media (min-width: 1500px) {
  .careers-grid {
    grid-template-columns: minmax(420px, 0.9fr) minmax(760px, 1.35fr);
    gap: 32px;
  }

  .jobs-card,
  .form-card,
  .job-detail-card {
    padding: 26px;
  }
}

@media (max-width: 1440px) {
  .careers-grid,
  .hero-content {
    max-width: min(1440px, calc(100vw - 40px));
  }
}

@media (max-width: 1024px) {
  .job-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .job-detail-hero,
  .application-card-header,
  .job-item-header {
    flex-direction: column;
  }

  .jobs-card,
  .form-card,
  .job-detail-card {
    padding: 18px;
  }

  .job-item-pay {
    white-space: normal;
  }

  .job-detail-actions,
  .job-item-actions {
    width: 100%;
  }

  .job-detail-actions .job-apply-btn,
  .job-item-actions .job-apply-btn,
  .application-card-header .search-reset-btn {
    width: 100%;
  }
}
