/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/


/* ============================================================
   KẾT NỐI VỚI KIẾN HỢP FDE — Contact / Quote section
   Figma node 26:30392 (Footer contact form)
   ============================================================ */
.khfde-contact {
	background: linear-gradient(180deg, #ffdd70 0%, #fccd35 46.154%, #c3922e 100%);
	padding: 96px 0;
}
.khfde-contact .khfde-contact__inner {
	max-width: 1408px;
	margin: 0 auto;
	padding: 0 24px;
}

/* --- Heading block --- */
.khfde-contact__head {
	text-align: center;
	margin-bottom: 64px;
}
.khfde-contact__title {
	color: #603913;
	font-size: 44px;
	line-height: 1.6;
	font-weight: 700;
	margin: 0 0 16px;
	text-transform: uppercase;
}
.khfde-contact__subtitle {
	color: #454545;
	font-size: 20px;
	line-height: 1.6;
	font-weight: 400;
	margin: 0;
}

/* --- Form layout --- */
.khfde-contact__form .khfde-row {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	margin-bottom: 24px;
}
.khfde-contact__form .khfde-row:last-child {
	margin-bottom: 0;
}
.khfde-contact__form .khfde-col {
	flex: 1 1 0;
	min-width: 0;
}
.khfde-contact__form .khfde-col--wide {
	flex: 2 1 0;
}
.khfde-contact__form .khfde-col--full {
	flex: 1 1 100%;
}

/* --- Field styling (overrides CF7 defaults) --- */
.khfde-contact__form .wpcf7-form-control:not(.wpcf7-submit) {
	width: 100%;
	background: rgba(255, 255, 255, 0.5);
	border: none;
	border-radius: 8px;
	padding: 16px 32px;
	font-size: 24px;
	font-weight: 500;
	line-height: normal;
	color: #0e100f;
	box-shadow: none;
	margin: 0;
	-webkit-appearance: none;
	appearance: none;
	transition: background 0.2s ease;
}
.khfde-contact__form .wpcf7-form-control:not(.wpcf7-submit)::placeholder {
	color: #0e100f;
	opacity: 1;
}
.khfde-contact__form .wpcf7-form-control:not(.wpcf7-submit):focus {
	outline: none;
	background: rgba(255, 255, 255, 0.75);
}
.khfde-contact__form textarea.wpcf7-form-control {
	height: 180px;
	resize: vertical;
}

/* --- Select (Yêu cầu) with dropdown arrow --- */
.khfde-contact__form .khfde-select {
	position: relative;
}
.khfde-contact__form .khfde-select select {
	padding-right: 64px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='%230e100f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 32px center;
	background-size: 24px 24px;
	cursor: pointer;
}

/* --- Submit button (Nhận báo giá) --- */
.khfde-contact__submit {
	display: flex;
	justify-content: center;
}
.khfde-contact__form .wpcf7-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	width: 453px;
	max-width: 100%;
	background: #603913;
	color: #fccd35;
	border: none;
	border-radius: 8px;
	padding: 16px 32px;
	font-size: 24px;
	font-weight: 500;
	line-height: normal;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='%23fccd35' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3Cpolyline points='12 5 19 12 12 19'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 32px center;
	background-size: 24px 24px;
	padding-right: 72px;
}
.khfde-contact__form .wpcf7-submit:hover {
	background-color: #4d2d0f;
}
.khfde-contact__form .wpcf7-submit:active {
	transform: translateY(1px);
}

/* --- CF7 response / validation messages --- */
.khfde-contact__form .wpcf7-not-valid-tip {
	color: #b00020;
	font-size: 14px;
	margin-top: 6px;
}
.khfde-contact__form .wpcf7-response-output {
	border-radius: 8px;
	margin: 24px 0 0;
	font-size: 16px;
}
.khfde-contact__form .wpcf7-spinner {
	margin: 0 0 0 12px;
}


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/

	.khfde-contact {
		padding: 56px 0;
	}
	.khfde-contact__head {
		margin-bottom: 40px;
	}
	.khfde-contact__title {
		font-size: 28px;
	}
	.khfde-contact__subtitle {
		font-size: 16px;
	}
	.khfde-contact__form .khfde-row {
		flex-direction: column;
		gap: 16px;
		margin-bottom: 16px;
	}
	.khfde-contact__form .khfde-col,
	.khfde-contact__form .khfde-col--wide {
		flex: 1 1 100%;
	}
	.khfde-contact__form .wpcf7-form-control:not(.wpcf7-submit) {
		font-size: 16px;
		padding: 14px 20px;
	}
	.khfde-contact__form .khfde-select select {
		padding-right: 48px;
		background-position: right 16px center;
	}
	.khfde-contact__form .wpcf7-submit {
		width: 100%;
		font-size: 18px;
	}
}