/* ==========================================================================
   INTEE PRODUCT QUOTE MODAL (LOCAL BRAND STANDARD)
   Dedicated module for Quote Request & Direct Zalo Sales Routing
   ========================================================================== */

.product-quote-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(10, 15, 29, 0.78);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  z-index: 9999; display: none; align-items: center; justify-content: center;
  padding: 16px; opacity: 0; pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-quote-modal-backdrop.is-active {
  display: flex; opacity: 1; pointer-events: auto;
}

.product-quote-modal-dialog {
  background: #181d29; border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px; width: 100%; max-width: 540px; max-height: 90vh;
  overflow-y: auto; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  color: #f3f4f6; transform: scale(0.94) translateY(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.product-quote-modal-backdrop.is-active .product-quote-modal-dialog {
  transform: scale(1) translateY(0);
}

.quote-modal-header {
  padding: 24px 24px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.quote-modal-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(37, 99, 235, 0.2); border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; padding: 4px 10px; border-radius: 9999px; margin-bottom: 8px;
}

.quote-modal-title {
  font-size: 1.35rem; font-weight: 800; color: #ffffff; margin: 0 0 6px; line-height: 1.3;
}

.quote-modal-subtitle {
  font-size: 0.88rem; color: #9ca3af; margin: 0; line-height: 1.5;
}

.quote-modal-close {
  position: absolute; top: 18px; right: 18px;
  background: rgba(255, 255, 255, 0.08); border: none; color: #9ca3af;
  font-size: 1.5rem; width: 36px; height: 36px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease; line-height: 1;
}

.quote-modal-close:hover {
  background: rgba(239, 68, 68, 0.2); color: #f87171; transform: rotate(90deg);
}

.quote-modal-body { padding: 20px 24px 24px; }

.quote-gift-alert {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.15), rgba(185, 28, 28, 0.08));
  border: 1px dashed rgba(239, 68, 68, 0.4); border-radius: 10px; padding: 10px 14px;
  font-size: 0.82rem; color: #fca5a5; font-weight: 600; margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px;
}

.quote-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quote-form-group { display: flex; flex-direction: column; gap: 6px; }
.quote-form-group.full-width { grid-column: span 2; }
.quote-form-label { font-size: 0.82rem; font-weight: 600; color: #d1d5db; }
.quote-form-label span.req { color: #f87171; }

.quote-form-input, .quote-form-textarea, .quote-form-select {
  background: #0f131d; border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px; padding: 10px 12px; color: #ffffff; font-size: 0.9rem;
  font-family: inherit; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quote-form-input:focus, .quote-form-textarea:focus, .quote-form-select:focus {
  outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.quote-form-textarea { min-height: 72px; resize: vertical; }

.quote-submit-btn {
  width: 100%; margin-top: 18px;
  background: linear-gradient(135deg, #0284c7, #2563eb); color: #ffffff;
  border: none; border-radius: 10px; padding: 14px 20px; font-size: 0.95rem;
  font-weight: 700; font-family: inherit; cursor: pointer; display: flex;
  align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4); transition: all 0.2s ease;
}

.quote-submit-btn:hover {
  background: linear-gradient(135deg, #0369a1, #1d4ed8); transform: translateY(-2px);
  box-shadow: 0 14px 24px -5px rgba(37, 99, 235, 0.5);
}

.quote-modal-footnote {
  margin-top: 12px; font-size: 0.75rem; color: #9ca3af; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}

/* Step 2: Order Success & Zalo Routing View */
.quote-success-step {
  display: flex; flex-direction: column; gap: 14px;
  animation: fadeInModal 0.25s ease-out;
}

@keyframes fadeInModal {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.success-icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399; padding: 6px 14px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.5px; margin: 0 auto;
}

.success-order-box {
  background: #0f172a; border: 1px dashed rgba(96, 165, 250, 0.45);
  border-radius: 12px; padding: 14px; text-align: center;
}

.success-order-id-label {
  font-size: 0.75rem; color: #94a3b8; font-weight: 600; text-transform: uppercase;
}

.success-order-id-code {
  font-size: 1.25rem; font-weight: 800; color: #60a5fa; margin: 4px 0 2px;
}

.success-order-meta { font-size: 0.82rem; color: #cbd5e1; }

.success-guide-card {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(30, 41, 59, 0.7); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px; padding: 12px 14px; font-size: 0.85rem; line-height: 1.45; color: #e2e8f0;
}

.pulse-indicator {
  width: 10px; height: 10px; margin-top: 4px; border-radius: 50%;
  background: #10b981; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 1.6s infinite; flex-shrink: 0;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.guide-content strong { color: #38bdf8; display: block; margin-bottom: 2px; }
.guide-content p { margin: 0; color: #94a3b8; }
.success-actions-wrap { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }

.btn-primary-zalo-now {
  background: linear-gradient(135deg, #0284c7, #2563eb); color: #ffffff;
  text-decoration: none; font-weight: 700; font-size: 0.95rem; padding: 13px 18px;
  border-radius: 10px; text-align: center; box-shadow: 0 8px 16px -4px rgba(37, 99, 235, 0.45);
  transition: all 0.2s ease; display: flex; align-items: center; justify-content: center;
}

.btn-primary-zalo-now:hover {
  background: linear-gradient(135deg, #0369a1, #1d4ed8); transform: translateY(-2px);
  box-shadow: 0 12px 20px -4px rgba(37, 99, 235, 0.55);
}

.btn-copy-order-manual, .btn-edit-order-info {
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1; padding: 9px 14px; border-radius: 8px; font-size: 0.82rem;
  cursor: pointer; font-family: inherit; transition: all 0.2s ease;
}

.btn-copy-order-manual:hover {
  background: rgba(255, 255, 255, 0.08); color: #ffffff; border-color: rgba(255, 255, 255, 0.3);
}

.btn-edit-order-info { border: none; color: #64748b; font-size: 0.78rem; padding: 4px; }
.btn-edit-order-info:hover { color: #94a3b8; text-decoration: underline; }

@media (max-width: 600px) {
  .quote-form-grid { grid-template-columns: 1fr; }
  .quote-form-group.full-width { grid-column: span 1; }
  .product-quote-modal-dialog { border-radius: 16px; }
  .quote-modal-header { padding: 18px 18px 14px; }
  .quote-modal-body { padding: 16px 18px 20px; }
}
