/* The public caregiver jobs page and application (www.sanluisobispocare.com). Phone first: one column, large boxes and
   buttons, text at least 16px so phones don't zoom in when a box is tapped. */
body.jobs { background: var(--color-bg); font-size: 17px; }
.j-in { max-width: 1080px; margin: 0 auto; padding-left: clamp(16px, 4vw, 24px); padding-right: clamp(16px, 4vw, 24px); }
.jobs h1, .jobs h2, .jobs h3, .jobs h4 { font-family: var(--font-head); color: var(--brand-ink); }
.jobs [hidden] { display: none !important; }

/* top bar: the heart and the company name; Apply on the right */
.j-top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--color-surface) 94%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--color-border-line); }
.j-top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.j-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.j-brand img { height: clamp(28px, 8vw, 34px); width: auto; display: block; flex: none; }
.j-brand span { font-family: var(--font-head); font-weight: 600; font-size: clamp(16px, 4.4vw, 19px); color: var(--brand); white-space: nowrap; }
.j-top .btn.small { min-height: 40px; padding: 0 18px; font-size: 15px; }

/* hero */
.j-hero { background: var(--brand-soft); border-bottom: 1px solid var(--brand-tint); }
.j-hero-in { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; padding-top: clamp(28px, 7vw, 56px); padding-bottom: clamp(28px, 7vw, 56px); }
.j-hero-text { flex: 3 1 420px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.j-pill { background: var(--color-surface); color: var(--brand); font-family: var(--font-head); font-weight: 600; font-size: 14px; padding: 5px 14px; border-radius: 999px; }
.j-hero h1 { font-size: clamp(30px, 7.2vw, 46px); line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
.j-lead { font-size: clamp(17px, 4.4vw, 19px); color: var(--color-fg); margin: 0; max-width: 580px; }
.j-cta { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; }
.j-cta .btn { flex: 1 1 200px; max-width: 280px; }
.btn.j-big { min-height: 52px; font-size: 17px; padding: 0 22px; border-radius: 12px; }
.j-glance { flex: 2 1 290px; min-width: 0; padding: 22px 24px; }
.j-glance h2 { margin: 0 0 12px; font-size: 20px; }
.j-glance dl { margin: 0; display: grid; gap: 10px; }
.j-glance dt { font-size: 12.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-fg-muted); }
.j-glance dd { margin: 0 0 4px; font-size: 16px; }

/* sections */
.j-sec { padding-top: clamp(32px, 7vw, 52px); }
.j-sec > h2 { font-size: clamp(24px, 6vw, 30px); margin: 0 0 18px; }
.j-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.j-tile { background: var(--sec-soft); border: 1px solid var(--sec-tint); border-radius: 14px; padding: 18px 20px; }
.j-tile h3 { font-size: 18px; margin: 0 0 6px; }
.j-tile p { font-size: 16px; margin: 0; }
.j-jobs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.j-job { display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 5vw, 26px); }
.j-job h3 { font-size: 22px; margin: 0; }
.j-job h4 { font-size: 16px; margin: 6px 0 0; }
.j-job p { margin: 0; }
.j-job ul { margin: 0; padding-left: 22px; display: grid; gap: 4px; }
.j-job .j-pick { margin-top: auto; }
.j-pay { align-self: flex-start; background: var(--yellow-soft); color: var(--yellow-strong); border: 1px solid var(--yellow-tint); font-family: var(--font-head); font-weight: 600; font-size: 14px; padding: 3px 12px; border-radius: 999px; }
.j-needs { margin-top: 20px; background: var(--blue-soft); border: 1px solid var(--blue-tint); border-radius: 16px; padding: clamp(18px, 5vw, 26px); }
.j-needs h2 { font-size: 21px; margin: 0 0 10px; }
.j-needs ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }

/* the application */
.j-apply { background: var(--brand-soft); border-top: 1px solid var(--brand-tint); margin-top: clamp(32px, 7vw, 52px); padding: clamp(20px, 6vw, 52px) clamp(10px, 3.5vw, 24px); scroll-margin-top: 60px; }
.j-form-card { max-width: 760px; margin: 0 auto; padding: clamp(20px, 5vw, 34px) clamp(16px, 4.5vw, 32px); }
#j-head h2 { margin: 0 0 6px; font-size: clamp(24px, 6vw, 30px); }
#j-head p { font-size: 16px; }
.j-progress-label { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-head); font-weight: 600; font-size: 15px; margin: 6px 0 8px; }
.j-progress-label span:first-child { color: var(--brand); white-space: nowrap; }
.j-progress-label span:last-child { text-align: right; }
.j-progress { height: 8px; background: var(--brand-tint); border-radius: 999px; overflow: hidden; margin-bottom: 24px; }
.j-progress span { display: block; height: 100%; width: 14%; background: var(--brand); border-radius: 999px; transition: width .25s; }
.j-step { display: flex; flex-direction: column; gap: 18px; }
.j-step[hidden], .j-cond[hidden] { display: none !important; }
.j-step h3 { font-size: 18px; margin: 6px 0 0; }
.j-row { display: flex; flex-wrap: wrap; gap: 14px 16px; }
.j-row > .j-field { flex: 1 1 200px; min-width: 0; margin: 0; }
.j-row > .j-w1 { flex: 1 1 100px; }
.j-row > .j-w2 { flex: 2 1 180px; }
.j-field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; color: var(--color-fg); }
.j-field.j-narrow { max-width: 320px; }
.j-field input, .j-field select, .j-field textarea { width: 100%; min-height: 50px; padding: 0 14px; font: 400 17px var(--font-body); color: var(--color-fg);
  background: var(--color-surface); border: 1px solid var(--cds-border); border-radius: 10px; -webkit-appearance: none; appearance: none; }
.j-field select { padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--color-fg-muted) 50%), linear-gradient(135deg, var(--color-fg-muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.j-field textarea { padding: 12px 14px; min-height: 104px; resize: vertical; line-height: 1.45; }
.j-field input[type="date"] { min-height: 50px; display: block; }
.j-field input:focus, .j-field select:focus, .j-field textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.j-field input:user-invalid, .j-field select:user-invalid, .j-field textarea:user-invalid { border-color: var(--color-bad); }
.j-star { color: inherit; }
.j-fs { border: 0; margin: 0; padding: 0; min-width: 0; }
.j-row > .j-fs { flex: 1 1 200px; }
.j-fs legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 8px; }
.j-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.j-choice { flex: 1 1 150px; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 8px 14px; border: 1px solid var(--cds-border);
  border-radius: 12px; background: var(--color-surface); font-size: 16px; font-weight: 500; cursor: pointer; line-height: 1.3; }
.j-choice.j-solo { flex: none; width: 100%; }
.j-choice input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--brand); }
.j-choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.j-cond { display: flex; flex-direction: column; gap: 14px; background: var(--color-panel); border-radius: 12px; padding: 16px; }
.j-certs { display: flex; flex-direction: column; gap: 10px; }
.j-nav { display: flex; flex-wrap: wrap-reverse; gap: 12px; margin-top: 6px; }
.j-nav .btn { flex: 2 1 200px; }
.j-nav .j-back { flex: 1 1 120px; }
.j-add { align-self: flex-start; min-height: 46px; }
.j-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.j-resume { background: var(--sec-soft); border: 1px solid var(--sec-tint); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.j-resume h3 { margin: 0; font-size: 17px; }
.j-resume p { margin: 0; font-size: 15.5px; }
.j-upload { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 18px; border-radius: 12px; border: 2px dashed var(--sec);
  background: var(--color-surface); color: var(--sec-strong); font-family: var(--font-head); font-weight: 600; font-size: 16px; cursor: pointer; text-align: center; }
.j-upload svg { width: 22px; height: 22px; flex: none; }
.j-upload[aria-disabled="true"] { opacity: .6; pointer-events: none; }
.j-upload.hidden { display: none; }
.j-upload-more { border-style: solid; border-width: 1px; min-height: 48px; margin-top: 10px; }
.j-status { padding: 12px 14px; border-radius: 12px; font-size: 15.5px; }
.j-status.ok { background: var(--green-soft); color: var(--green-strong); }
.j-status.busy { background: var(--yellow-soft); color: var(--yellow-strong); }
.j-status.bad { background: #FDE4E1; color: #9F1D12; }
@media (prefers-color-scheme: dark) { .j-status.bad { background: #3A1715; color: #FDA29B; } }

.j-card { border: 1px solid var(--color-border-line); border-radius: 14px; padding: clamp(14px, 4vw, 20px); display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; background: var(--color-surface); }
.j-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.j-card-title { font-family: var(--font-head); font-weight: 600; font-size: 16.5px; }
.j-card-head .btn { min-height: 40px; }

.j-terms { background: var(--color-panel); border-radius: 12px; padding: 14px 16px; font-size: 14px; line-height: 1.55; max-height: 240px; overflow-y: auto; }
.j-sign { display: flex; flex-direction: column; gap: 8px; }
.j-sign-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 600; font-size: 15px; }
.j-sign-head .btn { min-height: 40px; }
#j-sig { display: block; width: 100%; height: 170px; touch-action: none; background: #fff; border: 2px dashed var(--cds-border); border-radius: 12px; cursor: crosshair; }

.j-thanks { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 20px 0; }
.j-thanks svg { width: 64px; height: 64px; color: var(--color-ok); }
.j-thanks h2 { margin: 0; font-size: clamp(24px, 6vw, 30px); }
.j-thanks p { margin: 0; max-width: 520px; }

/* footer, with Team Login for the office and caregivers */
.j-foot { background: var(--color-surface); border-top: 1px solid var(--color-border-line); }
.j-foot-in { display: flex; flex-wrap: wrap; gap: 18px 28px; justify-content: space-between; padding-top: 26px; padding-bottom: 34px; font-size: 15px; color: var(--color-fg-muted); }
.j-foot-in > div { display: flex; flex-direction: column; gap: 4px; flex: 1 1 280px; }
.j-foot-brand { display: flex; align-items: center; gap: 8px; }
.j-foot-brand b { color: var(--color-fg); font-family: var(--font-head); }
.j-foot a { font-weight: 600; }
