/* =========================================================
   CGH Job Application Form — mobile-first multi-step
   Scoped to .cgh-job-app-wrap — inherits site fonts/colors
   ========================================================= */

.cgh-job-app-wrap {
	max-width: 520px;
	margin: 0 auto;
	padding: 0 0 2.5rem;
	box-sizing: border-box;
}

/* ----- Progress bar ----- */
.cgh-progress-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 1.75rem;
}
.cgh-progress-bar {
	flex: 1;
	height: 6px;
	background: rgba(0,0,0,0.1);
	border-radius: 99px;
	overflow: hidden;
}
.cgh-progress-fill {
	height: 100%;
	background: #2d6a2d;
	border-radius: 99px;
	width: 0%;
	transition: width 0.35s ease;
}
.cgh-progress-label {
	font-size: 0.78rem;
	color: rgba(0,0,0,0.45);
	white-space: nowrap;
}

/* ----- Steps ----- */
.cgh-step {
	animation: cgh-fadein 0.22s ease;
}
@keyframes cgh-fadein {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

.cgh-step-eyebrow {
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.45;
	margin: 0 0 0.35rem;
}
.cgh-step-icon {
	font-size: 2.4rem;
	margin-bottom: 0.6rem;
}
.cgh-step-title {
	font-size: 1.55rem;
	font-weight: 700;
	margin: 0 0 0.55rem;
	line-height: 1.25;
}
.cgh-step-body {
	font-size: 0.97rem;
	line-height: 1.65;
	margin: 0 0 1.4rem;
	opacity: 0.8;
}

/* Callout box */
.cgh-callout {
	border-left: 4px solid currentColor;
	padding: 0.9rem 1rem;
	background: rgba(0,0,0,0.04);
	border-radius: 0 6px 6px 0;
	margin-bottom: 1.6rem;
}
.cgh-callout-heading {
	font-weight: 700;
	font-size: 0.95rem;
	margin: 0 0 0.35rem;
}
.cgh-callout-body {
	font-size: 0.92rem;
	line-height: 1.6;
	margin: 0;
}

/* ----- Fields ----- */
.cgh-field {
	margin-bottom: 1.2rem;
}
.cgh-label {
	display: block;
	font-size: 0.9rem;
	font-weight: 600;
	margin-bottom: 0.4rem;
	line-height: 1.4;
}
.cgh-req  { color: #c0392b; }
.cgh-optional {
	font-weight: 400;
	opacity: 0.55;
	font-size: 0.82rem;
}
.cgh-hint {
	font-size: 0.8rem;
	opacity: 0.55;
	margin: 0.3rem 0 0;
}

.cgh-input,
.cgh-textarea {
	width: 100%;
	box-sizing: border-box;
	font-family: inherit;
	font-size: 1rem;
	padding: 12px 14px;
	border: 1.5px solid rgba(0,0,0,0.18);
	border-radius: 8px;
	background: #fff;
	color: inherit;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.cgh-input:focus,
.cgh-textarea:focus {
	outline: none;
	border-color: #2d6a2d;
	box-shadow: 0 0 0 3px rgba(45,106,45,0.15);
}
.cgh-input.cgh-error,
.cgh-textarea.cgh-error {
	border-color: #c0392b;
	box-shadow: 0 0 0 3px rgba(192,57,43,0.1);
}
.cgh-textarea {
	resize: vertical;
	min-height: 100px;
	line-height: 1.55;
}

/* ----- Chip-style checkboxes ----- */
.cgh-chipgroup {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 6px;
}
.cgh-chip {
	display: flex;
	align-items: center;
	cursor: pointer;
}
.cgh-chip input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}
.cgh-chip span {
	display: inline-flex;
	align-items: center;
	padding: 9px 16px;
	border: 1.5px solid rgba(0,0,0,0.18);
	border-radius: 99px;
	font-size: 0.9rem;
	background: #fff;
	transition: background 0.12s, border-color 0.12s, color 0.12s;
	user-select: none;
	-webkit-user-select: none;
	white-space: nowrap;
}
.cgh-chip:hover span {
	border-color: #2d6a2d;
	background: rgba(45,106,45,0.05);
}
.cgh-chip input:checked + span {
	background: #2d6a2d;
	border-color: #2d6a2d;
	color: #fff;
}
/* 3-column chip row for Call/Text/Email */
.cgh-chipgroup--3 {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 8px;
}
.cgh-chipgroup--3 .cgh-chip {
	display: block;
}
.cgh-chipgroup--3 .cgh-chip span {
	width: 100%;
	box-sizing: border-box;
	justify-content: center;
	border-radius: 8px;
	padding: 12px 8px;
	font-size: 0.88rem;
	text-align: center;
}

/* ----- File upload ----- */
.cgh-file-wrap {
	position: relative;
	cursor: pointer;
}
.cgh-file-input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
	z-index: 2;
}
.cgh-file-display {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border: 1.5px dashed rgba(0,0,0,0.22);
	border-radius: 8px;
	background: rgba(0,0,0,0.02);
	font-size: 0.95rem;
	transition: border-color 0.15s, background 0.15s;
}
.cgh-file-wrap:hover .cgh-file-display,
.cgh-file-wrap:focus-within .cgh-file-display {
	border-color: #2d6a2d;
	background: rgba(45,106,45,0.04);
}
.cgh-file-icon { font-size: 1.2rem; flex-shrink: 0; }
.cgh-file-label { opacity: 0.55; }
.cgh-file-label.has-file { opacity: 1; font-weight: 600; }

/* ----- Inline validation message ----- */
.cgh-inline-msg {
	background: #fdf0f0;
	border: 1px solid #f5c6c6;
	color: #8b1a1a;
	border-radius: 6px;
	padding: 10px 14px;
	font-size: 0.88rem;
	margin-bottom: 1rem;
}

/* ----- Navigation row ----- */
.cgh-nav {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 1.6rem;
}
.cgh-btn-back {
	background: none;
	border: 1.5px solid rgba(0,0,0,0.18);
	border-radius: 8px;
	padding: 12px 18px;
	font-family: inherit;
	font-size: 0.95rem;
	cursor: pointer;
	color: inherit;
	transition: border-color 0.15s, background 0.15s;
	white-space: nowrap;
}
.cgh-btn-back:hover {
	border-color: rgba(0,0,0,0.35);
	background: rgba(0,0,0,0.04);
}
.cgh-btn-primary {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: #2d6a2d;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 14px 20px;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s, transform 0.1s;
	min-height: 48px;
}
.cgh-btn-primary:hover  { background: #1a3d1a; }
.cgh-btn-primary:active { transform: scale(0.98); }
.cgh-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

/* Get started button — full width on step 0 */
.cgh-step[data-step="0"] .cgh-btn-primary {
	width: 100%;
	margin-top: 0.5rem;
}

/* Spinner */
.cgh-submit-spinner {
	display: inline-block;
	animation: cgh-spin 0.75s linear infinite;
}
@keyframes cgh-spin { to { transform: rotate(360deg); } }

/* ----- Success screen ----- */
.cgh-success {
	text-align: center;
	padding: 2.5rem 1rem 1rem;
	animation: cgh-fadein 0.3s ease;
}
.cgh-success-icon  { font-size: 3.2rem; margin-bottom: 0.75rem; }
.cgh-success-title { font-size: 1.7rem; font-weight: 700; margin-bottom: 0.5rem; }
.cgh-success-body  { font-size: 1.05rem; opacity: 0.75; line-height: 1.6; }
.cgh-success-divider { border: none; border-top: 1px solid rgba(0,0,0,0.1); margin: 1.5rem 0; }
.cgh-success-footer { font-size: 0.9rem; opacity: 0.6; line-height: 1.65; }

/* ----- Responsive tweaks ----- */
@media (max-width: 380px) {
	.cgh-step-title { font-size: 1.35rem; }
	.cgh-btn-primary { font-size: 0.95rem; }
	.cgh-chipgroup--3 .cgh-chip span { font-size: 0.82rem; padding: 11px 6px; }
}
