@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Armenian:wght@400;500;600;700;800&display=swap");

:root {
	--egov-navy: #0a2f66;
	--egov-navy-2: #0d47a1;
	--egov-blue: #1a5fc9;
	--egov-sky: #e8f2ff;
	--egov-page: linear-gradient(165deg, #b3cff2 0%, #d9e8fa 38%, #eef4fc 100%);
	--egov-card: linear-gradient(180deg, #f8fbff 0%, #edf4fc 58%, #e9f1fb 100%);
	--egov-gold: #d4a72c;
	--egov-text: #0c1f3f;
	--egov-muted: #4d5f79;
	--egov-radius: 22px;
	--egov-shadow: 0 22px 50px rgba(8, 40, 90, 0.2);
}

html,
body {
	font-family: "Noto Sans Armenian", "Arian AMU", Arial, sans-serif;
}

/* —— Header (all flow pages) —— */
.egov-header,
body[class] .app-topbar {
	background: var(--egov-navy);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 11px 16px;
	min-height: 48px;
	box-sizing: border-box;
	position: relative;
	z-index: 5;
}

.egov-header__left,
body[class] .app-topbar > span:first-child {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 600;
}

.egov-header__emblem {
	width: 38px;
	height: 38px;
	object-fit: contain;
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}

.egov-header__titles {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
	max-width: min(58vw, 320px);
}

.egov-header__title {
	font-size: clamp(11px, 3.2vw, 14px);
	font-weight: 700;
	letter-spacing: 0.01em;
}

.egov-header__right,
body[class] .app-topbar > span:last-child {
	display: flex;
	align-items: center;
	gap: 12px;
}

.egov-header__search {
	width: 22px;
	height: 22px;
	opacity: 0.95;
	background: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3-3'/%3E%3C/svg%3E");
}

.egov-header__flag {
	display: inline-flex;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 3px;
	overflow: hidden;
	line-height: 0;
}

/* Card top — coat of arms + government line (e-gov style) */
.egov-card-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	margin: -20px -18px 14px;
	border-radius: 20px 20px 0 0;
	background: linear-gradient(180deg, #0b3d84 0%, #0a2f66 100%);
	color: #fff;
	box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.12);
}

.soc-card .egov-card-brand {
	margin: 0;
	border-radius: 22px 22px 0 0;
}

.egov-card-brand__emblem {
	width: 48px;
	height: 48px;
	flex-shrink: 0;
	object-fit: contain;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.egov-card-brand__gov {
	margin: 0;
	font-size: 11px;
	font-weight: 600;
	opacity: 0.95;
}

.egov-card-brand__gov--strong {
	font-size: 13px;
	font-weight: 800;
}

.egov-card-brand__sub {
	margin: 4px 0 0;
	font-size: 10px;
	opacity: 0.82;
	font-weight: 500;
}

.app-hero-emblem,
.calc-emblem,
.appr-emblem {
	width: 58px;
	height: 58px;
	margin: 0 auto 10px;
	padding: 6px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid #c5daf7;
	box-shadow: 0 6px 16px rgba(16, 74, 160, 0.12);
	display: flex;
	align-items: center;
	justify-content: center;
}

.app-hero-emblem img,
.calc-emblem img,
.appr-emblem img {
	width: 44px;
	height: 44px;
	object-fit: contain;
}

/* —— Page shell —— */
.egov-page,
body.application-flow::before {
	background: var(--egov-page);
}

body.application-flow {
	margin: 0;
	min-height: 100%;
	background: var(--egov-page);
	position: relative;
}

body.application-flow::after {
	content: "";
	position: fixed;
	inset: 0;
	background: url("/new_images/gov_building.jpg") center 30% / cover no-repeat;
	opacity: 0.12;
	pointer-events: none;
	z-index: 0;
}

.egov-stage,
.app-wrap,
.calc-stage,
.appr-stage {
	position: relative;
	z-index: 2;
	min-height: calc(100vh - 48px);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 18px 14px 28px;
	box-sizing: border-box;
}

@media (max-width: 480px) {
	.app-wrap,
	.calc-stage,
	.appr-stage {
		padding: 10px 10px 20px;
		align-items: flex-start;
	}

	.egov-card,
	.app-card,
	.calc-card,
	.appr-card {
		width: calc(100vw - 20px);
		max-width: none;
		padding: 16px 14px 16px;
		border-radius: 20px;
		box-shadow: 0 14px 36px rgba(7, 36, 84, 0.18);
	}

	.egov-card-brand {
		margin: -16px -14px 12px;
		padding: 10px 12px;
		gap: 10px;
	}

	.egov-card-brand__emblem {
		width: 40px;
		height: 40px;
	}

	body.application-flow::after {
		opacity: 0.18;
	}
}

.egov-card,
.app-card,
.calc-card,
.appr-card {
	width: min(440px, 100%);
	background: var(--egov-card);
	border: 2px solid rgba(255, 255, 255, 0.92);
	border-radius: var(--egov-radius);
	box-shadow: var(--egov-shadow);
	padding: 20px 18px 20px;
	box-sizing: border-box;
}

.app-card--wide {
	width: min(560px, 100%);
}

/* —— Stepper —— */
.app-steps {
	display: flex;
	gap: 6px;
	margin-bottom: 16px;
}

.app-step {
	flex: 1;
	background: #fff;
	border: 1px solid #d5e2f2;
	border-radius: 12px;
	padding: 8px 4px;
	font-size: 9px;
	line-height: 1.2;
	color: var(--egov-muted);
	text-align: center;
	font-weight: 500;
}

.app-step small {
	display: block;
	font-size: 9px;
}

.app-step.is-active {
	border-color: var(--egov-blue);
	background: linear-gradient(180deg, #1a5fc9 0%, #0d47a1 100%);
	color: #fff;
	box-shadow: 0 6px 14px rgba(13, 71, 161, 0.28);
	font-weight: 700;
}

.app-step.is-done {
	border-color: #7cb3ff;
	color: var(--egov-navy);
	background: #f2f7ff;
}

/* —— Titles —— */
.app-title,
.calc-title,
.appr-title {
	text-align: center;
	font-size: 19px;
	font-weight: 800;
	line-height: 1.3;
	margin: 0 0 8px;
	color: var(--egov-navy);
}

.app-subtitle {
	text-align: center;
	font-size: 13px;
	color: var(--egov-muted);
	margin: 0 0 14px;
	line-height: 1.35;
}

.app-hero-icon,
.calc-coin,
.appr-coin {
	width: 56px;
	height: 56px;
	margin: 0 auto 10px;
	border-radius: 50%;
	background: var(--egov-sky);
	border: 2px solid #c5daf7;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	box-shadow: 0 6px 16px rgba(16, 74, 160, 0.12);
}

/* —— Buttons —— */
.app-btn--primary,
.soc-expand-btn,
.soc-submit,
.appr-cta {
	background: linear-gradient(180deg, #1a5fc9 0%, #0a3d8f 100%) !important;
	box-shadow: 0 8px 18px rgba(10, 61, 143, 0.32);
}

/* —— Calc / appr shared —— */
.calc-topbar,
.appr-topbar {
	background: var(--egov-navy);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 11px 16px;
	font-size: 14px;
	font-weight: 600;
}

.calc-stage,
.appr-stage {
	background: transparent;
}