/* TR Elektrikli Araç Hesaplayıcı - Frontend Stilleri */
/* Tema bağımsız olması için tüm seçiciler .tevh- öneki ile izole edilmiştir. */

.tevh-wrap {
	--tevh-primary: #0f766e;
	--tevh-primary-dark: #0b5a54;
	--tevh-bg: #ffffff;
	--tevh-bg-soft: #f4f7f6;
	--tevh-border: #d8e0de;
	--tevh-text: #1a2422;
	--tevh-text-muted: #5b6b68;
	--tevh-error: #b3261e;
	--tevh-radius: 10px;

	box-sizing: border-box;
	max-width: 560px;
	margin: 0 auto;
	padding: 20px;
	background: var(--tevh-bg);
	border: 1px solid var(--tevh-border);
	border-radius: var(--tevh-radius);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--tevh-text);
	line-height: 1.5;
}

.tevh-wrap *,
.tevh-wrap *::before,
.tevh-wrap *::after {
	box-sizing: border-box;
}

.tevh-title {
	margin: 0 0 16px;
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--tevh-text);
}

.tevh-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

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

.tevh-field label {
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--tevh-text);
}

.tevh-field input[type="number"],
.tevh-field select {
	width: 100%;
	padding: 6px 14px;
	font-size: 1rem;
	border: 1px solid var(--tevh-border);
	border-radius: 8px;
	background: var(--tevh-bg);
	color: var(--tevh-text);
	appearance: none;
	-webkit-appearance: none;
}

.tevh-field input[type="number"]:focus,
.tevh-field select:focus {
	outline: 3px solid rgba(15, 118, 110, 0.35);
	outline-offset: 1px;
	border-color: var(--tevh-primary);
}

.tevh-field input.tevh-invalid {
	border-color: var(--tevh-error);
}

.tevh-help {
	margin: 0;
	font-size: 0.82rem;
	color: var(--tevh-text-muted);
}

.tevh-optional {
	font-weight: 400;
	color: var(--tevh-text-muted);
}

.tevh-field--checkbox label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 500;
	cursor: pointer;
}

.tevh-field--checkbox input[type="checkbox"] {
	width: 20px;
	height: 20px;
	accent-color: var(--tevh-primary);
}

.tevh-advanced {
	border: 1px solid var(--tevh-border);
	border-radius: 8px;
	padding: 12px 14px;
	background: var(--tevh-bg-soft);
}

.tevh-advanced summary {
	cursor: pointer;
	font-weight: 600;
	font-size: 0.92rem;
	color: var(--tevh-primary-dark);
}

.tevh-advanced > *:not(summary) {
	margin-top: 14px;
}

.tevh-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.tevh-soc-summary {
	margin-top: 16px;
	padding: 14px;
	background: var(--tevh-bg-soft);
	border-radius: 8px;
}

.tevh-soc-summary h3 {
	margin: 0 0 8px;
	font-size: 0.95rem;
}

.tevh-soc-summary p {
	margin: 0 0 6px;
	font-size: 0.88rem;
}

.tevh-dc-warning {
	color: var(--tevh-text-muted);
	font-size: 0.78rem !important;
}

.tevh-compare {
	margin-top: 18px;
}

.tevh-compare h3 {
	margin: 0 0 10px;
	font-size: 0.95rem;
}

.tevh-compare-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.85rem;
}

.tevh-compare-table th,
.tevh-compare-table td {
	text-align: left;
	padding: 8px 10px;
	border-bottom: 1px solid var(--tevh-border);
}

.tevh-compare-table th {
	color: var(--tevh-text-muted);
	font-weight: 600;
}

.tevh-compare-table tr.tevh-compare-best td {
	font-weight: 700;
	color: var(--tevh-primary-dark);
}

.tevh-submit {
	margin-top: 4px;
	padding: 14px 18px;
	font-size: 1.02rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #fff;
	background: var(--tevh-primary);
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.tevh-submit:hover,
.tevh-submit:focus-visible {
	background: var(--tevh-primary-dark);
}

.tevh-submit:active {
	transform: translateY(1px);
}

.tevh-error {
	margin-top: 12px;
	padding: 10px 12px;
	border-radius: 8px;
	background: #fdecea;
	color: var(--tevh-error);
	font-size: 0.9rem;
}

.tevh-results {
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid var(--tevh-border);
}

.tevh-result-hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 18px 12px;
	background: var(--tevh-bg-soft);
	border-radius: var(--tevh-radius);
	margin-bottom: 16px;
}

.tevh-result-hero__label {
	font-size: 0.85rem;
	color: var(--tevh-text-muted);
	margin-bottom: 4px;
}

.tevh-result-hero__value {
	font-size: 2rem;
	font-weight: 800;
	color: var(--tevh-primary);
	line-height: 1.2;
}

.tevh-result-hero__sub {
	margin-top: 4px;
	font-size: 0.9rem;
	color: var(--tevh-text-muted);
}

.tevh-result-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.tevh-result-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px;
	background: var(--tevh-bg-soft);
	border-radius: 8px;
	text-align: center;
}

.tevh-result-card__value {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--tevh-text);
}

.tevh-result-card__label {
	font-size: 0.78rem;
	color: var(--tevh-text-muted);
}

.tevh-note {
	margin: 18px 0 0;
	font-size: 0.78rem;
	color: var(--tevh-text-muted);
	line-height: 1.5;
}

@media (min-width: 480px) {
	.tevh-wrap {
		padding: 28px;
	}

	.tevh-result-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Erişilebilirlik: azaltılmış hareket tercih edenler için */
@media (prefers-reduced-motion: reduce) {
	.tevh-submit {
		transition: none;
	}
}