/* ============================================================
   video-kyc.css
   Custom styles for Pixl Video KYC Solution Page
   Extends: bootstrap.css, style.css, common.css, config.css
   ============================================================ */

/* --- Custom Border Grid for Features & Works --- */
.kyc-border-grid {
  border-top: 1px solid var(--layoutBorderColor);
  border-left: 1px solid var(--layoutBorderColor);
}
.kyc-border-cell {
  position: relative;
  padding: 40px 32px;
  border-right: 1px solid var(--layoutBorderColor);
  border-bottom: 1px solid var(--layoutBorderColor);
  background: #ffffff;
  transition: background 0.3s ease;
}
.kyc-border-cell:hover {
  background: rgba(246, 99, 32, 0.02);
}

/* --- Timeline Numbers --- */
.kyc-timeline-num {
  font-size: 48px;
  font-weight: 800;
  color: rgba(246, 99, 32, 0.08);
  line-height: 1;
  font-family: var(--font-primary);
  transition: color 0.3s ease;
}
.kyc-border-cell:hover .kyc-timeline-num {
  color: rgba(246, 99, 32, 0.18);
}

/* --- Feature Icons --- */
.kyc-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(246, 99, 32, 0.06);
  border: 1px solid rgba(246, 99, 32, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--secondaryMastercolor);
  transition: all 0.3s ease;
}
.kyc-border-cell:hover .kyc-feature-icon {
  background: rgba(246, 99, 32, 0.12);
  border-color: rgba(246, 99, 32, 0.35);
  transform: scale(1.05);
}

/* --- FAQ Accordion --- */
.faq-accordion-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}
.faq-item {
  border: 1.5px solid var(--layoutBorderColor);
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.faq-item:hover, .faq-item.active {
  border-color: var(--secondaryMastercolor);
}
.faq-trigger {
  width: 100%;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  text-align: left;
  outline: none;
  cursor: pointer;
}
.faq-question {
  font-size: 15px;
  font-weight: 600;
  color: var(--mastercolor);
  margin: 0;
}
.faq-icon-wrapper {
  color: var(--secondaryMastercolor);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-item.active .faq-icon-wrapper {
  transform: rotate(180deg);
}
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #ffffff;
}
.faq-answer {
  padding: 0 28px 24px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--primaryTextColor);
  margin: 0;
}

/* --- Form Frame Card --- */
.ctf-frame-card {
  border: 1.5px solid var(--layoutBorderColor);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.03);
}
.ctf-frame-header {
  padding: 14px 20px;
  background: var(--secondaryMastercolorLite);
}
.ctf-frame-dot {
  width: 9px;
  height: 9px;
}
.ctf-dot-red { background: #ff5f56; }
.ctf-dot-yellow { background: #ffbd2e; }
.ctf-dot-green { background: #27c93f; }

/* --- Trust/Security Cards --- */
.trust-card {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.trust-card:hover {
  border-color: var(--secondaryMastercolor) !important;
  box-shadow: 0 12px 24px rgba(246, 99, 32, 0.04) !important;
  transform: translateY(-2px);
}

/* --- Interactive Use Cases Tabs --- */
.ia-tab-item {
  padding: 18px 24px;
  border: 1px solid var(--layoutBorderColor);
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.ia-tab-item:hover,
.ia-tab-item.active {
  border-color: var(--secondaryMastercolor);
  background-color: rgba(246, 99, 32, 0.02);
  transform: translateX(4px);
}
.ia-tab-num {
  font-size: 16px;
  font-weight: 700;
  color: rgba(246, 99, 32, 0.3);
  line-height: 1.2;
  transition: color 0.3s ease;
}
.ia-tab-item.active .ia-tab-num {
  color: var(--secondaryMastercolor);
}
.ia-tab-info {
  flex: 1;
}
.ia-tab-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--mastercolor);
  margin-bottom: 4px;
}
.ia-tab-desc {
  font-size: 12px;
  color: var(--primaryTextColor);
  margin-bottom: 0;
  line-height: 1.5;
}
.ia-view-content {
  display: none;
}
.ia-view-content.active {
  display: block;
  animation: iaFadeIn 0.4s ease-out forwards;
}
@keyframes iaFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════════════════════════════════
   VIDEO KYC SCANNER CONSOLE STYLE RULES (CSS-ONLY MOCKUP)
   ═══════════════════════════════════════════════════════════════════ */
.kyc-console {
  border: 1.5px solid var(--layoutBorderColor) !important;
  border-radius: 16px !important;
  transition: all 0.3s ease;
}
.kyc-console:hover {
  border-color: var(--secondaryMastercolor) !important;
  box-shadow: 0 20px 40px rgba(246, 99, 32, 0.05) !important;
}

.video-feed-card {
  height: 160px;
  background: #0f172a;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
}

/* Facial Tracking Bounding Box */
.face-track-box {
  position: absolute;
  width: 70px;
  height: 70px;
  border: 1.5px solid #10b981;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
  animation: facePulse 2s infinite ease-in-out;
}
.face-track-label {
  position: absolute;
  top: -15px;
  left: 0;
  background: #10b981;
  color: #ffffff;
  font-size: 7px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 2px;
  white-space: nowrap;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
@keyframes facePulse {
  0% { transform: scale(1); border-color: rgba(16, 185, 129, 0.6); }
  50% { transform: scale(1.03); border-color: rgba(16, 185, 129, 1); }
  100% { transform: scale(1); border-color: rgba(16, 185, 129, 0.6); }
}

.kyc-checklist-item {
  font-size: 11px;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Pulsing Status Dot Animation */
@keyframes pulse {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(40, 167, 69, 0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
  }
}

/* ═══════════════════════════════════════════════════════════════════
   PERFORMANCE GAUGES (CSS-ONLY METRICS GRAPHICS)
   ═══════════════════════════════════════════════════════════════════ */
.gauge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.gauge-card {
  background: #ffffff;
  border: 1.5px solid var(--layoutBorderColor);
  border-radius: 12px;
  padding: 30px 24px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.gauge-card:hover {
  border-color: var(--secondaryMastercolor);
  box-shadow: 0 12px 30px rgba(246, 99, 32, 0.04);
  transform: translateY(-3px);
}
.gauge-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-weight: 700;
  font-size: 18px;
  color: #0f172a;
}

/*Conic Gradients to simulate progress charts */
.gauge-90 {
  background: conic-gradient(var(--secondaryMastercolor) 90%, #f1f5f9 0);
}
.gauge-999 {
  background: conic-gradient(var(--secondaryMastercolor) 99.9%, #f1f5f9 0);
}
.gauge-997 {
  background: conic-gradient(var(--secondaryMastercolor) 99.7%, #f1f5f9 0);
}
.gauge-48 {
  background: conic-gradient(var(--secondaryMastercolor) 96%, #f1f5f9 0); /* 4.8 out of 5 is 96% */
}
.gauge-inner-hole {
  width: 76px;
  height: 76px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Benefits Tags */
.benefits-glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.benefit-tag-chip {
  background: #ffffff;
  border: 1px solid var(--layoutBorderColor);
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--mastercolor);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
}
.benefit-tag-chip:hover {
  border-color: var(--secondaryMastercolor);
  box-shadow: 0 8px 20px rgba(246, 99, 32, 0.04);
  transform: translateY(-2px);
}
.benefit-tag-icon {
  color: #10b981;
  display: flex;
  align-items: center;
}
