
/* CHUẨN HÓA PHÔNG CHỮ MONTSERRAT TOÀN DIỆN - KHÔNG BỊ LỖI PHÔNG TIẾNG VIỆT */
body,
.ladi-wraper,
.ladi-form,
.ladi-form-control,
.ladi-form-checkbox-item,
.form-note-input,
.pkg-card-title,
.pkg-card-sub,
.pkg-card-price,
.ladi-headline,
.ladi-button-headline,
.ladi-button-headline .ladi-headline {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* CHỐNG TRÀN VIỀN TOÀN TRANG TRÊN MỌI THIẾT BỊ DI ĐỘNG */
html,
body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

/* GỠ BỎ HOÀN TOÀN TRẠNG THÁI ẨN CỦA NÚT MUA VÀ SUBMIT */
#BUTTON1173,
#BUTTON1173.ladi-animation-hidden,
#BUTTON1110,
#BUTTON1110.ladi-animation-hidden,
#BUTTON1172,
#BUTTON1172.ladi-animation-hidden,
#BUTTON1177,
#BUTTON1177.ladi-animation-hidden {
  visibility: visible !important;
  opacity: 1 !important;
  display: block !important;
  pointer-events: auto !important;
}
/**
 * CSS CHO HIỆU ỨNG NHẤP NHÁY, GIAO DIỆN RADIO CHỌN GÓI & MODAL
 */

/* 1. HIỆU ỨNG NHẤP NHÁY NÚT "ĐẶT MUA NGAY" */
@keyframes pulseBuyNowBtn {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 6px 25px 6px rgba(13, 110, 253, 0.65);
    filter: brightness(1.15);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
    filter: brightness(1);
  }
}

/* Ép hiển thị trên cả mobile & desktop */
#BUTTON1173 {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

#BUTTON1173,
#BUTTON1173 .ladi-button {
  animation: pulseBuyNowBtn 1.5s infinite ease-in-out !important;
  cursor: pointer !important;
  border-radius: 40px !important;
  transform-origin: center center;
}

/* 2. HIỆU ỨNG NHẤP NHÁY NÚT "HOÀN TẤT ĐĂNG KÝ" (Loại bỏ filter brightness để tránh lỗi viền khung artifact trên trình duyệt) */
@keyframes pulseCompleteBtn {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.45);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.7);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.45);
  }
}

/* Ép hiển thị trên cả mobile & desktop cho các nút submit, triệt tiêu 100% mọi viền và nền trắng thừa */
#BUTTON1110,
#BUTTON1177,
#BUTTON1173 {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-width: 0px !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 1000px !important;
  overflow: visible !important;
}

#BUTTON1110 .ladi-button,
#BUTTON1172 .ladi-button,
#BUTTON1177 .ladi-button {
  animation: pulseCompleteBtn 1.3s infinite ease-in-out !important;
  cursor: pointer !important;
  transform-origin: center center;
  border-radius: 1000px !important;
  overflow: hidden !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-width: 0px !important;
  outline: none !important;
  box-shadow: 0 5px 20px rgba(220, 38, 38, 0.45) !important;
}

#BUTTON1110 .ladi-button .ladi-button-background,
#BUTTON1172 .ladi-button .ladi-button-background,
#BUTTON1177 .ladi-button .ladi-button-background {
  border-radius: 1000px !important;
  overflow: hidden !important;
  background-image: linear-gradient(135deg, #ff4141, #dc2626) !important;
  background-color: transparent !important;
  border: none !important;
  border-width: 0px !important;
  outline: none !important;
}

/* SỬA PHÔNG CHỮ TRÊN NÚT: MONTSERRAT ĐẬM, BỎ HOÀN TOÀN ITALIC ĐỂ HẾT LỖI DẤU TIẾNG VIỆT */
#BUTTON_TEXT1172,
#BUTTON_TEXT1177,
#BUTTON_TEXT1110,
#BUTTON_TEXT1172 .ladi-headline,
#BUTTON_TEXT1177 .ladi-headline,
#BUTTON_TEXT1110 .ladi-headline,
.ladi-button-headline .ladi-headline {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  font-style: normal !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
  line-height: 1.2 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35) !important;
}

/* KHÔI PHỤC HOÀN TOÀN GIAO DIỆN FORM ĐẶT HÀNG NGUYÊN BẢN TỪ ĐẦU */
.order-summary-card,
.pkg-card-content,
.form-note-wrapper {
  display: none !important;
}

/* Đảm bảo radio item và chữ hiển thị rõ nét, đúng phông Montserrat nguyên bản */
.ladi-form-checkbox-item {
  cursor: pointer !important;
}
.ladi-form-checkbox-item span {
  display: inline-block !important;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}

/* Đảm bảo nút bấm Hoàn tất đăng ký không bị khung viền trắng */
#BUTTON1172, #BUTTON1177, #BUTTON1110 {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.trust-badge-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  font-size: 10px !important;
  color: #1e3a8a !important;
  background: #eff6ff !important;
  padding: 2px 6px !important;
  border-radius: 5px !important;
  font-weight: 600 !important;
}

/* Hiệu ứng cảnh báo rung đỏ khi chưa tích chọn combo */
@keyframes shakeAlert {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.radio-group-error {
  animation: shakeAlert 0.4s ease-in-out !important;
  border: 2px solid #ef4444 !important;
  border-radius: 14px !important;
  padding: 6px !important;
  background-color: #fef2f2 !important;
}

/* Viền đỏ cho ô nhập liệu bị thiếu */
.input-field-error {
  border: 1.5px solid #ef4444 !important;
  background-color: #fef2f2 !important;
  animation: shakeAlert 0.35s ease-in-out !important;
}

/* 4. MODAL VÀ BACKDROP */
.order-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 16px;
  box-sizing: border-box;
}

.order-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.order-modal-box {
  background: #ffffff;
  width: 100%;
  max-width: 440px;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
  padding: 28px 22px;
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  color: #1e293b;
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
}

.order-modal-backdrop.active .order-modal-box {
  transform: scale(1) translateY(0);
}

.order-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s;
  outline: none;
}

.order-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.order-success-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
  animation: modalBounceIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.order-success-icon svg {
  width: 36px;
  height: 36px;
  stroke: #ffffff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: checkDraw 0.6s ease forwards 0.25s;
}

@keyframes modalBounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes checkDraw {
  to { stroke-dashoffset: 0; }
}

.order-modal-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.order-modal-subtitle {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 16px;
  line-height: 1.5;
}

.order-code-badge {
  display: inline-block;
  background: #eff6ff;
  color: #2563eb;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 1px dashed #93c5fd;
  margin-bottom: 14px;
}

.order-details-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  text-align: left;
  margin-bottom: 16px;
  font-size: 12.5px;
  line-height: 1.6;
}

.order-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px dashed #e2e8f0;
}

.order-detail-row:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}

.order-detail-label {
  color: #64748b;
  font-weight: 500;
  flex-shrink: 0;
  margin-right: 8px;
}

.order-detail-value {
  color: #1e293b;
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.order-detail-value.highlight-price {
  color: #dc2626;
  font-size: 15px;
  font-weight: 800;
}

.order-modal-notice {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 11.5px;
  color: #92400e;
  line-height: 1.5;
  margin-bottom: 16px;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.order-modal-notice svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  stroke: #d97706;
}

.order-modal-btn {
  width: 100%;
  padding: 13px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: all 0.2s;
  text-transform: uppercase;
}

.order-modal-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

/* Spinner khi gửi */
.order-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: orderSpin 0.7s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}

@keyframes orderSpin {
  to { transform: rotate(360deg); }
}

/* Toast cảnh báo lỗi */
.order-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-40px);
  background: #dc2626;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Montserrat', system-ui, sans-serif;
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.45);
  z-index: 1000000000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 90vw;
  box-sizing: border-box;
}

.order-toast.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Hiệu ứng nổi bật trường nhập khi cuộn tới */
.input-field-highlight {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.35) !important;
  transition: all 0.3s ease-in-out !important;
}

/* =========================================================================
 * FLOATING CONTACT BUTTONS (ZALO & PHONE HOTLINE) - TỐI ƯU GIAO DIỆN DI ĐỘNG
 * ========================================================================= */
.floating-contact-widget {
  position: static !important;
}


