/* calculators-new — بهبود UX بدون تغییر منطق محاسبه */

.calc-form-enhanced .form-control {
	border-radius: 8px;
	border: 1px solid #d8dde6;
	min-height: 46px;
	background: #fff;
	color: #223047;
}

.calc-form-enhanced .form-control:focus {
	border-color: #b69d74;
	box-shadow: 0 0 0 3px rgba(182, 157, 116, 0.2);
}

html.calc-new-page .section-title h2 {
	color: #001e51;
	font-weight: 800;
	margin-bottom: 12px;
}

html.calc-new-page .section-title p {
	max-width: 780px;
	margin-right: auto;
	margin-left: auto;
	line-height: 2;
}

html.calc-new-page .contact-wrap {
	background: #fff;
	border: 1px solid #e7ebf2;
	border-radius: 16px;
	padding: 22px 18px 18px;
	box-shadow: 0 8px 30px rgba(0, 30, 81, 0.05);
	margin-bottom: 34px;
}

html.calc-new-page .contact-wrap label.text-dark {
	display: block;
	margin-bottom: 8px;
	color: #001e51 !important;
}

html.calc-new-page .contact-wrap small {
	display: block;
	color: #6b7484;
	line-height: 1.9;
	margin-top: 6px;
}

html.calc-new-page .contact-wrap .contact-btn {
	border-radius: 10px;
	min-height: 46px;
	font-weight: 700;
}

.calc-money-input {
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
	direction: ltr;
	text-align: left;
}

.calc-amount-words,
#amount-in-words {
	display: none;
	margin-top: 8px;
	padding: 8px 12px;
	background: #f7f4ef;
	border-right: 3px solid #b69d74;
	border-radius: 6px;
	color: #4a4a4a;
	font-size: 13px;
	line-height: 1.8;
	text-align: right;
}

.calc-amount-words.is-visible,
#amount-in-words:not(:empty) {
	display: block;
}

/* اشتراک‌گذاری — یکپارچه و مرتب */
.calc-share-panel {
	background: #fff;
	border: 1px solid #e8ecf1;
	border-radius: 10px;
	padding: 16px 18px;
	margin: 20px auto;
	max-width: 640px;
	text-align: center;
}

.calc-share-panel--page {
	max-width: 520px;
	padding: 12px 14px;
}

.calc-share-panel--page.calc-share-panel--collapsed {
	display: none;
}

.calc-share-panel h4 {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 700;
	color: #001e51;
}

.calc-share-panel p {
	margin: 0 0 12px;
	color: #666;
	font-size: 13px;
}

.calc-share-panel--result {
	border-color: #c9e8df;
	background: linear-gradient(180deg, #f8fffc 0%, #fff 100%);
}

.calc-share-panel > div {
	display: flex !important;
	justify-content: center;
	gap: 8px !important;
	flex-wrap: wrap;
}

.calc-share-panel .share-btn {
	border: none !important;
	padding: 9px 16px !important;
	border-radius: 8px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	min-width: auto !important;
	box-shadow: none !important;
	transition: transform 0.15s ease, opacity 0.15s ease;
}

.calc-share-panel .share-btn:hover {
	transform: translateY(-1px);
	opacity: 0.92;
}

.calc-share-panel--result .share-btn {
	padding: 10px 18px !important;
}

@media (max-width: 575px) {
	.calc-share-panel .share-btn {
		flex: 1 1 calc(50% - 8px);
		padding: 10px 8px !important;
	}

	.calc-share-panel .share-btn i {
		margin-left: 4px !important;
	}
}

.calc-result-source {
	display: none;
}

.calc-result-launcher {
	max-width: 780px;
	margin: 10px auto 18px;
	padding: 0 15px;
}

.calc-result-launcher__mini {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
}

.calc-result-launcher__trigger {
	background: #001e51 !important;
	color: #fff !important;
	border: none !important;
	border-radius: 999px !important;
	padding: 10px 18px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	box-shadow: 0 6px 18px rgba(0, 30, 81, 0.12);
}

.calc-result-launcher__hint {
	margin: 0;
	font-size: 13px;
	color: #5d6778;
	line-height: 1.8;
}

.calc-result-modal {
	display: none;
}

.calc-result-modal.is-open {
	display: block;
}

.calc-result-modal__backdrop {
	position: fixed;
	inset: 0;
	background: rgba(6, 15, 36, 0.66);
	z-index: 9998;
}

.calc-result-modal__dialog {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: min(920px, calc(100vw - 24px));
	max-height: calc(100vh - 32px);
	overflow: auto;
	background: #fff;
	border-radius: 16px;
	padding: 0;
	z-index: 9999;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.26);
}

.calc-result-modal__close {
	position: absolute;
	top: 12px;
	left: 14px;
	width: 38px;
	height: 38px;
	border: none;
	border-radius: 999px;
	background: #eff3f8;
	color: #001e51;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.calc-result-modal__header {
	position: sticky;
	top: 0;
	z-index: 3;
	margin: 0;
	padding: 20px 56px 16px 26px;
	background: linear-gradient(135deg, #0f2b64 0%, #1b4b9b 100%);
	color: #fff;
	border-radius: 16px 16px 0 0;
	text-align: center;
	box-shadow: 0 8px 22px rgba(8, 23, 56, 0.16);
}

.calc-result-modal__brand {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-bottom: 10px;
}

.calc-result-modal__logo {
	width: auto;
	height: 48px;
	max-width: 160px;
	object-fit: contain;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.14);
	padding: 6px 10px;
}

.calc-result-modal__brand-text {
	font-size: 15px;
	font-weight: 700;
	color: #fff;
}

.calc-result-modal__title {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	color: #fff;
}

.calc-result-modal__body,
.calc-result-modal__share-section,
.calc-result-modal__cta {
	padding-left: 24px;
	padding-right: 24px;
}

.calc-result-modal__body .content-table {
	margin-top: 18px;
	margin-bottom: 16px;
	width: 100%;
	background: #fff;
	color: #223047 !important;
}

.calc-result-modal__body .table-responsive-wrapper {
	background: #fff;
	border: 1px solid #e7ebf2;
	border-radius: 12px;
	padding: 10px;
	overflow: auto;
}

.calc-result-modal__body .content-table thead,
.calc-result-modal__body .content-table tbody,
.calc-result-modal__body .content-table tr,
.calc-result-modal__body .content-table th,
.calc-result-modal__body .content-table td,
.calc-result-modal__body .content-table td:before {
	color: #223047 !important;
}

.calc-result-modal__body .content-table thead tr {
	background: #eef4ff !important;
}

.calc-result-modal__body .content-table tbody tr {
	background: #fff !important;
	border-bottom: 1px solid #edf1f7;
}

.calc-result-modal__body .content-table tbody tr:nth-of-type(even) {
	background: #f8fafc !important;
}

.calc-result-modal__body .content-table td[data-label="مقدار"],
.calc-result-modal__body .content-table td:nth-child(2),
.calc-result-modal__body .content-table td[style*="color: red"] {
	color: #0b6b4b !important;
	font-weight: 700;
}

body.calc-modal-open {
	overflow: hidden;
}

.swal2-container {
	z-index: 11000 !important;
}

html.calc-new-page footer {
	clear: both;
	margin-top: 88px;
}

html.calc-new-page footer .newsletter-area {
	margin-top: 32px;
	position: relative;
	z-index: 1;
}

html.calc-new-page .calc-seo-block {
	margin-bottom: 58px;
}

html.calc-new-page .calc-lead-cta {
	margin-bottom: 64px;
}

html.calc-new-page .contact-form,
html.calc-new-page .contact-form-four,
html.calc-new-page .contact-form .container-fluid {
	padding-bottom: 38px;
}

@media (max-width: 767px) {
	.calc-result-launcher__mini {
		align-items: stretch;
	}

	.calc-result-modal__dialog {
		width: calc(100vw - 12px);
		max-height: calc(100vh - 12px);
		border-radius: 12px;
	}

	.calc-result-modal__header {
		padding: 18px 52px 14px 18px;
		border-radius: 12px 12px 0 0;
	}

	.calc-result-modal__body,
	.calc-result-modal__share-section,
	.calc-result-modal__cta {
		padding-left: 14px;
		padding-right: 14px;
	}

	.calc-result-modal__title {
		font-size: 19px;
	}
}

/* بلوک سئو */
.calc-seo-block {
	max-width: 900px;
	margin: 32px auto 24px;
	padding: 0 15px;
}

.calc-seo-block__card {
	background: #fff;
	border: 1px solid #ebe6dc;
	border-radius: 12px;
	padding: 24px 28px;
	box-shadow: 0 2px 12px rgba(0, 30, 81, 0.04);
}

.calc-seo-block__title {
	font-size: 20px;
	font-weight: 700;
	color: #001e51;
	margin: 0 0 14px;
	line-height: 1.6;
}

.calc-seo-block__body p {
	color: #444;
	font-size: 15px;
	line-height: 2;
	margin-bottom: 12px;
}

.calc-seo-block__body ul {
	padding-right: 20px;
	margin: 12px 0;
}

.calc-seo-block__body li {
	color: #444;
	line-height: 1.9;
	margin-bottom: 6px;
}

.calc-seo-block__cta {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px dashed #e0d5c4;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.calc-seo-block__cta a,
.calc-seo-block__cta button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 18px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	border: none;
	cursor: pointer;
}

.calc-seo-block__cta a.calc-seo-btn--primary {
	background: #001e51;
	color: #fff;
}
.calc-seo-block__cta button.calc-seo-btn--primary {
	background: #001e51;
	color: #fff;
}

.calc-seo-block__cta a.calc-seo-btn--gold {
	background: #b69d74;
	color: #fff;
}
.calc-seo-block__cta button.calc-seo-btn--gold {
	background: #b69d74;
	color: #fff;
}

.calc-result-modal__share-section {
	padding: 10px 16px;
	text-align: center;
	border-top: 1px solid #edf1f7;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}
.calc-result-modal__share-section .btn,
.calc-result-modal__share-section .share-btn,
.calc-result-modal__share-section a.btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	flex: 0 0 auto;
	font-size: 12px;
	padding: 5px 12px;
	border-radius: 8px;
	margin: 0 !important;
	gap: 4px;
}
.calc-result-modal__share-section .share-buttons-result {
	display: flex !important;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	width: 100%;
}
.calc-result-modal__share-section .share-buttons-result .btn {
	display: inline-flex !important;
	width: auto !important;
	flex: 0 0 auto;
	font-size: 12px;
	padding: 5px 12px;
	border-radius: 8px;
	margin: 0 !important;
}
.calc-result-modal__cta {
	padding: 18px 24px 22px;
	text-align: center;
	background: linear-gradient(135deg, #f0f7ff 0%, #eef9f4 100%);
	border-top: 1px solid #d5e5f2;
	border-radius: 0 0 16px 16px;
}
.calc-result-modal__cta p {
	font-size: 15px;
	margin-bottom: 12px;
	color: #334155;
}
.calc-result-modal__cta-btn {
	background: linear-gradient(135deg, #c8a83e, #b8922d);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	padding: 12px 28px;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: .25s;
	box-shadow: 0 4px 14px rgba(200, 168, 62, .35);
}
.calc-result-modal__cta-btn:hover {
	background: linear-gradient(135deg, #b8922d, #a07e20);
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(200, 168, 62, .45);
}
.calc-result-modal__cta-btn i { margin-left: 6px; }

.calc-quick-lead-modal {
	display: none;
}
.calc-quick-lead-modal.is-open {
	display: block;
}
.calc-quick-lead-modal__backdrop {
	position: fixed;
	inset: 0;
	background: rgba(6, 15, 36, 0.66);
	z-index: 9998;
}
.calc-quick-lead-modal__dialog {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: min(640px, calc(100vw - 20px));
	background: #fff;
	border-radius: 14px;
	padding: 20px;
	z-index: 9999;
	max-height: calc(100vh - 24px);
	overflow: auto;
}
.calc-quick-lead-modal__dialog h3 {
	font-size: 20px;
	margin-bottom: 8px;
	color: #001e51;
}
.calc-quick-lead-modal__dialog p {
	color: #667085;
	margin-bottom: 14px;
}
.calc-quick-lead-modal__close {
	position: absolute;
	top: 10px;
	left: 12px;
	border: none;
	background: #eef1f7;
	border-radius: 999px;
	width: 34px;
	height: 34px;
	font-size: 26px;
	line-height: 1;
}
#quickLeadCaptcha {
	height: 42px;
	max-width: 130px;
	width: 100%;
	border-radius: 8px;
	cursor: pointer;
}
.calc-quick-lead-modal__msg {
	margin-top: 10px;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 13px;
}
.calc-quick-lead-modal__msg.is-ok {
	background: #e9f8ef;
	color: #0d6b43;
}
.calc-quick-lead-modal__msg.is-err {
	background: #feeeee;
	color: #9f1f1f;
}

/* CTA فشرده‌تر روی دسکتاپ */
html.calc-new-page .calc-lead-cta {
	max-width: 820px;
	margin-left: auto;
	margin-right: auto;
	padding: 20px 22px;
}

html.calc-new-page .calc-lead-cta__title {
	font-size: 18px;
}

html.calc-new-page .calc-lead-cta__subtitle {
	font-size: 14px;
	margin-bottom: 14px;
}

html.calc-new-page .calc-lead-cta__form textarea.form-control {
	min-height: 72px;
}

html.calc-new-page .calc-lead-cta__actions .btn {
	padding: 9px 16px;
	font-size: 13px;
}

@media (min-width: 992px) {
	html.calc-new-page .calc-lead-cta__layout {
		display: grid;
		grid-template-columns: 1fr 1.1fr;
		gap: 20px;
		align-items: start;
	}

	html.calc-new-page .calc-lead-cta__intro {
		padding-left: 8px;
	}
}

@media (max-width: 991px) {
	html.calc-new-page .calc-lead-cta {
		padding: 18px 16px;
	}
}

@media (max-width: 768px) {
	.calc-result-modal__share-section .share-buttons-result h4,
	.calc-result-modal__share-section .share-buttons-result p {
		display: none !important;
	}

	.calc-result-modal__share-section .share-buttons-result > div {
		display: flex !important;
		flex-wrap: nowrap !important;
		justify-content: center !important;
		gap: 8px !important;
		width: 100%;
	}

	.calc-result-modal__share-section .share-buttons-result .share-btn,
	.calc-result-modal__share-section .btn,
	.calc-result-modal__share-section a.btn {
		width: 42px !important;
		height: 42px !important;
		min-width: 42px !important;
		padding: 0 !important;
		border-radius: 999px !important;
		font-size: 0 !important;
		line-height: 1 !important;
		color: transparent !important;
		overflow: hidden;
		position: relative;
	}

	.calc-result-modal__share-section .share-buttons-result .share-btn i,
	.calc-result-modal__share-section .btn i,
	.calc-result-modal__share-section a.btn i {
		display: block !important;
		position: absolute;
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);
		font-size: 18px !important;
		color: #fff !important;
		margin: 0 !important;
		line-height: 1 !important;
		opacity: 1 !important;
		visibility: visible !important;
	}
}
