/* ==========================================================================
   Wimmer Immobilien — Valuation Wizard Styles
   Primary: #ddaa00 (gold)  Secondary: #1a3c5e (navy)
   ========================================================================== */

/* --- Layout --- */

.wv-wizard {
	max-width: 780px;
	margin: 0 auto;
	padding: 0 16px 40px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: #1a1a1a;
}

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

.wv-progress {
	margin-bottom: 32px;
}

.wv-progress__bar {
	height: 6px;
	background: #e5e7eb;
	border-radius: 3px;
	overflow: hidden;
	margin-bottom: 12px;
}

.wv-progress__fill {
	height: 100%;
	width: 25%;
	background: #ddaa00;
	border-radius: 3px;
	transition: width 0.4s ease;
}

.wv-progress__steps {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	color: #9ca3af;
}

.wv-progress__step.is-active {
	color: #1a3c5e;
	font-weight: 600;
}

.wv-progress__step.is-done {
	color: #6b7280;
}

/* --- Steps --- */

.wv-step {
	display: none;
}

.wv-step.is-active {
	display: block;
	animation: wvFadeIn 0.35s ease;
}

@keyframes wvFadeIn {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}

.wv-wizard .wv-step__title {
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 8px;
	line-height: 1.3;
	color: #1a3c5e;
}

.wv-wizard .wv-step__subtitle {
	color: #6b7280;
	margin: 0 0 24px;
	font-size: 15px;
}

/* --- Step 1: Type Cards --- */

.wv-types {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	margin: 28px 0;
}

@media (min-width: 600px) {
	.wv-types {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* Override Elementor button reset */
.wv-wizard button.wv-type,
.wv-wizard button.wv-type:hover,
.wv-wizard button.wv-type:focus {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 24px 12px;
	border: 2px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
	color: #374151;
	font-size: 14px;
	font-weight: 500;
	font-family: inherit;
	width: auto;
	text-align: center;
	line-height: 1.4;
}

.wv-wizard button.wv-type:hover {
	border-color: #ddaa00;
	box-shadow: 0 2px 12px rgba(221, 170, 0, 0.12);
	transform: translateY(-2px);
	background: #fff;
	color: #1a3c5e;
}

.wv-wizard button.wv-type.is-selected,
.wv-wizard button.wv-type.is-selected:hover {
	border-color: #ddaa00;
	background: #fdf8e8;
	color: #1a3c5e;
	box-shadow: 0 0 0 3px rgba(221, 170, 0, 0.18);
}

.wv-type__icon {
	width: 56px;
	height: 56px;
}

.wv-type__label {
	text-align: center;
}

/* --- Trust Icons --- */

.wv-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: center;
	margin-top: 28px;
	color: #6b7280;
	font-size: 14px;
}

.wv-trust__item {
	display: flex;
	align-items: center;
	gap: 6px;
}

.wv-trust__item svg {
	flex-shrink: 0;
	color: #ddaa00;
}

/* --- Sliders --- */

.wv-wizard .wv-field {
	margin-bottom: 20px;
}

.wv-wizard .wv-field__label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 8px;
	color: #1a3c5e;
}

.wv-slider-wrap {
	display: flex;
	align-items: center;
	gap: 16px;
}

.wv-wizard input[type="range"].wv-slider {
	-webkit-appearance: none;
	appearance: none;
	flex: 1;
	height: 8px;
	border-radius: 4px;
	background: linear-gradient(to right, #ddaa00 var(--fill, 50%), #e5e7eb var(--fill, 50%));
	outline: none;
	cursor: pointer;
	border: none;
	padding: 0;
	margin: 0;
}

.wv-wizard input[type="range"].wv-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #ddaa00;
	border: 3px solid #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
	cursor: pointer;
}

.wv-wizard input[type="range"].wv-slider::-moz-range-thumb {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #ddaa00;
	border: 3px solid #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
	cursor: pointer;
}

.wv-slider__value {
	min-width: 80px;
	text-align: right;
	font-size: 18px;
	font-weight: 700;
	color: #1a3c5e;
	font-variant-numeric: tabular-nums;
}

/* --- Text Fields — override Elementor reset --- */

.wv-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.wv-field--street { grid-column: 1; }
.wv-field--hnr { max-width: 120px; }
.wv-field--plz { max-width: 140px; }

.wv-wizard input[type="text"].wv-input,
.wv-wizard input[type="email"].wv-input,
.wv-wizard input[type="tel"].wv-input,
.wv-wizard input[type="number"].wv-input,
.wv-wizard select.wv-input,
.wv-wizard textarea.wv-input {
	display: block;
	width: 100%;
	padding: 10px 14px;
	font-size: 15px;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
	color: #1a1a1a;
	transition: border-color 0.2s;
	font-family: inherit;
	box-sizing: border-box;
	line-height: 1.5;
	height: auto;
}

.wv-wizard input[type="text"].wv-input:focus,
.wv-wizard input[type="email"].wv-input:focus,
.wv-wizard input[type="tel"].wv-input:focus,
.wv-wizard input[type="number"].wv-input:focus,
.wv-wizard select.wv-input:focus,
.wv-wizard textarea.wv-input:focus {
	outline: none;
	border-color: #ddaa00;
	box-shadow: 0 0 0 3px rgba(221, 170, 0, 0.15);
}

.wv-wizard select.wv-input {
	cursor: pointer;
}

.wv-req {
	color: #dc2626;
}

/* --- Checkbox --- */

.wv-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	color: #4b5563;
	cursor: pointer;
	line-height: 1.5;
}

.wv-wizard .wv-checkbox input[type="checkbox"] {
	margin-top: 3px;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	accent-color: #ddaa00;
}

.wv-checkbox a {
	color: #ddaa00;
	text-decoration: underline;
}

.wv-checkbox a:hover {
	color: #c49800;
}

/* --- Map --- */

.wv-map-container {
	margin-top: 16px;
	border-radius: 12px;
	overflow: hidden;
	border: 2px solid #e5e7eb;
}

.wv-map {
	height: 280px;
	width: 100%;
}

.wv-geo-status {
	margin-top: 8px;
	font-size: 13px;
}

.wv-geo-status--ok {
	color: #16a34a;
}

.wv-geo-status--error {
	color: #dc2626;
}

/* --- Navigation — override Elementor button reset --- */

.wv-nav {
	display: flex;
	justify-content: space-between;
	margin-top: 32px;
	gap: 12px;
}

.wv-wizard button.wv-btn,
.wv-wizard a.wv-btn,
.wv-wizard button.wv-btn:hover,
.wv-wizard a.wv-btn:hover,
.wv-wizard button.wv-btn:focus,
.wv-wizard a.wv-btn:focus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 28px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	transition: background 0.2s, transform 0.15s;
	text-decoration: none;
	font-family: inherit;
	width: auto;
	line-height: 1.4;
}

.wv-wizard button.wv-btn:active,
.wv-wizard a.wv-btn:active {
	transform: scale(0.97);
}

.wv-wizard button.wv-btn--back,
.wv-wizard button.wv-btn--back:hover,
.wv-wizard button.wv-btn--back:focus {
	background: #f3f4f6;
	color: #4b5563;
	border: none;
}

.wv-wizard button.wv-btn--back:hover {
	background: #e5e7eb;
}

.wv-wizard button.wv-btn--next,
.wv-wizard button.wv-btn--submit,
.wv-wizard button.wv-btn--primary,
.wv-wizard a.wv-btn--primary {
	background: #ddaa00;
	color: #fff;
	border: none;
}

.wv-wizard button.wv-btn--next:hover,
.wv-wizard button.wv-btn--submit:hover,
.wv-wizard button.wv-btn--primary:hover,
.wv-wizard a.wv-btn--primary:hover {
	background: #c49800;
	color: #fff;
	border: none;
}

.wv-wizard a.wv-btn--outline {
	background: transparent;
	border: 2px solid #1a3c5e;
	color: #1a3c5e;
}

.wv-wizard a.wv-btn--outline:hover {
	background: #eef2f7;
	color: #1a3c5e;
	border: 2px solid #1a3c5e;
}

/* --- Loading --- */

.wv-loading {
	display: none;
	text-align: center;
	padding: 80px 20px;
}

.wv-loading.is-active {
	display: block;
}

.wv-loading__spinner {
	width: 48px;
	height: 48px;
	border: 4px solid #e5e7eb;
	border-top-color: #ddaa00;
	border-radius: 50%;
	margin: 0 auto 20px;
	animation: wvSpin 0.8s linear infinite;
}

@keyframes wvSpin {
	to { transform: rotate(360deg); }
}

.wv-loading__text {
	font-size: 16px;
	color: #6b7280;
}

/* --- Result --- */

.wv-result {
	display: none;
}

.wv-result.is-active {
	display: block;
	animation: wvFadeIn 0.5s ease;
}

.wv-wizard .wv-result__title {
	font-size: 26px;
	font-weight: 700;
	margin: 0 0 4px;
	color: #1a3c5e;
}

.wv-result__address {
	color: #6b7280;
	margin: 0 0 28px;
	font-size: 15px;
}

/* --- Value Cards --- */

.wv-result__cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	margin-bottom: 32px;
}

@media (min-width: 600px) {
	.wv-result__cards {
		grid-template-columns: 1fr 1fr;
	}
}

.wv-value-card {
	background: #fff;
	border: 2px solid #e5e7eb;
	border-radius: 14px;
	padding: 24px;
}

.wv-value-card__label {
	font-size: 14px;
	font-weight: 600;
	color: #6b7280;
	margin: 0 0 8px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.wv-value-card__value {
	font-size: 32px;
	font-weight: 800;
	color: #1a3c5e;
	margin-bottom: 16px;
	font-variant-numeric: tabular-nums;
}

/* Range bar */

.wv-value-card__range {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	color: #9ca3af;
}

.wv-range__bar {
	flex: 1;
	height: 8px;
	background: #e5e7eb;
	border-radius: 4px;
	position: relative;
	overflow: visible;
}

.wv-range__fill {
	height: 100%;
	background: linear-gradient(90deg, #ddaa00, #f0cc44);
	border-radius: 4px;
}

.wv-range__marker {
	position: absolute;
	top: -4px;
	width: 16px;
	height: 16px;
	background: #ddaa00;
	border: 3px solid #fff;
	border-radius: 50%;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
	transform: translateX(-50%);
}

.wv-range__min,
.wv-range__max {
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

/* Trend */

.wv-value-card__trend {
	margin-top: 12px;
	font-size: 14px;
	font-weight: 600;
}

.wv-trend--up {
	color: #16a34a;
}

.wv-trend--up::before {
	content: '\25B2 ';
	font-size: 10px;
}

.wv-trend--down {
	color: #dc2626;
}

.wv-trend--down::before {
	content: '\25BC ';
	font-size: 10px;
}

/* --- Charts --- */

.wv-charts {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	margin-bottom: 32px;
}

@media (min-width: 600px) {
	.wv-charts {
		grid-template-columns: 1fr 1fr;
	}
}

.wv-chart-wrap {
	background: #fff;
	border: 2px solid #e5e7eb;
	border-radius: 14px;
	padding: 20px;
	position: relative;
}

.wv-wizard .wv-chart__title {
	font-size: 14px;
	font-weight: 600;
	color: #374151;
	margin: 0 0 12px;
}

/* Prevent canvas from growing infinitely */
.wv-chart-wrap canvas {
	max-height: 300px;
	width: 100% !important;
	height: auto !important;
}

/* --- Agent Card --- */

.wv-agent-card {
	margin: 32px 0;
}

.wv-agent-card__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	background: #f9fafb;
	border: 2px solid #e5e7eb;
	border-radius: 14px;
	padding: 24px;
}

.wv-agent-card__photo {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.wv-wizard .wv-agent-card__info h3 {
	font-size: 13px;
	color: #9ca3af;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 0 0 4px;
	font-weight: 600;
}

.wv-agent-card__name {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 2px;
	color: #1a3c5e;
}

.wv-agent-card__address {
	font-size: 14px;
	color: #6b7280;
	margin: 0 0 16px;
}

.wv-agent-card__actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.wv-agent-card__actions .wv-btn {
	font-size: 13px;
	padding: 8px 18px;
}

@media (max-width: 599px) {
	.wv-agent-card__inner {
		flex-direction: column;
		text-align: center;
	}
	.wv-agent-card__actions {
		justify-content: center;
	}
}

/* --- Disclaimer --- */

.wv-result__disclaimer {
	font-size: 12px;
	color: #9ca3af;
	line-height: 1.6;
	border-top: 1px solid #e5e7eb;
	padding-top: 16px;
	margin-top: 24px;
}

/* --- Error --- */

.wv-error {
	display: none;
	text-align: center;
	padding: 60px 20px;
}

.wv-error.is-active {
	display: block;
}

.wv-error__text {
	font-size: 16px;
	color: #6b7280;
	margin-bottom: 20px;
}

/* --- Responsive --- */

@media (max-width: 768px) {
	.wv-progress__steps {
		font-size: 11px;
		gap: 4px;
	}

	.wv-result__cards {
		grid-template-columns: 1fr;
	}

	.wv-charts {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.wv-wizard .wv-step__title {
		font-size: 20px;
	}

	.wv-value-card__value {
		font-size: 24px;
	}

	.wv-field-row {
		grid-template-columns: 1fr;
	}

	.wv-field--hnr {
		max-width: unset;
	}

	.wv-field--plz {
		max-width: unset;
	}

	.wv-progress__steps {
		display: none;
	}

	.wv-nav {
		flex-direction: column;
	}

	.wv-wizard button.wv-btn,
	.wv-wizard a.wv-btn {
		width: 100%;
	}

	.wv-trust {
		flex-direction: column;
		align-items: center;
		gap: 10px;
	}

	.wv-slider__value {
		min-width: 60px;
		font-size: 16px;
	}
}
