.vks-widget {
	max-width: 640px;
	margin: 0 auto 2rem;
	font-family: inherit;
}

.vks-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 20px;
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	background: #fff;
}

.vks-form h3 {
	margin: 0 0 8px;
}

.vks-form fieldset {
	border: 1px solid #ececec;
	border-radius: 8px;
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.vks-form fieldset legend {
	font-weight: 600;
	padding: 0 6px;
}

.vks-form label {
	display: flex;
	flex-direction: column;
	font-size: 14px;
	gap: 4px;
	color: #333;
}

.vks-form input {
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 15px;
}

.vks-btn {
	align-self: flex-start;
	padding: 10px 22px;
	background: #6a2c8f;
	color: #fff;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 15px;
}

.vks-btn:hover {
	background: #56216f;
}

.vks-result {
	margin-top: 18px;
}

.vks-result h4 {
	margin: 16px 0 8px;
}

.vks-loading {
	color: #666;
	font-style: italic;
}

.vks-error {
	color: #b00020;
	background: #fdecea;
	padding: 10px 14px;
	border-radius: 6px;
}

.vks-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 12px;
}

.vks-table td {
	padding: 6px 10px;
	border-bottom: 1px solid #eee;
	vertical-align: top;
	text-transform: capitalize;
	font-size: 14px;
}

.vks-table td:first-child {
	font-weight: 600;
	width: 40%;
	color: #444;
}

.vks-list {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
}

.vks-list li {
	border: 1px solid #eee;
	border-radius: 8px;
	padding: 10px;
	margin-bottom: 8px;
}

/* Summary cards shown at the top of a result — the clean, curated view */
.vks-summary-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 10px;
	margin-bottom: 16px;
}

.vks-summary-card {
	background: #faf6fd;
	border: 1px solid #ecdff5;
	border-radius: 10px;
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.vks-summary-label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #8a6aa0;
}

.vks-summary-value {
	font-size: 17px;
	font-weight: 600;
	color: #2c2c2c;
	text-transform: capitalize;
}

.vks-hint {
	color: #777;
	font-size: 13px;
	margin-bottom: 12px;
}

/* Collapsible "full technical details" sections — keeps the page from
   turning into a giant wall of raw JSON tables by default. */
.vks-accordion {
	border: 1px solid #e6e6e6;
	border-radius: 8px;
	margin-bottom: 10px;
	overflow: hidden;
}

.vks-accordion summary {
	cursor: pointer;
	padding: 12px 16px;
	font-weight: 600;
	background: #f7f5f9;
	list-style: none;
}

.vks-accordion summary::-webkit-details-marker {
	display: none;
}

.vks-accordion summary::before {
	content: "▸ ";
	color: #6a2c8f;
}

.vks-accordion[open] summary::before {
	content: "▾ ";
}

.vks-accordion-body {
	padding: 12px 16px;
}

/* Matching score hero */
.vks-score-hero {
	text-align: center;
	background: linear-gradient(135deg, #6a2c8f, #a34ecb);
	color: #fff;
	border-radius: 12px;
	padding: 22px;
	margin-bottom: 18px;
}

.vks-score-number {
	font-size: 34px;
	font-weight: 700;
}

.vks-score-percentage {
	font-size: 15px;
	opacity: 0.9;
	margin-top: 2px;
}

.vks-score-recommendation {
	margin-top: 10px;
	font-size: 15px;
	font-weight: 500;
}

/* City autocomplete */
.vks-autocomplete-wrap {
	position: relative;
	display: block;
}

.vks-city-suggestions {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 20;
	background: #fff;
	border: 1px solid #ccc;
	border-top: none;
	border-radius: 0 0 6px 6px;
	max-height: 220px;
	overflow-y: auto;
	margin: 0;
	padding: 0;
	list-style: none;
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.vks-city-suggestions li {
	padding: 9px 12px;
	cursor: pointer;
	font-size: 14px;
	border: none;
	margin: 0;
	border-radius: 0;
}

.vks-city-suggestions li:hover {
	background: #f4ecf9;
}

/* Visual chart wheel */
.vks-chart-wheel {
	text-align: center;
	margin-bottom: 18px;
}

.vks-chart-wheel svg,
.vks-chart-wheel img {
	max-width: 100%;
	height: auto;
}
