/* Quick Loan Finder — styles
   Self-contained; namespaced under .qlf- to avoid theme collisions.
   Palette/surface language: deep blue + gold accent, dashed breakdown rows,
   soft highlight panel, pill CTA — matches the brand's calculator style. */

.qlf-wrapper {
	--qlf-blue: #05549d;
	--qlf-blue-dark: #043f75;
	--qlf-blue-light: #eaf2fa;
	--qlf-blue-border: #bcd6ec;
	--qlf-gold: #eda01d;
	--qlf-text: #1f2937;
	--qlf-muted: #8a94a3;
	--qlf-border: #d7dce2;
	--qlf-bg-soft: #eaf2fa;
	--qlf-amber: #eda01d;
	--qlf-amber-light: #fdf1de;
	--qlf-green: #1a8a5f;
	--qlf-green-light: #e8f6f0;
	--qlf-radius: 14px;
	max-width: 900px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--qlf-text);
	box-sizing: border-box;
}
.qlf-wrapper *,
.qlf-wrapper *::before,
.qlf-wrapper *::after {
	box-sizing: inherit;
}

.qlf-header {
	text-align: center;
	margin-bottom: 28px;
}
.qlf-tag {
	display: inline-block;
	color: var(--qlf-blue);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 10px;
}
.qlf-title {
	font-size: clamp(24px, 4vw, 34px);
	font-weight: 800;
	margin: 0 0 10px;
	line-height: 1.2;
}
.qlf-desc {
	color: var(--qlf-muted);
	font-size: 15px;
	margin: 0;
}

/* Step indicator */
.qlf-steps {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}
.qlf-step-indicator {
	display: flex;
	align-items: center;
	gap: 8px;
}
.qlf-step-circle {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #e9ebee;
	color: var(--qlf-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 13px;
	flex-shrink: 0;
	transition: background 0.2s ease, color 0.2s ease;
}
.qlf-step-indicator.is-active .qlf-step-circle {
	background: var(--qlf-blue);
	color: #fff;
}
.qlf-step-indicator.is-complete .qlf-step-circle {
	background: var(--qlf-gold);
	color: #fff;
}
.qlf-step-indicator.is-complete .qlf-step-circle::after {
	content: "\2713";
}
.qlf-step-indicator.is-complete .qlf-step-circle > span {
	display: none;
}
.qlf-step-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--qlf-muted);
	white-space: nowrap;
}
.qlf-step-indicator.is-active .qlf-step-label {
	color: var(--qlf-blue);
}
.qlf-step-line {
	width: 40px;
	height: 2px;
	background: var(--qlf-border);
}

/* Card container */
.qlf-card {
	position: relative;
	background: #fff;
	border: 1px solid var(--qlf-border);
	border-radius: var(--qlf-radius);
	box-shadow: 0 2px 10px rgba(20, 30, 50, 0.05);
	padding: 30px 28px 28px;
	overflow: hidden;
}
.qlf-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--qlf-blue) 0%, var(--qlf-blue) 60%, var(--qlf-gold) 100%);
}
@media (max-width: 640px) {
	.qlf-card {
		padding: 20px 18px 18px;
	}
}

.qlf-panel h3.qlf-panel-heading {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 18px;
}

/* Step 1: loan type grid */
.qlf-type-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin-bottom: 24px;
}
@media (max-width: 640px) {
	.qlf-type-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.qlf-type-card {
	border: 1.5px solid var(--qlf-border);
	border-radius: 12px;
	padding: 18px 14px;
	background: #fff;
	cursor: pointer;
	text-align: left;
	display: block;
	width: 100%;
	font: inherit;
	color: inherit;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.qlf-type-card:hover {
	border-color: var(--qlf-blue-border);
}
.qlf-type-card.is-selected {
	border-color: var(--qlf-blue);
	background: var(--qlf-blue-light);
	box-shadow: 0 0 0 1px var(--qlf-blue);
}
.qlf-type-icon {
	width: 42px;
	height: 42px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
}
.qlf-type-icon svg {
	width: 22px;
	height: 22px;
}
.qlf-type-icon.color-blue {
	background: var(--qlf-blue-light);
	color: var(--qlf-blue);
}
.qlf-type-icon.color-amber {
	background: var(--qlf-amber-light);
	color: var(--qlf-amber);
}
.qlf-type-icon.color-green {
	background: var(--qlf-green-light);
	color: var(--qlf-green);
}
.qlf-type-label {
	font-weight: 700;
	font-size: 14px;
	margin: 0 0 4px;
}
.qlf-type-rate {
	font-size: 12.5px;
	color: var(--qlf-muted);
	margin: 0;
}

/* Buttons */
.qlf-actions {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	align-items: center;
}
.qlf-actions.qlf-actions-split {
	justify-content: space-between;
}
.qlf-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: 24px;
	font-size: 14px;
	font-weight: 600;
	border: 1.5px solid transparent;
	cursor: pointer;
	transition: background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
	text-decoration: none;
}
.qlf-btn-primary {
	background: var(--qlf-blue);
	color: #fff;
	box-shadow: 0 2px 6px rgba(5, 84, 157, 0.25);
}
.qlf-btn-primary:hover {
	background: var(--qlf-blue-dark);
	box-shadow: 0 4px 10px rgba(5, 84, 157, 0.3);
}
.qlf-btn-primary:disabled {
	background: #a9c3db;
	box-shadow: none;
	cursor: not-allowed;
	opacity: 0.8;
}
.qlf-btn-secondary {
	background: #fff;
	border-color: var(--qlf-border);
	color: var(--qlf-text);
	border-radius: 24px;
}
.qlf-btn-secondary:hover {
	border-color: #b7bfc9;
	background: #f7f8fa;
}

/* Step 2: sliders */
.qlf-slider-group {
	margin-bottom: 26px;
}
.qlf-slider-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}
.qlf-slider-label-wrap {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.qlf-slider-label {
	font-weight: 700;
	font-size: 15px;
	color: var(--qlf-text);
}
.qlf-slider-sublabel {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--qlf-blue);
	background: var(--qlf-blue-light);
	border-radius: 999px;
	padding: 3px 9px;
}
.qlf-slider-value {
	font-weight: 800;
	font-size: 18px;
	color: var(--qlf-blue);
}

/* Editable boxed input beside each slider */
.qlf-input-box {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #fff;
	border: 1.5px solid var(--qlf-border);
	border-radius: 8px;
	padding: 7px 12px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.qlf-input-box:focus-within {
	border-color: var(--qlf-blue);
	box-shadow: 0 0 0 3px rgba(5, 84, 157, 0.12);
}
.qlf-input-prefix,
.qlf-input-suffix {
	font-size: 13px;
	font-weight: 600;
	color: var(--qlf-muted);
	white-space: nowrap;
}
/* Reset with a scoped, higher-specificity selector too: many WordPress
   themes apply a global `input { text-shadow: ...; color: ...; }` rule
   (often for an inset/emboss look on their own form fields) that otherwise
   overrides this class and makes the typed value look greyed-out/shadowed. */
.qlf-wrapper input.qlf-number-input,
.qlf-number-input {
	border: none;
	outline: none;
	background: transparent;
	box-shadow: none;
	text-shadow: none;
	-webkit-text-fill-color: currentColor;
	opacity: 1;
	width: 92px;
	max-width: 30vw;
	text-align: right;
	font-size: 15px;
	font-weight: 700;
	color: var(--qlf-text);
	font-family: inherit;
	line-height: normal;
	padding: 0;
	margin: 0;
	-webkit-appearance: none;
	appearance: none;
	-moz-appearance: textfield;
}
.qlf-number-input::-webkit-outer-spin-button,
.qlf-number-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
/* Scoped + attribute-matched selector on purpose: many WordPress themes
   apply a global `input[type="range"] { background; padding; border; }`
   reset meant for text fields that (because an attribute selector outranks
   a single class) otherwise overrides `.qlf-slider` and wraps the thin
   track in a padded grey box. This selector's specificity beats that. */
.qlf-wrapper input.qlf-slider[type="range"],
.qlf-slider {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	width: 100%;
	height: 4px;
	min-height: 0;
	border-radius: 2px;
	background: #e9ebee;
	background-image: none;
	border: none;
	padding: 0;
	margin: 14px 0 4px;
	outline: none;
	box-shadow: none;
	box-sizing: border-box;
}
.qlf-slider::-webkit-slider-runnable-track {
	height: 4px;
	border-radius: 2px;
	background: #e9ebee;
	border: none;
	box-shadow: none;
}
.qlf-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--qlf-blue);
	box-shadow: none;
	margin-top: -6px;
	cursor: pointer;
	transition: box-shadow 0.15s ease;
}
.qlf-slider:hover::-webkit-slider-thumb,
.qlf-slider:focus::-webkit-slider-thumb,
.qlf-slider:active::-webkit-slider-thumb {
	box-shadow: 0 0 0 5px rgba(5, 84, 157, 0.12);
}
.qlf-slider::-moz-range-track {
	height: 4px;
	border-radius: 2px;
	background: #e9ebee;
	border: none;
	box-shadow: none;
}
.qlf-slider::-moz-range-thumb {
	box-sizing: border-box;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--qlf-blue);
	box-shadow: none;
	cursor: pointer;
	transition: box-shadow 0.15s ease;
}
.qlf-slider:hover::-moz-range-thumb,
.qlf-slider:focus::-moz-range-thumb,
.qlf-slider:active::-moz-range-thumb {
	box-shadow: 0 0 0 5px rgba(5, 84, 157, 0.12);
}
.qlf-slider-bounds {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	color: var(--qlf-muted);
	margin-top: 6px;
}

/* Step 3: result */
.qlf-result {
	text-align: center;
}
.qlf-result-card {
	position: relative;
	background: #fff;
	border: 1px solid var(--qlf-border);
	border-top: 3px solid var(--qlf-gold);
	border-radius: var(--qlf-radius);
	box-shadow: 0 2px 14px rgba(20, 30, 50, 0.06);
	padding: 24px 22px 22px;
	margin-bottom: 22px;
}
.qlf-result-heading {
	font-size: 19px;
	font-weight: 800;
	margin: 0 0 4px;
}
.qlf-result-sub {
	color: var(--qlf-muted);
	font-size: 14px;
	margin: 0 0 20px;
}

.qlf-breakdown {
	text-align: left;
	margin-bottom: 20px;
}
.qlf-breakdown-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 10px;
	font-size: 13px;
	color: var(--qlf-muted);
	padding: 9px 0;
	border-bottom: 1px dashed var(--qlf-border);
}
.qlf-breakdown-row:last-child {
	border-bottom: none;
}
.qlf-breakdown-row strong {
	color: var(--qlf-text);
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}

.qlf-emi-box {
	background: var(--qlf-bg-soft);
	border-radius: 12px;
	padding: 22px 20px 26px;
	margin-bottom: 20px;
}
.qlf-emi-formula {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--qlf-blue);
	line-height: 1.5;
	margin-bottom: 10px;
}
.qlf-emi-amount {
	font-size: clamp(28px, 6vw, 36px);
	font-weight: 800;
	color: var(--qlf-blue);
	letter-spacing: 0.2px;
}
.qlf-emi-amount .qlf-currency {
	font-size: 0.6em;
	vertical-align: middle;
	margin-right: 4px;
}
.qlf-emi-per-month {
	color: var(--qlf-muted);
	font-size: 13px;
	margin-top: 4px;
}

.qlf-result-actions {
	display: flex;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
}

.qlf-disclaimer {
	text-align: center;
	font-size: 11.5px;
	line-height: 1.6;
	color: var(--qlf-muted);
	width: 100%;
	margin: 22px 0 0;
	padding: 0 10px;
}

.qlf-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
