/* Apply forms wizard
------------------------------------- */

.apply-form-page { padding: 40px 0 60px; }

.apply-form-intro { max-width: 760px; margin: 0 auto 30px; }
.apply-form-intro p { font-size: 16px; line-height: 1.6; color: #555; }

/* Заголовок + подзаголовок страницы - они же og:title/og:description превью ссылки
   (см. ORG_ID_PAGE/MICROCHIP_PROGRAM_PAGE в controllers/ApplyFormsController.js) */
.apply-form-hero { margin-bottom: 22px; }
.apply-form-intro .apply-form-subtitle {
	max-width: 640px;
	margin: 0 auto;
	font-size: 20px;
	line-height: 1.5;
	color: #666;
}
@media (max-width: 767px) {
	.apply-form-intro .apply-form-subtitle { font-size: 18px; }
}

.apply-form-benefits {
	background-color: #fcfcfc;
	border: 1px solid #ececec;
	border-radius: 8px;
	padding: 20px 25px;
	margin: 20px 0;
}
.apply-form-benefits h4 { margin: 0 0 10px; font-weight: 600; }
.apply-form-benefits ul { margin: 0; padding-left: 20px; }
.apply-form-benefits li { line-height: 1.8; }

.apply-wizard {
	max-width: 760px;
	margin: 0 auto;
	background-color: #fff;
	border-radius: 10px;
	box-shadow: 0 3px 20px rgba(0,0,0,0.08);
	padding: 35px 40px 40px;
}
@media (max-width: 767px) {
	.apply-wizard { padding: 25px 18px 30px; }
}

/* Progress indicator */
.wizard-progress {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 35px;
	position: relative;
}
.wizard-progress-step {
	flex: 1;
	text-align: center;
	position: relative;
	cursor: default;
}
.wizard-progress-step:not(:last-child):after {
	content: '';
	position: absolute;
	top: 15px;
	left: 50%;
	width: 100%;
	height: 2px;
	background-color: #e6e6e6;
	z-index: 0;
}
.wizard-progress-step.done:not(:last-child):after { background-color: #66676b; }

.wizard-progress-step .dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background-color: #fff;
	border: 2px solid #d8d8d8;
	color: #999;
	font-weight: 600;
	font-size: 14px;
	position: relative;
	z-index: 1;
	transition: all 0.2s ease-in-out;
}
.wizard-progress-step.active .dot {
	border-color: #66676b;
	color: #66676b;
	background-color: #fff;
}
.wizard-progress-step.done .dot {
	border-color: #66676b;
	background-color: #66676b;
	color: #fff;
	cursor: pointer;
}
.wizard-progress-step .dot .fa-check { display: none; }
.wizard-progress-step.done .dot .num { display: none; }
.wizard-progress-step.done .dot .fa-check { display: inline-block; }

.wizard-progress-step .label {
	display: block;
	margin-top: 8px;
	font-size: 13px;
	color: #999;
	font-weight: 600;
}
.wizard-progress-step.active .label,
.wizard-progress-step.done .label { color: #333; }

/* Steps */
.wizard-step { display: none; }
.wizard-step.active { display: block; animation: wizardFadeIn 0.25s ease-in-out; }

@keyframes wizardFadeIn {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

.wizard-step h3 {
	margin: 0 0 4px;
	font-weight: 600;
}
.wizard-step .step-hint {
	color: #999;
	font-size: 14px;
	margin-bottom: 22px;
}

.wizard-step .form-row { margin-bottom: 18px; }
.wizard-step .form-row > label:not(.radio-inline-label) {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 14px;
	color: #333;
}
.wizard-step .form-row .hint {
	display: block;
	font-weight: 400;
	color: #999;
	font-size: 12.5px;
	margin-top: 3px;
}
.wizard-step .required-star { color: #f00; margin-left: 2px; }

.wizard-step input.input-text,
.wizard-step textarea.input-text,
.wizard-step select.input-text {
	width: 100%;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	padding: 10px 14px;
	font-size: 14px;
	background-color: #fff;
}
.wizard-step input.input-text:focus,
.wizard-step textarea.input-text:focus,
.wizard-step select.input-text:focus {
	border-color: #66676b;
	outline: none;
}
.wizard-step textarea.input-text { resize: vertical; min-height: 80px; }

/* Варианты ответа - строго по одному на строку на любой ширине экрана: вперемешку
   в строку короткие и длинные варианты читаются плохо, а на мобиле ещё и мелко
   прокликиваются. Кликабельна вся строка варианта - label блочный (глобальный
   label {display: block} из style.css), а .radio/.checkbox-opt растянуты на ширину. */
.wizard-options { display: flex; flex-direction: column; gap: 8px; }
.wizard-options .checkbox-opt label {
	position: relative;
	padding-left: 26px;
	cursor: pointer;
	line-height: 22px;
}
.wizard-options .checkbox-opt input[type="checkbox"] {
	position: absolute;
	opacity: 0;
}
.wizard-options .checkbox-opt .cb-label {
	position: absolute;
	left: 0;
	top: 2px;
	width: 17px;
	height: 17px;
	border: 2px solid #b4b4b4;
	border-radius: 4px;
	background-color: #fff;
}
.wizard-options .checkbox-opt input[type="checkbox"]:checked + label .cb-label {
	background-color: #66676b;
	border-color: #66676b;
}
.wizard-options .checkbox-opt input[type="checkbox"]:checked + label .cb-label:after {
	content: '';
	position: absolute;
	left: 4px;
	top: 0px;
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.wizard-conditional {
	margin-top: 12px;
	padding: 14px 16px;
	background-color: #fafafa;
	border-radius: 6px;
	border: 1px dashed #ddd;
}

.wizard-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid #eee;
}
.wizard-nav .btn-back { visibility: visible; }
.wizard-nav .btn-back.is-hidden { visibility: hidden; }
.wizard-nav .nav-spacer { flex: 1; }

/* Success screen */
.wizard-success {
	display: none;
	text-align: center;
	padding: 30px 10px 10px;
}
.wizard-success .icon-ok {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background-color: #e0f5d7;
	color: #449626;
	font-size: 28px;
	margin-bottom: 18px;
}
.wizard-success h3 { margin-bottom: 10px; }
.wizard-success p { color: #666; max-width: 480px; margin: 0 auto; }
