/*
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.   ***************/

.xc-section-title {
	text-align: center;
	color: #000080;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: 700; /* Tương đương thẻ strong */
	font-size: 1.7em;
	line-height: 1.3;
	margin-top: 0;
	margin-bottom: 0.5em;
	width: 100%;
}

@media (max-width: 549px) {
	.xc-section-title {
		font-size: 1.4em;
	}
}

.box-diem-manh h3 {
	color: #000080;
}

/* Section Báo Giá */
.section-bao-gia {
	background-color: #dff0ff !important;
}

.xc-section-title.bao-gia {
	font-family: 'Roboto', sans-serif;
	font-weight: 400;
	font-style: normal;
	color: rgb(1, 94, 165);
	font-size: 27px;
	line-height: 36px;
	text-transform: uppercase;
	text-align: center;
	margin-bottom: 20px;
}

/* Form Báo Giá - Chuẩn BEM */
.xc-form__bao-gia {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-end;
	gap: 15px;
	max-width: 800px;
	margin: 0 auto;
}

.xc-form__bao-gia .xc-form__group {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 250px;
}

.xc-form__bao-gia .xc-form__label {
	font-size: 15px;
	font-weight: bold;
	margin-bottom: 5px;
	color: #333;
}

.xc-form__bao-gia .xc-form__input {
	width: 100%;
	height: 40px;
	padding: 0 15px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 15px;
	background: #fff;
	box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
	margin-bottom: 0 !important;
}

.xc-form__bao-gia .wpcf7-form-control-wrap {
	margin-bottom: 0;
}

.xc-form__bao-gia .xc-form__submit {
	flex: 0 0 auto;
	position: relative;
}

.xc-form__bao-gia .wpcf7-spinner {
	position: absolute;
	bottom: 8px;
	right: -30px;
	margin: 0;
}

.xc-form__bao-gia .xc-form__btn {
	height: 40px;
	padding: 0 30px;
	background-color: rgb(1, 94, 165);
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
	text-transform: uppercase;
	transition: all 0.3s ease;
	margin: 0;
	display: block;
	width: 100%;
}

.xc-form__bao-gia .xc-form__btn:hover {
	background-color: #01457a;
}

/* Điểm mạnh 2 border */
.box-diem-manh-2 {
	border: 1px solid #000080;
	padding: 15px; 
	border-radius: 5px;
	height: 100%;
	min-height: 100px; /* Tăng min-height theo yêu cầu */
	display: flex;
	align-items: center;
	justify-content: center;
}

.box-diem-manh-2 p {
	margin-bottom: 0; /* Loại bỏ margin thừa để chữ canh giữa chuẩn xác */
}

/* Nút bấm liên hệ nổi (Floating Contact) - BEM */
.xc-float-contact {
	position: fixed;
	bottom: 20px;
	left: 0;
	z-index: 99999;
}

.xc-float-contact__item {
	position: relative;
	margin-top: -5px;
	display: block;
}

.xc-float-contact__icon-wrap {
	position: relative;
	visibility: visible;
	background-color: transparent;
	width: 90px;
	height: 90px;
	cursor: pointer;
	z-index: 11;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
	transition: visibility .5s;
	display: block;
}

.xc-float-contact__circle-fill {
	width: 65px;
	height: 65px;
	top: 12px;
	left: 12px;
	position: absolute;
	border-radius: 50%;
	border: 2px solid transparent;
	animation: xc-float-zoom 1.3s infinite;
	transform-origin: 50% 50%;
	transition: all .5s;
}

.xc-float-contact__circle-img {
	width: 40px;
	height: 40px;
	line-height: normal;
	top: 25px;
	left: 25px;
	position: absolute;
	border-radius: 50%;
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: center;
	animation: xc-float-shake 1s infinite ease-in-out;
}

.xc-float-contact__circle-img a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.xc-float-contact__circle-img img {
	max-height: 25px;
	max-width: 27px;
}

.xc-float-contact__text {
	position: absolute;
	margin-top: -65px;
	left: 30px;
	z-index: -1;
	color: #fff;
	font-size: 16px;
	padding: 7px 15px 7px 50px;
	border-radius: 100px;
	white-space: nowrap;
	background-color: #309b50;
	font-weight: bold;
}

.xc-float-contact__text:hover {
	color: #fff !important;
	opacity: 0.8;
}

/* Modifiers */
.xc-float-contact__item--zalo .xc-float-contact__circle-fill {
	box-shadow: 0 0 0 0 #2196F3;
	background-color: rgba(33, 150, 243, 0.7);
}
.xc-float-contact__item--zalo .xc-float-contact__circle-img {
	background-color: #2196F3;
}

.xc-float-contact__item--phone .xc-float-contact__circle-fill {
	opacity: 0.7;
	box-shadow: 0 0 0 0 #309b50;
	background-color: rgba(48, 155, 80, 0.7);
}
.xc-float-contact__item--phone .xc-float-contact__circle-img {
	background-color: #309b50;
}

/* Keyframes */
@keyframes xc-float-shake {
	0%   { transform: rotate(0) scale(1) skew(1deg); }
	10%  { transform: rotate(-25deg) scale(1) skew(1deg); }
	20%  { transform: rotate(25deg) scale(1) skew(1deg); }
	30%  { transform: rotate(-25deg) scale(1) skew(1deg); }
	40%  { transform: rotate(25deg) scale(1) skew(1deg); }
	50%  { transform: rotate(0) scale(1) skew(1deg); }
	100% { transform: rotate(0) scale(1) skew(1deg); }
}

@keyframes xc-float-zoom {
	0%   { transform: scale(.9); }
	70%  { transform: scale(1); box-shadow: 0 0 0 15px transparent; }
	100% { transform: scale(.9); box-shadow: 0 0 0 0 transparent; }
}

/* Sửa lỗi margin-left mặc định của Flatsome gây thò thụt các thẻ li trong sub-menu */
.nav-dropdown > li,
.nav-dropdown li,
.sub-menu li {
	margin-left: 0 !important;
}

@media only screen and (max-width: 48em) {
    /*************** ADD MOBILE ONLY CSS HERE  ***************/
    
	.xc-section-title.bao-gia {
		font-size: 22px;
		line-height: 30px;
	}

	.xc-form__bao-gia .xc-form__submit {
		flex: 1 1 100%;
		margin-top: 10px;
	}

	.xc-float-contact__text {
		display: none;
	}
}