/**
 * Job Manager — front-end styles.
 * Scoped under .jm to avoid clashing with theme styles. Uses system fonts by
 * default (fast, no external requests). Respects prefers-reduced-motion.
 */

.jm {
	--jm-bg: #f5f5fc;
	--jm-surface: #ffffff;
	--jm-navy: #15132e;
	--jm-navy-2: #24224a;
	--jm-text: #4a4a63;
	--jm-muted: #8a8aa0;
	--jm-accent: #f5333f;
	--jm-accent-2: #ff5e3a;
	--jm-border: #ececf5;
	--jm-chip: #f4f4fb;
	--jm-radius: 18px;
	--jm-radius-sm: 12px;
	--jm-shadow: 0 12px 30px rgba(20, 18, 50, 0.06);
	--jm-shadow-hover: 0 18px 44px rgba(20, 18, 50, 0.12);

	box-sizing: border-box;
	color: var(--jm-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.55;
}

.jm *,
.jm *::before,
.jm *::after {
	box-sizing: border-box;
}

.jm .jm-icon {
	width: 1em;
	height: 1em;
	flex: 0 0 auto;
	fill: currentColor;
	vertical-align: middle;
}

/* ---------------------------------------------------------------- Buttons */
.jm-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	font-size: 14px;
	line-height: 1;
	border-radius: 999px;
	padding: 12px 20px;
	cursor: pointer;
	text-decoration: none;
	border: 1.5px solid transparent;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
	white-space: nowrap;
}

.jm-btn:focus-visible {
	outline: 3px solid rgba(245, 51, 63, 0.4);
	outline-offset: 2px;
}

.jm-btn--ghost {
	background: transparent;
	color: var(--jm-navy);
	border-color: var(--jm-border);
	padding: 10px 16px;
}

.jm-btn--ghost:hover {
	border-color: var(--jm-accent);
	color: var(--jm-accent);
	transform: translateY(-1px);
}

.jm-btn--primary {
	background: linear-gradient(135deg, var(--jm-accent) 0%, var(--jm-accent-2) 100%);
	color: #fff;
	box-shadow: 0 10px 24px rgba(245, 51, 63, 0.28);
}

.jm-btn--primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 30px rgba(245, 51, 63, 0.36);
	color: #fff;
}

.jm-btn--lg {
	padding: 15px 28px;
	font-size: 15px;
}

/* ------------------------------------------------------------- Logo bubble */
.jm-logo {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	overflow: hidden;
	background: linear-gradient(135deg, var(--jm-g1, #8b5cf6), var(--jm-g2, #ec4899));
	color: #fff;
	font-weight: 700;
}

.jm-logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.jm-logo__initials {
	font-size: 15px;
	letter-spacing: 0.5px;
}

.jm-logo--lg {
	width: 72px;
	height: 72px;
}

.jm-logo--lg .jm-logo__initials {
	font-size: 22px;
}

/* -------------------------------------------------------------------- Grid */
.jm-grid {
	display: grid;
	grid-template-columns: repeat(var(--jm-cols, 3), minmax(0, 1fr));
	gap: 22px;
}

/* -------------------------------------------------------------------- Card */
.jm-card {
	position: relative;
	background: var(--jm-surface);
	border: 1px solid var(--jm-border);
	border-radius: var(--jm-radius);
	padding: 24px;
	display: flex;
	flex-direction: column;
	box-shadow: var(--jm-shadow);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	overflow: hidden;
}

.jm-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--jm-shadow-hover);
	border-color: #dedeef;
}

.jm-card--featured::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--jm-accent), var(--jm-accent-2));
}

.jm-card__head {
	display: flex;
	align-items: center;
	gap: 14px;
}

.jm-card__org {
	min-width: 0;
	flex: 1 1 auto;
}

.jm-card__head .jm-chip--featured {
	align-self: flex-start;
	flex: 0 0 auto;
}

.jm-card__company {
	display: block;
	font-weight: 700;
	color: var(--jm-navy);
	font-size: 16px;
	text-decoration: none;
	line-height: 1.3;
}

.jm-card__company:hover {
	color: var(--jm-accent);
}

.jm-card__location {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--jm-muted);
	font-size: 13px;
	margin-top: 2px;
}

.jm-card__location .jm-icon {
	color: var(--jm-accent);
	font-size: 14px;
}

.jm-card__divider {
	height: 1px;
	background: var(--jm-border);
	margin: 18px 0;
}

.jm-card__title {
	font-weight: 600;
	color: var(--jm-navy);
	font-size: 17px;
	text-decoration: none;
	line-height: 1.35;
}

.jm-card__title:hover {
	color: var(--jm-accent);
}

/* Chips (job type, experience, featured) */
.jm-card__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.jm-chip {
	display: inline-flex;
	align-items: center;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--jm-chip);
	color: var(--jm-text);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
}

.jm-chip--featured {
	background: rgba(245, 51, 63, 0.1);
	color: var(--jm-accent);
}

.jm-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 20px;
	flex-wrap: wrap;
}

.jm-card__meta-col {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.jm-card__salary {
	color: var(--jm-navy);
	font-weight: 700;
	font-size: 14.5px;
	font-variant-numeric: tabular-nums;
}

.jm-card__foot .jm-btn {
	flex: 0 0 auto;
}

.jm-card__meta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--jm-muted);
	font-size: 13px;
}

.jm-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--jm-accent);
	display: inline-block;
}

/* --------------------------------------------------------------- Featured */
.jm-featured {
	background: var(--jm-bg);
	padding: 36px;
	border-radius: 26px;
}

.jm-featured__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 28px;
}

.jm-eyebrow {
	color: var(--jm-accent);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	margin: 0 0 8px;
}

.jm-featured__title {
	color: var(--jm-navy);
	font-size: clamp(26px, 3.4vw, 38px);
	font-weight: 800;
	line-height: 1.12;
	margin: 0;
}

.jm-featured__more {
	display: flex;
	justify-content: center;
	margin-top: 32px;
}

/* ---------------------------------------------------------------- Listing */
.jm-listing {
	background: transparent;
}

.jm-searchbar {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--jm-surface);
	border: 1px solid var(--jm-border);
	border-radius: 999px;
	padding: 8px;
	box-shadow: var(--jm-shadow);
	margin-bottom: 28px;
	flex-wrap: wrap;
}

.jm-searchbar__field {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1 1 180px;
	padding: 6px 14px;
	color: var(--jm-muted);
	border-right: 1px solid var(--jm-border);
	min-width: 0;
}

.jm-searchbar__field:last-of-type {
	border-right: 0;
}

.jm-searchbar__field .jm-icon {
	color: var(--jm-muted);
	font-size: 18px;
}

.jm-searchbar input,
.jm-searchbar select {
	border: 0;
	background: transparent;
	font-size: 14px;
	color: var(--jm-navy);
	width: 100%;
	min-width: 0;
	outline: none;
	padding: 6px 0;
	appearance: none;
	cursor: pointer;
}

.jm-searchbar input {
	cursor: text;
}

.jm-searchbar__submit {
	flex: 0 0 auto;
}

.jm-listing__body {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}

/* ----------------------------------------------------------------- Filters */
.jm-filters {
	background: var(--jm-surface);
	border: 1px solid var(--jm-border);
	border-radius: var(--jm-radius);
	padding: 22px;
	box-shadow: var(--jm-shadow);
	position: sticky;
	top: 24px;
}

.jm-filter-group {
	border: 0;
	padding: 0;
	margin: 0 0 22px;
}

.jm-filter-group__title {
	font-weight: 700;
	color: var(--jm-navy);
	font-size: 15px;
	padding: 0 0 12px;
	width: 100%;
}

.jm-check {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 0;
	cursor: pointer;
	font-size: 14px;
	color: var(--jm-text);
}

.jm-check input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.jm-check__box {
	width: 18px;
	height: 18px;
	border-radius: 5px;
	border: 1.5px solid #d5d5e4;
	flex: 0 0 auto;
	position: relative;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.jm-check input:checked + .jm-check__box {
	background: var(--jm-accent);
	border-color: var(--jm-accent);
}

.jm-check input:checked + .jm-check__box::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 2px;
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.jm-check input:focus-visible + .jm-check__box {
	outline: 3px solid rgba(245, 51, 63, 0.35);
	outline-offset: 2px;
}

.jm-check__label {
	flex: 1 1 auto;
}

.jm-check__count {
	color: var(--jm-muted);
	font-size: 12.5px;
}

.jm-filters__clear {
	background: transparent;
	border: 0;
	color: var(--jm-accent);
	font-weight: 600;
	font-size: 13px;
	cursor: pointer;
	padding: 4px 0;
}

/* ----------------------------------------------------------------- Toolbar */
.jm-listing__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
	flex-wrap: wrap;
}

.jm-listing__count {
	margin: 0;
	color: var(--jm-muted);
	font-size: 14px;
}

.jm-listing__count strong {
	color: var(--jm-navy);
}

.jm-sort {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--jm-surface);
	border: 1px solid var(--jm-border);
	border-radius: 999px;
	padding: 8px 16px;
	font-size: 13px;
	color: var(--jm-muted);
	box-shadow: var(--jm-shadow);
}

.jm-sort select {
	border: 0;
	background: transparent;
	color: var(--jm-accent);
	font-weight: 700;
	font-size: 13px;
	cursor: pointer;
	outline: none;
}

/* ----------------------------------------------------------- Empty/loading */
.jm-empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 48px 24px;
	color: var(--jm-muted);
	background: var(--jm-surface);
	border: 1px dashed var(--jm-border);
	border-radius: var(--jm-radius);
}

.jm-loading {
	display: flex;
	justify-content: center;
	padding: 24px;
}

.jm-spinner {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 3px solid var(--jm-border);
	border-top-color: var(--jm-accent);
	animation: jm-spin 0.7s linear infinite;
}

.jm-listing.is-loading .jm-grid {
	opacity: 0.45;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

@keyframes jm-spin {
	to {
		transform: rotate(360deg);
	}
}

/* -------------------------------------------------------------- Pagination */
.jm-pagination-wrap {
	display: flex;
	justify-content: center;
	margin-top: 30px;
}

.jm-pagination {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.jm-page {
	min-width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--jm-border);
	background: var(--jm-surface);
	color: var(--jm-navy);
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.jm-page:hover:not(:disabled):not(.is-current) {
	border-color: var(--jm-accent);
	color: var(--jm-accent);
}

.jm-page.is-current {
	color: var(--jm-accent);
	border-color: var(--jm-accent);
}

.jm-page--next {
	background: linear-gradient(135deg, var(--jm-accent), var(--jm-accent-2));
	color: #fff;
	border-color: transparent;
}

.jm-page--gap {
	border: 0;
	background: transparent;
	cursor: default;
	color: var(--jm-muted);
}

.jm-page:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

/* ------------------------------------------------------------ Single page */
.jm-single {
	max-width: 900px;
	margin: 40px auto;
	padding: 0 20px;
}

.jm-single__card {
	background: var(--jm-surface);
	border: 1px solid var(--jm-border);
	border-radius: var(--jm-radius);
	box-shadow: var(--jm-shadow);
	padding: 34px;
}

.jm-single__header {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 20px;
	align-items: center;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--jm-border);
}

.jm-single__company {
	color: var(--jm-navy);
	font-size: clamp(22px, 3vw, 30px);
	font-weight: 800;
	margin: 0;
	line-height: 1.15;
}

.jm-single__role {
	color: var(--jm-text);
	font-size: 16px;
	margin: 4px 0 10px;
}

.jm-single__subline {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	color: var(--jm-muted);
	font-size: 13.5px;
}

.jm-single__sub {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.jm-single__sub .jm-icon {
	color: var(--jm-accent);
}

.jm-single__sub--accent {
	color: var(--jm-accent);
	font-weight: 600;
}

.jm-single__facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 16px;
	background: var(--jm-chip);
	border-radius: var(--jm-radius-sm);
	padding: 20px 24px;
	margin: 24px 0;
}

.jm-fact {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.jm-fact__label {
	color: var(--jm-muted);
	font-size: 12.5px;
}

.jm-fact__value {
	color: var(--jm-navy);
	font-weight: 700;
	font-size: 14.5px;
}

.jm-block {
	margin: 26px 0;
}

.jm-block__title {
	color: var(--jm-navy);
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 12px;
}

.jm-block__body {
	color: var(--jm-text);
	font-size: 15px;
}

.jm-block__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.jm-block__list li {
	position: relative;
	padding: 6px 0 6px 24px;
	color: var(--jm-text);
	font-size: 15px;
}

.jm-block__list li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 14px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--jm-accent);
}

.jm-single__footcta {
	margin-top: 30px;
	padding-top: 24px;
	border-top: 1px solid var(--jm-border);
}

/* ---------------------------------------------------------------- Carousel */
.jm-recommended__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}

.jm-recommended__title {
	color: var(--jm-navy);
	font-size: clamp(20px, 2.6vw, 28px);
	font-weight: 800;
	margin: 0;
}

.jm-recommended__nav {
	display: flex;
	gap: 10px;
}

.jm-carousel-btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--jm-border);
	background: var(--jm-surface);
	color: var(--jm-navy);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.jm-carousel-btn--next {
	background: linear-gradient(135deg, var(--jm-accent), var(--jm-accent-2));
	color: #fff;
	border-color: transparent;
}

.jm-carousel-btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.jm-carousel {
	display: flex;
	gap: 22px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 4px 4px 18px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.jm-carousel__item {
	flex: 0 0 300px;
	scroll-snap-align: start;
	display: flex;
}

.jm-carousel__item .jm-card {
	width: 100%;
}

/* ------------------------------------------------------------------- Modal */
body.jm-modal-open {
	overflow: hidden;
}

.jm-modal {
	position: fixed;
	inset: 0;
	z-index: 99990;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.jm-modal[hidden] {
	display: none;
}

.jm-modal__scrim {
	position: absolute;
	inset: 0;
	background: rgba(15, 13, 40, 0.6);
	backdrop-filter: blur(4px);
	animation: jm-fade-in 0.2s ease both;
}

.jm-modal__panel {
	position: relative;
	background: var(--jm-surface);
	border-radius: 20px;
	box-shadow: 0 30px 80px rgba(15, 13, 40, 0.35);
	width: min(620px, 100%);
	max-height: min(88vh, 780px);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 0;
	animation: jm-pop-in 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes jm-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes jm-pop-in {
	from {
		opacity: 0;
		transform: translateY(14px) scale(0.97);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.jm-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 2;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.3);
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background 0.15s ease, transform 0.15s ease;
}

.jm-modal__close:hover {
	background: rgba(255, 255, 255, 0.24);
	color: #fff;
	transform: rotate(90deg);
}

.jm-modal__close:focus-visible {
	outline: 3px solid rgba(255, 255, 255, 0.6);
	outline-offset: 2px;
}

/* Header band inside the panel */
.jm-modal__head {
	background:
		radial-gradient(420px 200px at 90% -40%, rgba(245, 51, 63, 0.4), transparent 60%),
		linear-gradient(135deg, var(--jm-navy) 0%, var(--jm-navy-2) 100%);
	padding: 26px 64px 22px 30px;
}

.jm-modal__title {
	color: #fff;
	font-size: 21px;
	font-weight: 800;
	line-height: 1.3;
	margin: 0 0 4px;
	padding: 0;
}

.jm-modal__job {
	color: rgba(255, 255, 255, 0.72);
	font-size: 14px;
	margin: 0;
	padding: 0;
}

.jm-modal__job:empty {
	display: none;
}

.jm-modal .jm-apply-form,
.jm-modal .jm-apply-success {
	padding: 24px 30px 28px;
}

/* Honeypot — visually removed, still in the DOM for bots. */
.jm-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.jm-apply-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 16px;
}

.jm-apply-field {
	margin: 0 0 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.jm-apply-field label {
	font-weight: 600;
	font-size: 13.5px;
	color: var(--jm-navy);
}

.jm-req {
	color: var(--jm-accent);
}

.jm-apply-field input,
.jm-apply-field textarea {
	border: 1.5px solid var(--jm-border);
	border-radius: 10px;
	padding: 11px 14px;
	font-size: 14px;
	color: var(--jm-navy);
	background: #fff;
	width: 100%;
	transition: border-color 0.15s ease;
}

.jm-apply-field input:focus,
.jm-apply-field textarea:focus {
	outline: none;
	border-color: var(--jm-accent);
	box-shadow: 0 0 0 3px rgba(245, 51, 63, 0.12);
}

.jm-apply-field input[type="file"] {
	padding: 14px;
	font-size: 13px;
	color: var(--jm-muted);
	border-style: dashed;
	background: var(--jm-chip);
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.jm-apply-field input[type="file"]:hover {
	border-color: var(--jm-accent);
	background: #fff;
}

.jm-apply-field input[type="file"]::file-selector-button {
	border: 0;
	border-radius: 999px;
	padding: 7px 14px;
	margin-right: 12px;
	background: var(--jm-navy);
	color: #fff;
	font-weight: 600;
	font-size: 12.5px;
	cursor: pointer;
}

.jm-apply-error {
	color: #d63638;
	font-size: 12.5px;
	min-height: 1em;
}

.jm-apply-form__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 6px;
	flex-wrap: wrap;
}

.jm-apply-status {
	color: #d63638;
	font-size: 13.5px;
	margin: 0;
	flex: 1 1 auto;
}

.jm-apply-success {
	text-align: center;
}

.jm-apply-success[hidden] {
	display: none;
}

.jm-apply-success__icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 16px;
	animation: jm-pop-in 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
	border-radius: 50%;
	background: linear-gradient(135deg, #10b981, #06b6d4);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.jm-apply-success__icon svg {
	width: 30px;
	height: 30px;
}

.jm-apply-success h3 {
	color: var(--jm-navy);
	font-size: 20px;
	margin: 0 0 8px;
}

.jm-apply-success p {
	color: var(--jm-text);
	margin: 0 0 18px;
}

/* ----------------------------------------------------------- Responsive */
@media (max-width: 900px) {
	.jm-listing__body {
		grid-template-columns: 1fr;
	}
	.jm-filters {
		position: static;
	}
	.jm-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.jm-single__header {
		grid-template-columns: 1fr;
		text-align: left;
	}
	.jm-single__cta {
		justify-self: start;
	}
}

@media (max-width: 640px) {
	.jm-grid {
		grid-template-columns: 1fr;
	}
	.jm-featured {
		padding: 22px;
	}
	.jm-featured__header {
		flex-direction: column;
		align-items: flex-start;
	}
	.jm-searchbar__field {
		border-right: 0;
		flex-basis: 100%;
	}
	.jm-single__card {
		padding: 22px;
	}
	.jm-carousel__item {
		flex-basis: 260px;
	}
	.jm-apply-form__row {
		grid-template-columns: 1fr;
	}
	.jm-modal {
		padding: 12px;
		align-items: flex-end;
	}
	.jm-modal__panel {
		max-height: 92vh;
		border-radius: 20px 20px 14px 14px;
	}
	.jm-modal__head {
		padding: 22px 60px 18px 22px;
	}
	.jm-modal .jm-apply-form,
	.jm-modal .jm-apply-success {
		padding: 20px 22px 24px;
	}
	.jm-apply-form__foot {
		flex-direction: column;
		align-items: stretch;
	}
	.jm-apply-form__foot .jm-btn {
		justify-content: center;
	}
	.jm-card__foot {
		align-items: flex-start;
	}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.jm *,
	.jm *::before,
	.jm *::after {
		transition: none !important;
		animation: none !important;
	}
}
