/* ==================================================================
 * leadcapture-popup-website.css
 * "Đặt lịch tư vấn 1:1 giải pháp CRM" website popup (Figma node 3-3).
 * Scoped under .lp-popup. Author: An Cao — CloudGO Team. Date: 2026-08-11
 * ================================================================== */

.lp-popup { display: none; position: fixed; inset: 0; z-index: 100000;
	font-family: inherit; }
.lp-popup.is-open { display: block; }

.lp-popup__overlay { position: absolute; inset: 0;
	background: rgba(6, 22, 45, .55); backdrop-filter: blur(2px); }

.lp-popup__dialog { position: relative; z-index: 2;
	width: 750px; max-width: calc(100vw - 24px);
	margin: 4vh auto; max-height: 92vh; overflow: auto;
	background: #fff; border-radius: 14px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
	animation: lpPopIn .22s ease-out; }
@keyframes lpPopIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

.lp-popup__close { position: absolute; top: 8px; right: 12px; z-index: 5;
	width: 30px; height: 30px; border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .85); color: #333; font-size: 22px; line-height: 1;
	cursor: pointer; transition: background .15s; }
.lp-popup__close:hover { background: #fff; color: #000; }

.lp-popup__grid { display: grid; grid-template-columns: 40% 60%; }

/* ---- LEFT brand panel ---- */
.lp-popup__brand {
	background: linear-gradient(160deg, var(--lp-panel-from, #1b74e4), var(--lp-panel-to, #0d57b8));
	color: #fff; padding: 22px 20px; border-radius: 14px 0 0 14px;
	display: flex; flex-direction: column; }
.lp-brand__logo { height: 34px; width: auto; object-fit: contain; align-self: flex-start; margin-bottom: 14px; filter: brightness(0) invert(1); }
.lp-brand__logo-text { font-size: 24px; font-weight: 800; letter-spacing: .5px; margin-bottom: 14px; }
.lp-brand__heading { color: var(--lp-heading, #fff); font-size: 23px; font-weight: 700;
	line-height: 1.15; margin: 0 0 8px; text-transform: uppercase; }
.lp-brand__subheading { font-size: 12px; font-weight: 500; opacity: .95; margin: 0 0 14px; }
.lp-brand__device { text-align: center; margin: 2px 0 14px; }
.lp-brand__device img { max-width: 100%; height: auto; }
.lp-brand__contact-label { font-size: 13px; margin: 0 0 8px; }
.lp-brand__contacts { list-style: none; padding: 0; margin: 0 0 14px; }
.lp-brand__contacts li { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 8px; }
.lp-brand__contacts li i { width: 26px; height: 26px; border-radius: 50%;
	background: rgba(255, 255, 255, .18); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.lp-brand__contacts a { color: #fff; text-decoration: none; }
.lp-brand__contacts a:hover { text-decoration: underline; }
.lp-brand__qr { display: flex; gap: 16px; margin-top: auto; padding-top: 6px; }
.lp-brand__qr figure { margin: 0; text-align: center; width: 90px; }
.lp-brand__qr img { width: 74px; height: 74px; background: #fff; padding: 4px; border-radius: 6px; }
.lp-brand__qr figcaption { font-size: 8px; font-weight: 700; margin-top: 4px; line-height: 1.2; }

/* ---- RIGHT form ---- */
.lp-popup__form-wrap { padding: 22px 26px 24px; }
.lp-form__title { color: var(--lp-form-title, #1b74e4); font-size: 15px; font-weight: 800;
	margin: 0 0 14px; text-transform: uppercase; }

.lp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-bottom: 10px; }
.lp-col { display: flex; flex-direction: column; min-width: 0; }
.lp-block { margin-bottom: 10px; }

.lp-label { color: var(--lp-label, #777); font-size: 11px; margin: 0 0 4px; font-weight: 400; }
.lp-req { color: #e5372e; }

.lp-input { width: 100%; border: 1px solid #e3e6eb; border-radius: 22px;
	padding: 8px 14px; font-size: 13px; color: #0c0c0c; background: #fff;
	outline: none; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
select.lp-input { 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 fill='%23333' d='M6 8 0 2l1.4-1.4L6 5.2 10.6.6 12 2z'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center; padding-right: 32px; }
.lp-input::placeholder { color: #9aa0a6; }
.lp-input:focus { border-color: var(--lp-btn, #1b74e4); box-shadow: 0 0 0 3px rgba(27, 116, 228, .12); }
.lp-textarea { border-radius: 14px; resize: vertical; min-height: 46px; }
.lp-input.is-invalid { border-color: #e5372e; }
.lp-field-error { color: #e5372e; font-size: 10px; min-height: 12px; margin-top: 2px; }

/* participant pills */
.lp-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-check { display: inline-flex; align-items: center; gap: 6px; margin: 0;
	border: 1px solid #e3e6eb; border-radius: 22px; padding: 6px 12px;
	font-size: 12px; color: #222; cursor: pointer; transition: border-color .15s, background .15s; font-weight: 400; }
.lp-check input { accent-color: var(--lp-btn, #1b74e4); margin: 0; }
.lp-check:hover { border-color: var(--lp-btn, #1b74e4); }
.lp-check--other { flex: 1 1 200px; }
.lp-input--inline { border: 0; border-bottom: 1px solid #ccc; border-radius: 0; padding: 2px 4px; width: 120px; flex: 1; }
.lp-input--inline:focus { box-shadow: none; }

.lp-submit-row { text-align: center; margin-top: 14px; }
.lp-btn-submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-width: 220px; border: 0; border-radius: 26px; padding: 12px 34px;
	background: var(--lp-btn, #1b74e4); color: #fff; font-size: 14px; font-weight: 800;
	text-transform: uppercase; cursor: pointer; transition: background .15s, transform .08s; }
.lp-btn-submit:hover { background: var(--lp-btn-hover, #0d5fca); }
.lp-btn-submit:active { transform: translateY(1px); }
.lp-btn-submit[disabled] { opacity: .7; cursor: not-allowed; }
.lp-spinner { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .5);
	border-top-color: #fff; border-radius: 50%; animation: lpSpin .6s linear infinite; }
@keyframes lpSpin { to { transform: rotate(360deg); } }

.lp-privacy { text-align: center; color: #919395; font-size: 11px; font-weight: 300; margin: 10px 0 0; }
.lp-message { margin-top: 12px; padding: 10px 14px; border-radius: 8px; font-size: 13px; text-align: center; }
.lp-message--success { background: #e7f6ec; color: #1a7f37; }
.lp-message--error { background: #fdecea; color: #c0392b; }

.lp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* trigger button (shortcode) */
.popup-website-trigger { display: inline-block; border: 0; border-radius: 26px;
	padding: 12px 30px; background: #1b74e4; color: #fff; font-weight: 700;
	text-transform: uppercase; cursor: pointer; }
.popup-website-trigger:hover { background: #0d5fca; }

/* ---- responsive: stack ---- */
@media (max-width: 640px) {
	.lp-popup__grid { grid-template-columns: 1fr; }
	.lp-popup__brand { border-radius: 14px 14px 0 0; }
	.lp-brand__device { display: none; }
	.lp-row { grid-template-columns: 1fr; }
	.lp-popup__dialog { margin: 2vh auto; }
	/* admin: ẩn hẳn popup + nút mở trên mobile */
	.lp-hide-mobile,
	.lp-popup.lp-hide-mobile.is-open { display: none !important; }
}

/* ================= multi-variant additions (An Cao 2026-08-12) ================= */
/* form sub-title (industry "NHU CẦU TƯ VẤN") */
.lp-form__title--sub { margin-top: 16px; }

/* checkbox layouts */
.lp-checks--grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lp-checks--stack { flex-direction: column; }
.lp-checks--stack .lp-check { width: 100%; }

/* trial 2-step header */
.lp-step { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.lp-step-label { font-size: 12px; font-weight: 700; color: var(--lp-form-title, #1b74e4); white-space: nowrap; }
.lp-progress { display: flex; gap: 6px; flex: 1; }
.lp-progress span { height: 5px; flex: 1; border-radius: 3px; background: #e3e6eb; transition: background .2s; }
.lp-progress span.on { background: var(--lp-btn, #1b74e4); }

/* ghost button (Quay lại) */
.lp-btn-submit--ghost { min-width: 140px; margin-right: 10px; background: #eef2f7; color: #33404f; }
.lp-btn-submit--ghost:hover { background: #e2e8f0; }

/* success state (Figma 146:95) */
.lp-popup__success { padding: 40px 30px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.lp-success__icon { width: 64px; height: 64px; border-radius: 50%; background: #e7f6ec; color: #1a7f37;
	display: inline-flex; align-items: center; justify-content: center; font-size: 30px; margin-bottom: 16px; }
.lp-success__title { color: var(--lp-form-title, #1b74e4); font-size: 20px; font-weight: 800; margin: 0 0 12px; }
.lp-success__msg { font-size: 14px; color: #33404f; line-height: 1.5; margin-bottom: 18px; }
.lp-success__wait { font-size: 13px; color: #777; margin: 0 0 10px; }
.lp-success__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 12px; }
.lp-popup__success .lp-success__action { border: 1px solid var(--lp-btn, #1b74e4); border-radius: 22px; padding: 9px 18px;
	font-size: 13px; font-weight: 600; color: var(--lp-btn, #1b74e4); text-decoration: none; transition: background .15s, color .15s; }
.lp-popup__success .lp-success__action:hover { background: rgba(27, 116, 228, .08); }
.lp-popup__success .lp-success__action--primary { background: var(--lp-btn, #1b74e4); color: #fff; }
.lp-popup__success .lp-success__action--primary:hover { background: var(--lp-btn-hover, #0d5fca); color: #fff; }

@media (max-width: 640px) {
	.lp-checks--grid2 { grid-template-columns: 1fr; }
	.lp-success__actions { flex-direction: column; width: 100%; }
}

/* ---- desktop: chỉ cuộn cột form, giữ panel brand cố định (An Cao 2026-08-12) ---- */
@media (min-width: 641px) {
	.lp-popup__dialog { overflow: hidden; }
	.lp-popup__grid { max-height: 92vh; }
	.lp-popup__brand,
	.lp-popup__form-wrap { max-height: 92vh; overflow-y: auto; }
}

/* ---- thin custom scrollbar (An Cao 2026-08-12) ---- */
/* Firefox */
.lp-popup__dialog,
.lp-popup__form-wrap,
.lp-popup textarea { scrollbar-width: thin; scrollbar-color: rgba(27, 116, 228, .45) rgba(27, 116, 228, .09); }
.lp-popup__brand { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .5) rgba(255, 255, 255, .14); }
/* WebKit / Blink */
.lp-popup__dialog::-webkit-scrollbar,
.lp-popup__form-wrap::-webkit-scrollbar,
.lp-popup__brand::-webkit-scrollbar,
.lp-popup textarea::-webkit-scrollbar { width: 8px; height: 8px; }
.lp-popup__dialog::-webkit-scrollbar-track,
.lp-popup__form-wrap::-webkit-scrollbar-track,
.lp-popup textarea::-webkit-scrollbar-track { background: rgba(27, 116, 228, .08); border-radius: 8px; }
.lp-popup__brand::-webkit-scrollbar-track { background: rgba(255, 255, 255, .14); border-radius: 8px; }
.lp-popup__dialog::-webkit-scrollbar-thumb,
.lp-popup__form-wrap::-webkit-scrollbar-thumb,
.lp-popup textarea::-webkit-scrollbar-thumb { background: rgba(27, 116, 228, .42); border-radius: 8px; }
.lp-popup__brand::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .5); border-radius: 8px; }
.lp-popup__dialog::-webkit-scrollbar-thumb:hover,
.lp-popup__form-wrap::-webkit-scrollbar-thumb:hover,
.lp-popup textarea::-webkit-scrollbar-thumb:hover { background: rgba(27, 116, 228, .65); }
.lp-popup__dialog::-webkit-scrollbar-corner,
.lp-popup__form-wrap::-webkit-scrollbar-corner { background: transparent; }

/* ================= Select2 trong popup — khớp Figma dropdown (node 146:111). An Cao 2026-08-13 ================= */
.lp-popup .select2-container { width: 100% !important; }
/* hộp chọn (đóng) — pill giống .lp-input */
.lp-popup .select2-container--default .select2-selection--single {
	height: 38px; border: 1px solid #e3e6eb; border-radius: 22px; background: #fff;
	padding: 0 14px; display: flex; align-items: center;
	transition: border-color .15s, box-shadow .15s; }
.lp-popup .select2-container--default .select2-selection--single .select2-selection__rendered {
	color: #0c0c0c; font-size: 13px; line-height: 36px; padding: 0 18px 0 0; }
.lp-popup .select2-container--default .select2-selection--single .select2-selection__placeholder { color: #9aa0a6; }
.lp-popup .select2-container--default .select2-selection--single .select2-selection__arrow { height: 36px; right: 12px; }
.lp-popup .select2-container--default .select2-selection--single .select2-selection__arrow b { border-color: #333 transparent transparent; }
.lp-popup .select2-container--default.select2-container--open .select2-selection--single,
.lp-popup .select2-container--default.select2-container--focus .select2-selection--single {
	border-color: var(--lp-btn, #1b74e4); box-shadow: 0 0 0 3px rgba(27, 116, 228, .12); }
.lp-popup .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b { border-color: transparent transparent #333; }
/* trạng thái lỗi (đồng bộ .lp-input.is-invalid) */
.lp-popup select.lp-select.is-invalid + .select2-container--default .select2-selection--single { border-color: #e5372e; }
/* panel mở */
.lp-popup .select2-dropdown {
	border: 1px solid #e3e6eb; border-radius: 12px; overflow: hidden;
	box-shadow: 0 10px 30px rgba(19, 54, 110, .12); }
.lp-popup .select2-dropdown--above { margin-top: -6px; }
.lp-popup .select2-dropdown--below { margin-top: 6px; }
.lp-popup .select2-results__option { padding: 9px 14px; font-size: 13px; color: #222; }
.lp-popup .select2-container--default .select2-results__option--highlighted[aria-selected] { background: #f4f8ff; color: #222; }
.lp-popup .select2-container--default .select2-results__option[aria-selected=true] { background: var(--lp-btn, #1b74e4); color: #fff; }
.lp-popup .select2-results__group {
	padding: 9px 14px 4px; font-size: 11px; font-weight: 800; text-transform: uppercase;
	letter-spacing: .3px; color: var(--lp-btn, #1b74e4); background: #f7faff; }
/* ô tìm kiếm (list Ngành dài) */
.lp-popup .select2-search--dropdown { padding: 8px; }
.lp-popup .select2-search--dropdown .select2-search__field {
	border: 1px solid #e3e6eb; border-radius: 8px; padding: 6px 10px; font-size: 13px; outline: none; }
.lp-popup .select2-search--dropdown .select2-search__field:focus {
	border-color: var(--lp-btn, #1b74e4); box-shadow: 0 0 0 3px rgba(27, 116, 228, .12); }
