/* ══════════════════════════════════════════════════════════
   Stylish Requests — Frontend Hero Form
   RTL · Persian (Vazirmatn) · Premium Minimal
   ══════════════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────────────── */
.stlsh-hero {
	--c-bg-cream:    #FBF2DE;
	--c-bg-mint:     #D0E6B9;
	--c-bg-sage:     #91BD9C;
	--c-bg-tan:      #B7A481;
	--c-primary:     #1A3A33;
	--c-primary-md:  #2C5F54;
	--c-primary-lt:  #7FB89E;
	--c-text-dark:   #1a2621;
	--c-text-muted:  #6b7f78;
	--c-text-light:  #9aafaa;
	--c-border:      rgba(26, 58, 51, 0.12);
	--c-card-bg:     rgba(255, 255, 255, 0.88);
	--c-card-border: rgba(255, 255, 255, 0.70);
	--radius-card:   28px;
	--radius-input:  14px;
	--radius-btn:    14px;
	--shadow-card:
		0 2px  4px  rgba(26, 58, 51, 0.03),
		0 8px  24px rgba(26, 58, 51, 0.05),
		0 32px 80px rgba(26, 58, 51, 0.09),
		inset 0 1px 0 rgba(255, 255, 255, 0.95);
	--shadow-btn:  0 4px 14px rgba(26, 58, 51, 0.28);
	--shadow-inp:  0 0 0 4px rgba(26, 58, 51, 0.08);
	--transition:  0.24s cubic-bezier(0.4, 0, 0.2, 1);
	--font:        'Vazirmatn', 'IRANSansX', Tahoma, sans-serif;
}

/* ── Base ───────────────────────────────────────────────── */
.stlsh-hero *,
.stlsh-hero *::before,
.stlsh-hero *::after { box-sizing: border-box; margin: 0; padding: 0; }

.stlsh-hero {
	direction: rtl;
	font-family: var(--font);
	font-size: 15px;
	color: var(--c-text-dark);
	min-height: 100svh;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
	padding: 22px 20px 36px;
	background:
		radial-gradient(ellipse 90% 70% at 10%  5%,  rgba(208,230,185,0.65) 0%, transparent 55%),
		radial-gradient(ellipse 70% 60% at 90% 90%,  rgba(145,189,156,0.50) 0%, transparent 55%),
		radial-gradient(ellipse 60% 50% at 70% 15%,  rgba(183,164,129,0.25) 0%, transparent 45%),
		radial-gradient(ellipse 80% 60% at 20% 80%,  rgba(251,242,222,0.80) 0%, transparent 60%),
		var(--c-bg-cream);
}

/* ── Decorative blobs ───────────────────────────────────── */
.stlsh-blob {
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	will-change: transform;
}
.stlsh-blob-1 {
	width: 480px; height: 480px;
	top: -140px; right: -120px;
	background: radial-gradient(circle, rgba(208,230,185,0.40) 0%, transparent 70%);
	animation: stlsh-float-a 9s ease-in-out infinite;
}
.stlsh-blob-2 {
	width: 360px; height: 360px;
	bottom: -80px; left: -80px;
	background: radial-gradient(circle, rgba(145,189,156,0.35) 0%, transparent 70%);
	animation: stlsh-float-b 12s ease-in-out infinite;
}
.stlsh-blob-3 {
	width: 240px; height: 240px;
	top: 55%; left: 5%;
	background: radial-gradient(circle, rgba(183,164,129,0.20) 0%, transparent 70%);
	animation: stlsh-float-a 14s ease-in-out infinite reverse;
}
@keyframes stlsh-float-a {
	0%,100% { transform: translate(0,0) scale(1); }
	50%      { transform: translate(28px, 18px) scale(1.04); }
}
@keyframes stlsh-float-b {
	0%,100% { transform: translate(0,0) scale(1); }
	50%      { transform: translate(-22px,-28px) scale(1.03); }
}

/* ── Inner wrap ─────────────────────────────────────────── */
.stlsh-inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 580px;
	margin: 0 auto;
}

/* ── Header ─────────────────────────────────────────────── */
.stlsh-header {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-bottom: 18px;
	direction: rtl;
}
.stlsh-logo {
	height: 22px;
	width: auto;
	display: block;
	flex-shrink: 0;
	object-fit: contain;
}
.stlsh-logo-fallback {
	font-size: 16px;
	font-weight: 900;
	color: var(--c-primary);
	letter-spacing: -0.5px;
	flex-shrink: 0;
}
.stlsh-header-text {
	flex: 1;
	text-align: right;
}
.stlsh-tagline {
	font-size: 22px;
	font-weight: 800;
	color: var(--c-primary);
	line-height: 1.45;
	letter-spacing: -0.3px;
	margin-bottom: 3px;
}
.stlsh-sub {
	font-size: 15px;
	color: var(--c-text-muted);
	font-weight: 400;
}

/* ── Card ───────────────────────────────────────────────── */
.stlsh-card {
	background: var(--c-card-bg);
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	border: 1px solid var(--c-card-border);
	border-radius: var(--radius-card);
	padding: 36px 40px 40px;
	box-shadow: var(--shadow-card);
}

/* ── Simple dot progress ────────────────────────────────── */
.stlsh-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 7px;
	margin-bottom: 24px;
}
.stlsh-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #dde5e2;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	flex-shrink: 0;
}
.stlsh-dot.active {
	width: 26px;
	border-radius: 4px;
	background: var(--c-primary);
}
.stlsh-dot.done {
	background: var(--c-bg-sage);
}

/* ── Step visibility / animation ───────────────────────── */
.stlsh-step-hidden { display: none; }

.stlsh-step       { animation: stlsh-slide-in 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; }
.stlsh-step.slide-back { animation: stlsh-slide-back 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; }

@keyframes stlsh-slide-in {
	from { opacity: 0; transform: translateX(-22px); }
	to   { opacity: 1; transform: translateX(0); }
}
@keyframes stlsh-slide-back {
	from { opacity: 0; transform: translateX(22px); }
	to   { opacity: 1; transform: translateX(0); }
}

/* ── Step typography ────────────────────────────────────── */
.step-title {
	font-size: 16px;
	font-weight: 800;
	color: var(--c-primary);
	margin-bottom: 6px;
	text-align: center;
	letter-spacing: -0.2px;
}
.step-sub {
	font-size: 15px;
	color: var(--c-text-muted);
	text-align: center;
	margin-bottom: 20px;
	line-height: 1.7;
}

/* ── Item cards grid ────────────────────────────────────── */
.stlsh-items-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	margin-bottom: 18px;
}
.stlsh-item-card {
	border: 2px solid var(--c-border);
	border-radius: 12px;
	padding: 4px 4px 7px;
	cursor: pointer;
	background: rgba(255,255,255,0.70);
	text-align: center;
	transition: border-color var(--transition);
	position: relative;
	font-family: var(--font);
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}
/* No background change on hover — only border */
.stlsh-item-card:hover {
	border-color: var(--c-bg-sage);
}
.stlsh-item-card:focus-visible {
	outline: 2px solid var(--c-primary);
	outline-offset: 1px;
}
/* Selection: only border change, NO background, NO shadow */
.stlsh-item-card[aria-pressed="true"] {
	border-color: #1A3A33 !important;
	border-width: 2px !important;
}

/* Item image: fill the card */
.item-img-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 6px;
	background: linear-gradient(145deg, var(--c-bg-cream) 0%, var(--c-bg-mint) 100%);
}
.item-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Emoji fallback icon */
.item-icon {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
	line-height: 1;
	opacity: 0.65;
}

/* Check overlay — only shown when selected */
.item-check-overlay {
	position: absolute;
	top: 5px;
	right: 5px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #1A3A33;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transform: scale(0.4);
	transition: opacity 0.18s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.stlsh-item-card[aria-pressed="true"] .item-check-overlay {
	opacity: 1;
	transform: scale(1);
}

.item-label {
	font-size: 13px;
	font-weight: 700;
	color: var(--c-primary);
	display: block;
	line-height: 1.2;
}

/* ── Textarea ───────────────────────────────────────────── */
.stlsh-field { margin-bottom: 16px; }

.field-label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: var(--c-primary);
	margin-bottom: 8px;
}
.field-unit {
	font-size: 11px;
	font-weight: 400;
	color: var(--c-text-muted);
	margin-right: 4px;
}

.stlsh-textarea {
	width: 100%;
	padding: 14px 16px;
	border: 2px solid var(--c-border);
	border-radius: var(--radius-input);
	font-family: var(--font);
	font-size: 14px;
	color: var(--c-text-dark);
	line-height: 1.8;
	resize: vertical;
	background: rgba(255,255,255,0.8);
	transition: border-color var(--transition), box-shadow var(--transition);
	min-height: 120px;
	direction: rtl;
}
.stlsh-textarea::placeholder { color: var(--c-text-light); }
.stlsh-textarea:focus {
	outline: none;
	border-color: var(--c-primary);
	box-shadow: var(--shadow-inp);
	background: #fff;
}

.char-counter {
	font-size: 11px;
	color: var(--c-text-light);
	text-align: left;
	margin-top: 5px;
	direction: rtl;
}

/* ── Inputs ─────────────────────────────────────────────── */
.stlsh-fields-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.stlsh-input {
	width: 100%;
	height: 52px;
	padding: 0 16px;
	border: 2px solid var(--c-border);
	border-radius: var(--radius-input);
	font-family: var(--font);
	font-size: 15px;
	color: var(--c-text-dark);
	background: rgba(255,255,255,0.8);
	transition: border-color var(--transition), box-shadow var(--transition);
	-webkit-appearance: none;
	appearance: none;
}
.stlsh-input::placeholder { color: var(--c-text-light); }
.stlsh-input:focus {
	outline: none;
	border-color: var(--c-primary);
	box-shadow: var(--shadow-inp);
	background: #fff;
}
/* Remove number spinners */
.stlsh-input[type="number"]::-webkit-inner-spin-button,
.stlsh-input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; }
.stlsh-input[type="number"] { -moz-appearance: textfield; }

/* ── Buttons ─────────────────────────────────────────────── */
/* step-nav: explicit RTL — Back(first in DOM)→RIGHT, Next(second)→LEFT */
.step-nav {
	display: flex;
	flex-direction: row;
	direction: rtl;
	gap: 10px;
	align-items: center;
	margin-top: 4px;
}

.stlsh-btn-next,
.stlsh-btn-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 52px;
	padding: 0 24px;
	background: #1A3A33 !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: var(--radius-btn);
	font-family: var(--font);
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
	letter-spacing: 0.2px;
	text-decoration: none;
	flex: 1;
	-webkit-appearance: none;
	appearance: none;
}
.stlsh-btn-next svg,
.stlsh-btn-submit svg { width: 16px; height: 16px; flex-shrink: 0; }

.stlsh-btn-next:hover,
.stlsh-btn-submit:hover {
	background: #2C5F54 !important;
	color: #ffffff !important;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(26,58,51,0.28) !important;
}
.stlsh-btn-next:active,
.stlsh-btn-submit:active {
	transform: translateY(0);
	box-shadow: none !important;
	background: #1A3A33 !important;
}
.stlsh-btn-next:focus,
.stlsh-btn-submit:focus {
	outline: 3px solid #91BD9C;
	outline-offset: 2px;
}

.stlsh-btn-full { width: 100%; margin-top: 4px; flex: none; }

.stlsh-btn-back {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	height: 52px;
	padding: 0 16px;
	background: transparent !important;
	color: var(--c-text-muted) !important;
	border: 2px solid var(--c-border) !important;
	border-radius: var(--radius-btn);
	font-family: var(--font);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color var(--transition), color var(--transition);
	white-space: nowrap;
	flex-shrink: 0;
	-webkit-appearance: none;
	appearance: none;
}
.stlsh-btn-back svg { width: 15px; height: 15px; }
.stlsh-btn-back:hover {
	border-color: #1A3A33 !important;
	color: #1A3A33 !important;
}

/* Submit loading state */
.stlsh-btn-submit.is-loading { opacity: 0.72; pointer-events: none; cursor: wait; }
.btn-spinner {
	display: none;
	width: 18px; height: 18px;
	border: 2px solid rgba(255,255,255,0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: stlsh-spin 0.7s linear infinite;
}
.stlsh-btn-submit.is-loading .btn-label { display: none; }
.stlsh-btn-submit.is-loading .btn-spinner { display: block; }
@keyframes stlsh-spin { to { transform: rotate(360deg); } }

/* ── Error messages ──────────────────────────────────────── */
.step-error {
	font-size: 13px;
	color: #c0392b;
	text-align: center;
	font-weight: 600;
	min-height: 18px;
	margin-bottom: 10px;
	line-height: 1.5;
}

/* ── Success ─────────────────────────────────────────────── */
.stlsh-success {
	text-align: center;
	padding: 16px 0 8px;
	animation: stlsh-slide-in 0.4s ease both;
}
.success-icon {
	font-size: 60px;
	margin-bottom: 18px;
	animation: stlsh-bounce-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes stlsh-bounce-in {
	from { transform: scale(0.3); opacity: 0; }
	60%  { transform: scale(1.12); }
	to   { transform: scale(1); opacity: 1; }
}
.success-title {
	font-size: 22px;
	font-weight: 800;
	color: var(--c-primary);
	margin-bottom: 8px;
}
.success-text {
	font-size: 15px;
	color: var(--c-text-muted);
	margin-bottom: 28px;
	line-height: 1.6;
}
.success-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}
.stlsh-btn-shop {
	display: inline-flex;
	align-items: center;
	height: 50px;
	padding: 0 28px;
	background: #1A3A33 !important;
	color: #fff !important;
	border-radius: var(--radius-btn);
	font-family: var(--font);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
	transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.stlsh-btn-shop:hover {
	background: #2C5F54 !important;
	color: #fff !important;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(26,58,51,0.28);
}
.stlsh-btn-new {
	display: inline-flex;
	align-items: center;
	height: 50px;
	padding: 0 28px;
	background: transparent !important;
	color: #1A3A33 !important;
	border: 2px solid #1A3A33 !important;
	border-radius: var(--radius-btn);
	font-family: var(--font);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background var(--transition), color var(--transition), transform var(--transition);
}
.stlsh-btn-new:hover {
	background: #1A3A33 !important;
	color: #fff !important;
	transform: translateY(-1px);
}

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	.stlsh-blob,
	.stlsh-step,
	.stlsh-success,
	.success-icon   { animation: none; }
	*               { transition-duration: 0.01ms !important; }
}

/* ── Responsive — Tablet ─────────────────────────────────── */
@media (max-width: 640px) {
	.stlsh-hero   { padding: 16px 14px 28px; align-items: flex-start; }
	.stlsh-card   { padding: 20px 14px 24px; border-radius: 20px; }
	.stlsh-tagline { font-size: 20px; }
	.stlsh-sub    { font-size: 17px; }
	.stlsh-logo   { width: calc(100vw / 6); height: auto !important; max-height: none !important; }
	.stlsh-header { gap: 8px; }
	.stlsh-items-grid { gap: 8px; }
	.stlsh-item-card  { padding: 3px 3px 6px; border-radius: 10px; }
	.item-icon    { font-size: 26px; }
	.item-label   { font-size: 11px; }
	/* iOS input zoom prevention — font-size must be ≥16px */
	.stlsh-input,
	.stlsh-textarea { font-size: 16px !important; }
}

/* ── Responsive — Mobile ─────────────────────────────────── */
@media (max-width: 430px) {
	/* Fix 5: top spacing → flex-start + compact padding-top */
	.stlsh-hero   { align-items: flex-start; padding-top: 40px; }
	/* Fix 1: logo = 1/6 of screen width */
	.stlsh-logo   { width: calc(100vw / 6) !important; height: auto !important; max-height: none !important; }
	/* Fix 4: +2px on title and subtitle */
	.stlsh-tagline { font-size: 18px; }
	.stlsh-sub    { font-size: 15px; }
	.stlsh-card   { padding: 16px 12px 20px; }
	.stlsh-items-grid { gap: 6px; }
	.stlsh-item-card  { padding: 2px 2px 5px; border-radius: 9px; }
	.item-icon    { font-size: 22px; }
	.item-label   { font-size: 10px; }
	.step-nav     { gap: 8px; }
	.stlsh-btn-next,
	.stlsh-btn-submit { height: 46px; font-size: 14px; }
	.stlsh-btn-back   { height: 46px; font-size: 12px; padding: 0 12px; }
	.success-actions  { flex-direction: column; }
	.stlsh-btn-shop,
	.stlsh-btn-new    { width: 100%; justify-content: center; }
	/* Fix 6: height/weight side by side on mobile */
	.stlsh-fields-row { grid-template-columns: 1fr 1fr !important; gap: 10px; }
	/* Fix 3: "ادامه" button in step 1 → 1/5 width, left-aligned */
	.stlsh-btn-full {
		width: calc(100vw / 5) !important;
		min-width: 70px;
		max-width: 100px;
		flex: none !important;
		float: left;
	}
	/* Fix 7: prevent iOS Safari zoom (font-size must be ≥ 16px) */
	.stlsh-input,
	.stlsh-textarea { font-size: 16px !important; }
}

/* ── Elementor compatibility ─────────────────────────────── */
.elementor-widget-container .stlsh-hero,
.e-con-inner .stlsh-hero {
	min-height: 100svh;
	min-height: 100vh;
}

/* ══════════════════════════════════════════════════════════
   HIGH-SPECIFICITY OVERRIDES
   Beats Elementor / theme button & img defaults
   ══════════════════════════════════════════════════════════ */

/* ── Logo: force size regardless of theme img rules ─────── */
#stlsh-hero .stlsh-logo {
	width: calc(100vw / 6) !important;
	height: auto !important;
	max-width: none !important;
	max-height: none !important;
	min-height: unset !important;
	display: block !important;
	object-fit: contain !important;
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
}

/* ── Item cards: override Elementor/theme button styles ──── */
#stlsh-hero .stlsh-item-card {
	border: 2px solid rgba(26, 58, 51, 0.15) !important;
	background: rgba(255, 255, 255, 0.75) !important;
	outline: none !important;
	box-shadow: none !important;
	color: inherit !important;
	cursor: pointer !important;
	border-radius: 12px !important;
	padding: 4px 4px 7px !important;
	text-align: center !important;
}
#stlsh-hero .stlsh-item-card:hover {
	border-color: #91BD9C !important;
	background: rgba(255, 255, 255, 0.75) !important;
	box-shadow: none !important;
	transform: none !important;
}
#stlsh-hero .stlsh-item-card[aria-pressed="true"] {
	border-color: #1A3A33 !important;
	background: rgba(255, 255, 255, 0.75) !important;
	box-shadow: none !important;
}

/* ── Images inside cards: no theme padding/border ────────── */
#stlsh-hero .item-img-wrap {
	padding: 0 !important;
	margin: 0 0 6px !important;
	border: none !important;
	border-radius: 8px !important;
	overflow: hidden !important;
}
#stlsh-hero .item-img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	max-width: none !important;
}

/* ── Full-width next button (step 1) ─────────────────────── */
#stlsh-hero .stlsh-btn-full {
	display: flex !important;
	width: 100% !important;
	max-width: 100% !important;
}

/* ── All nav buttons ─────────────────────────────────────── */
#stlsh-hero .stlsh-btn-next,
#stlsh-hero .stlsh-btn-submit {
	background: #1A3A33 !important;
	color: #ffffff !important;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
}
#stlsh-hero .stlsh-btn-next:hover,
#stlsh-hero .stlsh-btn-submit:hover {
	background: #2C5F54 !important;
	color: #ffffff !important;
}
#stlsh-hero .stlsh-btn-back {
	background: transparent !important;
	border: 2px solid rgba(26, 58, 51, 0.15) !important;
	color: #6b7f78 !important;
	outline: none !important;
	box-shadow: none !important;
}
#stlsh-hero .stlsh-btn-back:hover {
	border-color: #1A3A33 !important;
	color: #1A3A33 !important;
	background: transparent !important;
}
