/* GP Popup đăng ký */
html.gp-khoa-cuon,
html.gp-khoa-cuon body {
	overflow: hidden;
}

#gp-popup-dk {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
	font-family: Nunito, sans-serif;
}
#gp-popup-dk[hidden] {
	display: none;
}
#gp-popup-dk .gp-popup__nen {
	position: absolute;
	inset: 0;
	background: rgba(0, 54, 27, 0.55);
	opacity: 0;
	transition: opacity 0.2s ease;
}
#gp-popup-dk .gp-popup__hop {
	position: relative;
	width: 100%;
	max-width: 420px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	box-sizing: border-box;
	padding: 26px 24px 20px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}
#gp-popup-dk.gp-mo .gp-popup__nen {
	opacity: 1;
}
#gp-popup-dk.gp-mo .gp-popup__hop {
	opacity: 1;
	transform: none;
}
@media (prefers-reduced-motion: reduce) {
	#gp-popup-dk .gp-popup__nen,
	#gp-popup-dk .gp-popup__hop {
		transition: none;
	}
}

#gp-popup-dk .gp-popup__dong {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #00361B;
	font-size: 26px;
	line-height: 36px;
	cursor: pointer;
}
#gp-popup-dk .gp-popup__dong:hover,
#gp-popup-dk .gp-popup__dong:focus-visible {
	background: #F5F6F1;
	color: #00361B;
}
#gp-popup-dk button:focus-visible,
#gp-popup-dk .wpcf7-submit:focus-visible {
	outline: 2px solid #80AF35;
	outline-offset: 2px;
}
#gp-popup-dk .gp-popup__tieu-de {
	margin: 0 36px 4px 0;
	color: #00361B;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}
#gp-popup-dk .gp-popup__mo-ta {
	margin: 0 0 14px;
	color: #4A4F4C;
	font-size: 14px;
	line-height: 1.45;
}
#gp-popup-dk .gp-popup__ghi-chu {
	margin: 10px 0 0;
	color: #7A807C;
	font-size: 12px;
	line-height: 1.4;
	text-align: center;
}

/* Màn hình cảm ơn sau khi gửi */
#gp-popup-dk .gp-popup__cam-on {
	display: none;
	padding: 6px 0 2px;
	text-align: center;
}
#gp-popup-dk .gp-popup__hop.gp-da-gui .gp-popup__tieu-de,
#gp-popup-dk .gp-popup__hop.gp-da-gui .gp-popup__mo-ta,
#gp-popup-dk .gp-popup__hop.gp-da-gui .gp-popup__form,
#gp-popup-dk .gp-popup__hop.gp-da-gui .gp-popup__ghi-chu {
	display: none;
}
#gp-popup-dk .gp-popup__hop.gp-da-gui .gp-popup__cam-on {
	display: block;
}
#gp-popup-dk .gp-popup__dau-tich {
	display: block;
	width: 52px;
	height: 52px;
	margin: 0 auto 10px;
	border-radius: 50%;
	background: #80AF35 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='20' viewBox='0 0 26 20'%3E%3Cpath d='M2 10l8 8L24 2' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}
#gp-popup-dk .gp-popup__cam-on-tieu-de {
	margin: 0 0 4px;
	color: #00361B;
	font-size: 18px;
	font-weight: 700;
}
#gp-popup-dk .gp-popup__cam-on-noi-dung {
	margin: 0 0 16px;
	color: #4A4F4C;
	font-size: 14px;
	line-height: 1.45;
}
#gp-popup-dk .gp-popup__nut-dong {
	min-width: 140px;
	height: 40px;
	margin: 0;
	padding: 0 24px;
	border: 1px solid #00361B;
	border-radius: 99px;
	background: #fff;
	color: #00361B;
	font-family: Nunito, sans-serif;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}
#gp-popup-dk .gp-popup__nut-dong:hover,
#gp-popup-dk .gp-popup__nut-dong:focus-visible {
	background: #00361B;
	color: #fff;
}

/* Form */
#gp-popup-dk .gp-bao-gia {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
#gp-popup-dk .gp-bao-gia p {
	margin: 0;
}
#gp-popup-dk .gp-bao-gia .wpcf7-form-control-wrap {
	display: block;
}
#gp-popup-dk .gp-bao-gia input[type="text"],
#gp-popup-dk .gp-bao-gia input[type="tel"],
#gp-popup-dk .gp-bao-gia select {
	width: 100%;
	height: 31px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid #C7C9CA;
	border-radius: 6px;
	background-color: #fff;
	color: #00361B;
	font-family: Nunito, sans-serif;
	font-size: 14px;
	line-height: normal;
	box-sizing: border-box;
	box-shadow: none;
}
#gp-popup-dk .gp-bao-gia select {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 34px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2300361B' stroke-width='2'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
}
#gp-popup-dk .gp-bao-gia select.gp-chua-chon,
#gp-popup-dk .gp-bao-gia input::placeholder {
	color: #7A807C;
	opacity: 1;
}
#gp-popup-dk .gp-bao-gia select option {
	color: #00361B;
}
#gp-popup-dk .gp-bao-gia input:focus,
#gp-popup-dk .gp-bao-gia select:focus {
	outline: none;
	border-color: #80AF35;
	box-shadow: 0 0 0 3px rgba(128, 175, 53, 0.25);
}
#gp-popup-dk .gp-bao-gia .wpcf7-form-control.wpcf7-not-valid {
	border-color: #D63638;
}
#gp-popup-dk .gp-bao-gia .wpcf7-not-valid-tip {
	display: block;
	margin-top: 3px;
	color: #D63638;
	font-size: 13px;
	line-height: 1.35;
}
#gp-popup-dk .gp-bao-gia .gp-nut {
	position: relative;
	margin-top: 6px;
}
#gp-popup-dk .gp-bao-gia .wpcf7-submit {
	width: 100%;
	height: 44px;
	margin: 0;
	border: 0;
	border-radius: 99px;
	background: #F37021;
	color: #fff;
	font-family: Nunito, sans-serif;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s ease;
}
#gp-popup-dk .gp-bao-gia .wpcf7-submit:hover,
#gp-popup-dk .gp-bao-gia .wpcf7-submit:focus-visible {
	background: #00361B;
}
#gp-popup-dk .gp-bao-gia .wpcf7-submit:disabled {
	opacity: 0.7;
	cursor: wait;
}
#gp-popup-dk .gp-bao-gia .wpcf7-spinner {
	position: absolute;
	top: 10px;
	right: 14px;
	margin: 0;
}
#gp-popup-dk .gp-form-bao-gia .wpcf7-response-output {
	margin: 10px 0 0 !important;
	padding: 8px 12px !important;
	border-radius: 8px;
	font-size: 13px;
	line-height: 1.4;
}
#gp-popup-dk .gp-form-bao-gia.sent .wpcf7-response-output {
	display: none;
}

@media (max-width: 767px) {
	#gp-popup-dk .gp-popup__hop {
		padding: 24px 18px 18px;
	}
	#gp-popup-dk .gp-bao-gia input[type="text"],
	#gp-popup-dk .gp-bao-gia input[type="tel"],
	#gp-popup-dk .gp-bao-gia select {
		height: 40px;
		font-size: 16px; /* iPhone tự phóng to trang nếu chữ trong ô nhỏ hơn 16px */
	}
}
