/* Careers: careers.php, career.php, includes/careers_form.php */
body { --hm-accent: #800000; --hm-accent-s: rgba(128, 0, 0, .12); --hm-border: #e5e7eb; --hm-bg: #f8fafc; --hm-card: #fff; --hm-text: #0f172a; --hm-muted: #64748b; --hm-label: #94a3b8; }
.cr { font-family: Outfit, system-ui, sans-serif; color: #0f172a; background: #f8fafc; padding-top: var(--cr-head, 90px); padding-bottom: 60px; min-height: 60vh; }
.cr a { text-decoration: none; }
.cr-wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Hero */
.cr-hero { background: radial-gradient(1100px 480px at 85% -10%, rgba(255,255,255,.10), transparent 60%), linear-gradient(135deg, #4a0000 0%, #800000 55%, #9f1d1d 100%); color: #fff; padding: 56px 0 52px; text-align: center; }
.cr-hero h1 { margin: 0 auto 12px; max-width: 780px; font-size: clamp(30px, 6vw, 52px); font-weight: 900; letter-spacing: -1px; line-height: 1.08; color: #fff; }
.cr-hero h1 span { background: linear-gradient(90deg, #fff1f2, #fca5a5); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cr-hero p { margin: 0 auto; max-width: 640px; font-size: 16.5px; line-height: 1.6; color: rgba(255,255,255,.9); }
.cr-hero-acts { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: center; align-items: center; }
.cr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 12px; border: 0; background: #800000; color: #fff !important; font: 800 15px Outfit, system-ui, sans-serif; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.cr-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(128,0,0,.25); }
.cr-btn.light { background: #fff; color: #800000 !important; }
.cr-btn:disabled { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.cr-link { color: #fff !important; font-weight: 800; display: inline-flex; gap: 8px; align-items: center; }

/* Scam warning */
.cr-scam { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0 0; padding: 14px 16px; border-radius: 14px; background: #fef2f2; border: 1px solid #fecaca; color: #7f1d1d; font-size: 14.5px; line-height: 1.55; }
.cr-scam i { color: #b91c1c; font-size: 18px; margin-top: 2px; }
.cr-scam a { color: #991b1b; font-weight: 800; }
.cr-scam.small { margin: 0 0 14px; font-size: 13px; padding: 10px 12px; }

/* Why */
.cr-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.cr-why > div { background: #fff; border: 1px solid #edf0f4; border-radius: 16px; padding: 20px; }
.cr-why i { width: 42px; height: 42px; border-radius: 12px; background: #fdf2f2; color: #800000; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.cr-why h3 { margin: 12px 0 6px; font-size: 17px; font-weight: 800; }
.cr-why p { margin: 0; font-size: 14.5px; line-height: 1.6; color: #475569; }

/* Roles */
.cr-sec { margin-top: 40px; scroll-margin-top: calc(var(--cr-head, 90px) + 16px); }
.cr-sec > h2 { margin: 0 0 14px; font-size: 26px; font-weight: 900; padding-left: 14px; border-left: 5px solid #800000; line-height: 1.15; }
.cr-jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.cr-job { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid #edf0f4; border-radius: 16px; padding: 18px; color: #0f172a; transition: transform .15s, box-shadow .15s, border-color .15s; }
.cr-job:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(15,23,42,.08); border-color: rgba(128,0,0,.35); }
.cr-job-top { display: flex; gap: 6px; flex-wrap: wrap; }
.cr-tag { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 99px; background: #fdf2f2; color: #800000; font-size: 12px; font-weight: 800; letter-spacing: .3px; }
.cr-tag.hot { background: #fff7ed; color: #c2410c; }
.cr-job h3 { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.3; }
.cr-job p { margin: 0; font-size: 14.5px; line-height: 1.55; color: #475569; }
.cr-meta { font-size: 13px; color: #64748b; }
.cr-more { margin-top: auto; padding-top: 6px; color: #800000; font-weight: 800; font-size: 14px; display: inline-flex; gap: 7px; align-items: center; }
.cr-empty { text-align: center; padding: 40px 16px; background: #fff; border: 1px dashed #cbd5e1; border-radius: 16px; color: #475569; }
.cr-empty i { font-size: 28px; color: #800000; }
.cr-empty h3 { margin: 10px 0 6px; color: #0f172a; }
.cr-empty p { margin: 0; }

/* Correspondent call */
.cr-join { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; align-items: start; }
.cr-join-text h2 { margin: 0 0 10px; font-size: 26px; font-weight: 900; }
.cr-join-text > p { margin: 0 0 12px; color: #475569; line-height: 1.6; font-size: 15.5px; }
.cr-join-text ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; font-size: 15px; }
.cr-join-text ul i { color: #15803d; margin-right: 8px; }
.cr-join-text h3 { margin: 0 0 8px; font-size: 17px; font-weight: 800; }
.cr-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14.5px; color: #334155; line-height: 1.5; }
.cr-card { background: #fff; border: 1px solid #edf0f4; border-radius: 18px; padding: 22px; box-shadow: 0 10px 30px rgba(15,23,42,.05); }
.cr-card > h3 { margin: 0 0 14px; font-size: 19px; font-weight: 900; }

/* Form */
.cr-form { display: grid; gap: 12px; }
.cr-form label, .cr-form .cr-lab { display: grid; gap: 6px; font-size: 13.5px; font-weight: 700; color: #334155; align-content: start; }
.cr-form label b { color: #b91c1c; }
.cr-form label em { font-style: normal; font-weight: 500; color: #64748b; }
.cr-form input:not([type=checkbox]), .cr-form textarea, .cr-form select { width: 100%; box-sizing: border-box; border: 1.5px solid #e5e7eb; border-radius: 10px; padding: 10px 12px; font: 500 15px Outfit, system-ui, sans-serif; color: #0f172a; background: #f8fafc; }
.cr-form input:not([type=checkbox]):not([type=file]) { height: 46px; }
.cr-form textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.cr-form input:focus, .cr-form textarea:focus, .cr-form select:focus { outline: none; border-color: #800000; background: #fff; }
.cr-form .cr-file input { padding: 9px; }
.cr-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cr-check { display: flex !important; grid-template-columns: none; gap: 10px !important; align-items: flex-start; font-weight: 500 !important; font-size: 13.5px !important; line-height: 1.5; color: #475569 !important; cursor: pointer; }
.cr-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: #800000; flex: none; }
.cr-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cr-msg { margin: 0; font-size: 14.5px; font-weight: 600; min-height: 20px; line-height: 1.5; }
.cr-msg.ok { color: #15803d; }
.cr-msg.bad { color: #b91c1c; }
/* County dropdown (js/hm-select.js) */
.cr-form .hms-btn { min-height: 46px; border: 1.5px solid #e5e7eb; border-radius: 10px; background: #f8fafc; font-family: Outfit, system-ui, sans-serif; font-size: 15px; font-weight: 500; }
.cr-form .hms.is-open .hms-btn, .cr-form .hms-btn:focus-visible { border-color: #800000; background: #fff; box-shadow: 0 0 0 4px rgba(128,0,0,.12); }
.cr-form .hms-caret { width: 26px; height: 26px; border-radius: 8px; background: #fdf2f2; color: #800000; }
body:has(.cr) .hms-pop { font-family: Outfit, system-ui, sans-serif; border-radius: 14px; border: 1px solid #f1dede; box-shadow: 0 24px 60px rgba(74,0,0,.2); }
body:has(.cr) .hms-opt { font-size: 14.5px; font-weight: 600; border-radius: 9px; }
body:has(.cr) .hms-opt.is-act { background: #fdf2f2; color: #800000; }
body:has(.cr) .hms-opt.is-sel { background: #800000; color: #fff; }
body:has(.cr) .hms-opt.is-sel .hms-tick { color: #fff; }

/* One role */
.cr-crumbs { padding: 22px 0 12px; font-size: 14px; }
.cr-crumbs a { color: #800000; font-weight: 800; }
.cr-role { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.cr-role-main { background: #fff; border: 1px solid #edf0f4; border-radius: 18px; padding: 26px; }
.cr-role-main h1 { margin: 10px 0 12px; font-size: clamp(26px, 4.5vw, 36px); font-weight: 900; line-height: 1.15; letter-spacing: -.5px; }
.cr-facts { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; color: #475569; }
.cr-facts i { color: #800000; margin-right: 5px; }
.cr-lead { font-size: 17px; line-height: 1.6; color: #1e293b; font-weight: 500; margin: 0 0 12px; }
.cr-body { font-size: 16px; line-height: 1.75; color: #1e293b; overflow-wrap: anywhere; }
.cr-body h2, .cr-body h3 { font-size: 18px; margin: 20px 0 8px; }
.cr-body ul, .cr-body ol { padding-left: 22px; }
.cr-body a { color: #800000; text-decoration: underline; }
.cr-closed { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: #f1f5f9; color: #334155; font-weight: 600; }
.cr-closed a { color: #800000; font-weight: 800; }
.cr-share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #f1f5f9; }
.cr-share a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 10px; border: 1.5px solid #e5e7eb; background: #fff; color: #334155; font-weight: 700; font-size: 14px; }
.cr-share .wa { background: #16a34a; border-color: #16a34a; color: #fff; }
.cr-apply { position: sticky; top: calc(var(--cr-head, 90px) + 16px); }

@media (max-width: 900px) {
    .cr-why { grid-template-columns: 1fr; }
    .cr-join, .cr-role { grid-template-columns: 1fr; }
    .cr-apply { position: static; }
}
@media (max-width: 560px) {
    .cr-hero { padding: 38px 0 36px; }
    .cr-two { grid-template-columns: 1fr; }
    .cr-card, .cr-role-main { padding: 18px 16px; }
    .cr-jobs { grid-template-columns: 1fr; }
}

/* The site-wide section padding is not wanted inside the careers layout */
.cr section.cr-why, .cr section.cr-sec, .cr section.cr-hero + .cr-wrap section { padding: 0; }
.cr section.cr-hero { padding: 56px 0 52px; }
@media (max-width: 560px) { .cr section.cr-hero { padding: 38px 0 36px; } }
.cr-body ul { list-style: disc; } .cr-body ol { list-style: decimal; } .cr-body li { margin-bottom: 4px; }
