/* فرم مشاوره حقوقی — استایل */

.cb-form-wrapper {
	max-width: 560px;
	margin: 0 auto;
}

.cb-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

/* ارث‌بری فونت از قالب سایت — مرورگرها به‌صورت پیش‌فرض این کار را نمی‌کنند. */
.cb-form input,
.cb-form textarea,
.cb-form button,
.cb-form select {
	font-family: inherit !important;
	font-size: 1rem;
}

.cb-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.cb-field label {
	font-weight: 600;
}

.cb-form input[type="text"],
.cb-form input[type="tel"],
.cb-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid #cbd2dc;
	border-radius: 8px;
	background: #fff;
	line-height: 1.6;
}

.cb-form input:focus,
.cb-form textarea:focus {
	outline: none;
	border-color: #b5793a;
	box-shadow: 0 0 0 3px rgba(181, 121, 58, 0.15);
}

/* حالت خطا */
.cb-form .cb-field.cb-has-error input,
.cb-form .cb-field.cb-has-error textarea {
	border-color: #b32d2e;
}

.cb-error {
	color: #b32d2e;
	font-size: 0.85rem;
	min-height: 1em;
}

.cb-general-error {
	color: #b32d2e;
	font-size: 0.9rem;
}

/* پلن‌ها */
.cb-plans {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cb-plan {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border: 1px solid #cbd2dc;
	border-radius: 8px;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
}

.cb-plan:hover {
	border-color: #b5793a;
}

.cb-plan input[type="radio"] {
	margin: 0;
}

.cb-plan-body {
	display: flex;
	justify-content: space-between;
	flex: 1;
	gap: 12px;
}

.cb-plan-title {
	font-weight: 600;
}

.cb-plan-price {
	color: #0f2743;
	font-weight: 700;
}

/* دکمه */
.cb-submit {
	padding: 14px 20px;
	border: none;
	border-radius: 8px;
	background: #0f2743;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s;
}

.cb-submit:hover {
	background: #1c3f66;
}

.cb-submit:disabled {
	background: #7c889a;
	cursor: not-allowed;
}

/* جلوگیری از سرریز افقی روی موبایل (درس‌آموخته debug_log) */
.cb-form-wrapper,
.cb-form,
.cb-form * {
	overflow-wrap: break-word;
	word-break: break-word;
}

@media (max-width: 480px) {
	.cb-plan-body {
		flex-direction: column;
		gap: 4px;
	}
}
