/* Форма заявки и модальное окно */
dialog.modal {
	border: none;
	padding: 0;
	max-width: 480px;
	width: calc(100% - 32px);
	border-radius: 4px;
	overflow: hidden;
}

dialog.modal--request {
	max-width: 520px;
}

dialog.modal::backdrop {
	background: rgba(58, 58, 58, 0.75);
}

.modal__inner--request {
	position: relative;
	padding: 32px 28px 28px;
	background: #fff;
}

.modal__x {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	width: 40px;
	height: 40px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(58, 58, 58, 0.08);
	color: #3a3a3a;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s;
}

.modal__x:hover {
	background: rgba(58, 58, 58, 0.14);
}

.request-card--modal .request-card__title,
.request-card--modal .request-card__lead {
	text-align: left;
}

.request-card .request-card__title {
	margin-bottom: 12px;
}

.request-card .request-card__lead {
	font-size: 15px;
	line-height: 1.45;
	color: #666;
	margin-bottom: 24px;
}

.form-group {
	margin-bottom: 18px;
}

.form-row {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -10px;
}

.form-row .form-group {
	width: 50%;
	padding: 0 10px;
}

.request-card input[type="text"],
.request-card input[type="tel"] {
	width: 100%;
	height: 48px;
	padding: 0 14px;
	font-family: 'Onest', sans-serif;
	font-size: 15px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	color: #3a3a3a;
}

.request-card input:focus {
	outline: 2px solid rgba(58, 58, 58, 0.25);
	outline-offset: 0;
}

.form-status {
	margin-bottom: 16px;
	padding: 12px 14px;
	font-size: 14px;
	line-height: 1.4;
	border-radius: 4px;
}

.form-status--ok {
	background: #e8f5e9;
	color: #1b5e20;
	border: 1px solid #a5d6a7;
}

.form-status--error {
	background: #ffebee;
	color: #b71c1c;
	border: 1px solid #ef9a9a;
}

.request-card .form-submit {
	margin-top: 8px;
	text-align: center;
}

.request-card .form-submit .btn-black {
	min-width: 200px;
	cursor: pointer;
	border: none;
}

.accord-request-form--loading .form-submit .btn-black {
	opacity: 0.65;
	cursor: wait;
}

.request-card .agree {
	margin-top: 16px;
	font-size: 12px;
	line-height: 1.45;
	color: #888;
}

.request-card .agree a {
	color: #3a3a3a;
	text-decoration: underline;
}

.request-card--modal .form-row .form-group {
	width: 100%;
}

@media (min-width: 560px) {
	.request-card--modal .form-row .form-group {
		width: 50%;
	}
}
