/** cta-form styles for Bargheto Widgets */

/* ── وراپر ── */
.elementor-widget-bargheto_cta_form .cta-form {
	position: relative;
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	padding: 2.5rem 1.5rem;
	border-radius: 1rem;
	background: linear-gradient(135deg, var(--cta-form-accent, #0043CB), var(--cta-form-accent-dark, #00359f));
	overflow: hidden;
}

/* ── تبلت: ۱ ستونه، padding نصف ── */
@media (min-width: 768px) {
	.elementor-widget-bargheto_cta_form .cta-form {
		padding: 2.5rem;
	}
}

/* ── دسکتاپ: ۲ ستونه، padding کامل ── */
@media (min-width: 1200px) {
	.elementor-widget-bargheto_cta_form .cta-form {
		grid-template-columns: 1fr 1fr;
		gap: 3rem;
		padding: 5rem;
		align-items: center;
	}
}

/* ── سمت راست (محتوا) ── */
.elementor-widget-bargheto_cta_form .cta-form__content {
	text-align: center;
	display: flex;
	align-items: center;
	flex-direction: column;
}

@media (min-width: 1200px) {
	.elementor-widget-bargheto_cta_form .cta-form__content {
		text-align: right;
		align-items: flex-start;
	}
}

/* ── عنوان ── */
.elementor-widget-bargheto_cta_form .cta-form__title {
	font-size: 1.875rem;
	line-height: 2.8rem;
	font-weight: 900;
	color: #fff;
	margin-bottom: 2rem;
}

@media (min-width: 1200px) {
	.elementor-widget-bargheto_cta_form .cta-form__title {
		font-size: 2rem;
	}
}

/* ── متن ── */
.elementor-widget-bargheto_cta_form .cta-form__text {
	font-size: 1rem;
	line-height: 2;
	color: rgba(255, 255, 255, 0.9);
	margin: 0 0 1rem;
	text-align: center;
}

@media (min-width: 1200px) {
	.elementor-widget-bargheto_cta_form .cta-form__text {
		font-size: 1.1rem;
		text-align: right;
	}
}

/* ── لینک ── */
.elementor-widget-bargheto_cta_form .cta-form__link {
	display: inline-block;
	color: #fff;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 12px;
	text-decoration-thickness: 2px;
	transition: opacity 0.2s ease;
	font-size: 1.1rem;
	text-align: center;
}

@media (min-width: 1200px) {
	.elementor-widget-bargheto_cta_form .cta-form__link {
		text-align: right;
	}
}

.elementor-widget-bargheto_cta_form .cta-form__link:hover {
	opacity: 0.85;
}

/* ── سمت چپ (فرم) ── */
.elementor-widget-bargheto_cta_form .cta-form__form {
	background: white;
	border-radius: 12px;
	padding: 1.5rem;
}

@media (min-width: 1200px) {
	.elementor-widget-bargheto_cta_form .cta-form__form {
		padding: 2rem;
	}
}

/* ── ریسپانسیو موبایل ── */
@media (max-width: 767px) {
	.elementor-widget-bargheto_cta_form .cta-form {
		padding: 2rem 1.25rem;
	}
}

/* ── بافت پس‌زمینه: مشترک ── */
.elementor-widget-bargheto_cta_form .cta-form--dots::before,
.elementor-widget-bargheto_cta_form .cta-form--lines::before,
.elementor-widget-bargheto_cta_form .cta-form--grid::before,
.elementor-widget-bargheto_cta_form .cta-form--diagonal::before {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}

.elementor-widget-bargheto_cta_form .cta-form > * {
	position: relative;
	z-index: 1;
}

/* ── نقطه‌چین ── */
.elementor-widget-bargheto_cta_form .cta-form--dots::before {
	background-image: radial-gradient(circle, rgba(255, 255, 255, 0.12) 1.5px, transparent 1.5px);
	background-size: 18px 18px;
}

/* ── خط‌دار ── */
.elementor-widget-bargheto_cta_form .cta-form--lines::before {
	background-image: repeating-linear-gradient(
		90deg,
		rgba(255, 255, 255, 0.07) 0,
		rgba(255, 255, 255, 0.07) 1px,
		transparent 1px,
		transparent 24px
	);
}

/* ── شبکه ── */
.elementor-widget-bargheto_cta_form .cta-form--grid::before {
	background-image:
		repeating-linear-gradient(
			0deg,
			rgba(255, 255, 255, 0.07) 0,
			rgba(255, 255, 255, 0.07) 1px,
			transparent 1px,
			transparent 24px
		),
		repeating-linear-gradient(
			90deg,
			rgba(255, 255, 255, 0.07) 0,
			rgba(255, 255, 255, 0.07) 1px,
			transparent 1px,
			transparent 24px
		);
}

/* ── مورب ── */
.elementor-widget-bargheto_cta_form .cta-form--diagonal::before {
	background-image: repeating-linear-gradient(
		45deg,
		rgba(255, 255, 255, 0.06) 0,
		rgba(255, 255, 255, 0.06) 1px,
		transparent 1px,
		transparent 14px
	);
}
