/* ================================================================
   Credsure Financial Consultancy — Page-Specific Styles
   Hero, loan cards, EMI calculator, about, FAQ, contact, apply.
   ================================================================ */

/* ══════════════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  background: linear-gradient(145deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  padding: var(--space-16) 0;
  overflow: hidden;
  min-height: calc(85vh - var(--nav-height-mobile));
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .hero {
    padding: var(--space-20) 0;
    min-height: calc(90vh - var(--nav-height));
  }
}

/* Decorative gradient orbs */
.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.12) 0%, transparent 70%);
  top: -150px;
  right: -150px;
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.08) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  border-radius: 50%;
  pointer-events: none;
}

/* Subtle grid pattern overlay */
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: 55% 45%;
    gap: var(--space-8);
  }
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 42% 58%;
    gap: var(--space-8);
  }
}

.hero-content {
  text-align: center;
}

@media (min-width: 768px) {
  .hero-content {
    text-align: left;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-6);
  backdrop-filter: blur(8px);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.hero-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  color: var(--text-inverse);
  margin-bottom: var(--space-5);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-title-highlight {
  color: var(--accent-light);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.75);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
  max-width: 520px;
}

@media (max-width: 767px) {
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

@media (min-width: 768px) {
  .hero-actions {
    justify-content: flex-start;
  }
}

.hero-stats {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-10);
  justify-content: center;
}

@media (min-width: 768px) {
  .hero-stats {
    justify-content: flex-start;
  }
}

.stat-item {
  text-align: center;
  color: var(--text-inverse);
}

@media (min-width: 768px) {
  .stat-item {
    text-align: left;
  }
}

.stat-item strong {
  display: block;
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--text-inverse);
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  margin-top: var(--space-1);
}

/* Hero Illustration Area */
.hero-visual {
  display: none;
  position: relative;
}

@media (min-width: 768px) {
  .hero-visual {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
  }
}

@media (min-width: 1024px) {
  .hero-visual {
    justify-content: flex-start;
    padding-right: 0;
    margin-top: -80px;
    transform: translateX(10px);
  }
}

@keyframes float-illustration {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

.hero-illustration {
  width: 100%;
  max-width: none;
  height: auto;
  animation: float-illustration 6s ease-in-out infinite;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.4));
  transform-origin: center center;
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 85%);
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 85%);
}

@media (min-width: 1024px) {
  .hero-illustration {
    width: 118%;
    max-width: 125%;
    transform: none;
  }
}
/* ── Hero Trust Strip ──────────────────────────────────────── */
.trust-strip {
  background: var(--secondary);
  border-bottom: 1px solid var(--border);
  padding: var(--space-5) 0;
}

.trust-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.trust-item svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

/* ══════════════════════════════════════════════════════════════
   LOAN SOLUTIONS
   ══════════════════════════════════════════════════════════════ */
.loan-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.loan-card .card-actions {
  margin-top: auto;
  padding-top: var(--space-4);
  display: flex;
  gap: var(--space-3);
}

.loan-card .card-actions .btn {
  flex: 1;
}

/* Loan Detail Page */
.loan-detail-header {
  padding: calc(var(--nav-height-mobile) + var(--space-8)) 0 var(--space-8);
  background: var(--surface);
}

@media (min-width: 768px) {
  .loan-detail-header {
    padding: calc(var(--nav-height) + var(--space-12)) 0 var(--space-12);
  }
}

.loan-detail-icon {
  width: 72px;
  height: 72px;
  background: rgba(var(--primary-rgb), 0.08);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: var(--space-4);
}

.loan-detail-icon svg {
  width: 36px;
  height: 36px;
}

.loan-detail-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 1024px) {
  .loan-detail-content {
    grid-template-columns: 2fr 1fr;
    gap: var(--space-12);
  }
}

.loan-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.sidebar-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.sidebar-card h4 {
  margin-bottom: var(--space-4);
}

.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.sidebar-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.sidebar-list li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}

/* ══════════════════════════════════════════════════════════════
   EMI CALCULATOR
   ══════════════════════════════════════════════════════════════ */
.emi-calculator {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.emi-grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .emi-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.emi-inputs {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-12); /* Increased gap between form groups */
}

.emi-inputs .form-group {
  display: flex;
  flex-direction: column;
}

.emi-inputs .form-group label {
  margin-bottom: var(--space-4); /* Space between label and displayed value */
}

.emi-inputs .range-value-display {
  margin-bottom: var(--space-6); /* Space between displayed value and slider */
}

.emi-inputs .range-slider {
  margin-bottom: var(--space-4); /* Space between slider and amount range labels */
}

.emi-results {
  padding: var(--space-8);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
}

/* Slider Group */
.slider-group {
  width: 100%;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}

.slider-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
}

.slider-value {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--primary);
}

/* Custom Range Slider */
.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
  cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--secondary);
  border: 3px solid var(--primary);
  box-shadow: 0 2px 6px rgba(var(--primary-rgb), 0.3);
  cursor: pointer;
  transition: box-shadow var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}

.range-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 3px 10px rgba(var(--primary-rgb), 0.4);
  transform: scale(1.15);
}

.range-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--secondary);
  border: 3px solid var(--primary);
  box-shadow: 0 2px 6px rgba(var(--primary-rgb), 0.3);
  cursor: pointer;
}

.range-slider::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: var(--border);
}

.range-slider::-moz-range-progress {
  height: 6px;
  border-radius: 3px;
  background: var(--primary);
}

.slider-range {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* EMI Results */
.emi-chart-container {
  width: 180px;
  height: 180px;
  position: relative;
}

.emi-chart-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.emi-chart-emi-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.emi-chart-emi-value {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--primary);
}

.emi-breakdown {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.emi-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
}

.emi-row:last-child {
  border-bottom: none;
}

.emi-row-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-secondary);
}

.emi-row-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.emi-row-value {
  font-weight: 600;
  color: var(--text-primary);
}

.emi-row-highlight {
  font-size: var(--text-base);
  padding: var(--space-4) 0;
}

.emi-row-highlight .emi-row-value {
  font-size: var(--text-xl);
  color: var(--primary);
  font-weight: 700;
}

/* ══════════════════════════════════════════════════════════════
   ABOUT PAGE
   ══════════════════════════════════════════════════════════════ */
.about-hero {
  padding: calc(var(--nav-height-mobile) + var(--space-12)) 0 var(--space-12);
  background: linear-gradient(145deg, var(--primary-dark), var(--primary));
  color: var(--text-inverse);
}

@media (min-width: 768px) {
  .about-hero {
    padding: calc(var(--nav-height) + var(--space-16)) 0 var(--space-16);
  }
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 576px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value-card {
  text-align: center;
  padding: var(--space-8);
}

.value-icon {
  width: 64px;
  height: 64px;
  background: rgba(var(--primary-rgb), 0.06);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin: 0 auto var(--space-4);
}

.value-icon svg {
  width: 32px;
  height: 32px;
}

/* ══════════════════════════════════════════════════════════════
   CONTACT PAGE
   ══════════════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--surface);
  border-radius: var(--radius-lg);
  transition: background var(--duration-fast);
}

.contact-info-card:hover {
  background: var(--surface-alt);
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  background: rgba(var(--primary-rgb), 0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 22px;
  height: 22px;
}

.contact-info-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}

.contact-info-value {
  font-weight: 500;
  color: var(--text-primary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.contact-info-value a {
  color: var(--primary);
  text-decoration: none;
}

.contact-info-value a:hover {
  text-decoration: underline;
}

/* ══════════════════════════════════════════════════════════════
   PAGE HEADERS (inner pages)
   ══════════════════════════════════════════════════════════════ */
.page-header {
  padding: var(--space-4) 0 var(--space-6) 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  min-height: 140px;
}

@media (min-width: 768px) {
  .page-header {
    padding: var(--space-6) 0 var(--space-8) 0;
    min-height: 180px;
  }
}

@media (min-width: 1024px) {
  .page-header {
    min-height: 240px;
  }
}

.page-header.section-dark {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-bottom: none;
}

.page-header.section-dark .breadcrumb-link {
  color: rgba(255, 255, 255, 0.7);
}

.page-header.section-dark .breadcrumb-link:hover {
  color: white;
}

.page-header.section-dark .breadcrumb-sep {
  color: rgba(255, 255, 255, 0.4);
}

.page-header.section-dark .breadcrumb-current {
  color: white;
}

.page-header-title {
  margin-bottom: var(--space-2);
}

.page-header-subtitle {
  font-size: var(--text-base);
  color: var(--text-secondary);
  max-width: 600px;
}

.page-header.section-dark .page-header-subtitle {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* ══════════════════════════════════════════════════════════════
   DISCLAIMER / COMPLIANCE
   ══════════════════════════════════════════════════════════════ */
.disclaimer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}

.disclaimer-title {
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
}

/* ══════════════════════════════════════════════════════════════
   PROCESS SECTION (horizontal on desktop)
   ══════════════════════════════════════════════════════════════ */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  position: relative;
}

@media (min-width: 768px) {
  .process-steps {
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-4);
  }
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step-number {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--text-inverse);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-lg);
  margin: 0 auto var(--space-4);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
  position: relative;
  z-index: 1;
}


.process-step-title {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.process-step-text {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════════════
   LEGAL PAGES (Privacy Policy, Terms)
   ══════════════════════════════════════════════════════════════ */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}

.legal-content h3 {
  font-size: var(--text-xl);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.legal-content p {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
}

.legal-content ul,
.legal-content ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.legal-content li {
  list-style: disc;
  margin-bottom: var(--space-2);
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.legal-content ol li {
  list-style: decimal;
}

.legal-updated {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}

