/* 
 * DMM Interactive Tools & Landing Pages CSS
 * Standardized styles for multi-step forms, audit tools, and reports.
 */

body.landing-page {
  background-color: #f4f7fb;
}

/* 1. Navbar Overrides (Scrolling Light Header for Landing Pages) */
body.landing-page #navbar {
  background-color: #fff !important;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05) !important;
  padding-top: 5px !important;
  padding-bottom: 5px !important;
  z-index: 1030 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
body.landing-page #navbar .nav-link {
  color: #333 !important;
  font-weight: 500;
}
body.landing-page #navbar .logo-light {
  display: none !important;
}
body.landing-page #navbar .logo-dark {
  display: inline-block !important;
}

.nav-toggler-icon {
  color: rgb(80, 80, 80);
  transition: color 0.25s ease;
}

/* 2. Split Layout Typography & Elements */
.landing-section {
  padding-top: 120px;
  padding-bottom: 60px;
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
}

/* Background Utilities for Landing Pages */
.bg-shape-curves {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23f3e8ff' fill-opacity='1' d='M0,0L48,21.3C96,43,192,85,288,112C384,139,480,149,576,138.7C672,128,768,96,864,101.3C960,107,1056,149,1152,149.3C1248,149,1344,107,1392,85.3L1440,64L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top center;
}

.bg-shape-modern {
  background-image:
    radial-gradient(
      circle at 10% 20%,
      rgba(168, 85, 247, 0.15) 0%,
      rgba(255, 255, 255, 0) 40%
    ),
    radial-gradient(
      circle at 90% 70%,
      rgba(59, 130, 246, 0.15) 0%,
      rgba(255, 255, 255, 0) 40%
    ),
    radial-gradient(
      circle at 50% 90%,
      rgba(236, 72, 153, 0.1) 0%,
      rgba(255, 255, 255, 0) 30%
    );
}

.bg-animated-gradient {
  background: linear-gradient(-45deg, #f3e8ff, #e0e7ff, #f3e8ff, #e0e7ff);
  background-size: 400% 400%;
  animation: bgGradientAnim 12s ease infinite;
}

@keyframes bgGradientAnim {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Animated Free Badge */
.badge-animated-free {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  color: #ffffff;
  padding: 4px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  vertical-align: middle;
  position: relative;
  top: -4px;
  margin-left: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
  z-index: 1;
}

.badge-animated-free::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: shineEffect 3s infinite;
  z-index: -1;
}

@keyframes shineEffect {
  0% {
    left: -100%;
  }
  20% {
    left: 200%;
  }
  100% {
    left: 200%;
  }
}
@media (max-width: 991.98px) {
  .landing-section {
    padding-top: 120px;
  }
}

.hero-heading {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
  font-size: 2.5rem;
  margin-bottom: 15px;
}
@media (max-width: 768px) {
  .hero-heading {
    font-size: 1.8rem;
  }
}

.hero-text {
  font-size: 1.1rem;
  color: #4a4a4a;
  line-height: 1.6;
  margin-bottom: 15px;
}
@media (max-width: 768px) {
  .hero-text {
    font-size: 1rem;
  }
}

.feature-title {
  font-weight: 700;
  color: #1a1a1a;
  font-size: 1.2rem;
  margin-bottom: 20px;
}
.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .feature-list {
    grid-template-columns: 1fr;
  }
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: default;
  border: 1px solid transparent;
  background: #fff;
}
.feature-item:hover {
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
  border-color: #cacaca;
}
.feature-icon {
  width: 45px;
  height: 45px;
  background: #eef2f9;
  color: #3b82f6;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.feature-item:hover .feature-icon {
  background: #3b82f6;
  color: #fff;
  transform: scale(1.05);
}
.feature-content {
  flex: 1;
}
.feature-heading {
  font-size: 1rem;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0 0 4px 0;
}
.feature-desc {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

.stats-box {
  background: rgb(225, 225, 225, 0.5);
  border: 1px solid #cacaca;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  flex-wrap: wrap;
  gap: 15px;
}
.stat-item {
  text-align: center;
  flex: 1;
  min-width: 100px;
}
.stat-item:not(:last-child) {
  border-right: 1px solid #e2e8f0;
}
@media (max-width: 575px) {
  .stat-item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
  }
}
.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-purple);
  line-height: 1.2;
  letter-spacing: -1.5px;
}
.stat-label {
  font-size: 0.85rem;
  color: #64748b;
}

/* 3. Interactive Tool Cards (Forms) */
.audit-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  padding: 15px;
  position: relative;
  z-index: 10;
  min-height: 450px;
  display: flex;
  flex-direction: column;
  font-family: "Poppins", sans-serif;
}
@media (max-width: 991.98px) {
  .audit-card {
    margin-top: 10px;
  }
}

.custom-form-label {
  font-size: 1.2rem;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 10px;
  display: block;
}

.audit-step {
  display: none;
}
.audit-step.active {
  display: block;
  animation: fadeIn 0.4s ease-in-out;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #3b82f6;
  margin-bottom: 10px;
  display: block;
}
.question-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}
@media (max-width: 768px) {
  .question-text {
    font-size: 1.2rem;
  }
}

/* Refined Option Cards */
.options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.options-grid.two-col {
  grid-template-columns: 1fr 1fr;
}
.option-card {
  position: relative;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  background: #fff;
  font-weight: 400;
  font-size: 0.95rem;
}
.option-card:hover {
  border-color: #3b82f6;
  background: #f8fafc;
}
.option-card.selected {
  border-color: #3b82f6;
  background: #eff6ff;
  box-shadow: 0 0 0 1px #3b82f6;
}
.option-card input[type="radio"],
.option-card input[type="checkbox"] {
  display: none;
}
.option-icon {
  font-size: 1.2rem;
  color: #3b82f6;
  margin-right: 12px;
  background: #eef2f9;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.option-emoji {
  font-size: 1.5rem;
  margin-right: 12px;
  line-height: 1;
  flex-shrink: 0;
}
.option-card:hover .option-icon {
  background: #fff;
}
.option-card.selected .option-icon {
  background: #3b82f6;
  color: #fff;
}

.option-emoji i {
  color: #8d5cf5;
}
/* Form Controls & Buttons */
.form-control-custom {
  background-color: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 1rem;
  transition: all 0.2s ease;
}
.form-control-custom:focus {
  background-color: #fff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
}

.nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
  gap: 15px;
}
.btn-custom {
  padding: 14px 30px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-primary-custom {
  background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
  border: none;
  color: #fff;
  box-shadow: 0 4px 15px rgba(126, 34, 206, 0.3);
  flex: 1;
}
.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(126, 34, 206, 0.4);
  color: #fff;
}
.btn-back-custom {
  color: #64748b;
  font-weight: 600;
  padding: 14px 20px;
  border-radius: 8px;
  background: #f1f5f9;
  border: none;
  transition: all 0.3s ease;
}
.btn-back-custom:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Creative Banner */
.creative-banner {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  border: none;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 25px rgba(168, 85, 247, 0.25);
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

/* Glassmorphism overlay for extra depth */
.creative-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at top right,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0) 60%
  );
  pointer-events: none;
}

.badge-creative {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 30px;
  margin-bottom: 12px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.banner-content {
  position: relative;
  z-index: 2;
  flex: 1;
}

.banner-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 5px 0;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.banner-desc {
  font-size: 0.9rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

.banner-visual {
  position: relative;
  z-index: 1;
  font-size: 4.5rem;
  line-height: 1;
  margin-left: 15px;
  transform: rotate(15deg);
  animation: float-creative 6s ease-in-out infinite;
}

@keyframes float-creative {
  0% {
    transform: translateY(0px) rotate(15deg);
  }
  50% {
    transform: translateY(-8px) rotate(10deg);
  }
  100% {
    transform: translateY(0px) rotate(15deg);
  }
}

/* Stepper UI (For future tools like CarDekho) */
.tool-stepper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}
.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.9rem;
  z-index: 2;
}
.step-circle.active {
  border-color: #10b981;
  color: #10b981;
  background: #ecfdf5;
}
.step-line {
  height: 2px;
  width: 40px;
  background: #e2e8f0;
  margin: 0 -5px;
  z-index: 1;
}
.step-line.active {
  background: #10b981;
}

/* 4. Report & Dashboard Styles */
.report-tabs {
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 20px;
  display: flex;
  gap: 30px;
}
.report-tab {
  padding: 15px 0;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.report-tab.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.dashboard-container {
  max-width: 1000px;
  margin: 0 auto;
  padding-bottom: 60px;
}
.welcome-text {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 20px;
}
.btn-upgrade {
  background: #fff;
  border: 1px solid #d8b4e2;
  color: #9333ea;
  font-weight: 600;
  border-radius: 6px;
  padding: 8px 20px;
}

.main-score-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 40px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  margin-bottom: 30px;
}

/* Gauge Chart Mockup */
.gauge-container {
  text-align: center;
  position: relative;
}
.gauge-attention {
  background: #fee2e2;
  color: #ef4444;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 20px;
}
.gauge-circle {
  width: 180px;
  height: 90px;
  border-top-left-radius: 90px;
  border-top-right-radius: 90px;
  border: 15px solid #f1f5f9;
  border-bottom: 0;
  margin: 0 auto;
  position: relative;
}
.gauge-progress {
  position: absolute;
  top: -15px;
  left: -15px;
  width: 180px;
  height: 90px;
  border-top-left-radius: 90px;
  border-top-right-radius: 90px;
  border: 15px solid #fbbf24;
  border-bottom: 0;
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}
.gauge-score {
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  text-align: center;
}
.gauge-score h2 {
  font-weight: 800;
  color: #0f172a;
  font-size: 2.5rem;
  margin: 0;
  line-height: 1;
}
.gauge-score span {
  color: #d97706;
  font-weight: 600;
  font-size: 1rem;
}
.gauge-labels {
  display: flex;
  justify-content: space-between;
  width: 200px;
  margin: 10px auto 0;
  font-weight: 700;
  color: #ef4444;
  font-size: 0.85rem;
}
.gauge-labels .right {
  color: #10b981;
}

.report-text h3 {
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 15px;
  font-size: 1.5rem;
}
.report-text p {
  color: #4b5563;
  font-size: 1.1rem;
  line-height: 1.6;
}

.action-bar {
  display: flex;
  align-items: center;
  margin-top: 40px;
  gap: 20px;
}
.btn-download {
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  padding: 10px 25px;
  border-radius: 6px;
  border: none;
}
.action-link {
  color: #475569;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.action-link:hover {
  color: #2563eb;
}

.warning-banner {
  background: #faf5ff;
  border: 1px solid #f3e8ff;
  border-radius: 12px;
  padding: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.warning-banner h4 {
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 5px 0;
}
.warning-banner h4 span {
  color: #dc2626;
}
.warning-banner p {
  margin: 0;
  color: #64748b;
}
.btn-resolve {
  background: #7e22ce;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
}

/* Parallax CTA Background */
.parallax-cta-section {
  background-image:
    linear-gradient(rgba(14, 10, 35, 0.85), rgba(14, 10, 35, 0.85)),
    url("../../images/dmm-digital-marketing-lko.webp");
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 400px;
  display: flex;
  align-items: center;
}
