/**
 * =========================================================
 * DX Estimate Form
 * =========================================================
 */


/* =========================================================
   BASE
   ========================================================= */

.dx-estimate-form {
	position: relative;
	width: 100%;
	background: #ffffff;
}

.dx-estimate-form *,
.dx-estimate-form *::before,
.dx-estimate-form *::after {
	box-sizing: border-box;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.dx-estimate-form__container {
	width: 100%;
	max-width: 1440px;

	margin: 0 auto;
	padding: 50px 40px 40px;
}


/* =========================================================
   MAIN GRID
   ========================================================= */

.dx-estimate-form__main {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
	gap: 48px;

	align-items: start;
}


/* =========================================================
   LEFT COLUMN
   ========================================================= */

.dx-estimate-form__left {
	width: 100%;
}


/* =========================================================
   HEADING
   ========================================================= */

.dx-estimate-form__heading {
	margin: 0 0 8px;
	padding: 0;

	color: #142b55;

	font-family: inherit;
	font-size: 32px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.dx-estimate-form__description {
	margin-bottom: 20px;

	color: #56647b;

	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
}


/* =========================================================
   FORM
   ========================================================= */

.dx-estimate-form__form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));

	gap: 10px;
}


/* =========================================================
   FIELD
   ========================================================= */

.dx-estimate-form__field {
	position: relative;

	width: 100%;
	height: 48px;
}


.dx-estimate-form__field--full {
	grid-column: 1 / -1;
	height: 72px;
}
.dx-estimate-form__field-fullwidth{
	grid-column: 1 / -1;
}

/* =========================================================
   INPUT / SELECT / TEXTAREA
   ========================================================= */

.dx-estimate-form__field input,
.dx-estimate-form__field select,
.dx-estimate-form__field textarea {
	width: 100%;
	height: 100%;

	margin: 0;
	padding: 0 14px 0 44px;

	color: #142b55;

	font-family: inherit;
	font-size: 13px;
	font-weight: 500;

	background: #ffffff;

	border: 1px solid #dfe4eb;
	border-radius: 8px;

	outline: none;

	box-shadow:
		0 3px 10px rgba(16, 38, 83, 0.025);

	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}


.dx-estimate-form__field textarea {
	padding-top: 14px;
	padding-bottom: 12px;

	resize: vertical;

	min-height: 72px;
}


.dx-estimate-form__field select {
	appearance: none;
	-webkit-appearance: none;

	cursor: pointer;

	background-image:
		linear-gradient(45deg, transparent 50%, #142b55 50%),
		linear-gradient(135deg, #142b55 50%, transparent 50%);

	background-position:
		calc(100% - 18px) 21px,
		calc(100% - 13px) 21px;

	background-size:
		5px 5px,
		5px 5px;

	background-repeat: no-repeat;

	padding-right: 36px;
}


.dx-estimate-form__field input::placeholder,
.dx-estimate-form__field textarea::placeholder {
	color: #7b8799;
	opacity: 1;
}


.dx-estimate-form__field input:focus,
.dx-estimate-form__field select:focus,
.dx-estimate-form__field textarea:focus {
	border-color: #fd9800;

	box-shadow:
		0 0 0 3px rgba(244, 81, 30, 0.08);
}


/* =========================================================
   DATE
   ========================================================= */

.dx-estimate-form__field input[type="date"] {
	color: #7b8799;
}


/* =========================================================
   FIELD ICON
   ========================================================= */

.dx-estimate-form__field-icon {
	position: absolute;

	top: 50%;
	left: 15px;

	width: 18px;
	height: 18px;

	display: flex;
	align-items: center;
	justify-content: center;

	transform: translateY(-50%);

	z-index: 2;

	pointer-events: none;
}


.dx-estimate-form__field--full .dx-estimate-form__field-icon {
	top: 18px;

	transform: none;
}


.dx-estimate-form__field-icon svg {
	display: block;

	width: 17px;
	height: 17px;

	fill: none;
	stroke: #142b55;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}


/* =========================================================
   CONSENT
   ========================================================= */

.dx-estimate-form__consent {
	grid-column: 1 / -1;

	display: flex;
	align-items: flex-start;

	gap: 8px;

	margin-top: 2px;

	color: #66748a;

	font-size: 11px;
	line-height: 1.45;
}


.dx-estimate-form__consent input {
	flex: 0 0 auto;

	width: 14px;
	height: 14px;

	margin: 1px 0 0;

	accent-color: #fd9800;

	cursor: pointer;
}


.dx-estimate-form__consent label {
	cursor: pointer;
}


/* =========================================================
   SUBMIT BUTTON
   ========================================================= */

.dx-estimate-form__submit {
	grid-column: 1 / -1;

	position: relative;

	width: 100%;
	height: 54px;

	margin: 2px 0 0;
	padding: 0 55px 0 24px;

	display: flex;
	align-items: center;
	justify-content: center;

	color: #ffffff !important;

	font-family: inherit;
	font-size: 16px;
	font-weight: 700;

	text-align: center;

	background: #fd9800;

	border: none;
	border-radius: 9px;

	cursor: pointer;

	overflow: hidden;

	box-shadow:
		0 8px 18px rgba(244, 81, 30, 0.2);

	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease,
		background 0.2s ease;
}


.dx-estimate-form__submit:hover {
	transform: translateY(-2px);

	background: #fd9800;

	box-shadow:
		0 12px 24px rgba(244, 81, 30, 0.28);
}


.dx-estimate-form__submit:active {
	transform: translateY(0);
}


.dx-estimate-form__submit-arrow {
	position: absolute;

	top: 50%;
	right: 18px;

	font-size: 32px;
	font-weight: 300;
	line-height: 1;

	transform: translateY(-53%);
}


/* =========================================================
   SUCCESS MESSAGE
   ========================================================= */

.dx-estimate-form__success {
	padding: 35px 25px;

	text-align: center;

	background: #ffffff;

	border: 1px solid #dfe4eb;
	border-radius: 12px;

	box-shadow:
		0 10px 30px rgba(16, 38, 83, 0.06);
}


.dx-estimate-form__success-icon {
	width: 52px;
	height: 52px;

	margin: 0 auto 15px;

	display: flex;
	align-items: center;
	justify-content: center;

	color: #ffffff;

	font-size: 26px;
	font-weight: 700;

	background: #fd9800;

	border-radius: 50%;
}


.dx-estimate-form__success h3 {
	margin: 0 0 10px;

	color: #142b55;

	font-size: 24px;
	font-weight: 800;
}


.dx-estimate-form__success p {
	margin: 0 0 8px;

	color: #66748a;

	font-size: 14px;
	line-height: 1.55;
}


/* =========================================================
   PHONE
   ========================================================= */

.dx-estimate-form__phone {
	display: flex;
	align-items: center;
	flex-wrap: wrap;

	gap: 7px;

	margin-top: 35px;

	color: #59677d;

	font-size: 18px;
	font-weight: 500;
}


.dx-estimate-form__phone svg {
	width: 17px;
	height: 17px;

	flex: 0 0 17px;

	fill: #142b55;
}


.dx-estimate-form__phone a {
	color: #fd9800;

	font-weight: 800;

	text-decoration: none;
}


.dx-estimate-form__phone a:hover {
	text-decoration: underline;
}


/* =========================================================
   FAQ
   ========================================================= */

.dx-estimate-form__faq {
	display: flex;
	flex-direction: column;

	gap: 10px;

	width: 100%;
}


/* =========================================================
   FAQ ITEM
   ========================================================= */

.dx-estimate-form__faq-item {
	padding: 18px 22px 17px;

	background: #ffffff;

	border: 1px solid #dfe4eb;
	border-radius: 10px;

	box-shadow:
		0 6px 18px rgba(16, 38, 83, 0.035);

	transition:
		box-shadow 0.2s ease,
		transform 0.2s ease;
}


.dx-estimate-form__faq-item:hover {
	transform: translateY(-2px);

	box-shadow:
		0 10px 24px rgba(16, 38, 83, 0.07);
}


/* =========================================================
   FAQ QUESTION
   ========================================================= */

.dx-estimate-form__faq-question {
	display: flex;
	align-items: center;
	justify-content: space-between;

	gap: 20px;

	color: #142b55;

	font-size: 14px;
	font-weight: 800;
	line-height: 1.35;
}


/* =========================================================
   FAQ ARROW
   ========================================================= */

.dx-estimate-form__faq-arrow {
	flex: 0 0 auto;

	color: #142b55;

	font-size: 19px;
	font-weight: 500;

	line-height: 1;

	transform: translateY(-2px);
}


/* =========================================================
   FAQ ANSWER
   ========================================================= */

.dx-estimate-form__faq-answer {
	margin-top: 9px;

	color: #68758a;

	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
}


/* =========================================================
   TRUST BAR
   ========================================================= */

.dx-estimate-form__trust {
	display: grid;
	grid-template-columns: repeat(3, 1fr);

	margin-top: 32px;

	background: #ffffff;

	border: 1px solid #dfe4eb;
	border-radius: 12px;

	box-shadow:
		0 7px 22px rgba(16, 38, 83, 0.035);

	overflow: hidden;
}


/* =========================================================
   TRUST ITEM
   ========================================================= */

.dx-estimate-form__trust-item {
	position: relative;

	min-height: 82px;

	padding: 15px 24px;

	display: flex;
	align-items: center;
	justify-content: center;

	gap: 14px;
}


.dx-estimate-form__trust-item:not(:last-child)::after {
	content: "";

	position: absolute;

	top: 18px;
	right: 0;

	width: 1px;
	height: calc(100% - 36px);

	background: #dfe4eb;
}


/* =========================================================
   TRUST ICON
   ========================================================= */

.dx-estimate-form__trust-icon {
	width: 42px;
	height: 42px;

	flex: 0 0 42px;

	display: flex;
	align-items: center;
	justify-content: center;

	background: #ffffff;

	border: 1px solid #edf0f4;
	border-radius: 50%;

	box-shadow:
		0 4px 10px rgba(16, 38, 83, 0.05);
}


.dx-estimate-form__trust-icon svg {
	width: 22px;
	height: 22px;
}


/* Star */

.dx-estimate-form__trust-icon--star svg {
	fill: #fd9800;
}


/* Location */

.dx-estimate-form__trust-icon--location svg {
	fill: #fd9800;
}


/* =========================================================
   TRUST CONTENT
   ========================================================= */

.dx-estimate-form__trust-content {
	display: flex;
	flex-direction: column;

	gap: 3px;
}


.dx-estimate-form__trust-title {
	color: #142b55;

	font-size: 15px;
	font-weight: 800;
	line-height: 1.2;
}


.dx-estimate-form__trust-text {
	color: #6b778b;

	font-size: 11px;
	font-weight: 500;
	line-height: 1.3;
}
/* =========================================================
   FAQ ACCORDION
   ========================================================= */

.dx-estimate-form__faq-question {
	cursor: pointer;
}

.dx-estimate-form__faq-answer {
	max-height: 0;
	margin-top: 0;

	overflow: hidden;

	opacity: 0;

	transition:
		max-height 0.35s ease,
		margin-top 0.35s ease,
		opacity 0.25s ease;
}

.dx-estimate-form__faq-item.is-active
.dx-estimate-form__faq-answer {
	margin-top: 9px;

	opacity: 1;
}

.dx-estimate-form__faq-arrow {
	transition: transform 0.3s ease;
}

.dx-estimate-form__faq-item.is-active
.dx-estimate-form__faq-arrow {
	transform: rotate(180deg);
}












/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

	.dx-estimate-form__container {
		padding: 45px 30px;
	}


	.dx-estimate-form__main {
		grid-template-columns: 1fr;

		gap: 35px;
	}


	.dx-estimate-form__faq {
		display: grid;
		grid-template-columns: repeat(3, 1fr);

		gap: 12px;
	}


	.dx-estimate-form__faq-item {
		padding: 18px;
	}


	.dx-estimate-form__faq-question {
		font-size: 13px;
	}


	.dx-estimate-form__faq-answer {
		font-size: 12px;
	}


	.dx-estimate-form__trust {
		margin-top: 28px;
	}

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

	.dx-estimate-form__container {
		padding: 40px 20px 35px;
	}


	.dx-estimate-form__heading {
		font-size: 27px;
	}


	.dx-estimate-form__description {
		font-size: 13px;

		margin-bottom: 18px;
	}


	.dx-estimate-form__main {
		gap: 28px;
	}


	.dx-estimate-form__form {
		grid-template-columns: 1fr;

		gap: 10px;
	}


	.dx-estimate-form__field {
		height: 50px;
	}


	.dx-estimate-form__field--full {
		height: 80px;
	}


	.dx-estimate-form__field--full .dx-estimate-form__field-icon {
		top: 18px;
	}


	.dx-estimate-form__submit {
		height: 56px;

		font-size: 16px;
	}


	.dx-estimate-form__phone {
		margin-top: 16px;

		font-size: 13px;
	}


	/* FAQ */

	.dx-estimate-form__faq {
		display: flex;
		flex-direction: column;

		gap: 10px;
	}


	.dx-estimate-form__faq-item {
		padding: 17px 18px;
	}


	.dx-estimate-form__faq-question {
		font-size: 14px;
	}


	/* Trust */

	.dx-estimate-form__trust {
		grid-template-columns: 1fr;

		margin-top: 25px;
	}


	.dx-estimate-form__trust-item {
		min-height: 72px;

		justify-content: flex-start;

		padding: 14px 20px;
	}


	.dx-estimate-form__trust-item:not(:last-child)::after {
		top: auto;
		right: 20px;
		bottom: 0;
		left: 20px;

		width: auto;
		height: 1px;
	}


}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

	.dx-estimate-form__container {
		padding-left: 16px;
		padding-right: 16px;
	}


	.dx-estimate-form__heading {
		font-size: 24px;
	}


	.dx-estimate-form__consent {
		font-size: 10px;
	}


	.dx-estimate-form__phone {
		gap: 5px;
	}


	.dx-estimate-form__trust-item {
		padding-left: 16px;
		padding-right: 16px;
	}

}


