/* ==================== ORDER FORM (block webmaster/order-form) ==================== */

/* .order-form > button .order-form__open + .order-form__modal (backdrop + dialog with form).
   Modal opens via :target without JS, via .is-open with JS (view.js). Button sizes — --order-btn-*. */

.order-form{
	margin: 0;
}

.order-form .order-form__open-wrap{
	width: 100%;
}

.order-form .order-form__open{
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: var(--order-btn-height);
	padding: 0 16px;
	border-radius: var(--catalog-btn-radius);
	background: var(--catalog-accent);
	color: #fff;
	font-size: var(--order-btn-size);
	font-weight: 600;
	text-transform: uppercase;
	text-decoration: none;
	transition: background .2s ease;
}

.order-form .order-form__open:hover{
	background: var(--catalog-accent-hover);
}

html.has-order-form{
	overflow: hidden;
}

.order-form__modal{
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.order-form__modal:target,
.order-form__modal.is-open{
	display: flex;
}

.order-form__modal .order-form__backdrop{
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .55);
}

.order-form__modal .order-form__dialog{
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: var(--order-dialog-width);
	max-height: calc(100vh - 32px);
	padding: var(--order-dialog-padding);
	overflow: auto;
	border-radius: var(--radius);
	background: var(--color-bg);
	color: var(--color-text);
	text-align: left;
	text-transform: none;
}

/* Close: drawn cross. */
.order-form__modal .order-form__close{
	position: absolute;
	top: 12px;
	right: 12px;
	width: 32px;
	height: 32px;
}

.order-form__modal .order-form__close::before,
.order-form__modal .order-form__close::after{
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 2px;
	background: var(--color-black);
	transform: translate(-50%, -50%) rotate(45deg);
}

.order-form__modal .order-form__close::after{
	transform: translate(-50%, -50%) rotate(-45deg);
}

.order-form__modal .order-form__title{
	margin: 0 32px 8px 0;
	font-size: var(--order-title-size);
	font-weight: 700;
	line-height: 1.2;
	color: var(--color-black);
}

.order-form__modal .order-form__product{
	margin: 0 0 16px;
	font-size: 15px;
	line-height: 1.4;
	color: var(--catalog-muted);
}

.order-form__modal .order-form__price{
	display: block;
	color: var(--color-black);
	font-weight: 700;
}

.order-form__modal .order-form__message{
	margin: 0 0 16px;
	padding: 12px 16px;
	border-radius: var(--catalog-btn-radius);
	font-size: 15px;
	line-height: 1.4;
}

.order-form__modal .order-form__message.is-success{
	background: #e7f6ec;
	color: #0a6b2d;
}

.order-form__modal .order-form__message.is-error{
	background: #fde8e8;
	color: #b3161b;
}

.order-form__modal .order-form__form{
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
}

.order-form__modal .order-form__form[hidden]{
	display: none;
}

/* Honeypot for bots — off-screen, not display:none (some bots skip hidden fields). */
.order-form__modal .order-form__hp{
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.order-form__modal .order-form__field{
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.order-form__modal .order-form__label{
	font-size: 14px;
	font-weight: 500;
}

.order-form__modal .order-form__input{
	box-sizing: border-box;
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--catalog-border);
	border-radius: var(--catalog-btn-radius);
	background: var(--color-bg);
	color: var(--color-black);
	font: inherit;
	font-size: 16px;
}

.order-form__modal .order-form__input:focus{
	border-color: var(--catalog-accent);
	outline: 2px solid rgba(5, 129, 252, .2);
}

.order-form__modal .order-form__textarea{
	resize: vertical;
}

.order-form__modal .order-form__consent{
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 13px;
	line-height: 1.4;
}

.order-form__modal .order-form__consent input{
	flex: none;
	margin: 2px 0 0;
}

.order-form__modal .order-form__submit{
	min-height: 50px;
	border: 0;
	border-radius: var(--catalog-btn-radius);
	background: var(--catalog-accent);
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .2s ease;
}

.order-form__modal .order-form__submit:hover{
	background: var(--catalog-accent-hover);
}

.order-form__modal .order-form__submit:disabled{
	opacity: .6;
	cursor: wait;
}

/* ---------- Fluent Forms inside the dialog (setting «Форма» of the block) inline on «О нас» (about.css), «Вопрос-ответ» (faq.css) and «Контакты» (contacts.css) ---------- */

.order-form__modal .order-form__fluent .fluentform .ff-el-group,
.about-intro .about-intro__form .fluentform .ff-el-group,
.contacts .contacts__form .fluentform .ff-el-group,
.faq-ask .fluentform .ff-el-group{
	margin-bottom: 14px;
}

.order-form__modal .order-form__fluent .fluentform .ff-el-input--label label,
.about-intro .about-intro__form .fluentform .ff-el-input--label label,
.contacts .contacts__form .fluentform .ff-el-input--label label,
.faq-ask .fluentform .ff-el-input--label label{
	font-size: 14px;
	font-weight: 500;
}

.order-form__modal .order-form__fluent .fluentform .ff-el-form-control,
.about-intro .about-intro__form .fluentform .ff-el-form-control,
.contacts .contacts__form .fluentform .ff-el-form-control,
.faq-ask .fluentform .ff-el-form-control{
	box-sizing: border-box;
	padding: 12px 14px;
	border-color: var(--catalog-border);
	border-radius: var(--catalog-btn-radius);
	color: var(--color-black);
	font-family: inherit;
	font-size: 16px;
}

.order-form__modal .order-form__fluent .fluentform .ff-el-form-control:focus,
.about-intro .about-intro__form .fluentform .ff-el-form-control:focus,
.contacts .contacts__form .fluentform .ff-el-form-control:focus,
.faq-ask .fluentform .ff-el-form-control:focus{
	border-color: var(--catalog-accent);
	outline: 2px solid rgba(5, 129, 252, .2);
}

.order-form__modal .order-form__fluent .fluentform .ff_t_c,
.about-intro .about-intro__form .fluentform .ff_t_c,
.contacts .contacts__form .fluentform .ff_t_c,
.faq-ask .fluentform .ff_t_c,
.order-form__modal .order-form__fluent .fluentform .ff-el-form-check-label,
.about-intro .about-intro__form .fluentform .ff-el-form-check-label,
.contacts .contacts__form .fluentform .ff-el-form-check-label,
.faq-ask .fluentform .ff-el-form-check-label{
	font-size: 13px;
	line-height: 1.4;
}

.order-form__modal .order-form__fluent .fluentform .ff-btn-submit,
.about-intro .about-intro__form .fluentform .ff-btn-submit,
.contacts .contacts__form .fluentform .ff-btn-submit,
.faq-ask .fluentform .ff-btn-submit{
	width: 100%;
	min-height: 50px;
	border: 0;
	border-radius: var(--catalog-btn-radius);
	background: var(--catalog-accent);
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	text-transform: uppercase;
	transition: background .2s ease;
}

.order-form__modal .order-form__fluent .fluentform .ff-btn-submit:hover,
.about-intro .about-intro__form .fluentform .ff-btn-submit:hover,
.contacts .contacts__form .fluentform .ff-btn-submit:hover,
.faq-ask .fluentform .ff-btn-submit:hover{
	background: var(--catalog-accent-hover);
	opacity: 1;
}

.order-form__modal .order-form__fluent .ff-message-success,
.about-intro .about-intro__form .ff-message-success,
.contacts .contacts__form .ff-message-success,
.faq-ask .ff-message-success{
	margin: 0;
	padding: 12px 16px;
	border: 0;
	border-radius: var(--catalog-btn-radius);
	background: #e7f6ec;
	box-shadow: none;
	color: #0a6b2d;
	font-size: 15px;
}
