.modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(44, 44, 44, 0.45);
	z-index: 99;
	align-items: center;
	justify-content: center;
}
.modal-form {
	background: #fff;
	padding: 22px 18px 18px 18px;
	min-width: 260px;
	max-width: 320px;
	width: 90vw;
	box-shadow: 0 8px 32px rgba(44,44,44,0.18);
	position: relative;
	animation: modalIn 0.2s;
}
@keyframes modalIn {
	from { transform: translateY(-30px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}
.modal-close {
	position: absolute;
	top: -18px;
	right: -18px;
	background: #2d325a;
	color: #fff;
	border: 3px solid #fff;
	border-radius: 50%;
	width: 36px;
	height: 36px;
	font-size: 28px;
	font-weight: 700;
	cursor: pointer;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(44,44,44,0.18);
	z-index: 10;
	transition: background 0.2s;
}
.modal-title {
	font-size: 30px;
	margin-bottom: 12px;
}
.modal-field input,
.modal-field textarea {
	width: 100%;
	padding: 10px 20px;
	border: 1px solid #e0e0e0;
	font-size: 14px;
}
.modal-field textarea {
	resize: vertical;
	min-height: 80px;
	max-height: 300px;
}
.modal-field input:focus,
.modal-field textarea:focus {
	border-top: 2.5px #6ec6ff;
	border-bottom: 2.5px #6ec6ff;
	border-left: 1px #6ec6ff;
	border-right: 1px #6ec6ff;
	box-shadow: 0 0 0 2px #6ec6ff66;
	outline: none;
}
.modal-error {
	color: #e57373;
	font-size: 13px;
	text-align: center;
	margin-top: 2px;
	margin-bottom: 10px;
	min-height: 18px;
}
.modal-field input.error,
.modal-field textarea.error {
	border-top: 2.5px #e57373;
	border-bottom: 2.5px #e57373;
	border-left: 1px #e57373;
	border-right: 1px #e57373;
	box-shadow: 0 0 0 2px #ffb3b3, 0 0 8px 2px #ffb3b366;
	color: #e57373;
}
.modal-field textarea {
	resize: vertical;
	min-height: 80px;
	max-height: 300px;
}
.modal-info {
	font-size: 11px;
	margin-bottom: 12px;
}
.modal-link {
	color: #0645AD;
	text-decoration: none;
	cursor: pointer;
	border-bottom: 1px dashed transparent;
	transition: color 0.2s, border-bottom 0.2s;
}
.modal-link:hover,
.modal-link:focus {
	color: #282f5a;
	text-decoration: underline;
}
.modal-submit {
	background: #2d325a;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	border: none;
	border-radius: 2px;
	padding: 12px 0;
	width: 60%;
	cursor: pointer;
	transition: background 0.2s;
	margin-left: 0;
	margin-right: auto;
	display: block;
}
.modal-submit:hover,
.modal-submit:focus {
	background: #7e6624;
}
.success-modal-overlay {
	display: none;
	position: fixed;
	z-index: 10000;
	inset: 0;
	background: rgba(44,44,44,0.75);
	align-items: center;
	justify-content: center;
} 
.success-modal {
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 4px 32px rgba(44,44,44,0.18);
	padding: 18px 10px 14px 10px;
	min-width: 0;
	max-width: 320px;
	width: 100%;
	text-align: center;
	position: relative;
	animation: modalIn 0.2s;
}
.success-modal-message {
	font-size: 18px;
	margin-bottom: 24px;
	color: #222;
	line-height: 1.3;
}
.success-modal-ok {
	display: inline-block;
	margin: 0 auto 14px auto;
	padding: 8px 24px;
	font-size: 18px;
	border-radius: 14px;
	border: 2px solid #2d325a;
	background: #fff;
	color: #2d325a;
	cursor: pointer;
	font-weight: 500;
	transition: background 0.2s, color 0.2s;
}
.success-modal-ok:hover,
.success-modal-ok:focus {
	background: #2d325a;
	color: #fff;
}
.success-modal-note {
	font-size: 13px;
	color: #222;
	margin-top: 6px;
}

@media (max-width: 768px) {
    .modal-form {
        max-width: 98vw;
        padding: 12px 4vw 12px 4vw;
    }
	.modal-close {
		right: -15px;
	}
}
@media (max-width: 500px) {
	.success-modal {
		min-width: 0;
		padding: 12px 2vw 12px 2vw;
		font-size: 15px;
	}
	.success-modal-message {
		font-size: 15px;
	}
	.success-modal-ok {
		font-size: 15px;
		padding: 7px 12px;
	}
	.success-modal-note {
		font-size: 12px;
	}
}