/* ============================================================
   credit-and-debit-card-ocr.css
   Custom styles for Credit & Debit Card OCR Solution Page
   Extends: bootstrap.css, style.css, common.css, config.css
   ============================================================ */

/* --- Custom Border Grid --- */
.ocr-border-grid {
  border-top: 1px solid var(--layoutBorderColor);
  border-left: 1px solid var(--layoutBorderColor);
}
.ocr-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;
}
.ocr-border-cell:hover {
  background: rgba(246, 99, 32, 0.02);
}

/* --- Timeline Specs --- */
.ocr-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;
}
.ocr-border-cell:hover .ocr-timeline-num {
  color: rgba(246, 99, 32, 0.18);
}

/* --- Feature Specs --- */
.ocr-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;
}
.ocr-border-cell:hover .ocr-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 --- */
.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; }

/* --- Interactive Credit Card Scanner Console --- */
.card-scanner-console {
  border: 1.5px solid var(--layoutBorderColor);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(0,0,0,0.02);
  overflow: hidden;
  transition: all 0.3s ease;
}
.card-scanner-console:hover {
  border-color: var(--secondaryMastercolor);
  box-shadow: 0 20px 40px rgba(246, 99, 32, 0.05);
}

.scanner-viewscreen {
  position: relative;
  background: #0f172a;
  padding: 40px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  min-height: 240px;
}

/* Scanner Laser Line animation */
.scanner-laser {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--secondaryMastercolor), transparent);
  box-shadow: 0 0 12px var(--secondaryMastercolor);
  animation: laserSweep 3s ease-in-out infinite alternate;
  z-index: 10;
}

@keyframes laserSweep {
  0% { top: 5%; }
  100% { top: 95%; }
}

/* Premium CSS Credit Card Mockup */
.card-mockup {
  width: 300px;
  height: 180px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
  color: #ffffff;
  font-family: 'Courier New', Courier, monospace;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-mockup::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.card-chip {
  width: 40px;
  height: 30px;
  background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.2);
}

.card-chip::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(0deg, transparent, transparent 4px, rgba(0,0,0,0.1) 4px, rgba(0,0,0,0.1) 8px);
}

.card-network {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: sans-serif;
  font-weight: 800;
  font-style: italic;
  font-size: 16px;
  color: rgba(255,255,255,0.8);
}

.card-number-val {
  font-size: 16px;
  letter-spacing: 2px;
  color: #f1f5f9;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
  margin-top: 15px;
}

.card-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: sans-serif;
}

.card-holder-name {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
  font-weight: 500;
}

.card-holder-val {
  font-size: 11px;
  color: #f8fafc;
  font-weight: 600;
  margin-top: 4px;
}

.card-expiry-lbl {
  font-size: 8px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-expiry-val {
  font-size: 11px;
  color: #f8fafc;
  font-weight: 600;
  margin-top: 2px;
}

/* Console logs showing extraction */
.ocr-log-window {
  background: #090d16;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 18px;
  font-family: monospace;
  font-size: 11.5px;
}

.ocr-log-title {
  color: #64748b;
  font-size: 9px;
  text-transform: uppercase;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.ocr-json-preview {
  color: #38bdf8;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0;
  line-height: 1.5;
}

.ocr-json-key { color: #f472b6; }
.ocr-json-string { color: #34d399; }
.ocr-json-number { color: #fb923c; }
