.fmcontact {
	--fm-accent: #e85941;
	--fm-dark: #2e3f50;
	--fm-dark-deep: #1a2832;
	--fm-text: #18191d;
	--fm-muted: #6b7a88;
	--fm-line: rgba(46, 63, 80, 0.1);
	--fm-radius: 18px;
	--fm-ease: 0.32s cubic-bezier(0.22, 1, 0.36, 1);
	width: 100%;
	max-width: var(--fm-site);
	margin: 0 auto;
	padding: 1.5rem var(--fm-page-gutter) 3rem;
	font-family: "Yekan Bakh", Tahoma, sans-serif;
	direction: rtl;
	color: var(--fm-text);
	box-sizing: border-box;
}

.fmcontact *,
.fmcontact *::before,
.fmcontact *::after {
	box-sizing: border-box;
}

.fmcontact__title {
	margin: 0 0 1rem;
	font-size: clamp(1.5rem, 3vw, 2rem);
	line-height: 1.45;
	color: var(--fm-dark);
}

.fmcontact__intro p {
	margin: 0 0 0.85rem;
	max-width: 72ch;
	line-height: 1.9;
	color: var(--fm-muted);
	font-size: 0.94rem;
}

.fmcontact__urgent {
	display: inline-flex;
	flex-direction: column;
	gap: 0.25rem;
	margin: 0.5rem 0 1.75rem;
	padding: 0.9rem 1.15rem;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--fm-dark), var(--fm-dark-deep));
	color: #fff;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow var(--fm-ease);
}

.fmcontact__urgent:hover {
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(26, 40, 50, 0.18);
}

.fmcontact__urgent span {
	font-size: 0.78rem;
	opacity: 0.82;
}

.fmcontact__urgent strong {
	font-size: 1.05rem;
}

.fmcontact__layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	align-items: start;
}

.fmcontact__form-wrap {
	padding: 1.35rem;
	border-radius: var(--fm-radius);
	background: #fff;
	border: 1px solid var(--fm-line);
	box-shadow: 0 10px 30px rgba(24, 25, 29, 0.04);
}

.fmcontact__form-title {
	margin: 0 0 1rem;
	font-size: 1.05rem;
	color: var(--fm-dark);
}

.fmcontact__form {
	display: grid;
	gap: 0.9rem;
}

.fmcontact__field label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.84rem;
	font-weight: 600;
	color: var(--fm-dark);
}

.fmcontact__field input,
.fmcontact__field select,
.fmcontact__field textarea {
	width: 100%;
	padding: 0.72rem 0.85rem;
	border: 1px solid var(--fm-line);
	border-radius: 10px;
	background: #f8fafc;
	font: inherit;
	font-size: 0.9rem;
	color: var(--fm-text);
	transition: border-color var(--fm-ease), box-shadow var(--fm-ease);
}

.fmcontact__field input:focus,
.fmcontact__field select:focus,
.fmcontact__field textarea:focus {
	outline: none;
	border-color: rgba(232, 89, 65, 0.45);
	box-shadow: 0 0 0 3px rgba(232, 89, 65, 0.1);
	background: #fff;
}

.fmcontact__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0.8rem 1rem;
	border: 0;
	border-radius: 10px;
	background: var(--fm-accent);
	color: #fff;
	font: inherit;
	font-size: 0.92rem;
	font-weight: 700;
	cursor: pointer;
	transition: background var(--fm-ease);
}

.fmcontact__submit:hover {
	background: #d14a34;
}

.fmcontact__submit:disabled {
	opacity: 0.7;
	cursor: wait;
}

.fmcontact__status {
	margin: 0;
	font-size: 0.86rem;
	font-weight: 600;
}

.fmcontact__status.is-error {
	color: #c0392b;
}

.fmcontact__status.is-success {
	color: #0a875a;
}

.fmcontact__aside {
	display: grid;
	gap: 0.75rem;
}

.fmcontact__card {
	padding: 1rem 1.1rem;
	border-radius: 14px;
	background: #f8fafc;
	border: 1px solid var(--fm-line);
}

.fmcontact__card h3 {
	margin: 0 0 0.45rem;
	font-size: 0.9rem;
	color: var(--fm-accent);
}

.fmcontact__card p {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.8;
	color: var(--fm-dark);
}

.fmcontact__card a {
	color: var(--fm-dark);
	text-decoration: none;
	transition: color var(--fm-ease);
}

.fmcontact__card a:hover {
	color: var(--fm-accent);
}

.fmcontact__sep {
	margin-inline: 0.3rem;
	opacity: 0.4;
}

.fmcontact__social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.fmcontact__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 0.85rem;
	border-radius: 10px;
	background: #fff;
	border: 1px solid var(--fm-line);
	color: var(--fm-dark);
	text-decoration: none;
	font-size: 0.84rem;
	font-weight: 600;
	transition: all var(--fm-ease);
}

.fmcontact__social a:hover {
	background: var(--fm-accent);
	border-color: var(--fm-accent);
	color: #fff;
}

@media (min-width: 992px) {
	.fmcontact__layout {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	}
}

@media (max-width: 575px) {
	.fmcontact {
		padding: 1.15rem var(--fm-page-gutter) 2.5rem;
	}

	.fmcontact__form-wrap {
		padding: 1.1rem;
	}

	.fmcontact__urgent {
		width: 100%;
		box-sizing: border-box;
	}

	.fmcontact__social a {
		flex: 1 1 calc(50% - 0.55rem);
		min-width: 0;
		text-align: center;
	}
}

.elementor-widget-shortcode:has(.fmcontact),
.elementor-widget-shortcode:has(.fmcontact) .elementor-widget-container,
.elementor-element:has(.fmcontact) {
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	align-self: stretch !important;
}
