/* ==========================================================================
   EcoPestShield.in - 3D / 5D Holographic Cost Calculator Stylesheet
   Cutting-edge 3D Perspective, Glassmorphism, Tilt Cards & Holographic HUD
   ========================================================================== */

/* 1. Futuristic 3D Stage & Background */
.calculator-3d-page {
  background: 
    radial-gradient(ellipse at 80% 15%, rgba(16, 185, 129, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse at 15% 45%, rgba(2, 132, 199, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 65% 85%, rgba(5, 150, 105, 0.10) 0%, transparent 50%),
    linear-gradient(180deg, #f0fdf4 0%, #f8fafc 40%, #ffffff 100%);
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

/* 3D Isometric Animated Grid Matrix */
.calc-3d-grid-matrix {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(5, 150, 105, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(5, 150, 105, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.15) 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.15) 85%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* 2. Hero 3D Showcase Header */
.calc-hero-3d {
  position: relative;
  z-index: 1;
  padding: 55px 0 35px 0;
}

.calc-hero-3d-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
}

.calc-hero-badge-5d {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 54, 28, 0.08);
  border: 1px solid rgba(6, 54, 28, 0.2);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 800;
  color: #064e3b;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(5, 150, 105, 0.1);
}

.calc-hero-badge-5d .hologram-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 12px #10b981, 0 0 24px #10b981;
  animation: pulseDot 2s infinite;
}

.calc-hero-3d h1 {
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--dark-900);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.calc-hero-3d p {
  font-size: 1.1rem;
  color: var(--dark-700);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 580px;
}

.calc-hero-visual-3d {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calc-3d-dome-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  perspective: 1000px;
}

.calc-3d-dome-img {
  width: 100%;
  height: auto;
  border-radius: 28px;
  filter: drop-shadow(0 20px 35px rgba(5, 150, 105, 0.22));
  animation: floatDome 5s ease-in-out infinite;
  transform-style: preserve-3d;
}

@keyframes floatDome {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(1.2deg);
  }
}

.calc-float-pill {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-full);
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--dark-900);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
  animation: floatPill 4s ease-in-out infinite;
}

.calc-float-pill.pill-top {
  top: -12px;
  right: -8px;
}

.calc-float-pill.pill-bottom {
  bottom: -10px;
  left: -8px;
  animation-delay: -2s;
}

@keyframes floatPill {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

/* 3. 5D Interactive Calculator Container */
.calc-stage-section {
  position: relative;
  z-index: 1;
  padding: 20px 0 90px 0;
}

.calc-container-5d {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid rgba(16, 185, 129, 0.28);
  border-radius: 32px;
  padding: 38px;
  box-shadow: 
    0 30px 70px -15px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset,
    0 0 50px rgba(16, 185, 129, 0.08);
}

.calc-layout-5d {
  display: grid;
  grid-template-columns: 1.32fr 0.68fr;
  gap: 36px;
  align-items: start;
}

/* 4. Left Side: Multi-Step 3D Controls */
.calc-steps-column-5d {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.calc-card-step-5d {
  background: #ffffff;
  border: 1.5px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.calc-card-step-5d:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 10px 28px rgba(5, 150, 105, 0.08);
}

.step-header-5d {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.step-label-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-num-bubble {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, #059669 0%, #064e3b 100%);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.step-title-group h3 {
  font-size: 1.15rem;
  font-weight: 850;
  color: var(--dark-900);
  margin-bottom: 2px;
}

.step-title-group p {
  font-size: 0.8rem;
  color: var(--muted-text);
  font-weight: 500;
}

.step-tag-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.2);
}

/* 3D Interactive Tiles Grid */
.grid-tiles-3d {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 14px;
}

.tile-3d {
  position: relative;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 18px 10px 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
  user-select: none;
}

.tile-3d:hover {
  transform: translateY(-5px);
  border-color: #10b981;
  box-shadow: 0 12px 26px rgba(5, 150, 105, 0.14);
}

.tile-3d.active {
  border: 2px solid #059669;
  background: linear-gradient(155deg, #ecfdf5 0%, #ffffff 100%);
  box-shadow: 
    0 12px 28px rgba(5, 150, 105, 0.2),
    inset 0 0 0 1px #10b981;
  transform: translateY(-3px);
}

/* 3D Check Badge */
.tile-check-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #059669;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(5, 150, 105, 0.45);
  z-index: 5;
}

.tile-3d.active .tile-check-badge {
  display: flex;
  animation: popCheck 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 3D Glass Icon Bubble */
.tile-icon-bubble-3d {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px auto;
  border-radius: 16px;
  background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
  border: 1px solid rgba(16, 185, 129, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.08);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tile-3d:hover .tile-icon-bubble-3d {
  transform: scale(1.18) rotate(4deg);
}

.tile-3d.active .tile-icon-bubble-3d {
  background: linear-gradient(135deg, #d1fae5 0%, #bae6fd 100%);
  border-color: #059669;
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.22);
}

.tile-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--dark-900);
  margin-bottom: 2px;
}

.tile-desc {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted-text);
  line-height: 1.3;
}

.tile-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  font-size: 0.62rem;
  font-weight: 850;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.tile-badge.badge-gold {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.tile-badge.badge-emerald {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.tile-badge.badge-blue {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.tile-badge.badge-red {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* 3D Precision Square-Footage Slider */
.calc-slider-box-5d {
  margin-top: 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px 20px;
}

.slider-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.slider-label {
  font-size: 0.88rem;
  font-weight: 750;
  color: var(--dark-800);
}

.slider-val-badge {
  background: #064e3b;
  color: #ffffff;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(6, 78, 59, 0.25);
}

.calc-range-slider {
  width: 100%;
  height: 8px;
  border-radius: 6px;
  background: #cbd5e1;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.calc-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #059669;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 10px rgba(5, 150, 105, 0.4);
  cursor: pointer;
  transition: transform 0.2s;
}

.calc-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* 5. Right Side: Holographic 5D Live Quote HUD */
.calc-hud-column-5d {
  position: sticky;
  top: 96px;
}

.calc-receipt-card-5d {
  background: #ffffff;
  border: 2px solid rgba(16, 185, 129, 0.35);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 
    0 25px 60px -10px rgba(6, 54, 28, 0.16),
    0 0 0 1px #ffffff inset;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Hologram Scanning Light Sweep */
.calc-receipt-card-5d::after {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: linear-gradient(
    45deg,
    transparent 45%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 55%
  );
  animation: hologramSweep 6s infinite;
  pointer-events: none;
}

@keyframes hologramSweep {
  0% { transform: translate(-30%, -30%); }
  35%, 100% { transform: translate(30%, 30%); }
}

.hud-top-header {
  border-bottom: 1px dashed #cbd5e1;
  padding-bottom: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hud-title-wrap h3 {
  font-size: 1.28rem;
  font-weight: 850;
  color: var(--dark-900);
}

.hud-title-wrap span {
  font-size: 0.78rem;
  color: var(--muted-text);
}

.hud-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 800;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* HUD Itemized Breakdown */
.hud-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--dark-700);
}

.hud-item-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.hud-item-row strong {
  color: var(--dark-900);
  font-weight: 800;
}

.hud-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 12px 0;
}

/* Pricing Display Card */
.hud-price-callout {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.3);
  border-radius: 18px;
  padding: 16px;
  text-align: center;
  margin-bottom: 18px;
  position: relative;
}

.hud-rate-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hud-final-quote {
  font-size: 1.6rem;
  font-weight: 900;
  color: #064e3b;
  margin: 4px 0 6px 0;
  line-height: 1.2;
}

.hud-discount-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #dc2626;
  color: #ffffff;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
}

/* CTAs inside 5D HUD */
.hud-action-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.btn-hud-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #25d366 0%, #16a34a 100%);
  color: #ffffff;
  padding: 13px 18px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
  transition: all 0.25s ease;
}

.btn-hud-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45);
}

.btn-hud-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  padding: 13px 18px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.3);
  transition: all 0.25s ease;
}

.btn-hud-call:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.4);
}

.btn-hud-survey {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: var(--dark-800);
  border: 1.5px solid #cbd5e1;
  padding: 11px 18px;
  border-radius: var(--radius-full);
  font-weight: 750;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-hud-survey:hover {
  background: #f8fafc;
  border-color: #059669;
  color: #059669;
}

/* 3D Bio-Shield Assurance Box Inside HUD */
.hud-3d-assurance-box {
  background: linear-gradient(145deg, #f0fdf4 0%, #ffffff 100%);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hud-3d-graphic-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(16, 185, 129, 0.25);
}

.hud-3d-shield-img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 6px 14px rgba(5, 150, 105, 0.28));
  animation: floatDome 4s ease-in-out infinite;
  flex-shrink: 0;
}

.hud-assurance-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hud-point-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
}

.hud-point-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #059669;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 2px;
}

.hud-point-item strong {
  display: block;
  font-weight: 800;
  color: var(--dark-900);
}

.hud-point-item span {
  display: block;
  color: var(--muted-text);
  font-size: 0.72rem;
}

/* 6. Comparison Section & Features */
.calc-features-row-5d {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 55px;
}

.calc-feature-card-5d {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.3s ease;
}

.calc-feature-card-5d:hover {
  transform: translateY(-4px);
  border-color: #10b981;
  box-shadow: 0 12px 28px rgba(5, 150, 105, 0.1);
}

.calc-f-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #dcfce7 0%, #e0f2fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.calc-f-text h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--dark-900);
  margin-bottom: 4px;
}

.calc-f-text p {
  font-size: 0.82rem;
  color: var(--muted-text);
  line-height: 1.45;
}

/* Responsive Rules for 5D Calculator */
@media (max-width: 1024px) {
  .calc-hero-3d-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .calc-hero-3d p {
    margin: 0 auto 24px auto;
  }
  .calc-layout-5d {
    grid-template-columns: 1fr;
  }
  .calc-hud-column-5d {
    position: static;
  }
}

@media (max-width: 768px) {
  .calc-hero-3d {
    padding: 30px 0;
    overflow-x: clip;
  }
  .calc-hero-badge-5d {
    white-space: normal;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 0.76rem;
    line-height: 1.35;
  }
  .calc-hero-visual-3d {
    max-width: 100%;
    overflow: hidden;
  }
  .calc-3d-dome-frame {
    max-width: 100%;
    width: 100%;
    perspective: none;
  }
  .calc-float-pill.pill-top {
    top: 6px;
    right: 6px;
    font-size: 0.72rem;
    padding: 5px 10px;
  }
  .calc-float-pill.pill-bottom {
    bottom: 6px;
    left: 6px;
    font-size: 0.72rem;
    padding: 5px 10px;
  }
  .calc-container-5d {
    padding: 18px 12px;
    border-radius: 18px;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: clip;
  }
  .calc-tier-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .calc-step-header-5d {
    flex-wrap: wrap;
    gap: 8px;
  }
  .calc-hud-card {
    padding: 18px 14px;
    box-sizing: border-box;
    max-width: 100%;
  }
  .calc-receipt-card-5d {
    padding: 18px 14px;
    box-sizing: border-box;
    max-width: 100%;
  }
  .calc-receipt-card-5d::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .calc-container-5d {
    padding: 14px 10px;
  }
  .grid-tiles-3d {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .tile-card-3d {
    padding: 10px 6px;
  }
  .tile-icon {
    font-size: 1.6rem;
  }
  .tile-name {
    font-size: 0.82rem;
  }
}
