/* ──────────────────────────────────────────────────────────
   Headings (page-local)
────────────────────────────────────────────────────────── */
.job-card-form--cont h1 { font-size: 34px; }

.body-background {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background-image: url("/icons/bg-graphic.svg");
  background-size: cover;
  background-position: center;
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* CTA button inside pill */
.btn-primary.pill-submit {
  margin-left: 0;
  border: none;
  font-size: 16px;
}

/* ──────────────────────────────────────────────────────────
   Job-card wrapper centred in viewport
────────────────────────────────────────────────────────── */
main.container {
  width: 100%;
  max-width: none;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center; /* vertical centring */
  position: relative;
  margin: 0;
}

/* ──────────────────────────────────────────────────────────
   Horizontal job-post card
────────────────────────────────────────────────────────── */
.job-card {
  width: 50%;
  max-width: 900px;
  display: flex;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 40px;
  box-shadow: 0 4px 12px var(--shadow);
  overflow: hidden;
  gap: 0.5rem;
  position: relative;
  z-index: 2;
}

/* ──────────────────────────────────────────────────────────
   Sidebar
────────────────────────────────────────────────────────── */
.job-card__sidebar {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  background-image: url(/icons/annota_graphic.svg);
  background-size: cover;
  background-position: center;
}

.graphic-lay {
  height: 100%;
  position: absolute;
  transform: translateX(10px);
}

.job-card-form--cont {
  flex: 2;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.job-card__logo { max-width: 120px; margin-bottom: 1.5rem; }

/* Illustration now fills full height */
.job-card__illustration {
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 1.25rem;
}

.job-card__text { font-size: 1rem; line-height: 1.5; color: var(--fg); }

/* ──────────────────────────────────────────────────────────
   Form panel
────────────────────────────────────────────────────────── */
.job-card__form { display: flex; flex-direction: column; gap: 0; }
.job-card__form label { margin-bottom: 15px; }

.job-card__title { font-size: 1.75rem; color: var(--fg); margin-bottom: var(--gap); }

/* Inputs & textarea */
.job-card__form input,
.job-card__form textarea {
  padding: 0.6rem 0.8rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-sizing: border-box;
}
.job-card__form textarea { min-height: 120px; }

/* Hard guard: when gated, never show apply UI */
.job-card__form.is-gated .apply-method,
.job-card__form.is-gated .contact-row {
  display: none !important;
}


/* Labels */
label { font-weight: 600; display: flex; flex-direction: column; gap: 6px; }
.options label { display: flex; flex-direction: row; align-items: center; gap: 6px; }

/* Apply-method radios */
.apply-method { border: none; }
.apply-method legend { font-weight: 600; margin-bottom: 0.5rem; }
.apply-method .options { display: flex; gap: 1.5rem; align-items: center; margin-bottom: 0; }
.options label { margin-bottom: 8px; }
.apply-method input[type="radio"] { accent-color: black; }

/* Toggle helper */
.hidden { display: none !important; }

/* Default submit (mobile fallback) */
.btn-submit { margin-top: var(--gap); align-self: flex-start; padding: 0.6rem 2rem; }

/* ──────────────────────────────────────────────────────────
   Inline GATE (replaces apply section when not subscribed)
────────────────────────────────────────────────────────── */
.credit-gate.inline-gate {
  border: 1px dashed var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  margin: 8px 0 14px;
  box-shadow: 0 2px 8px var(--shadow);
}
.credit-gate .gate-body {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.credit-gate .gate-copy { display: flex; flex-direction: column; gap: 4px; }
.credit-gate .gate-copy strong { font-size: 1rem; }
.credit-gate .gate-copy p { margin: 0; color: var(--light-text); font-size: .95rem; }
.credit-gate .gate-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ──────────────────────────────────────────────────────────
   Pill-style contact row
────────────────────────────────────────────────────────── */
.contact-row { display: flex; align-items: stretch; gap: 0; }
.contact-row input[type="email"],
.contact-row input[type="url"] {
  flex: 1;
  border-right: none;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.pill-submit {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  padding: 0 2rem;
}

/* ──────────────────────────────────────────────────────────
   Responsive — consolidated
────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .job-card { width: 80%; }
  .job-card-form--cont h1 { font-size: 28px; }
  .job-card__title { font-size: 1.6rem; }
  .job-card__text { font-size: 0.95rem; }
  .job-card__form input,
  .job-card__form textarea { font-size: 0.95rem; }
}

@media (max-width: 900px) {
  .job-card { width: 90%; }
  .job-card-form--cont h1 { font-size: 24px; }
  .job-card__title { font-size: 1.5rem; }
  .job-card__text { font-size: 0.9rem; }
  .job-card__form input,
  .job-card__form textarea { font-size: 0.9rem; }
}

@media (max-width: 600px) {
  .job-card { width: 92%; }
  .job-card__sidebar { display: none; }
  .job-card-form--cont h1 { font-size: 22px; }
  .job-card__title { font-size: 1.4rem; }
  .job-card__text { font-size: 0.875rem; }
  .job-card__form input,
  .job-card__form textarea { font-size: 0.875rem; }
  .job-card__form textarea { min-height: 100px; }
}

@media (max-width: 420px) {
  .pill-submit { padding: 0 1rem; }
}


