/**
 * Property Search - Steps Ultimate Premium widget styles
 *
 * Self-contained port of the static site steps section (the plugin
 * does not load Bootstrap, so the three-column grid, icon tiles and
 * badges are recreated here). Colours are CSS custom properties
 * written by Elementor; values below are the design defaults.
 *
 * @package PropertySearch
 */

.ps-steps-section {
	--ps-steps-grad-1: #00291d;
	--ps-steps-grad-2: #003d2b;
	--ps-steps-grad-3: #006241;
	--ps-steps-deco-gold: rgba(255, 204, 0, 0.04);
	--ps-steps-deco-white: rgba(255, 255, 255, 0.02);
	--ps-steps-label: #ffcc00;
	--ps-steps-label-bar: #ffcc00;
	--ps-steps-heading: #ffffff;
	--ps-steps-highlight: #ffcc00;
	--ps-steps-desc: rgba(255, 255, 255, 0.5);
	--ps-steps-card-bg: rgba(255, 255, 255, 0.06);
	--ps-steps-card-bg-hover: rgba(255, 255, 255, 0.12);
	--ps-steps-card-border: rgba(255, 255, 255, 0.1);
	--ps-steps-card-shadow: rgba(0, 0, 0, 0.2);
	--ps-steps-title: #ffffff;
	--ps-steps-text: rgba(255, 255, 255, 0.6);
	--ps-steps-num-grad-start: #ffcc00;
	--ps-steps-num-grad-end: #e6b800;
	--ps-steps-num-text: #003d2b;
	--ps-steps-num-ring: rgba(255, 204, 0, 0.3);
	--ps-steps-num-shadow: rgba(255, 204, 0, 0.3);
	--ps-steps-connector: #ffcc00;
	--ps-steps-icon-bg: rgba(255, 255, 255, 0.05);
	--ps-steps-icon-color: #ffc107;
	--ps-steps-btn-bg: #ffcc00;
	--ps-steps-btn-text: #003d2b;
	--ps-steps-glass-bg: rgba(255, 255, 255, 0.1);
	--ps-steps-glass-text: rgba(255, 255, 255, 0.8);
	--ps-steps-success-bg: rgba(40, 167, 69, 0.2);
	--ps-steps-success-text: #28a745;
	--ps-steps-success-border: rgba(40, 167, 69, 0.3);

	position: relative;
	overflow: hidden;
	padding: 100px 0;
	background: linear-gradient(
		135deg,
		var(--ps-steps-grad-1) 0%,
		var(--ps-steps-grad-2) 50%,
		var(--ps-steps-grad-3) 100%
	);
	font-family: inherit;
	line-height: 1.5;
}

.ps-steps-section,
.ps-steps-section * {
	box-sizing: border-box;
}

/* Decorative circles (mirror .steps-section::before / ::after) */
.ps-steps-section::before {
	content: '';
	position: absolute;
	top: -200px;
	right: -200px;
	width: 500px;
	height: 500px;
	border-radius: 50%;
	background: var(--ps-steps-deco-gold);
	pointer-events: none;
}

.ps-steps-section::after {
	content: '';
	position: absolute;
	bottom: -150px;
	left: -150px;
	width: 400px;
	height: 400px;
	border-radius: 50%;
	background: var(--ps-steps-deco-white);
	pointer-events: none;
}

.ps-steps-section.ps-no-decoration::before,
.ps-steps-section.ps-no-decoration::after {
	display: none;
}

/* Container (mirrors Bootstrap .container) */
.ps-steps-container {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 15px;
}

/* Centred header (mirrors .text-center.mb-5) */
.ps-steps-header {
	text-align: center;
	margin-bottom: 48px;
}

/* Eyebrow label (mirrors .section-label.u-1) */
.ps-steps-label {
	color: var(--ps-steps-label);
	font-weight: 700;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 2px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-bottom: 10px;
}

.ps-steps-label::before {
	content: '';
	width: 30px;
	height: 2px;
	background: var(--ps-steps-label-bar);
	display: inline-block;
	flex: 0 0 auto;
}

/* Heading (mirrors h2.u-37) */
.ps-steps-heading {
	font-size: 2.8rem;
	font-weight: 800;
	letter-spacing: -1px;
	color: var(--ps-steps-heading);
	line-height: 1.25;
	margin: 0 0 0.5rem;
}

.ps-steps-highlight {
	color: var(--ps-steps-highlight);
}

/* Description (mirrors p.u-38.text-white-50.mx-auto.mt-3) */
.ps-steps-desc {
	color: var(--ps-steps-desc);
	max-width: 650px;
	font-size: 1.1rem;
	line-height: 1.8;
	margin: 16px auto 0;
}

/* Step grid (mirrors .row.g-5 with col-md-4) */
.ps-steps-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

.ps-steps-col {
	min-width: 0;
}

/* Cards (mirrors .step-card-premium) */
.ps-step-card {
	background: var(--ps-steps-card-bg);
	border: 1px solid var(--ps-steps-card-border);
	border-radius: 20px;
	padding: 40px 30px;
	text-align: center;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transition: background 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
	position: relative;
	height: 100%;
}

.ps-step-card:hover {
	background: var(--ps-steps-card-bg-hover);
	transform: translateY(-8px);
	box-shadow: 0 20px 50px var(--ps-steps-card-shadow);
}

/* Connector line (desktop only, mirrors .step-connector-line) */
.ps-step-connector {
	position: absolute;
	top: 75px;
	right: -30%;
	width: 60%;
	height: 2px;
	background: linear-gradient(90deg, var(--ps-steps-connector), transparent);
	opacity: 0.3;
	display: none;
	pointer-events: none;
}

/* Number badge (mirrors .step-num-premium) */
.ps-step-num {
	width: 70px;
	height: 70px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--ps-steps-num-grad-start), var(--ps-steps-num-grad-end));
	color: var(--ps-steps-num-text);
	font-size: 1.6rem;
	font-weight: 800;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 24px;
	box-shadow: 0 10px 30px var(--ps-steps-num-shadow);
	position: relative;
}

.ps-step-num::after {
	content: '';
	position: absolute;
	inset: -6px;
	border-radius: 50%;
	border: 2px dashed var(--ps-steps-num-ring);
	animation: ps-steps-spin 15s linear infinite;
}

@keyframes ps-steps-spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

/* Icon tile (mirrors .p-3.mb-3.u-39 with .fs-3.text-warning icon) */
.ps-step-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--ps-steps-icon-bg);
	border-radius: 100px;
	padding: 16px;
	margin: 0 auto 16px;
	font-size: 1.75rem;
	color: var(--ps-steps-icon-color);
}

.ps-step-icon i,
.ps-step-icon svg {
	width: 1em;
	height: 1em;
}

/* Card title (mirrors .step-card-premium h4) */
.ps-step-title {
	color: var(--ps-steps-title);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 12px;
}

/* Card text (mirrors .step-card-premium p) */
.ps-step-text {
	color: var(--ps-steps-text);
	font-size: 0.92rem;
	line-height: 1.7;
	margin: 0;
}

/* Footer area (mirrors .mt-4) */
.ps-step-footer {
	margin-top: 24px;
}

/* Gold button (mirrors .btn.btn-sm.px-4.py-2.u-40) */
.ps-step-btn {
	display: inline-block;
	background: var(--ps-steps-btn-bg);
	color: var(--ps-steps-btn-text);
	font-weight: 700;
	font-size: 0.875rem;
	border-radius: 50px;
	padding: 8px 24px;
	text-decoration: none;
	line-height: 1.5;
}

.ps-step-btn:hover {
	background: var(--ps-steps-btn-bg);
	color: var(--ps-steps-btn-text);
}

/* Badges (mirror .badge.u-41 / .badge.u-42) */
.ps-step-badge {
	display: inline-block;
	font-weight: 700;
	line-height: 1;
	border-radius: 50px;
	padding: 8px 15px;
	font-size: 0.75rem;
}

.ps-step-badge i,
.ps-step-badge svg {
	margin-right: 8px;
	width: 1em;
	height: 1em;
}

.ps-step-badge-glass {
	background: var(--ps-steps-glass-bg);
	color: var(--ps-steps-glass-text);
	font-size: 0.8rem;
}

.ps-step-badge-success {
	background: var(--ps-steps-success-bg);
	color: var(--ps-steps-success-text);
	border: 1px solid var(--ps-steps-success-border);
}

/* Scroll reveal (mirrors .fade-up / .fade-up.show) */
.ps-steps-section .ps-reveal {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.ps-steps-section .ps-reveal.ps-show {
	opacity: 1;
	transform: translateY(0);
}

/* ------------------------------------------------------------------ */
/* Responsive (Bootstrap md column behaviour + connector breakpoint)   */
/* ------------------------------------------------------------------ */
@media (min-width: 768px) {
	.ps-step-connector {
		display: block;
	}
}

@media (max-width: 767px) {
	.ps-steps-grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ps-steps-section .ps-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.ps-step-num::after {
		animation: none;
	}
}
