:root {
	--bg: #fcfbf9;
	--surface: #ffffff;
	--surface-2: #f7f6f3;
	--line: #ebe8e2;
	--line-soft: #f1efe9;
	--accent: #ff5722;
	--accent-soft: #ff572214;
	--accent-deep: #e64a19;
	--accent-glow: #ff7a4d;
	--text: #1c1a17;
	--text-dim: #6f6a62;
	--text-faint: #aaa49a;
	--radius: 18px;
}

.contact-page {
	position: relative;
	max-width: 1180px;
	margin: 0 auto;
	padding: 72px 24px 110px;
	background: var(--bg);
	background-image:
		radial-gradient(circle at 88% 4%, rgba(255, 87, 34, 0.09), transparent 40%),
		linear-gradient(var(--line-soft) 1px, transparent 1px),
		linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
	background-size:
		auto,
		38px 38px,
		38px 38px;
	background-position:
		0 0,
		-1px -1px,
		-1px -1px;
	color: var(--text);
	font-family: "Vazirmatn", sans-serif;
	direction: rtl;
	overflow: hidden;
}

.contact-page * {
	box-sizing: border-box;
}

/* ---------- Section title — signature "level" indicator ---------- */
.contact-page .section-title {
	position: relative;
	margin-bottom: 60px;
	padding-bottom: 30px;
	z-index: 1;
}

.contact-page .section-title h1 {
	font-size: clamp(30px, 4.2vw, 40px);
	font-weight: 800;
	letter-spacing: -0.015em;
	margin: 0 0 22px;
	color: var(--text);
}

.contact-page .section-title h1::before {
	content: "";
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--accent);
	margin-left: 13px;
	vertical-align: middle;
	transform: translateY(-3px);
	box-shadow: 0 0 0 5px var(--accent-soft);
}

.contact-page .section-title::after {
	content: "";
	position: absolute;
	bottom: 8px;
	right: 0;
	left: 0;
	height: 6px;
	border-radius: 3px;
	background: var(--line-soft);
}

.contact-page .section-title::before {
	content: "";
	position: absolute;
	bottom: 8px;
	right: 0;
	width: 180px;
	height: 6px;
	border-radius: 3px;
	background: var(--accent);
	z-index: 1;
}

/* the floating bubble that rides the level bar */
.contact-page .section-title h1+.level-bubble,
.contact-page .level-bubble {
	position: absolute;
	bottom: 4px;
	right: 173px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #fff;
	border: 2.5px solid var(--accent);
	z-index: 2;
}

/* ---------- Layout ---------- */
.contact-page .contact-form {
	position: relative;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 40px 36px;
	margin-bottom: 40px;
	box-shadow:
		0 1px 2px rgba(28, 26, 23, 0.03),
		0 20px 40px -22px rgba(28, 26, 23, 0.12);
}

.contact-page .contact-form::before {
	content: "";
	position: absolute;
	top: -1.5px;
	right: 40px;
	width: 48px;
	height: 5px;
	background: var(--accent);
	border-radius: 0 0 6px 6px;
}

.contact-page .grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
}

@media (max-width: 560px) {
	.contact-page .grid-2 {
		grid-template-columns: 1fr;
	}
}

.contact-page .form-group {
	margin-bottom: 24px;
	display: flex;
	flex-direction: column;
}

.contact-page .form-group label {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--text-dim);
	margin-bottom: 10px;
	letter-spacing: 0.01em;
}

.contact-page .form-group input,
.contact-page .form-group textarea {
	background: var(--surface-2);
	border: 1.5px solid var(--line);
	border-radius: 12px;
	padding: 13px 16px;
	color: var(--text);
	font-family: inherit;
	font-size: 15px;
	transition:
		border-color 0.18s ease,
		box-shadow 0.18s ease,
		background 0.18s ease;
	resize: vertical;
	width: 100%;
}

.contact-page .form-group input::placeholder,
.contact-page .form-group textarea::placeholder {
	color: var(--text-faint);
}

.contact-page .form-group input:hover,
.contact-page .form-group textarea:hover {
	border-color: #ddd7cc;
}

.contact-page .form-group input:focus,
.contact-page .form-group textarea:focus {
	outline: none;
	border-color: var(--accent);
	background: #ffffff;
	box-shadow: 0 0 0 4px var(--accent-soft);
}

.contact-page .form-group textarea {
	line-height: 1.75;
}

.contact-page .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	border: none;
	border-radius: 12px;
	padding: 15px 34px;
	font-family: inherit;
	font-size: 15.5px;
	font-weight: 700;
	cursor: pointer;
	transition:
		transform 0.15s ease,
		box-shadow 0.2s ease,
		filter 0.15s ease;
}

.contact-page .btn-primary {
	background: linear-gradient(135deg,
			var(--accent-glow),
			var(--accent) 55%,
			var(--accent-deep));
	color: #fff;
	box-shadow:
		0 14px 28px -12px rgba(255, 87, 34, 0.55),
		inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.contact-page .btn-primary:hover {
	filter: brightness(1.04);
	transform: translateY(-2px);
}

.contact-page .btn-primary:active {
	transform: translateY(0);
}

.contact-page .btn-primary:focus-visible {
	outline: 2px solid var(--accent-deep);
	outline-offset: 3px;
}

/* ---------- Contact info ---------- */
.contact-page .contact-info {
	position: relative;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 36px 32px;
	box-shadow:
		0 1px 2px rgba(28, 26, 23, 0.03),
		0 20px 40px -22px rgba(28, 26, 23, 0.12);
}

.contact-page .contact-info>h3 {
	font-size: 16.5px;
	font-weight: 700;
	color: var(--text);
	margin: 0 0 26px;
	line-height: 1.65;
	padding-bottom: 18px;
	border-bottom: 1px dashed var(--line);
}

/* each direct content block inside contact-info gets a diamond marker + divider */
.contact-page .contact-info .phone-list,
.contact-page .contact-info .social-info,
.contact-page .contact-info .address {
	position: relative;
	margin-bottom: 24px;
	padding: 0 22px 22px 0;
	border-bottom: 1px solid var(--line-soft);
}

.contact-page .contact-info .phone-list:last-child,
.contact-page .contact-info .social-info:last-child,
.contact-page .contact-info .address:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.contact-page .contact-info .phone-list::before,
.contact-page .contact-info .social-info::before,
.contact-page .contact-info .address::before {
	content: "";
	position: absolute;
	top: 5px;
	right: 0;
	width: 9px;
	height: 9px;
	border-radius: 2px;
	transform: rotate(45deg);
	background: var(--surface);
	border: 2px solid var(--accent);
}

.contact-page .phone-list p {
	margin: 0 0 9px;
	font-size: 14.5px;
	color: var(--text-dim);
}

.contact-page .phone-list p:last-child {
	margin-bottom: 0;
}

.contact-page .phone-list strong {
	color: var(--text);
	font-weight: 600;
}

.contact-page .phone-list a,
.contact-page .address a,
.contact-page .social-info a {
	color: var(--accent-deep);
	text-decoration: none;
	font-feature-settings: "tnum";
	border-bottom: 1.5px solid transparent;
	transition: border-color 0.15s ease;
	unicode-bidi: isolate;
	direction: ltr;
}

.contact-page .phone-list a:hover,
.contact-page .address a:hover,
.contact-page .social-info a:hover {
	border-color: var(--accent-deep);
}

.contact-page .social-info p {
	margin: 0 0 10px;
	font-size: 14.5px;
	color: var(--text-dim);
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: baseline;
}

.contact-page .social-info p:last-child {
	margin-bottom: 0;
}

.contact-page .social-info strong {
	color: var(--text);
	font-weight: 600;
}

.contact-page .address p {
	margin: 0 0 8px;
	font-size: 14.5px;
	color: var(--text-dim);
	line-height: 1.85;
}

.contact-page .address p:last-child {
	margin-bottom: 0;
}

.contact-page .address strong {
	color: var(--text);
	font-weight: 600;
}

/* ---------- Success toast (optional element with class="toast") ---------- */
.contact-page .toast {
	display: none;
	align-items: center;
	gap: 10px;
	background: #fff3ee;
	border: 1.5px solid #ffc4ab;
	color: var(--accent-deep);
	border-radius: 12px;
	padding: 14px 18px;
	margin-top: 20px;
	font-size: 14px;
	font-weight: 600;
}

.contact-page .toast.show {
	display: flex;
}

@media (max-width: 880px) {

	.contact-page .contact-info .phone-list::before,
	.contact-page .contact-info .social-info::before,
	.contact-page .contact-info .address::before {
		display: none;
	}

	.contact-page .contact-info .phone-list,
	.contact-page .contact-info .social-info,
	.contact-page .contact-info .address {
		padding-right: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.contact-page .btn-primary {
		transition: none;
	}
}

/* ==========================
Dynamic Contact Info Box Styles (For general_info_html)
========================== */
.contact-info-box {
	color: var(--slate-700);
	line-height: 1.8;
}

.contact-info-box h1,
.contact-info-box h2,
.contact-info-box h3,
.contact-info-box h4,
.contact-info-box h5,
.contact-info-box h6 {
	color: var(--primary) !important;
	/* رنگ نارنجی برای تیترها */
	font-weight: 800;
	margin-top: 20px;
	margin-bottom: 10px;
}

.contact-info-box p {
	margin-bottom: 15px;
}

.contact-info-box a {
	color: var(--primary) !important;
	/* رنگ نارنجی برای لینک‌ها */
	text-decoration: none;
	font-weight: 600;
	transition: 0.3s;
	direction: ltr;
	display: inline-block;
}

.contact-info-box a:hover {
	color: var(--primary-dark);
	text-decoration: underline;
}

.contact-info-box ul {
	padding-right: 20px;
	margin-bottom: 15px;
}

.contact-info-box li {
	margin-bottom: 8px;
}

.contact-info-box strong {
	color: var(--slate-900);
	font-weight: 700;
}

/* ==========================
Responsive Order Fix: Contact Info on Top, Form on Bottom
========================== */
/* ===== رفع قطعی مشکل چیدمان موبایل: اطلاعات تماس بالا، فرم پایین ===== */
@media (max-width: 768px) {
	.grid-2 {
		display: flex !important;
		flex-direction: column !important;
	}

	.contact-info-box {
		order: -1 !important;
		/* انتقال باکس اطلاعات تماس به بالاترین حالت */
		margin-bottom: 30px !important;
		/* ایجاد فاصله مناسب از فرم */
	}

	.contact-form-wrapper {
		order: 1 !important;
		/* انتقال فرم به پایین */
	}
}

/* ═══════════════════════════════════════════════════
   بخش «درباره ما» - About Us Section
   ═══════════════════════════════════════════════════ */
.about-us-wrapper {
	display: flex;
	align-items: center;
	gap: 40px;
	background: var(--surface, #ffffff);
	border: 1px solid var(--line, #ebe8e2);
	border-radius: var(--radius, 18px);
	padding: 40px;
	margin-bottom: 50px;
	box-shadow:
		0 1px 2px rgba(28, 26, 23, 0.03),
		0 20px 40px -22px rgba(28, 26, 23, 0.12);
	position: relative;
	overflow: hidden;
}

/* چیدمان تصویر در سمت راست (پیش‌فرض) */
.about-us-wrapper.about-image-right {
	flex-direction: row;
}

.about-us-wrapper.about-image-right .about-us-image {
	order: 2;
}

.about-us-wrapper.about-image-right .about-us-content {
	order: 1;
}

/* چیدمان تصویر در سمت چپ */
.about-us-wrapper.about-image-left {
	flex-direction: row;
}

.about-us-wrapper.about-image-left .about-us-image {
	order: 1;
}

.about-us-wrapper.about-image-left .about-us-content {
	order: 2;
}

/* ─── تصویر درباره ما ─── */
.about-us-image {
	position: relative;
	flex: 0 0 45%;
	max-width: 45%;
}

.about-us-image img {
	width: 100%;
	border-radius: 14px;
	object-fit: cover;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
	position: relative;
	z-index: 2;
}

/* شکل تزئینی پشت تصویر */
.about-image-decoration {
	position: absolute;
	top: -15px;
	right: -15px;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg,
			var(--primary),
			var(--accent-gold, #eab308));
	border-radius: 14px;
	opacity: 0.15;
	z-index: 1;
}

/* ─── محتوای متنی ─── */
.about-us-content {
	flex: 1;
}

.about-subtitle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--accent-deep, #e64a19);
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 12px;
	background: var(--accent-soft, rgba(255, 87, 34, 0.08));
	padding: 6px 14px;
	border-radius: 30px;
}

.about-subtitle i {
	font-size: 11px;
}

.about-title {
	font-size: clamp(24px, 3vw, 34px);
	font-weight: 800;
	color: var(--heading-color, #1c1a17);
	line-height: 1.4;
	margin-bottom: 18px;
}

.about-description {
	color: var(--text-dim, #6f6a62);
	line-height: 2;
	font-size: 16px;
	margin-bottom: 25px;
}

.about-description p {
	margin-bottom: 12px;
}

.about-description strong {
	color: var(--heading-color, #1c1a17);
}

.about-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 30px;
	border-radius: 12px;
	font-weight: 700;
	transition: all 0.3s ease;
}

.about-btn i {
	transition: transform 0.3s ease;
}

.about-btn:hover i {
	transform: translateX(-5px);
}

/* ─── ریسپانسیو ─── */
@media (max-width: 992px) {
	.about-us-wrapper {
		flex-direction: column;
		text-align: center;
		padding: 30px 25px;
	}

	.about-us-wrapper.about-image-right,
	.about-us-wrapper.about-image-left {
		flex-direction: column;
	}

	.about-us-image {
		flex: 0 0 auto;
		max-width: 100%;
		width: 100%;
		order: 1 !important;
		margin-bottom: 25px;
	}

	.about-us-content {
		order: 2 !important;
		width: 100%;
	}

	.about-subtitle {
		justify-content: center;
	}

	.about-btn {
		justify-content: center;
	}
}

@media (max-width: 480px) {
	.about-us-wrapper {
		padding: 25px 20px;
		gap: 25px;
	}

	.about-title {
		font-size: 22px;
	}
}