/* محاسبه‌گر مالیات مشاغل — استایل فرم و نتیجه */

.btc-calculator {
	--btc-primary: #1e6f5c;
	--btc-primary-dark: #175748;
	--btc-bg: #ffffff;
	--btc-border: #e2e8f0;
	--btc-text: #1f2937;
	--btc-muted: #6b7280;
	--btc-radius: 12px;
	font-family: inherit;
	color: var(--btc-text);
	max-width: 760px;
	margin: 0 auto;
}

.btc-card {
	background: var(--btc-bg);
	border: 1px solid var(--btc-border);
	border-radius: var(--btc-radius);
	padding: 28px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.btc-title {
	margin: 0 0 4px;
	font-size: 1.4em;
	color: var(--btc-primary-dark);
}

.btc-subtitle {
	margin: 0 0 20px;
	font-size: 0.85em;
	color: var(--btc-muted);
}

.btc-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

@media (max-width: 600px) {
	.btc-grid {
		grid-template-columns: 1fr;
	}
}

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

.btc-field label {
	font-size: 0.9em;
	font-weight: 600;
}

.btc-unit {
	color: var(--btc-muted);
	font-weight: 400;
}

.btc-field input,
.btc-field select {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid var(--btc-border);
	border-radius: 8px;
	font-size: 1em;
	background: #fff;
	color: var(--btc-text);
	transition: border-color 0.15s, box-shadow 0.15s;
}

.btc-field input:focus,
.btc-field select:focus {
	outline: none;
	border-color: var(--btc-primary);
	box-shadow: 0 0 0 3px rgba(30, 111, 92, 0.15);
}

.btc-checks {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 18px 0;
}

.btc-check {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 0.88em;
	cursor: pointer;
}

.btc-check input {
	margin-top: 3px;
	accent-color: var(--btc-primary);
}

.btc-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
	border-radius: 8px;
	padding: 10px 14px;
	margin-bottom: 14px;
	font-size: 0.9em;
}

.btc-submit {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--btc-primary);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 12px 28px;
	font-size: 1em;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s;
}

.btc-submit:hover:not(:disabled) {
	background: var(--btc-primary-dark);
}

.btc-submit:disabled {
	opacity: 0.7;
	cursor: wait;
}

.btc-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: btc-spin 0.7s linear infinite;
}

@keyframes btc-spin {
	to {
		transform: rotate(360deg);
	}
}

.btc-result {
	margin-top: 24px;
	border-top: 1px dashed var(--btc-border);
	padding-top: 20px;
}

.btc-result-highlight {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: stretch;
	background: linear-gradient(135deg, var(--btc-primary), var(--btc-primary-dark));
	color: #fff;
	border-radius: var(--btc-radius);
	padding: 20px;
	margin-bottom: 18px;
}

.btc-result-main {
	flex: 1 1 220px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.btc-result-main span {
	font-size: 0.85em;
	opacity: 0.85;
}

.btc-result-main strong {
	font-size: 1.7em;
}

.btc-result-side {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 8px;
	font-size: 0.85em;
}

.btc-result-side span {
	opacity: 0.85;
	margin-inline-end: 8px;
}

.btc-table-wrap {
	overflow-x: auto;
}

.btc-result-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9em;
	margin-bottom: 14px;
}

.btc-result-table th,
.btc-result-table td {
	border: 1px solid var(--btc-border);
	padding: 9px 12px;
	text-align: right;
}

.btc-result-table thead th {
	background: #f8fafc;
	font-weight: 700;
}

.btc-row-strong td {
	font-weight: 700;
	background: #f0fdf4;
}

.btc-brackets-title {
	margin: 6px 0 10px;
	font-size: 1em;
	color: var(--btc-primary-dark);
}

.btc-note {
	background: #fffbeb;
	border: 1px solid #fde68a;
	color: #92400e;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 0.85em;
	line-height: 1.8;
	margin-bottom: 12px;
}

.btc-note-success {
	background: #f0fdf4;
	border-color: #bbf7d0;
	color: #166534;
}

.btc-disclaimer {
	margin: 18px 0 0;
	font-size: 0.78em;
	color: var(--btc-muted);
	line-height: 1.8;
	border-top: 1px solid var(--btc-border);
	padding-top: 12px;
}
