/* ==========================================================================
   Exact Fit — Careers pages
   Loaded only on /careers/* . Reuses the site design tokens from main.css
   (--ink, --paper, --red, --warm-grey, --beige, fonts, .btn, .reveal).
   ========================================================================== */

/* Careers pages use their own sticky Apply bar instead of the sales CTA bar. */
.ef-careers .mobile-action-bar { display: none !important; }

/* --- Hero --- */
.careers-hero { padding-bottom: 56px; }
.careers-hero-grid {
	display: grid; grid-template-columns: 1.25fr 0.75fr;
	gap: 64px; align-items: center;
}
.careers-hero h1 { max-width: 16ch; }
.careers-hero .hero-sub { max-width: 56ch; }

.careers-hero-card {
	background: var(--off);
	border: 1px solid var(--line);
	border-top: 2px solid var(--red);
	border-radius: var(--radius);
	padding: 32px;
}
.careers-card-label {
	font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
	text-transform: uppercase; color: var(--red); margin: 0 0 18px;
}
.careers-card-roles { list-style: none; margin: 0 0 20px; padding: 0; }
.careers-card-roles li {
	padding: 14px 0; border-bottom: 1px solid var(--line);
	display: flex; flex-direction: column; gap: 2px;
}
.careers-card-roles li:first-child { padding-top: 0; }
.careers-card-role {
	font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--ink);
}
.careers-card-loc { font-size: 13px; color: var(--concrete); }
.careers-card-note {
	font-size: 13.5px; color: var(--grey);
	margin: 0 0 20px; line-height: 1.55;
}

/* --- Role cards --- */
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.role-card {
	background: var(--white); border: 1px solid var(--warm-grey);
	border-top: 3px solid var(--red); border-radius: var(--radius);
	padding: 36px;
	transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.role-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(17, 17, 20, 0.08); }
.role-card-title { font-size: clamp(1.3rem, 2vw, 1.65rem); margin-bottom: 10px; }
.role-card-summary { font-size: 16px; color: #3a3a3e; margin-bottom: 24px; }
.role-card-cols { display: grid; grid-template-columns: 1fr; gap: 22px; margin-bottom: 28px; }
.role-card-sub {
	font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
	color: var(--concrete); margin: 0 0 12px;
}
.role-list { list-style: none; margin: 0; padding: 0; }
.role-list li {
	position: relative; padding: 7px 0 7px 22px;
	font-size: 14.5px; line-height: 1.5; color: #4a4a4e;
}
.role-list li::before {
	content: '/'; position: absolute; left: 2px; top: 7px;
	font-family: var(--font-display); font-weight: 700; color: var(--red);
}
.role-apply { width: 100%; cursor: pointer; font-family: var(--font-body); }

/* --- Why join --- */
.why-benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-benefit {
	background: var(--white); border: 1px solid var(--warm-grey);
	border-radius: var(--radius); padding: 28px;
}
.why-benefit-num {
	font-family: var(--font-display); font-size: 14px; font-weight: 600;
	color: var(--red); letter-spacing: 0.1em;
}
.why-benefit h3 { font-size: 17px; margin: 12px 0 8px; }
.why-benefit p { font-size: 14.5px; color: #5F5E5A; margin: 0; }

/* --- Apply section --- */
.apply-head { max-width: 760px; }
.apply-time {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 13.5px; font-weight: 500; color: var(--concrete);
	background: var(--beige); border-radius: 99px; padding: 8px 16px; margin: 8px 0 0;
}
.apply-time svg { width: 16px; height: 16px; }

.apply-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: start; }
.apply-aside {
	background: var(--beige); border-radius: var(--radius); padding: 32px;
	position: sticky; top: 110px;
}
.apply-aside h3 { font-size: 19px; margin-bottom: 18px; }
.apply-checklist { list-style: none; margin: 0 0 24px; padding: 0; }
.apply-checklist li {
	position: relative; padding: 10px 0 10px 26px;
	font-size: 14.5px; line-height: 1.55; color: #4a4a4e;
	border-bottom: 1px solid rgba(17, 17, 20, 0.08);
}
.apply-checklist li::before {
	content: '/'; position: absolute; left: 2px; top: 10px;
	font-family: var(--font-display); font-weight: 700; color: var(--red);
}
.apply-aside-note p { font-size: 13.5px; color: var(--concrete); margin: 0; }

/* --- Role banner above the form --- */
.role-banner {
	display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
	background: var(--ink); color: var(--white);
	border-radius: var(--radius); padding: 16px 22px; margin-bottom: 20px;
	border-left: 3px solid var(--red);
}
.role-banner-label {
	font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em;
	text-transform: uppercase; color: var(--concrete);
}
.role-banner strong { font-family: var(--font-display); font-size: 18px; }
.role-banner-hint { font-size: 13px; color: rgba(255, 255, 255, 0.6); width: 100%; }

/* --- HubSpot form shell --- */
.hs-form-shell {
	background: var(--white); border: 1px solid var(--warm-grey);
	border-top: 4px solid var(--red); border-radius: var(--radius);
	box-shadow: 0 16px 48px rgba(17, 17, 20, 0.07);
	padding: 36px;
}
.hs-form-target { min-height: 420px; } /* reserved space — prevents layout shift */
.hs-form-target.is-ready { min-height: 0; }
.hs-form-loading {
	display: flex; align-items: center; gap: 12px;
	padding: 40px 0; color: var(--concrete); font-size: 14.5px;
}
.hs-spinner {
	width: 18px; height: 18px; border-radius: 50%;
	border: 2px solid var(--warm-grey); border-top-color: var(--red);
	animation: hs-spin 0.8s linear infinite;
}
@keyframes hs-spin { to { transform: rotate(360deg); } }

.hs-form-config {
	background: #FFF8E6; border: 1px solid #F0C765; border-radius: 6px;
	padding: 20px 22px; font-size: 14px; color: #6A4B00;
}
.hs-form-config-title { font-weight: 600; margin: 0 0 6px; }
.hs-form-config p:last-child { margin: 0; }

.hs-form-fallback { text-align: center; padding: 8px 0; }
.hs-form-fallback h3 { font-size: 20px; margin-bottom: 8px; }
.hs-form-fallback p { font-size: 15px; color: var(--concrete); max-width: 46ch; margin: 0 auto 20px; }
.hs-form-fallback-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hs-form-note { font-size: 14px; color: var(--concrete); }

/* --- HubSpot native field styling (embed renders inline, so this applies) --- */
.hs-form-target .hs-form-field { margin-bottom: 18px; }
.hs-form-target .hs-form-field > label {
	display: block; font-family: var(--font-body);
	font-size: 13px; font-weight: 600; letter-spacing: 0.03em;
	color: var(--ink); margin-bottom: 8px;
}
.hs-form-target .hs-field-desc {
	font-size: 12.5px; color: var(--concrete); margin: 4px 0 8px;
}
.hs-form-target input[type="text"],
.hs-form-target input[type="email"],
.hs-form-target input[type="tel"],
.hs-form-target input[type="number"],
.hs-form-target select,
.hs-form-target textarea {
	width: 100% !important; box-sizing: border-box;
	font-family: var(--font-body); font-size: 16px; /* 16px stops iOS zoom */
	padding: 13px 16px;
	border: 1px solid var(--warm-grey); border-radius: 6px;
	background: var(--paper); color: var(--ink);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.hs-form-target input:focus,
.hs-form-target select:focus,
.hs-form-target textarea:focus {
	outline: none; border-color: var(--red);
	box-shadow: 0 0 0 3px rgba(224, 49, 46, 0.12);
}
.hs-form-target .hs-form-booleancheckbox label,
.hs-form-target .inputs-list label {
	display: flex; align-items: flex-start; gap: 10px;
	font-size: 14.5px; font-weight: 400; color: #4a4a4e; line-height: 1.5;
}
.hs-form-target .inputs-list { list-style: none; margin: 0; padding: 0; }
.hs-form-target .inputs-list li { margin-bottom: 8px; }
.hs-form-target input[type="checkbox"],
.hs-form-target input[type="radio"] {
	width: 18px; height: 18px; margin-top: 2px; accent-color: var(--red); flex-shrink: 0;
}
.hs-form-target input[type="file"] {
	width: 100%; font-size: 14px; padding: 12px;
	border: 1px dashed var(--warm-grey); border-radius: 6px; background: var(--paper);
}
.hs-form-target .hs-button {
	display: inline-block; width: 100%;
	font-family: var(--font-body); font-size: 15px; font-weight: 600;
	padding: 15px 28px; border-radius: 6px; cursor: pointer;
	background: var(--red); color: var(--white);
	border: 1.5px solid var(--red-deep);
	transition: background 0.15s ease, transform 0.15s ease;
}
.hs-form-target .hs-button:hover { background: var(--red-deep); }
.hs-form-target .hs-button:active { transform: scale(0.99); }
.hs-form-target .hs-error-msg,
.hs-form-target .hs-main-font-element {
	font-size: 13px; color: var(--red-deep); margin-top: 6px;
}
.hs-form-target .hs-richtext { font-size: 14px; color: #4a4a4e; }
.hs-form-target .hs-richtext a { color: var(--red); }
.hs-form-target fieldset { max-width: none !important; }

/* --- Simple JD + form layout (ad landing) --- */
.jd-hero { padding: 150px 0 56px; }
.jd-hero h1 { margin-bottom: 14px; }
.jd-meta {
	display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
	font-size: 13px; font-weight: 600; letter-spacing: 0.1em;
	text-transform: uppercase; color: var(--concrete); margin: 0 0 28px;
}
.jd-meta i { color: var(--red); font-style: normal; }

.jd-section { padding-top: 64px; }
.jd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.jd-intro { font-size: 17px; line-height: 1.7; color: #3a3a3e; margin-bottom: 32px; }
.jd-heading {
	font-size: clamp(1.15rem, 1.8vw, 1.4rem);
	margin: 32px 0 14px; padding-top: 22px;
	border-top: 1px solid var(--warm-grey);
}
.jd-col .jd-heading:first-of-type { margin-top: 0; }
.jd-note {
	margin-top: 28px; padding: 16px 20px;
	background: var(--beige); border-left: 3px solid var(--red);
	font-size: 14.5px; color: #4a4a4e;
}
.jd-form-col { position: sticky; top: 100px; }
.form-title { font-size: 22px; margin-bottom: 6px; }
.form-sub { font-size: 14px; color: var(--concrete); margin-bottom: 24px; }

/* --- Native application form (Video Editor) --- */
.ef-app-form .form-row { margin-bottom: 20px; }
.ef-app-form label,
.ef-app-form legend {
	display: block; font-size: 13px; font-weight: 600;
	letter-spacing: 0.03em; color: var(--ink); margin-bottom: 8px; padding: 0;
}
.ef-app-form .req { color: var(--red); }
.ef-app-form fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.ef-app-form input[type="text"],
.ef-app-form input[type="email"],
.ef-app-form input[type="tel"],
.ef-app-form input[type="url"],
.ef-app-form select,
.ef-app-form textarea {
	width: 100%; box-sizing: border-box;
	font-family: var(--font-body); font-size: 16px; /* 16px prevents iOS zoom */
	padding: 13px 16px;
	border: 1px solid var(--warm-grey); border-radius: 6px;
	background: var(--paper); color: var(--ink);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ef-app-form input:focus,
.ef-app-form select:focus,
.ef-app-form textarea:focus {
	outline: none; border-color: var(--red);
	box-shadow: 0 0 0 3px rgba(224, 49, 46, 0.12);
}
.ef-app-form .has-error {
	border-color: var(--red-deep) !important;
	background: #FFF6F6;
}
.ef-app-form input[type="file"] {
	width: 100%; box-sizing: border-box;
	font-family: var(--font-body); font-size: 14px;
	padding: 14px; background: var(--paper);
	border: 1px dashed var(--warm-grey); border-radius: 6px; cursor: pointer;
}
.ef-app-form input[type="file"]:hover { border-color: var(--red); }
.ef-app-form input[type="file"]::file-selector-button {
	font-family: var(--font-body); font-size: 13px; font-weight: 600;
	padding: 9px 16px; margin-right: 14px; cursor: pointer;
	background: var(--ink); color: var(--white);
	border: 0; border-radius: 5px;
}
.field-help { font-size: 12.5px; color: var(--concrete); margin: 8px 0 0; line-height: 1.5; }

.form-group-label {
	font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em;
	text-transform: uppercase; color: var(--red);
	padding-top: 22px; margin: 0 0 18px;
	border-top: 1px solid var(--warm-grey);
}
.ef-app-form .form-group-label:first-of-type { padding-top: 0; border-top: 0; }

.checkbox-grid {
	display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px;
}
.check-item {
	display: flex; align-items: center; gap: 10px;
	font-size: 14.5px; font-weight: 400; color: #4a4a4e;
	padding: 9px 0; margin: 0; cursor: pointer; min-height: 44px;
}
.check-item input[type="checkbox"] {
	width: 18px; height: 18px; accent-color: var(--red); flex-shrink: 0; margin: 0;
}
.check-item span { line-height: 1.3; }

.ef-app-form .form-feedback {
	font-size: 14px; color: var(--red-deep); text-align: center;
	margin: 12px 0 0; min-height: 1em; font-weight: 500;
}
.ef-app-form #ef-app-submit { margin-top: 8px; }

/* --- Sticky mobile apply bar --- */
.careers-sticky {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
	display: none; align-items: center; justify-content: space-between; gap: 16px;
	background: var(--ink); padding: 12px 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	transform: translateY(110%); transition: transform 0.35s var(--ease);
}
.careers-sticky.is-shown { transform: translateY(0); }
.careers-sticky.is-hidden { transform: translateY(110%); }
.careers-sticky-text {
	font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--white);
}
.careers-sticky .btn { padding: 11px 22px; font-size: 14px; }

/* --- Application received --- */
.received-hero { text-align: center; padding-bottom: 120px; }
.received-inner { max-width: 720px; margin: 0 auto; }
.received-inner h1 { margin-left: auto; margin-right: auto; }
.received-inner .hero-sub { margin-left: auto; margin-right: auto; }
.received-inner .hero-ctas { justify-content: center; }
.received-mark {
	display: inline-flex; align-items: center; justify-content: center;
	width: 72px; height: 72px; border-radius: 50%;
	background: rgba(224, 49, 46, 0.12); border: 1.5px solid var(--red);
	color: var(--red); margin-bottom: 28px;
}
.received-mark svg { width: 34px; height: 34px; }
.received-note {
	font-size: 14px; color: var(--concrete);
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding-top: 20px; margin: 28px auto 32px; max-width: 46ch;
}

/* --- Focus visibility (accessibility) --- */
.careers-page a:focus-visible,
.careers-page button:focus-visible,
.hs-form-target input:focus-visible,
.hs-form-target select:focus-visible,
.hs-form-target textarea:focus-visible {
	outline: 3px solid var(--red); outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.role-card, .careers-sticky { transition: none; }
	.hs-spinner { animation: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
	.jd-grid { grid-template-columns: 1fr; gap: 40px; }
	.jd-form-col { position: static; }
	.careers-hero-grid { grid-template-columns: 1fr; gap: 40px; }
	.careers-hero-card { max-width: 520px; }
	.role-grid { grid-template-columns: 1fr; }
	.role-card-cols { grid-template-columns: 1fr 1fr; }
	.why-benefits { grid-template-columns: 1fr 1fr; }
	.apply-grid { grid-template-columns: 1fr; gap: 32px; }
	.apply-aside { position: static; }
}

@media (max-width: 768px) {
	.careers-hero { padding-top: 130px; padding-bottom: 40px; }
	.careers-hero .hero-ctas { flex-direction: column; align-items: stretch; }
	.careers-hero .hero-ctas .btn { width: 100%; }
	.careers-hero-card { padding: 24px 20px; }

	.role-card { padding: 26px 22px; }
	.role-card-cols { grid-template-columns: 1fr; gap: 18px; }
	.why-benefits { grid-template-columns: 1fr; }

	/* Form first on mobile — candidates arriving from Meta ads convert here. */
	.apply-grid { display: flex; flex-direction: column; }
	.apply-form-col { order: 1; }
	.apply-aside { order: 2; padding: 24px 20px; }

	.checkbox-grid { grid-template-columns: 1fr; }
	.jd-hero { padding: 130px 0 40px; }
	.jd-hero .btn { width: 100%; }
	.jd-section { padding-top: 40px; padding-bottom: 96px; }
	.jd-grid { grid-template-columns: 1fr; gap: 36px; }
	.jd-form-col { position: static; }
	.hs-form-shell { padding: 22px 18px; }
	.hs-form-target { min-height: 520px; }
	.careers-sticky { display: flex; }
	.received-hero { padding-bottom: 80px; }
	.received-mark { width: 60px; height: 60px; }

	/* Sticky bar must never sit on top of the final form controls. */
	.apply-section { padding-bottom: 96px; }
}
