/*--------------------------------------------------------------
# QEEMA Smart Guidance Pop-up Assistant (English Version)
--------------------------------------------------------------*/
:root {
  --ai-primary: #003366;
  --ai-accent: #00A3E0;
  --ai-gradient: linear-gradient(135deg, #003366 0%, #00A3E0 100%);
  --ai-shadow: 0 20px 60px rgba(0, 32, 66, 0.35);
}

/* Modal Overlay Background */
.qeema-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 20, 45, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 15px;
}

.qeema-popup-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Main Popup Window */
.qeema-popup-card {
  background: #ffffff;
  width: 580px;
  max-width: 100%;
  max-height: 90vh;
  border-radius: 24px;
  box-shadow: var(--ai-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transform: scale(0.9) translateY(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Poppins', 'Roboto', sans-serif;
}

.qeema-popup-overlay.active .qeema-popup-card {
  transform: scale(1) translateY(0);
}

/* Header */
.qeema-popup-header {
  background: var(--ai-gradient);
  color: #ffffff;
  padding: 24px 28px;
  position: relative;
  text-align: left;
  direction: ltr;
}

.qeema-popup-header h3 {
  margin: 0 0 6px 0;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.qeema-popup-header p {
  margin: 0;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

.qeema-popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.qeema-popup-close:hover {
  background: #ffffff;
  color: var(--ai-primary);
  transform: rotate(90deg);
}

/* Content Body */
.qeema-popup-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 16px;
  direction: ltr;
  text-align: left;
}

/* Guided Scenario Grid */
.qeema-intent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 576px) {
  .qeema-intent-grid {
    grid-template-columns: 1fr;
  }
}

.qeema-intent-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  direction: ltr;
}

.qeema-intent-card:hover {
  border-color: var(--ai-accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 163, 224, 0.15);
  background: #f0f9ff;
}

.qeema-intent-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(0, 163, 224, 0.12);
  color: var(--ai-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.qeema-intent-card:hover .qeema-intent-icon {
  background: var(--ai-gradient);
  color: #ffffff;
}

.qeema-intent-text h5 {
  margin: 0 0 2px 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ai-primary);
}

.qeema-intent-text span {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.3;
  display: block;
}

/* Custom Search Box */
.qeema-search-box {
  position: relative;
  margin-top: 4px;
}

.qeema-search-input {
  width: 100%;
  border: 2px solid #cbd5e1;
  border-radius: 50px;
  padding: 12px 50px 12px 20px;
  font-size: 14px;
  outline: none;
  transition: all 0.25s ease;
  background: #ffffff;
  direction: ltr;
}

.qeema-search-input:focus {
  border-color: var(--ai-accent);
  box-shadow: 0 0 0 4px rgba(0, 163, 224, 0.15);
}

.qeema-search-btn {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ai-gradient);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qeema-search-btn:hover {
  transform: scale(1.05);
}

/* Result Box */
.qeema-result-box {
  background: #ffffff;
  border: 1.5px solid var(--ai-accent);
  border-radius: 16px;
  padding: 18px;
  animation: ai-slide-down 0.3s ease;
  direction: ltr;
  text-align: left;
}

@keyframes ai-slide-down {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Floating Launcher Button */
.qeema-ai-launcher {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 9990;
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.qeema-ai-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--ai-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 8px 25px rgba(0, 163, 224, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.qeema-ai-badge {
  background: #ffffff;
  color: var(--ai-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 163, 224, 0.3);
}

.ai-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
  animation: ai-blink 1.5s infinite;
}

@keyframes ai-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
