/* SOPHIE LEVY CRM - Giao diện tra cứu bảo hành điện tử cao cấp */

/* Font chữ và hệ màu chuẩn */
.axd-lookup,
.axd-lookup *,
.axd-modal,
.axd-modal * {
	box-sizing: border-box !important;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
	-webkit-font-smoothing: antialiased !important;
	-moz-osx-font-smoothing: grayscale !important;
}

.axd-lookup {
	max-width: 960px;
	margin: 24px auto;
	color: #0f172a;
	line-height: 1.5;
}

/* Khung Hero màu xanh công nghệ */
.axd-lookup__hero {
	position: relative;
	padding: 40px 44px;
	border-radius: 20px;
	background: linear-gradient(135deg, #0a2540 0%, #174a7c 60%, #1d5fa7 100%);
	color: #ffffff;
	box-shadow: 0 20px 45px rgba(10, 37, 64, 0.28);
	overflow: hidden;
}

/* Hiệu ứng ánh sáng nền tinh tế */
.axd-lookup__hero::before {
	content: "";
	position: absolute;
	top: -60px;
	right: -60px;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(110, 231, 183, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
	pointer-events: none;
}

/* Nút quảng bá thương hiệu SOPHIE LEVY CRM: Nhỏ gọn, sang trọng, màu sắc đồng nhất theo phong cách Dark Navy */
.axd-lookup__eyebrow,
a.axd-lookup__eyebrow,
.axd-brand-badge,
a.axd-brand-badge {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	height: 30px !important;
	padding: 0 14px !important;
	margin: 0 0 14px 0 !important;
	background: #0b2239 !important;
	border: 1px solid rgba(255, 255, 255, 0.18) !important;
	border-radius: 8px !important;
	color: #ffffff !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: 0.8px !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
	cursor: pointer !important;
	box-shadow: 0 3px 10px rgba(5, 18, 32, 0.32) !important;
	transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
	vertical-align: middle !important;
	line-height: 1 !important;
}

.axd-lookup__eyebrow:hover,
a.axd-lookup__eyebrow:hover,
.axd-brand-badge:hover,
a.axd-brand-badge:hover {
	color: #ffffff !important;
	background: #133659 !important;
	border-color: rgba(255, 255, 255, 0.38) !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 5px 16px rgba(5, 18, 32, 0.45) !important;
}

.axd-brand-badge__icon {
	width: 10px !important;
	height: 10px !important;
	opacity: 0.75 !important;
	transition: transform 0.2s ease, opacity 0.2s ease !important;
}

a.axd-lookup__eyebrow:hover .axd-brand-badge__icon,
a.axd-brand-badge:hover .axd-brand-badge__icon {
	opacity: 1 !important;
	transform: translate(1px, -1px) !important;
}

.axd-lookup__hero h2 {
	margin: 0 0 10px 0 !important;
	color: #ffffff !important;
	font-size: clamp(26px, 3.6vw, 36px) !important;
	font-weight: 800 !important;
	line-height: 1.25 !important;
	letter-spacing: -0.4px !important;
}

.axd-lookup__hero p {
	margin: 0 0 26px 0 !important;
	color: #e2e8f0 !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1.55 !important;
	max-width: 620px;
}

/* Khung ô tìm kiếm: Cố định đồng trục, chống lệch trên mọi Theme (kể cả Flatsome) */
.axd-lookup__form,
form.axd-lookup__form.axd-ajax-form {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: space-between !important;
	width: 100% !important;
	max-width: 100% !important;
	height: 64px !important;
	min-height: 64px !important;
	padding: 6px 6px 6px 8px !important;
	margin: 0 !important;
	background: #ffffff !important;
	border: 1px solid rgba(255, 255, 255, 0.8) !important;
	border-radius: 14px !important;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22) !important;
	box-sizing: border-box !important;
}

/* Ô nhập liệu Text / Tel */
.axd-lookup__form input,
.axd-lookup__form input[type="text"],
.axd-lookup__form input[name="axd_lookup"] {
	flex: 1 1 auto !important;
	width: auto !important;
	min-width: 0 !important;
	height: 52px !important;
	min-height: 52px !important;
	max-height: 52px !important;
	line-height: 52px !important;
	padding: 0 18px !important;
	margin: 0 !important;
	border: none !important;
	outline: none !important;
	background: transparent !important;
	color: #0f172a !important;
	font-size: 16px !important;
	font-weight: 500 !important;
	letter-spacing: 0.3px !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
	vertical-align: middle !important;
}

.axd-lookup__form input::placeholder {
	color: #94a3b8 !important;
	font-size: 15px !important;
	font-weight: 400 !important;
}

/* Nút Tra cứu ngay */
.axd-lookup__form button,
.axd-lookup__form button.axd-submit-btn,
.axd-lookup__form button[type="submit"] {
	flex: 0 0 auto !important;
	height: 52px !important;
	min-height: 52px !important;
	max-height: 52px !important;
	line-height: 52px !important;
	padding: 0 28px !important;
	margin: 0 !important;
	border: none !important;
	border-radius: 10px !important;
	background: #10b981 !important;
	background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
	color: #ffffff !important;
	font-size: 14.5px !important;
	font-weight: 700 !important;
	letter-spacing: 0.6px !important;
	text-transform: uppercase !important;
	cursor: pointer !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	white-space: nowrap !important;
	box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35) !important;
	transition: all 0.2s ease !important;
	box-sizing: border-box !important;
	vertical-align: middle !important;
}

.axd-lookup__form button:hover {
	background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
	box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45) !important;
	transform: translateY(-1px) !important;
}

.axd-lookup__form button:active {
	transform: scale(0.99) !important;
}

.axd-lookup__form button:disabled {
	opacity: 0.75 !important;
	cursor: not-allowed !important;
}

/* Thông báo không tìm thấy */
.axd-notice {
	margin-top: 24px;
	padding: 20px 24px;
	border: 1px solid #fecdd3;
	border-radius: 14px;
	background: #fff1f2;
	color: #9f1239;
	font-size: 15px;
	line-height: 1.6;
	animation: axdFadeIn 0.3s ease;
}

.axd-notice strong {
	color: #881337;
	font-size: 16px;
}

/* Khung hiển thị kết quả bảo hành */
.axd-result {
	margin-top: 24px;
	border: 1px solid #cbd5e1;
	border-radius: 18px;
	background: #ffffff;
	box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
	overflow: hidden;
	animation: axdFadeIn 0.35s ease;
}

.axd-result header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 22px 28px;
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
}

.axd-result__label {
	display: block;
	font-size: 11.5px !important;
	font-weight: 700 !important;
	letter-spacing: 0.8px !important;
	text-transform: uppercase !important;
	color: #64748b !important;
}

.axd-result header strong {
	display: block;
	margin-top: 4px;
	font-size: 22px !important;
	font-weight: 800 !important;
	color: #0f172a !important;
	letter-spacing: 0.5px !important;
}

/* Huy hiệu trạng thái Còn hạn / Hết hạn */
.axd-status {
	display: inline-flex;
	align-items: center;
	padding: 7px 16px;
	border-radius: 999px;
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: 0.2px;
}

.axd-status.is-active {
	background: #dcfce7;
	color: #15803d;
	box-shadow: 0 2px 6px rgba(22, 163, 74, 0.15);
}

.axd-status.is-expired {
	background: #f1f5f9;
	color: #64748b;
}

/* Grid 8 thông tin chi tiết */
.axd-result__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: #e2e8f0;
}

.axd-result__grid > div {
	min-height: 86px;
	padding: 16px 20px;
	background: #ffffff;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.axd-result__grid span {
	display: block;
	font-size: 11px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.6px !important;
	color: #64748b !important;
}

.axd-result__grid strong {
	display: block;
	margin-top: 6px;
	overflow-wrap: anywhere;
	color: #0f172a !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
}

.axd-result__grid code {
	display: inline-block;
	align-self: flex-start;
	margin-top: 6px;
	padding: 4px 10px;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 6px;
	font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
	font-weight: 700 !important;
	color: #1d4ed8 !important;
	font-size: 14px !important;
	letter-spacing: 0.5px !important;
}

.axd-result footer {
	padding: 14px 24px;
	background: #f8fafc;
	color: #64748b;
	font-size: 13px;
	text-align: center;
	border-top: 1px solid #e2e8f0;
}

.axd-footer-link,
a.axd-footer-link {
	color: #1d5fa7 !important;
	text-decoration: none !important;
	font-weight: 600 !important;
	transition: color 0.2s ease !important;
}

.axd-footer-link:hover,
a.axd-footer-link:hover {
	color: #0f3d70 !important;
	text-decoration: underline !important;
}

/* Nút kích hoạt Shortcode Button */
.axd-button-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	border: 0;
	cursor: pointer;
	font-family: inherit;
	outline: none;
	border-radius: 10px;
	background: #18528c;
	color: #ffffff !important;
	text-decoration: none !important;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.2;
	box-shadow: 0 4px 14px rgba(24, 82, 140, 0.25);
	transition: all 0.2s ease;
}

.axd-button-trigger:hover {
	background: #103863;
	color: #ffffff !important;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(24, 82, 140, 0.35);
}

.axd-button-trigger svg {
	flex-shrink: 0;
}

/* Modal Popup Tra cứu */
body.axd-modal-open {
	overflow: hidden !important;
}

.axd-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.axd-modal__backdrop {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(10, 25, 41, 0.78);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.axd-modal__dialog {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 860px;
	max-height: 92vh;
	overflow-y: auto;
	background: transparent;
	border-radius: 20px;
	animation: axdZoomIn 0.25s ease;
}

/* Nút đóng modal X nhỏ gọn, tinh tế */
.axd-modal__close {
	position: absolute;
	top: 16px;
	right: 18px;
	z-index: 10;
	width: 28px;
	height: 28px;
	min-width: 28px;
	min-height: 28px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.16);
	color: #ffffff !important;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	outline: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.axd-modal__close:hover {
	background: rgba(255, 255, 255, 0.32);
	border-color: rgba(255, 255, 255, 0.45);
	color: #ffffff !important;
	transform: scale(1.08);
}

.axd-modal__close svg {
	width: 12px;
	height: 12px;
	display: block;
	pointer-events: none;
}

.axd-modal .axd-lookup {
	margin: 0;
}

/* Animation */
@keyframes axdFadeIn {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes axdZoomIn {
	from {
		opacity: 0;
		transform: scale(0.96);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

/* Responsive cho thiết bị di động & Tablet */
@media (max-width: 768px) {
	.axd-lookup__hero {
		padding: 28px 22px;
		border-radius: 16px;
	}

	.axd-lookup__form,
	form.axd-lookup__form.axd-ajax-form {
		height: auto !important;
		min-height: unset !important;
		flex-direction: column !important;
		padding: 8px !important;
		gap: 8px;
	}

	.axd-lookup__form input,
	.axd-lookup__form input[type="text"],
	.axd-lookup__form input[name="axd_lookup"] {
		width: 100% !important;
		height: 48px !important;
		line-height: 48px !important;
		text-align: center;
	}

	.axd-lookup__form button,
	.axd-lookup__form button.axd-submit-btn,
	.axd-lookup__form button[type="submit"] {
		width: 100% !important;
		height: 48px !important;
		line-height: 48px !important;
	}

	.axd-result__grid {
		grid-template-columns: 1fr 1fr;
	}

	.axd-modal {
		padding: 12px;
	}

	.axd-modal__close {
		top: 10px;
		right: 12px;
		width: 24px;
		height: 24px;
		min-width: 24px;
		min-height: 24px;
	}
	.axd-modal__close svg {
		width: 10px;
		height: 10px;
	}
}

@media (max-width: 480px) {
	.axd-result header {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		padding: 18px 20px;
	}

	.axd-result__grid {
		grid-template-columns: 1fr;
	}
}

/* Nút bấm Shortcode [axd_warranty_button] / [sl_warranty_button] */
.axd-button-trigger,
button.axd-button-trigger,
a.axd-button-trigger {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	height: 38px !important;
	padding: 0 18px !important;
	background: #0b2239 !important;
	border: 1px solid rgba(255, 255, 255, 0.18) !important;
	border-radius: 8px !important;
	color: #ffffff !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	letter-spacing: 0.6px !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
	cursor: pointer !important;
	box-shadow: 0 4px 14px rgba(11, 34, 57, 0.25) !important;
	transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
	line-height: 1 !important;
}

.axd-button-trigger:hover,
button.axd-button-trigger:hover,
a.axd-button-trigger:hover {
	background: #133659 !important;
	color: #ffffff !important;
	border-color: rgba(255, 255, 255, 0.38) !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 6px 18px rgba(11, 34, 57, 0.35) !important;
}

