@keyframes amb-fade-in-up {
	from {
		opacity: 0;
		transform: translateY(25px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.amb-contact-form {
	position: relative;
	overflow: hidden;
	background: linear-gradient(160deg, #3a3a3a 0%, #2b2b2b 100%);
	color: #ffffff;
	padding: 35px;
	margin: 0 auto 30px auto;
	max-width: 870px;
	width: 100%;
	border-radius: 10px;
	box-sizing: border-box;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	transition: box-shadow 0.35s ease, transform 0.35s ease;
	animation: amb-fade-in-up 0.6s ease both;
}

.amb-contact-form:hover {
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
	transform: translateY(-3px);
}

.amb-contact-form::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 5px;
	background: linear-gradient(90deg, #c5b08d, #d8c7a8);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.5s ease;
}

.amb-contact-form:hover::before {
	transform: scaleX(1);
}

.amb-contact-form * {
	box-sizing: border-box;
}

.amb-contact-form__title {
	position: relative;
	color: #ffffff;
	margin: 0 0 18px 0;
	padding-bottom: 12px;
	font-size: 26px;
	font-weight: bold;
}

.amb-contact-form__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 60px;
	height: 3px;
	background: #c5b08d;
	border-radius: 3px;
	transition: width 0.4s ease;
}

.amb-contact-form:hover .amb-contact-form__title::after {
	width: 110px;
}

.amb-contact-form__intro {
	color: #d6d6d6;
	margin: 0 0 25px 0;
	font-size: 16px;
	line-height: 1.5;
}

.amb-contact-form__group {
	margin-bottom: 18px;
}

.amb-contact-form__group label,
.amb-contact-form__captcha label {
	display: block;
	color: #ffffff;
	font-weight: bold;
	margin-bottom: 8px;
	font-size: 14px;
	transition: color 0.25s ease;
}

.amb-contact-form__group input[type="text"],
.amb-contact-form__group textarea,
.amb-contact-form__captcha input[type="text"] {
	width: 100%;
	border: 2px solid transparent;
	background: #ffffff;
	color: #333333;
	padding: 11px 14px;
	font-size: 14px;
	border-radius: 6px;
	outline: none;
	transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.amb-contact-form__group input[type="text"]:hover,
.amb-contact-form__group textarea:hover,
.amb-contact-form__captcha input[type="text"]:hover {
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
	transform: translateY(-1px);
}

.amb-contact-form__group input[type="text"]:focus,
.amb-contact-form__group textarea:focus,
.amb-contact-form__captcha input[type="text"]:focus {
	border-color: #c5b08d;
	box-shadow: 0 0 0 3px rgba(197, 176, 141, 0.5);
}

.amb-contact-form__group:focus-within label {
	color: #d8c7a8;
}

.amb-contact-form__group textarea {
	resize: vertical;
	min-height: 90px;
}

.amb-contact-form__captcha {
	background: #3d3d3d;
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 10px;
	padding: 18px 20px;
	margin: 25px 0 20px 0;
	transition: border-color 0.3s ease, background 0.3s ease;
}

.amb-contact-form__captcha:hover {
	border-color: #c5b08d;
	background: #424242;
}

.amb-contact-form__captcha label {
	margin-bottom: 12px;
}

.amb-contact-form__submit button {
	position: relative;
	overflow: hidden;
	width: 100%;
	background: linear-gradient(135deg, #d8c7a8 0%, #c5b08d 100%);
	color: #2b2b2b;
	border: none;
	padding: 14px 20px;
	font-size: 18px;
	font-weight: bold;
	cursor: pointer;
	border-radius: 6px;
	box-shadow: 0 6px 18px rgba(197, 176, 141, 0.4);
	transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.amb-contact-form__submit button:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 26px rgba(197, 176, 141, 0.55);
	filter: brightness(1.05);
}

.amb-contact-form__submit button:active {
	transform: translateY(0);
	box-shadow: 0 4px 12px rgba(197, 176, 141, 0.4);
}

.amb-contact-form__submit button::after {
	content: "";
	position: absolute;
	top: 0;
	left: -120%;
	width: 60%;
	height: 100%;
	background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0) 100%);
	transform: skewX(-20deg);
	transition: left 0.6s ease;
}

.amb-contact-form__submit button:hover::after {
	left: 130%;
}

.amb-contact-form__alert {
	padding: 12px 15px;
	margin-bottom: 20px;
	border-radius: 6px;
	font-size: 14px;
	animation: amb-fade-in-up 0.4s ease both;
}

.amb-contact-form__alert--success {
	background: #d6f5d6;
	color: #1b5e20;
}

.amb-contact-form__alert--error {
	background: #f8d7da;
	color: #842029;
}

.amb-contact-form__alert--error ul {
	margin: 0;
	padding-left: 18px;
}
