/**
 * VIBES Careers page — layout and form styles.
 * Uses shared tokens from brand.css and site.css.
 */

/* ── Outline button (careers-only; complements site.css primary) ── */
.vibes-careers .vibes-btn--outline {
	background: transparent;
	color: var(--vibes-gold);
	border: 2px solid var(--vibes-gold);
}

.vibes-careers .vibes-btn--outline:hover {
	background: var(--vibes-gold);
	color: var(--vibes-white);
}

.vibes-careers .vibes-btn--large {
	padding: 1rem 2.5rem;
	font-size: 0.85rem;
}

.vibes-careers .vibes-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ── Section titles ── */
.vibes-careers-section-title {
	font-family: var(--vibes-font-display);
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 400;
	line-height: 1.15;
	color: var(--vibes-dark);
	margin: 0 0 1rem;
	text-align: center;
}

.vibes-careers-section-title--light {
	color: var(--vibes-white);
}

/* ── Hero (matches services page pattern) ── */
.vibes-careers-hero {
	position: relative;
	min-height: clamp(320px, 52vh, 520px);
	display: flex;
	align-items: center;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.vibes-careers-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(0, 0, 0, 0.62) 0%, rgba(65, 65, 65, 0.45) 100%);
}

.vibes-careers-hero__inner {
	position: relative;
	z-index: 1;
	padding: 5.5rem 0;
	text-align: center;
	color: var(--vibes-white);
}

.vibes-careers-hero__title {
	font-family: var(--vibes-font-display);
	font-size: clamp(2.25rem, 5vw, 3.75rem);
	font-weight: 400;
	line-height: 1.1;
	margin: 0 0 1rem;
}

.vibes-careers-hero__text {
	max-width: 52ch;
	margin: 0 auto 1.75rem;
	font-size: 1.05rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.9);
}

/* ── Intro ── */
.vibes-careers-intro {
	padding: 4.5rem 0;
	background: var(--vibes-white);
	text-align: center;
}

.vibes-careers-intro__tagline {
	font-family: var(--vibes-font-display);
	font-size: clamp(1.25rem, 2.5vw, 1.5rem);
	color: var(--vibes-gold-dark);
	margin: 0 0 1.5rem;
}

.vibes-careers-intro__copy {
	max-width: 760px;
	margin: 0 auto;
	text-align: left;
}

.vibes-careers-intro__copy p {
	margin: 0 0 1rem;
	font-size: 1.0625rem;
	line-height: 1.75;
	color: rgba(65, 65, 65, 0.92);
}

.vibes-careers-intro__copy p:last-child {
	margin-bottom: 0;
}

/* ── Opportunities ── */
.vibes-careers-opportunities {
	padding: 4.5rem 0;
	background: var(--vibes-gray-100);
}

.vibes-careers-opportunities .vibes-careers-section-title {
	margin-bottom: 2.5rem;
}

.vibes-careers-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
	gap: 1.5rem;
}

.vibes-careers-card {
	display: flex;
	flex-direction: column;
	background: var(--vibes-white);
	border: 1px solid var(--vibes-gray-200);
	border-radius: var(--vibes-radius);
	box-shadow: var(--vibes-shadow);
	overflow: hidden;
	transition: transform var(--vibes-transition), box-shadow var(--vibes-transition);
}

.vibes-careers-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.vibes-careers-card__content {
	flex: 1;
	padding: 1.5rem 1.5rem 1rem;
}

.vibes-careers-card__title {
	font-family: var(--vibes-font-display);
	font-size: 1.35rem;
	font-weight: 500;
	color: var(--vibes-dark);
	margin: 0 0 0.75rem;
	line-height: 1.25;
}

.vibes-careers-card__desc {
	font-size: 0.925rem;
	line-height: 1.65;
	color: rgba(65, 65, 65, 0.88);
	margin: 0;
}

.vibes-careers-card__footer {
	padding: 1rem 1.5rem 1.5rem;
	border-top: 1px solid var(--vibes-gray-200);
	background: var(--vibes-gray-100);
}

.vibes-careers-card__apply {
	width: 100%;
	font-size: 0.72rem;
}

/* ── Staff callout (matches services CTA band) ── */
.vibes-careers-callout {
	background: var(--vibes-dark);
	color: var(--vibes-white);
	text-align: center;
	padding: 4rem 0;
}

.vibes-careers-callout p {
	max-width: 46ch;
	margin: 0 auto 1rem;
	color: rgba(255, 255, 255, 0.82);
	line-height: 1.7;
	font-size: 1.0625rem;
}

.vibes-careers-callout p:last-child {
	margin-bottom: 0;
}

/* ── Application form (original single-box layout) ── */
.vc-form-section {
	padding: 4.5rem 0 5rem;
	background: var(--vibes-gray-100);
}

.vc-form-section .vc-section-title {
	font-family: var(--vibes-font-display);
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 600;
	color: var(--vibes-dark);
	margin: 0 0 0.5rem;
	text-align: center;
}

.vc-form-intro {
	text-align: center;
	margin: 0 0 2rem;
	color: rgba(65, 65, 65, 0.75);
	font-size: 0.9rem;
}

.vc-form-section .vc-form {
	background: var(--vibes-white);
	border-radius: var(--vibes-radius);
	box-shadow: var(--vibes-shadow);
	padding: 2.5rem;
}

.vc-form-section .vc-fieldset {
	border: none;
	margin: 0 0 2.5rem;
	padding: 0 0 2rem;
	border-bottom: 1px solid var(--vibes-gray-200);
	background: transparent;
	box-shadow: none;
	border-radius: 0;
}

.vc-form-section .vc-fieldset:last-of-type {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.vc-form-section .vc-fieldset legend {
	font-family: var(--vibes-font-display);
	font-size: 1.375rem;
	font-weight: 600;
	color: var(--vibes-dark);
	padding: 0;
	margin-bottom: 1.25rem;
	width: 100%;
}

.vc-form-section .vc-form-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.25rem;
}

.vc-form-section .vc-field {
	margin-bottom: 1.25rem;
}

.vc-form-section .vc-field:last-child {
	margin-bottom: 0;
}

.vc-form-section .vc-field--half {
	max-width: 280px;
}

.vc-form-section .vc-field--highlight {
	background: var(--vibes-gray-100);
	padding: 1.25rem;
	border-radius: var(--vibes-radius);
	border-left: 4px solid var(--vibes-gold);
}

.vc-form-section .vc-field label,
.vc-form-section .vc-label {
	display: block;
	font-family: var(--vibes-font-body);
	font-size: 0.875rem;
	font-weight: 500;
	margin-bottom: 0.5rem;
	color: var(--vibes-dark);
}

.vc-form-section .vc-required {
	color: var(--vibes-gold);
}

.vc-form-section .vc-field-hint {
	font-size: 0.875rem;
	color: rgba(65, 65, 65, 0.7);
	margin: -0.5rem 0 1rem;
}

.vc-form-section .vc-field input[type="text"],
.vc-form-section .vc-field input[type="email"],
.vc-form-section .vc-field input[type="tel"],
.vc-form-section .vc-field input[type="url"],
.vc-form-section .vc-field input[type="date"],
.vc-form-section .vc-field select,
.vc-form-section .vc-field textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	font-family: var(--vibes-font-body);
	font-size: 0.9375rem;
	border: 1px solid var(--vibes-gray-200);
	border-radius: var(--vibes-radius);
	background: var(--vibes-white);
	color: var(--vibes-dark);
	transition: border-color var(--vibes-transition), box-shadow var(--vibes-transition);
}

.vc-form-section .vc-field input:focus,
.vc-form-section .vc-field select:focus,
.vc-form-section .vc-field textarea:focus {
	outline: none;
	border-color: var(--vibes-gold);
	box-shadow: 0 0 0 3px rgba(197, 157, 95, 0.2);
}

.vc-form-section .vc-field input.vc-invalid,
.vc-form-section .vc-field select.vc-invalid,
.vc-form-section .vc-field textarea.vc-invalid,
.vc-form-section .vc-dropzone.vc-invalid {
	border-color: #c0392b;
}

.vc-form-section .vc-field-error {
	color: #c0392b;
	font-size: 0.8125rem;
	margin-top: 0.35rem;
}

.vc-form-section .vc-checkbox-group,
.vc-form-section .vc-radio-group {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
}

.vc-form-section .vc-checkbox-group label,
.vc-form-section .vc-radio-group label,
.vc-form-section .vc-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 0.9375rem;
	font-weight: 400;
	cursor: pointer;
	margin-bottom: 0;
}

.vc-form-section .vc-checkbox-group--wrap {
	gap: 0.5rem 1.25rem;
}

.vc-form-section .vc-checkbox-group--days {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.5rem;
}

.vc-form-section .vc-checkbox-label {
	margin-bottom: 0.75rem;
}

.vc-form-section .vc-checkbox-label a {
	color: var(--vibes-gold-dark);
	text-decoration: underline;
}

.vc-form-section .vc-checkbox-label a:hover {
	color: var(--vibes-gold);
}

/* Form buttons */
.vc-form-section .vc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.875rem 2rem;
	font-family: var(--vibes-font-body);
	font-size: 0.875rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	border: 2px solid transparent;
	border-radius: var(--vibes-radius);
	cursor: pointer;
	text-decoration: none;
	transition: all var(--vibes-transition);
}

.vc-form-section .vc-btn--primary {
	background: var(--vibes-gold);
	color: var(--vibes-white);
	border-color: var(--vibes-gold);
}

.vc-form-section .vc-btn--primary:hover {
	background: var(--vibes-gold-dark);
	border-color: var(--vibes-gold-dark);
	color: var(--vibes-white);
}

.vc-form-section .vc-btn--outline {
	background: transparent;
	color: var(--vibes-gold);
	border-color: var(--vibes-gold);
}

.vc-form-section .vc-btn--outline:hover {
	background: var(--vibes-gold);
	color: var(--vibes-white);
}

.vc-form-section .vc-btn--large {
	padding: 1.125rem 2.5rem;
	font-size: 0.9375rem;
}

.vc-form-section .vc-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Dropzones */
.vc-form-section .vc-dropzone {
	border: 2px dashed var(--vibes-gray-200);
	border-radius: var(--vibes-radius);
	padding: 2rem;
	text-align: center;
	background: var(--vibes-gray-100);
	transition: border-color var(--vibes-transition), background var(--vibes-transition);
	cursor: pointer;
}

.vc-form-section .vc-dropzone:hover,
.vc-form-section .vc-dropzone.vc-dragover {
	border-color: var(--vibes-gold);
	background: rgba(197, 157, 95, 0.08);
}

.vc-form-section .vc-dropzone.vc-has-file {
	border-style: solid;
	border-color: var(--vibes-gold);
	background: rgba(197, 157, 95, 0.05);
}

.vc-form-section .vc-dropzone__icon {
	font-size: 2rem;
	display: block;
	margin-bottom: 0.5rem;
}

.vc-form-section .vc-dropzone__title {
	font-weight: 500;
	margin: 0 0 0.25rem;
}

.vc-form-section .vc-dropzone__hint {
	font-size: 0.8125rem;
	color: rgba(65, 65, 65, 0.7);
	margin: 0 0 1rem;
}

.vc-form-section .vc-dropzone__filename {
	margin: 1rem 0 0;
	font-size: 0.875rem;
	color: var(--vibes-gold-dark);
	font-weight: 500;
}

.vc-form-section .vc-dropzone__filelist {
	list-style: none;
	padding: 0;
	margin: 1rem 0 0;
	text-align: left;
	font-size: 0.875rem;
}

.vc-form-section .vc-dropzone__filelist li {
	padding: 0.35rem 0;
	border-bottom: 1px solid var(--vibes-gray-200);
}

/* Alerts */
.vc-form-section .vc-alert {
	padding: 1rem 1.25rem;
	border-radius: var(--vibes-radius);
	margin-bottom: 1.5rem;
	font-size: 0.9375rem;
}

.vc-alert--success {
	background: rgba(39, 174, 96, 0.12);
	color: #27ae60;
	border: 1px solid #27ae60;
}

.vc-alert--error {
	background: rgba(192, 57, 43, 0.1);
	color: #c0392b;
	border: 1px solid #c0392b;
}

/* Form actions */
.vc-form-section .vc-form-actions {
	text-align: center;
	padding-top: 1.5rem;
}

.vc-form-section .vc-agreements .vc-field {
	margin-bottom: 0.75rem;
}

.vc-form-section .vc-agreements .vc-field:last-child {
	margin-bottom: 0;
}

/* Conditional sections */
.vc-conditional[hidden] {
	display: none !important;
}

/* ── Responsive ── */
@media (max-width: 767px) {
	.vibes-careers-hero__inner {
		padding: 4rem 0;
	}

	.vibes-careers-intro,
	.vibes-careers-opportunities,
	.vibes-careers-callout,
	.vc-form-section {
		padding: 3rem 0;
	}

	.vc-form-section .vc-form {
		padding: 1.5rem;
	}

	.vc-form-section .vc-form-grid {
		grid-template-columns: 1fr;
	}

	.vc-form-section .vc-checkbox-group--days {
		grid-template-columns: repeat(2, 1fr);
	}

	.vc-form-section .vc-field--half {
		max-width: none;
	}
}

@media (max-width: 480px) {
	.vc-form-section .vc-checkbox-group--days {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vibes-careers-card {
		transition: none;
	}
}
