/* ==========================================================================
   Careers — hero + one long application form, matching the real
   cybronet.in/careers content (name/phone/email/address/education/category/
   experience/skills/about/resume), grouped into modernized sections instead
   of the live site's flat WordPress field list.
   Tokens reuse this site's existing logo-derived palette:
     brand blue -> var(--brand-blue)   borders -> var(--gray-100)
     dark ink   -> var(--charcoal)     canvas  -> #fafbfd
     muted text -> var(--gray-500)     chip bg -> var(--tint)
   ========================================================================== */

/* Scroll reveal (.reveal / .is-visible) now lives globally in style.css. */

/* ==========================================================================
   Already-applied card — replaces the form entirely (not a banner above it)
   for 48h after a successful submission, so a visitor can't refill/resee the
   form. Tracked via a cookie (+ a phone-number DB check as a backstop for
   cleared cookies) in views.careers / _job_already_applied_at.
   ========================================================================== */
.applied-card {
	max-width: 560px;
	margin: clamp(40px, 7vw, 64px) auto 0;
	padding: 40px 32px;
	text-align: center;
	background: var(--white);
	border: 1px solid var(--gray-100);
	border-radius: 16px;
	box-shadow: 0 20px 48px rgba(9, 38, 122, .08);
}
.applied-card__emoji { font-size: 40px; line-height: 1; display: block; margin-bottom: 16px; }
.applied-card__title {
	font-family: var(--font-manrope);
	font-size: clamp(22px, 3.4vw, 28px);
	font-weight: 800;
	color: var(--charcoal);
	margin: 0 0 12px;
}
.applied-card__body {
	font-size: 15px;
	line-height: 1.6;
	color: var(--charcoal);
	margin: 0 0 10px;
}
.applied-card__note {
	font-size: 13.5px;
	font-style: italic;
	color: var(--gray-500);
	margin: 0;
}

/* ==========================================================================
   Hero — single full-bleed image, faded toward brand navy on scroll
   (see careers-hero-fade.js). No overlay text: the page's own sr-only
   <h1> right below carries the heading for screen readers/SEO.
   ========================================================================== */
.careers-hero {
	position: relative;
	width: 100%;
	margin: 0;
	padding: 0;
	background: #001b42;
	overflow: hidden;
	height: clamp(260px, 34vw, 560px);
}

.careers-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	will-change: opacity;
}

@media (max-width: 768px) {
	.careers-hero { height: clamp(180px, 46vw, 300px); }
	.careers-hero__img { object-position: center; }
}

/* ==========================================================================
   Step wizard — 4 numbered circles connected by a line. Pristine = gray
   outline + number. Active = blue outline + number (you are here). Done =
   solid blue fill + checkmark (no number), and the connector after it fills
   solid blue too. Driven entirely by careers.js toggling .is-active/.is-done.
   ========================================================================== */
.wizard-steps {
	display: flex;
	align-items: flex-start;
	max-width: 560px;
	margin: 20px auto 0;
	padding: 0;
	list-style: none;
}
.wizard-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	width: 84px;
}
.wizard-step__circle {
	position: relative;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 2px solid var(--gray-100);
	background: var(--white);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-manrope);
	font-size: 14px;
	font-weight: 700;
	color: var(--gray-500);
	transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}
.wizard-step__check { width: 16px; height: 16px; fill: #fff; display: none; }
.wizard-step__label {
	font-family: var(--font-manrope);
	font-size: 12px;
	font-weight: 600;
	color: var(--gray-500);
	text-align: center;
}
.wizard-step.is-active .wizard-step__circle {
	border-color: var(--brand-blue);
	color: var(--brand-blue);
}
.wizard-step.is-active .wizard-step__label { color: var(--brand-blue); }
.wizard-step.is-done .wizard-step__circle {
	background: var(--brand-blue);
	border-color: var(--brand-blue);
}
.wizard-step.is-done .wizard-step__num { display: none; }
.wizard-step.is-done .wizard-step__check { display: block; }
.wizard-step.is-done .wizard-step__label { color: var(--charcoal); }

.wizard-connector {
	flex: 1 1 auto;
	height: 2px;
	background: var(--gray-100);
	margin-top: 17px;
	transition: background 180ms ease;
}
.wizard-connector.is-done { background: var(--brand-blue); }

@media (max-width: 480px) {
	.wizard-step { width: 60px; }
	.wizard-step__label { font-size: 11px; }
}

/* ==========================================================================
   Form page
   ========================================================================== */
.careers-form-page { background: var(--white); padding: 0 20px clamp(56px, 8vw, 96px); }
.careers-form-page__container { max-width: 720px; margin: 0 auto; }
.careers-form-page__heading {
	font-family: var(--font-manrope);
	font-size: clamp(26px, 4vw, 34px);
	font-weight: 800;
	color: var(--charcoal);
	text-align: center;
	margin: clamp(40px, 7vw, 64px) 0 24px;
}

.careers-form { display: flex; flex-direction: column; gap: 16px; }

.wizard-panel {
	background: var(--white);
	border: 1px solid var(--gray-100);
	border-radius: 14px;
	padding: 20px 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.wizard-panel[hidden] { display: none; }
.wizard-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 2px;
}
.wizard-btn {
	height: 40px;
	padding: 0 24px;
	border-radius: 8px;
	font-family: var(--font-manrope);
	font-size: 14px;
	font-weight: 700;
	transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.wizard-btn--next {
	background: var(--brand-blue);
	color: #fff;
	border: none;
	margin-left: auto;
}
.wizard-btn--next:hover { background: var(--blue-dark); }
.wizard-btn--back {
	background: none;
	border: 1px solid var(--gray-100);
	color: var(--gray-500);
}
.wizard-btn--back:hover { border-color: var(--brand-blue); color: var(--brand-blue); }

.field-hint {
	margin: -6px 0 0;
	font-size: 12.5px;
	color: var(--gray-500);
}

.other-toggle {
	align-self: flex-start;
	background: none;
	border: none;
	padding: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--brand-blue);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.other-toggle:hover { color: var(--blue-dark); }
.other-field { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.other-field[hidden] { display: none; }
.other-field label { font-family: var(--font-manrope); font-size: 13.5px; font-weight: 700; color: var(--charcoal); }
.careers-form__error {
	background: #FDECEC;
	border: 1px solid #E8A5A5;
	color: #9A2C2C;
	border-radius: 8px;
	padding: 12px 16px;
	font-size: 14px;
	font-weight: 600;
}

.careers-form-section__title {
	font-family: var(--font-manrope);
	font-size: 17px;
	font-weight: 700;
	color: var(--charcoal);
	margin: 0;
}

.careers-form__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.careers-form__grid-span2 { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 5px; }
.field label {
	font-family: var(--font-manrope);
	font-size: 13.5px;
	font-weight: 700;
	color: var(--charcoal);
}
.field input, .field textarea, .field select {
	height: 40px;
	border-radius: 8px;
	border: 1px solid var(--gray-100);
	background: var(--white);
	padding: 0 12px;
	font-size: 15px;
	font-family: var(--font);
	color: var(--charcoal);
}
.field textarea { height: auto; padding: 10px 12px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
	outline: none;
	border-color: var(--brand-blue);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-blue) 14%, transparent);
}
@media (max-width: 480px) {
	.field input, .field textarea, .field select { font-size: 16px; }
}

.phone-input {
	display: flex;
	align-items: center;
	height: 40px;
	border-radius: 8px;
	border: 1px solid var(--gray-100);
	background: var(--white);
	padding: 0 12px;
	gap: 8px;
}
.phone-input:focus-within {
	border-color: var(--brand-blue);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-blue) 14%, transparent);
}
.phone-input__prefix { font-size: 15px; font-weight: 600; color: var(--gray-500); }
.phone-input input { flex: 1; height: 100%; border: 0; padding: 0; box-shadow: none !important; }
.phone-input input:focus { outline: none; }

/* ==========================================================================
   Skills — native checkboxes styled as toggleable pill chips (hidden input +
   sibling label), the concrete "modernized" upgrade over the live site's
   plain checkbox list.
   ========================================================================== */
.skill-group + .skill-group { margin-top: 4px; }
.skill-group__label {
	display: block;
	font-family: var(--font-manrope);
	font-size: 13px;
	font-weight: 600;
	color: var(--gray-500);
	margin-bottom: 10px;
}
.skill-chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid var(--gray-100);
	background: var(--white);
	font-size: 13px;
	color: var(--gray-500);
	cursor: pointer;
	transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.skill-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.skill-chip:has(input:checked) {
	background: var(--tint);
	border-color: var(--brand-blue);
	color: var(--blue-dark);
	font-weight: 600;
}
.skill-chip:has(input:focus-visible) { outline: 2px solid var(--brand-blue); outline-offset: 2px; }

.careers-form__file { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.careers-form__file input[type="file"] {
	height: auto;
	border: 1px dashed var(--gray-100);
	padding: 10px 12px;
	font-size: 13px;
	flex: 1;
	min-width: 180px;
}
.careers-form__file-name { font-size: 13px; color: var(--gray-500); }
.careers-form__file-hint { font-size: 12px; color: var(--gray-500); margin: 0; }

.field-error { font-size: 13px; color: #C13333; margin: 0; }

.careers-form__submit {
	width: 100%;
	height: 48px;
	font-size: 15px;
	font-weight: 600;
}

@media (max-width: 640px) {
	.careers-form__grid { grid-template-columns: 1fr; }
	.careers-form__grid-span2 { grid-column: auto; }
	.wizard-panel { padding: 22px 18px; }
}

/* ==========================================================================
   Desktop refinements (>=1024px only — every block above is max-width, so
   the phone/tablet scale is untouched). Sizes only; no layout changes.
   ========================================================================== */
@media (min-width: 1024px) {
	.careers-form-page__heading { font-size: clamp(30px, calc(4vw + 4px), 38px); }
	.careers-form-section__title { font-size: 20px; }
	.applied-card__title { font-size: clamp(26px, calc(3.4vw + 4px), 32px); }
	.applied-card__body { font-size: 17px; }
	.applied-card__note { font-size: 15.5px; }
	.wizard-step__circle { font-size: 16px; }
	.wizard-step__label { font-size: 14px; }
	.field label { font-size: 15.5px; }
	.field input, .field textarea, .field select { font-size: 17px; }
	.other-field label { font-size: 15.5px; }
	.other-toggle { font-size: 15px; }
	.field-hint { font-size: 14.5px; }
	.skill-group__label { font-size: 15px; }
	.skill-chip { font-size: 15px; }
	.phone-input__prefix { font-size: 17px; }
	.careers-form__error { font-size: 16px; }
	.careers-form__file input[type="file"] { font-size: 15px; }
	.careers-form__file-name { font-size: 15px; }
	.careers-form__file-hint { font-size: 14px; }
	.field-error { font-size: 15px; }
	.careers-form__submit { font-size: 17px; }
	.wizard-btn { font-size: 16px; }
}
