/* Оформление формы заявки. Палитра — из логотипа: тёмно-синий #1B212F, оранжевый #FC9036. */
.vasho-form {
	--vasho-primary: #1B212F;
	--vasho-primary-600: #2A3348;
	--vasho-accent: #FC9036;
	--vasho-accent-600: #E87D1E;
	--vasho-bg: #F5F7FA;
	--vasho-surface: #FFFFFF;
	--vasho-border: #DCE1E8;
	--vasho-text: #1F2633;
	--vasho-muted: #6B7686;
	--vasho-danger: #D64545;
	--vasho-radius: 14px;
	--vasho-radius-sm: 10px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--vasho-text);
	line-height: 1.5;
	max-width: 960px;
	margin: 0 auto;
}

.vasho-form *, .vasho-form *::before, .vasho-form *::after { box-sizing: border-box; }

/* Атрибут hidden обязан скрывать элемент, даже если у него задан свой display (grid/flex). */
.vasho-form [hidden] { display: none !important; }

.vasho-form__card {
	background: var(--vasho-surface);
	border: 1px solid var(--vasho-border);
	border-radius: var(--vasho-radius);
	box-shadow: 0 10px 30px rgba(27, 33, 47, .08);
	overflow: hidden;
}

.vasho-form__head {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 26px 32px;
	background: var(--vasho-primary);
	color: #fff;
}
.vasho-form__logo { height: 54px; width: auto; border-radius: 8px; background: rgba(255,255,255,.06); padding: 4px; }
.vasho-form__title { margin: 0 0 4px; font-size: 22px; font-weight: 700; color: #fff; }
.vasho-form__subtitle { margin: 0; font-size: 14px; color: rgba(255,255,255,.75); }

.vasho-steps { display: flex; gap: 8px; list-style: none; margin: 0; padding: 18px 32px; background: var(--vasho-bg); border-bottom: 1px solid var(--vasho-border); flex-wrap: wrap; }
.vasho-steps__item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--vasho-muted); padding: 6px 10px; border-radius: 999px; }
.vasho-steps__num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #E4E8EF; color: var(--vasho-primary); font-weight: 700; font-size: 12px; }
.vasho-steps__item.is-active { color: var(--vasho-primary); background: #fff; box-shadow: inset 0 0 0 1px var(--vasho-border); }
.vasho-steps__item.is-active .vasho-steps__num { background: var(--vasho-accent); color: #fff; }
.vasho-steps__item.is-done .vasho-steps__num { background: var(--vasho-primary); color: #fff; }

.vasho-form__body { padding: 28px 32px 8px; }
.vasho-step { display: none; }
.vasho-step.is-active { display: block; animation: vasho-fade .2s ease; }
.vasho-step__title { margin: 0 0 16px; font-size: 18px; }
.vasho-step__hint { color: var(--vasho-muted); font-size: 14px; margin-top: -8px; margin-bottom: 16px; }

.vasho-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vasho-choice__card { position: relative; border: 2px solid var(--vasho-border); border-radius: var(--vasho-radius-sm); padding: 18px; cursor: pointer; transition: .15s; }
.vasho-choice__card input { position: absolute; opacity: 0; }
.vasho-choice__card:hover { border-color: var(--vasho-accent); }
.vasho-choice__card:has(input:checked) { border-color: var(--vasho-accent); background: #FFF7F0; }
.vasho-choice__title { display: block; font-weight: 700; margin-bottom: 4px; }
.vasho-choice__desc { display: block; font-size: 13px; color: var(--vasho-muted); }

.vasho-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.vasho-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.vasho-field--wide { grid-column: 1 / -1; }
.vasho-field > span { color: var(--vasho-muted); }
.vasho-field i { color: var(--vasho-accent-600); font-style: normal; }
.vasho-field input, .vasho-field select, .vasho-field textarea {
	width: 100%; padding: 11px 12px; border: 1px solid var(--vasho-border);
	border-radius: var(--vasho-radius-sm); font-size: 15px; color: var(--vasho-text); background: #fff;
}
.vasho-field input:focus, .vasho-field select:focus { outline: none; border-color: var(--vasho-accent); box-shadow: 0 0 0 3px rgba(252,144,54,.18); }
.vasho-field.is-invalid input, .vasho-field.is-invalid select { border-color: var(--vasho-danger); }
.vasho-field--check { flex-direction: row; align-items: center; gap: 10px; }

.vasho-students { display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; }
.vasho-student { border: 1px solid var(--vasho-border); border-radius: var(--vasho-radius-sm); padding: 16px; background: var(--vasho-bg); }
.vasho-student__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.vasho-student__head h4 { margin: 0; font-size: 15px; }
.vasho-courses { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.vasho-courses__title { grid-column: 1 / -1; margin: 0; font-size: 13px; font-weight: 600; }
.vasho-courses__empty { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--vasho-danger); }
.vasho-course { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; border: 1px solid var(--vasho-border); border-radius: 8px; padding: 8px 10px; background: #fff; cursor: pointer; }
.vasho-course:has(input:checked) { border-color: var(--vasho-accent); background: #FFF7F0; }
.vasho-course small { color: var(--vasho-muted); }
.vasho-hint { display: block; margin-top: 4px; font-size: 12px; line-height: 1.35; color: var(--vasho-muted); }
.vasho-org-inn { margin-top: 14px; border: 1px solid var(--vasho-border); border-radius: var(--vasho-radius-sm); padding: 14px; background: #FFFDF8; }
.vasho-org-inn__title { margin: 0 0 8px; font-size: 15px; }
.vasho-course-rows { grid-column: 1 / -1; display: grid; gap: 10px; }
.vasho-course-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; border: 1px solid var(--vasho-border); border-radius: 8px; padding: 8px 10px; background: #fff; }
.vasho-course-row .vasho-field { margin: 0; }
.vasho-course-row.is-invalid { border-color: var(--vasho-danger); }

.vasho-consent__alert { border: 1px solid var(--vasho-accent); border-left: 4px solid var(--vasho-accent); background: #FFF6EE; border-radius: var(--vasho-radius-sm); padding: 12px 14px; margin: 0 0 12px; font-size: 14px; }
.vasho-consent__alert strong { display: block; margin-bottom: 4px; }
.vasho-consent__alert p { margin: 4px 0; }
.vasho-consent__progress { font-weight: 700; color: var(--vasho-primary, #1B212F); }
.vasho-consent__text { font-size: 13px; color: var(--vasho-muted); max-height: 200px; overflow: auto; border: 1px solid var(--vasho-border); border-radius: var(--vasho-radius-sm); padding: 14px; background: var(--vasho-bg); }
.vasho-consent__links { display: flex; gap: 16px; margin: 12px 0; font-size: 14px; }
.vasho-consent__links a { color: var(--vasho-accent-600); }
.vasho-consent__check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 600; }

.vasho-review { border: 1px solid var(--vasho-border); border-radius: var(--vasho-radius-sm); padding: 18px; margin-bottom: 18px; font-size: 14px; }
.vasho-review h4 { margin: 0 0 8px; }
.vasho-review table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.vasho-review th, .vasho-review td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--vasho-border); vertical-align: top; }
.vasho-review th { color: var(--vasho-muted); font-weight: 600; width: 40%; }

.vasho-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: var(--vasho-radius-sm); border: 1px solid transparent; font-size: 15px; font-weight: 600; cursor: pointer; transition: .15s; }
.vasho-btn--primary { background: var(--vasho-accent); color: #fff; }
.vasho-btn--primary:hover { background: var(--vasho-accent-600); }
.vasho-btn--ghost { background: #fff; color: var(--vasho-primary); border-color: var(--vasho-border); }
.vasho-btn--ghost:hover { border-color: var(--vasho-primary); }
.vasho-btn--lg { width: 100%; padding: 15px; font-size: 16px; }
.vasho-btn--danger { background: #fff; color: var(--vasho-danger); border-color: var(--vasho-danger); }
.vasho-btn[disabled] { opacity: .5; cursor: not-allowed; }

.vasho-form__nav { display: flex; justify-content: space-between; gap: 12px; padding: 20px 32px 28px; }
/* 2.15.9. Блок сообщения о незаполненных обязательных полях. «Липкий» — при
   прокрутке к первому незаполненному полю список остаётся на виду сверху. */
.vasho-form__errors { position: sticky; top: 8px; z-index: 6; margin: 0 32px 14px; padding: 12px 16px; border-radius: var(--vasho-radius-sm); background: #FDECEC; color: var(--vasho-danger); border: 1px solid #F5C2C2; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.vasho-form__errors-title { margin: 0 0 6px; font-weight: 700; }
.vasho-form__errors-single { margin: 0; }
.vasho-form__errors-list { margin: 0; padding-left: 20px; }
.vasho-form__errors-list li { margin: 2px 0; }
.vasho-consent__check.is-invalid span { color: var(--vasho-danger); }

.vasho-thanks { text-align: center; padding: 48px 32px; }
.vasho-thanks__icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--vasho-accent); color: #fff; font-size: 34px; display: flex; align-items: center; justify-content: center; }
.vasho-thanks h3 { margin: 0 0 8px; font-size: 22px; }
.vasho-thanks__number { font-weight: 700; color: var(--vasho-primary); }
.vasho-thanks__files { margin: 12px auto 18px; max-width: 560px; text-align: left; }
.vasho-thanks__files-warn { color: var(--vasho-danger); }
.vasho-thanks__files ul { margin: 6px 0 10px; padding-left: 20px; }

.vasho-filelist { margin-top: 8px; line-height: 1.7; font-size: 14px; }
.vasho-filelist__ok { color: var(--vasho-primary); }
.vasho-filelist__bad { color: var(--vasho-danger); }

@keyframes vasho-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 720px) {
	.vasho-form__head { padding: 20px; flex-direction: column; text-align: center; }
	.vasho-steps { padding: 12px 16px; }
	.vasho-steps__label { display: none; }
	.vasho-form__body, .vasho-form__nav { padding-left: 16px; padding-right: 16px; }
	.vasho-fields, .vasho-choice, .vasho-courses { grid-template-columns: 1fr; }
	.vasho-course-row { grid-template-columns: 1fr; }
	.vasho-form__errors { margin: 0 16px; }
}
