/**
 * IT Support 365 – Managed IT Package Finder
 * Front-end styles. Scoped under .it365pf-root so nothing leaks into
 * the theme, and everything inherits the theme font where possible.
 */

.it365pf-root {
	--it365pf-primary: #002a68;
	--it365pf-secondary: #265998;
	--it365pf-accent: #bfdcff;
	--it365pf-dark: #102231;
	--it365pf-paper: #ffffff;
	--it365pf-line: #dfe6f0;
	--it365pf-muted: #5b6b7d;
	--it365pf-radius: 14px;
	--it365pf-shadow: 0 18px 44px rgba(16, 34, 49, 0.13);

	box-sizing: border-box;
	max-width: 820px;
	margin: 0 auto;
	font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--it365pf-dark);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

.it365pf-root *,
.it365pf-root *::before,
.it365pf-root *::after {
	box-sizing: inherit;
}

/* ---------- Shell ---------- */

.it365pf-card {
	background: var(--it365pf-paper);
	border: 1px solid var(--it365pf-line);
	border-radius: var(--it365pf-radius);
	box-shadow: var(--it365pf-shadow);
	padding: 34px 32px;
	position: relative;
	overflow: hidden;
}

.it365pf-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 4px;
	background: linear-gradient(90deg, var(--it365pf-primary), var(--it365pf-secondary) 55%, var(--it365pf-accent));
}

.it365pf-step {
	animation: it365pf-in 0.32s ease both;
}

@keyframes it365pf-in {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.it365pf-step { animation: none; }
	.it365pf-root * { transition: none !important; }
}

/* ---------- Typography ---------- */

.it365pf-root h2,
.it365pf-root h3 {
	font-family: inherit;
	color: var(--it365pf-primary);
	margin: 0 0 10px;
	line-height: 1.2;
	font-weight: 800;
}

.it365pf-root h2 { font-size: clamp(1.45rem, 3.4vw, 2rem); }
.it365pf-root h3 { font-size: clamp(1.15rem, 2.6vw, 1.35rem); }

.it365pf-lead {
	color: var(--it365pf-muted);
	margin: 0 0 26px;
	font-size: 1.02rem;
}

.it365pf-eyebrow {
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	color: var(--it365pf-secondary);
	margin-bottom: 8px;
}

/* ---------- Buttons ---------- */

.it365pf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	background: var(--it365pf-primary);
	color: #fff;
	border: 2px solid var(--it365pf-primary);
	border-radius: 999px;
	padding: 14px 32px;
	font: inherit;
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.it365pf-btn:hover,
.it365pf-btn:focus-visible {
	background: var(--it365pf-secondary);
	border-color: var(--it365pf-secondary);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(0, 42, 104, 0.24);
}

.it365pf-btn[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.it365pf-btn--block {
	width: 100%;
}

.it365pf-btn--ghost {
	background: transparent;
	color: var(--it365pf-primary);
	border-color: var(--it365pf-line);
	padding: 9px 20px;
	font-size: 0.88rem;
}

.it365pf-btn--ghost:hover,
.it365pf-btn--ghost:focus-visible {
	background: transparent;
	color: var(--it365pf-secondary);
	border-color: var(--it365pf-secondary);
	box-shadow: none;
}

.it365pf-root :focus-visible {
	outline: 3px solid var(--it365pf-secondary);
	outline-offset: 2px;
}

/* ---------- Progress ---------- */

.it365pf-progress {
	margin-bottom: 24px;
}

.it365pf-progress__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: space-between;
	align-items: baseline;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--it365pf-muted);
	margin-bottom: 9px;
}

.it365pf-progress__lean {
	color: var(--it365pf-primary);
	text-transform: none;
	letter-spacing: 0;
	font-size: 0.85rem;
}

.it365pf-progress__lean b {
	color: var(--it365pf-secondary);
}

.it365pf-progress__track {
	height: 8px;
	border-radius: 999px;
	background: #eef2f8;
	overflow: hidden;
}

.it365pf-progress__bar {
	height: 100%;
	width: 0;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--it365pf-primary), var(--it365pf-secondary));
	transition: width 0.35s ease;
}

/* ---------- Answer options ---------- */

.it365pf-options {
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
	display: grid;
	gap: 12px;
}

.it365pf-option {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	text-align: left;
	background: #fff;
	border: 2px solid var(--it365pf-line);
	border-radius: 12px;
	padding: 16px 18px;
	font: inherit;
	font-size: 1rem;
	font-weight: 600;
	color: var(--it365pf-dark);
	cursor: pointer;
	transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.it365pf-option:hover,
.it365pf-option:focus-visible {
	border-color: var(--it365pf-secondary);
	background: #f6f9ff;
	transform: translateX(3px);
}

.it365pf-option[aria-pressed="true"] {
	border-color: var(--it365pf-primary);
	background: #f2f7ff;
}

.it365pf-option__key {
	flex: 0 0 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--it365pf-accent);
	color: var(--it365pf-primary);
	display: grid;
	place-items: center;
	font-size: 0.82rem;
	font-weight: 800;
}

.it365pf-option:hover .it365pf-option__key,
.it365pf-option[aria-pressed="true"] .it365pf-option__key {
	background: var(--it365pf-primary);
	color: #fff;
}

/* ---------- Result ---------- */

.it365pf-result {
	background: var(--it365pf-primary);
	color: #fff;
	border-radius: 12px;
	padding: 26px 24px;
	margin-bottom: 24px;
	text-align: center;
}

.it365pf-result__eyebrow {
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--it365pf-accent);
	margin-bottom: 8px;
}

.it365pf-result__name {
	font-size: clamp(1.6rem, 4.4vw, 2.3rem);
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 10px;
	color: #fff;
}

.it365pf-result__desc {
	margin: 0;
	color: #e8f1ff;
	font-size: 0.98rem;
	max-width: 52ch;
	margin-inline: auto;
}

/* ---------- Calculator ---------- */

.it365pf-calc {
	border: 1px solid var(--it365pf-line);
	border-radius: 12px;
	padding: 22px;
	margin-bottom: 20px;
}

.it365pf-calc__head {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 14px;
}

.it365pf-calc__label {
	font-weight: 700;
	font-size: 0.95rem;
}

.it365pf-calc__users {
	font-weight: 800;
	color: var(--it365pf-secondary);
	font-size: 1.05rem;
}

.it365pf-slider {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 8px;
	border-radius: 999px;
	background: #eef2f8;
	outline-offset: 6px;
	cursor: pointer;
	margin: 0 0 6px;
}

.it365pf-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--it365pf-primary);
	border: 3px solid #fff;
	box-shadow: 0 2px 8px rgba(0, 42, 104, 0.35);
	cursor: grab;
}

.it365pf-slider::-moz-range-thumb {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--it365pf-primary);
	border: 3px solid #fff;
	box-shadow: 0 2px 8px rgba(0, 42, 104, 0.35);
	cursor: grab;
}

.it365pf-slider__scale {
	display: flex;
	justify-content: space-between;
	font-size: 0.75rem;
	color: var(--it365pf-muted);
	margin-bottom: 18px;
}

.it365pf-figure {
	text-align: center;
	border-top: 1px solid var(--it365pf-line);
	padding-top: 18px;
}

.it365pf-figure__label {
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--it365pf-muted);
	margin-bottom: 4px;
}

.it365pf-figure__value {
	font-size: clamp(2rem, 6vw, 2.9rem);
	font-weight: 800;
	color: var(--it365pf-primary);
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.it365pf-figure__value small {
	font-size: 0.42em;
	font-weight: 700;
	color: var(--it365pf-muted);
}

.it365pf-figure__caption {
	margin: 8px 0 0;
	font-size: 0.83rem;
	color: var(--it365pf-muted);
	max-width: 46ch;
	margin-inline: auto;
}

.it365pf-note {
	background: #f6f9ff;
	border-left: 4px solid var(--it365pf-secondary);
	border-radius: 0 8px 8px 0;
	padding: 15px 18px;
	margin: 0 0 26px;
	font-size: 0.92rem;
	color: var(--it365pf-dark);
}

/* ---------- Form ---------- */

.it365pf-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 20px;
}

@media (max-width: 560px) {
	.it365pf-fields { grid-template-columns: 1fr; }
	.it365pf-card { padding: 26px 20px; }
}

.it365pf-field label {
	display: block;
	font-size: 0.82rem;
	font-weight: 700;
	margin-bottom: 6px;
	color: var(--it365pf-dark);
}

.it365pf-field input {
	width: 100%;
	padding: 13px 14px;
	border: 2px solid var(--it365pf-line);
	border-radius: 10px;
	font: inherit;
	font-size: 1rem;
	color: var(--it365pf-dark);
	background: #fff;
	transition: border-color 0.16s ease;
}

.it365pf-field input:focus {
	border-color: var(--it365pf-secondary);
	outline: none;
}

.it365pf-field input[aria-invalid="true"] {
	border-color: #c9252c;
}

.it365pf-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.it365pf-error {
	margin: 0 0 16px;
	padding: 12px 14px;
	border-radius: 8px;
	background: #fdeaea;
	color: #8f1a20;
	font-size: 0.9rem;
	font-weight: 600;
}

.it365pf-privacy {
	margin: 14px 0 0;
	font-size: 0.78rem;
	color: var(--it365pf-muted);
	text-align: center;
}

/* ---------- Confirmation ---------- */

.it365pf-done {
	text-align: center;
	padding: 14px 0 4px;
}

.it365pf-done__tick {
	width: 62px;
	height: 62px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: var(--it365pf-accent);
	color: var(--it365pf-primary);
	display: grid;
	place-items: center;
	font-size: 1.9rem;
	font-weight: 800;
}

.it365pf-done p {
	color: var(--it365pf-muted);
	max-width: 44ch;
	margin: 0 auto 20px;
}

.it365pf-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-top: 6px;
}

.it365pf-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
