/**
 * Redirect page styles — JobScout theme inspired.
 *
 * @see https://wordpress.org/themes/jobscout/
 * @package WPJM_Apply_Redirect
 */

:root {
	--jm-ar-primary: #2ace5e;
	--jm-ar-primary-rgb: 42, 206, 94;
	--jm-ar-primary-dark: #36b25d;
	--jm-ar-bg: #f9f9fa;
	--jm-ar-card-bg: #ffffff;
	--jm-ar-text: #000000;
	--jm-ar-muted: #555555;
	--jm-ar-border: #e6e6e6;
	--jm-ar-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
	--jm-ar-radius: 5px;
	--jm-ar-max-width: 760px;
	--jm-ar-font: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.jm-ar-redirect-page {
	margin: 0;
	background: var(--jm-ar-bg);
	color: var(--jm-ar-text);
	font-family: var(--jm-ar-font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.jm-ar-page {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* Site header bar (JobScout-style) */
.jm-ar-site-header {
	background: #ffffff;
	border-bottom: 1px solid var(--jm-ar-border);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.jm-ar-site-header::before {
	content: "";
	display: block;
	height: 4px;
	background: var(--jm-ar-primary);
}

.jm-ar-site-header__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 18px 16px;
}

.jm-ar-site-header__logo img {
	display: block;
	max-height: 48px;
	width: auto;
}

.jm-ar-site-header__title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--jm-ar-text);
}

.jm-ar-container {
	width: min(100% - 2rem, var(--jm-ar-max-width));
	margin-inline: auto;
}

.jm-ar-container--wide {
	width: min(100% - 2rem, 970px);
}

.jm-ar-header,
.jm-ar-footer {
	padding: 1rem 0;
}

.jm-ar-main {
	flex: 1;
	display: flex;
	align-items: center;
	padding: 1.75rem 0 2.5rem;
}

.jm-ar-card {
	background: var(--jm-ar-card-bg);
	border: 1px solid var(--jm-ar-border);
	border-radius: var(--jm-ar-radius);
	box-shadow: var(--jm-ar-shadow);
	padding: clamp(1.5rem, 4vw, 2.25rem);
	text-align: center;
}

.jm-ar-card__badge {
	display: inline-block;
	margin-bottom: 1rem;
	padding: 6px 14px;
	border-radius: 40px;
	background: rgba(var(--jm-ar-primary-rgb), 0.12);
	color: var(--jm-ar-primary);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.jm-ar-card__title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.4rem, 4vw, 1.85rem);
	line-height: 1.25;
	font-weight: 700;
	color: var(--jm-ar-text);
}

.jm-ar-card__company {
	margin: 0 0 1rem;
	color: var(--jm-ar-primary);
	font-size: 1rem;
	font-weight: 700;
}

.jm-ar-card__message {
	margin: 0 0 1.5rem;
	color: var(--jm-ar-muted);
	font-size: 0.95rem;
}

.jm-ar-timer {
	margin-bottom: 1.25rem;
}

.jm-ar-timer__value {
	font-size: clamp(3.5rem, 14vw, 5.5rem);
	font-weight: 800;
	line-height: 1;
	color: var(--jm-ar-primary);
	font-variant-numeric: tabular-nums;
}

.jm-ar-timer__label {
	margin-top: 0.35rem;
	font-size: 0.85rem;
	color: var(--jm-ar-muted);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 700;
}

.jm-ar-progress {
	width: 100%;
	height: 8px;
	margin: 0 0 1.5rem;
	background: #eee;
	border-radius: 40px;
	overflow: hidden;
}

.jm-ar-progress__bar {
	width: 0;
	height: 100%;
	background: linear-gradient(90deg, var(--jm-ar-primary), var(--jm-ar-primary-dark));
	border-radius: inherit;
	transition: width 0.15s linear;
}

/* JobScout button: green fill, 5px radius, hover outline */
.jm-ar-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 200px;
	padding: 10px 18px;
	border: 1px solid var(--jm-ar-primary);
	border-radius: var(--jm-ar-radius);
	background: var(--jm-ar-primary);
	color: #ffffff;
	font-family: var(--jm-ar-font);
	font-size: 0.888em;
	font-weight: 700;
	cursor: pointer;
	transition: all ease 0.35s;
}

.jm-ar-button:hover,
.jm-ar-button:focus {
	background: transparent;
	color: var(--jm-ar-primary);
	outline: thin dotted #000;
	outline-offset: 2px;
}

.jm-ar-button:active {
	transform: translateY(1px);
}

.jm-ar-card__footnote {
	margin: 1rem 0 0;
	color: var(--jm-ar-muted);
	font-size: 0.875rem;
}

.jm-ar-ad {
	margin: 1rem 0;
	padding: 1rem;
	border: 1px dashed var(--jm-ar-border);
	border-radius: var(--jm-ar-radius);
	background: #ffffff;
	overflow: visible;
}

.jm-ar-ad__inner {
	width: 100%;
	max-width: 100%;
	line-height: 0;
}

.jm-ar-ad--center {
	text-align: center;
}

.jm-ar-ad--center .jm-ar-ad__inner {
	display: inline-block;
	width: auto;
	max-width: 100%;
	vertical-align: top;
}

.jm-ar-ad--style-minimal {
	padding: 0;
	border: 0;
	background: transparent;
}

.jm-ar-ad--style-bordered {
	border: 1px solid var(--jm-ar-border);
	background: #ffffff;
}

.jm-ar-ad--style-flat {
	border: 0;
	background: #f3f3f3;
}

.jm-ar-ad img {
	display: block;
	max-width: 100%;
	height: auto;
	margin-inline: auto;
}

.jm-ar-ad iframe,
.jm-ar-ad ins,
.jm-ar-ad > .jm-ar-ad__inner > div {
	display: block;
	max-width: 100%;
	margin-inline: auto;
}

/* Do not force height:auto on iframes — it clips fixed-size banners like 300x250. */
.jm-ar-ad--bottom .jm-ar-ad__inner {
	min-height: 0;
}

.jm-ar-ad--bottom iframe {
	min-height: 50px;
}

.jm-ar-footer {
	background: #ffffff;
	border-top: 1px solid var(--jm-ar-border);
}

.jm-ar-footer__back {
	margin: 0.5rem 0 0;
	text-align: center;
}

.jm-ar-footer__back a {
	color: var(--jm-ar-primary);
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 700;
	transition: color ease 0.35s;
}

.jm-ar-footer__back a:hover,
.jm-ar-footer__back a:focus {
	color: var(--jm-ar-primary-dark);
	text-decoration: underline;
}

@media (max-width: 600px) {
	.jm-ar-main {
		align-items: flex-start;
	}

	.jm-ar-button {
		width: 100%;
	}

	.jm-ar-site-header__inner {
		padding: 14px 12px;
	}
}
