/**
 * PolicyBridge quote card and contact form.
 * Matches the design handoff: white card, radius 20, shadow 0 20px 50px rgba(19,41,75,.12),
 * 64px option rows with a radio dot, teal pill buttons.
 */

.pb-card {
	--pb-navy: #13294B;
	--pb-teal: #1E847F;
	--pb-teal-dark: #12615D;
	--pb-selected: #EAF6F4;
	--pb-body: #44505E;
	--pb-muted: #5B6472;
	--pb-subtle: #6B7684;
	--pb-border: #E3E8EC;
	--pb-dot: #B8C2CC;
	--pb-error: #B3261E;

	box-sizing: border-box;
	background: #FFFFFF;
	border-radius: 20px;
	padding: 32px;
	box-shadow: 0 20px 50px rgba(19, 41, 75, 0.12);
	font-family: Manrope, system-ui, -apple-system, sans-serif;
	color: var(--pb-navy);
}

.pb-card *,
.pb-card *::before,
.pb-card *::after {
	box-sizing: inherit;
}

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

.pb-quiz-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.pb-step {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--pb-teal-dark);
}

.pb-card .pb-back {
	appearance: none;
	background: none;
	border: 0;
	padding: 4px 2px;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	color: var(--pb-teal-dark);
	cursor: pointer;
}

.pb-card .pb-back:hover,
.pb-card .pb-back:focus {
	background: none;
	color: var(--pb-navy);
}

.pb-track {
	height: 6px;
	border-radius: 3px;
	background: var(--pb-border);
	overflow: hidden;
	margin-bottom: 18px;
}

.pb-fill {
	height: 100%;
	width: 0;
	border-radius: 3px;
	background: var(--pb-teal);
	transition: width 0.25s ease;
}

/* Question ---------------------------------------------------------- */

.pb-card .pb-q {
	margin: 0 0 18px;
	font-family: inherit;
	font-size: 26px;
	line-height: 1.25;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--pb-navy);
}

.pb-card .pb-q:focus {
	outline: none;
}

.pb-opts {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 18px;
}

.pb-card .pb-opt {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: 64px;
	padding: 12px 18px;
	border-radius: 14px;
	background: #FFFFFF;
	border: 2px solid var(--pb-border);
	font: inherit;
	text-align: left;
	color: var(--pb-navy);
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

/* Hover and focus set every colour explicitly: Hello Elementor ships a crimson
   button:hover that would otherwise bleed through. */
.pb-card .pb-opt:hover,
.pb-card .pb-opt:focus,
.pb-card .pb-opt:active {
	background: #FFFFFF;
	border-color: #C5D6D3;
	color: var(--pb-navy);
}

.pb-card .pb-opt-on,
.pb-card .pb-opt-on:hover,
.pb-card .pb-opt-on:focus,
.pb-card .pb-opt-on:active {
	background: var(--pb-selected);
	border-color: var(--pb-teal);
	color: var(--pb-navy);
}

.pb-opt-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.pb-opt-label {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}

.pb-opt-sub {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--pb-muted);
}

.pb-opt-dot {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2px solid var(--pb-dot);
	background: #FFFFFF;
}

.pb-opt-on .pb-opt-dot {
	border: 6px solid var(--pb-teal);
}

@keyframes pb-shake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-4px); }
	75% { transform: translateX(4px); }
}

.pb-opts-shake {
	animation: pb-shake 0.3s ease;
}

/* Fields ------------------------------------------------------------ */

.pb-stack {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.pb-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.pb-label {
	font-size: 14px;
	font-weight: 700;
	color: var(--pb-navy);
}

.pb-req {
	color: var(--pb-teal);
}

.pb-card .pb-field {
	width: 100%;
	background: #FFFFFF;
	border: 2px solid var(--pb-border);
	border-radius: 14px;
	padding: 14px 16px;
	font: inherit;
	font-size: 16px;
	line-height: 1.4;
	color: var(--pb-navy);
}

.pb-card .pb-field:focus {
	outline: none;
	border-color: var(--pb-teal);
}

.pb-card .pb-field::placeholder {
	color: var(--pb-subtle);
	opacity: 1;
}

.pb-card select.pb-field {
	appearance: none;
	padding-right: 44px;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%235B6472' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
}

.pb-card .pb-field[aria-invalid='true'] {
	border-color: var(--pb-error);
}

.pb-err {
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
	color: var(--pb-error);
}

.pb-card .pb-help {
	margin: 2px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--pb-muted);
}

.pb-card .pb-help-center {
	text-align: center;
}

.pb-card .pb-help-lg {
	font-size: 16px;
	line-height: 1.6;
	color: var(--pb-body);
}

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

.pb-card .pb-btn {
	appearance: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	border: 0;
	border-radius: 999px;
	padding: 0 28px;
	background: var(--pb-teal);
	color: #FFFFFF;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.08s ease;
}

.pb-card .pb-btn:hover,
.pb-card .pb-btn:focus,
.pb-card .pb-btn:active {
	background: var(--pb-teal-dark);
	color: #FFFFFF;
}

.pb-card .pb-btn:active {
	transform: translateY(1px);
}

.pb-card .pb-btn[disabled],
.pb-card .pb-is-busy {
	opacity: 0.65;
	cursor: progress;
	transform: none;
}

.pb-card [hidden] {
	display: none !important;
}

/* Focus and assistive text ------------------------------------------ */

.pb-card :focus-visible {
	outline: 2px solid var(--pb-teal);
	outline-offset: 2px;
}

.pb-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	.pb-fill,
	.pb-card .pb-opt,
	.pb-card .pb-btn,
	.pb-opts-shake {
		transition: none;
		animation: none;
	}
}

@media (max-width: 767px) {
	.pb-card {
		padding: 22px;
		border-radius: 18px;
	}

	.pb-card .pb-q {
		font-size: 22px;
	}
}
