/* JustDial Scanner Tool Styles */
@import url('../../css/style.css');

.scanner-page-wrapper {
  background-color: #f8fafc;
  min-height: 100vh;
}

/* Hero Section */
.scanner-hero {
  padding: 80px 20px 40px;
  background: linear-gradient(135deg, #0a192f 0%, #1e293b 65%, #b91c1c 100%);
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.scanner-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.scanner-hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}

.scanner-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.scanner-hero h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.scanner-hero-p {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: #cbd5e1;
  max-width: 660px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Calculator Form */
.calculator-section {
  padding: 40px 20px 80px;
  max-width: 860px;
  margin: 0 auto;
}

.calculator-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 40px 36px;
  box-shadow: 0 12px 36px rgba(10, 25, 47, 0.06);
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: #0b2c4a;
  margin-bottom: 8px;
}

.form-hint {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 6px;
  display: block;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  color: #0b2c4a;
  background: #f8fafc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: #0284c7;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}

.btn-scan {
  width: 100%;
  padding: 16px 28px;
  background: #0b2c4a;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 24px rgba(11, 44, 74, 0.2);
}

.btn-scan:hover {
  background: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.3);
}

/* Results Section (Hidden initially) */
.result-section {
  display: none;
  margin-top: 32px;
  animation: fadeIn 0.4s ease forwards;
}

.result-section.active {
  display: block;
}

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

/* Shock Loss Box */
.shock-box {
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  border-radius: 20px;
  padding: 32px 28px;
  margin-bottom: 28px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.08);
}

.shock-badge {
  display: inline-block;
  background: #fee2e2;
  color: #dc2626;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
  border: 1px solid #fca5a5;
}

.shock-title {
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  font-weight: 800;
  color: #991b1b;
  margin-bottom: 12px;
  line-height: 1.35;
}

.shock-desc {
  font-size: 1rem;
  color: #7f1d1d;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Lead Sharing Visual */
.lead-sharing-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 32px 24px;
  margin-bottom: 28px;
  box-shadow: 0 4px 20px rgba(10, 25, 47, 0.04);
  text-align: center;
}

.lead-sharing-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0b2c4a;
  margin-bottom: 8px;
}

.lead-sharing-sub {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 28px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.lead-origin-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  color: #1d4ed8;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.1);
}

.split-arrow {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  color: #94a3b8;
}

.competitors-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.competitor-box {
  flex: 1;
  min-width: 140px;
  max-width: 180px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 14px;
  text-align: center;
  transition: transform 0.2s ease;
}

.competitor-box.highlight {
  background: #fffbeb;
  border-color: #fcd34d;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15);
}

.competitor-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 1rem;
}

.competitor-box.highlight .competitor-icon {
  background: #fef3c7;
  color: #d97706;
}

.competitor-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0b2c4a;
  margin-bottom: 4px;
}

.competitor-odds {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
}

.competitor-box.highlight .competitor-odds {
  color: #d97706;
  font-weight: 700;
}

/* Opportunity Cost Card */
.opportunity-box {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: 20px;
  padding: 28px 24px;
  margin-bottom: 28px;
  text-align: center;
}

.opportunity-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 6px;
}

.opportunity-amount {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  color: #b45309;
  margin-bottom: 8px;
}

.opportunity-note {
  font-size: 0.92rem;
  color: #78350f;
  line-height: 1.5;
}

/* Comparison Bar Chart */
.comparison-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 4px 20px rgba(10, 25, 47, 0.04);
}

.comparison-header {
  margin-bottom: 24px;
}

.comparison-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0b2c4a;
  margin-bottom: 6px;
}

.comparison-header p {
  font-size: 0.95rem;
  color: #64748b;
}

.bar-row {
  margin-bottom: 20px;
}

.bar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #334155;
}

.bar-track {
  width: 100%;
  height: 28px;
  background: #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.bar-fill-justdial {
  width: 25%;
  height: 100%;
  background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
}

.bar-fill-vyomarc {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #059669 0%, #10b981 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 14px;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
}

/* Steps / How to Use */
.steps-section {
  padding: 60px 20px;
  background: #ffffff;
  border-top: 1px solid #eef2f6;
  border-bottom: 1px solid #eef2f6;
}

.section-container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header-center {
  text-align: center;
  margin-bottom: 48px;
}

.section-header-center h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: #0b2c4a;
  margin-bottom: 12px;
}

.section-header-center p {
  color: #64748b;
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 32px 24px;
  position: relative;
  transition: transform 0.25s ease;
}

.step-card:hover {
  transform: translateY(-4px);
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #0b2c4a;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.step-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0b2c4a;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
}

/* Why Use Section */
.why-section {
  padding: 70px 20px;
  background: #f8fafc;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.why-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 32px 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.why-card:hover {
  transform: translateY(-4px);
  border-color: #0284c7;
}

.why-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.why-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0b2c4a;
  margin-bottom: 10px;
}

.why-card p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
}

/* FAQ Section */
.faq-section-wrapper {
  padding: 70px 20px;
  background: #ffffff;
}

.faq-list-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.tool-faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  margin-bottom: 16px;
  overflow: hidden;
  background: #f8fafc;
}

.tool-faq-question {
  width: 100%;
  padding: 20px 24px;
  text-align: left;
  background: transparent;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0b2c4a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}

.tool-faq-question:hover {
  color: #0284c7;
}

.tool-faq-answer {
  padding: 0 24px 20px;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* CTA Banner */
.tool-cta-section {
  padding: 40px 20px 80px;
  background: #f8fafc;
}

.tool-cta-banner {
  max-width: 1100px;
  margin: 0 auto;
  background: linear-gradient(135deg, #0a192f 0%, #1e3a8a 60%, #0284c7 100%);
  border-radius: 28px;
  padding: 56px 36px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 20px 40px rgba(10, 25, 47, 0.15);
}

.tool-cta-banner h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
}

.tool-cta-banner p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.btn-cta-audit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #38bdf8;
  color: #0a192f;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px 36px;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.3);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.btn-cta-audit:hover {
  background: #0ea5e9;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(56, 189, 248, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .scanner-hero {
    padding: 60px 16px 32px;
  }
  .calculator-section {
    padding: 24px 16px 50px;
  }
  .calculator-card {
    padding: 28px 20px;
  }
  .competitors-grid {
    gap: 12px;
  }
  .competitor-box {
    min-width: calc(50% - 10px);
    max-width: 100%;
  }
  .steps-grid,
  .why-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .tool-cta-banner {
    padding: 40px 20px;
  }
  .btn-cta-audit {
    width: 100%;
    justify-content: center;
  }
}



/* =========================================
   MOBILE RESPONSIVENESS & STACKING FIX
   ========================================= */
@media (max-width: 768px) {
  .calc-container,
  .calc-card-main,
  .calculator-section,
  .calculator-card,
  .generator-section,
  .generator-card,
  .results-wrapper,
  .output-section {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .calc-inputs-grid,
  .breakdown-grid,
  .calc-grid,
  .competitors-grid,
  .steps-grid,
  .why-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    width: 100% !important;
  }

  .input-card,
  .breakdown-item,
  .shock-card,
  .result-card,
  .competitor-box {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}
