/* ARUDRAH INTERIORS - ESTIMATED QUOTATION CALCULATOR (ECC) LUXURY STYLES */

:root {
  --color-arudrah-red: #D62828;
  --color-arudrah-red-accent: #FF5252;
  --color-arudrah-red-glow: rgba(214, 40, 40, 0.25);
  --color-arudrah-dark: #111111;
  --color-arudrah-bg: #FAFAFA;
  --color-glass-bg: rgba(255, 255, 255, 0.9);
  --color-glass-border: rgba(214, 40, 40, 0.15);
  --radius-ECC: 18px;
  --radius-pill: 9999px;
  --shadow-ECC: 0 20px 40px -15px rgba(0, 0, 0, 0.07), 0 0 20px rgba(214, 40, 40, 0.05);
  --shadow-ECC-hover: 0 30px 60px -12px rgba(214, 40, 40, 0.18);
}

/* ECC Page Hero Header */
.ECC-hero {
  position: relative;
  padding: calc(var(--header-height, 80px) + 3.5rem) 0 4.5rem 0;
  background: linear-gradient(135deg, #111111 0%, #1a1a1e 50%, #29080b 100%);
  color: #FFFFFF;
  overflow: hidden;
  border-bottom: 1px solid rgba(214, 40, 40, 0.2);
}

.ECC-hero-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 50% 30%, rgba(214, 40, 40, 0.25) 0%, transparent 60%),
    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: 100% 100%, 40px 40px, 40px 40px;
  pointer-events: none;
  z-index: 1;
}

.ECC-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.5;
  will-change: transform;
  animation: floatOrb 12s infinite alternate ease-in-out;
}
.ECC-hero-orb-1 {
  top: -10%;
  right: 10%;
  width: 350px;
  height: 350px;
  background: #D62828;
}
.ECC-hero-orb-2 {
  bottom: -20%;
  left: 5%;
  width: 300px;
  height: 300px;
  background: #FF5252;
}

@keyframes floatOrb {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-30px) scale(1.1); }
}

.ECC-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.ECC-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(214, 40, 40, 0.18);
  border: 1px solid rgba(214, 40, 40, 0.4);
  border-radius: var(--radius-pill);
  color: #FF5252;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.ECC-hero h1 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  background: linear-gradient(180deg, #FFFFFF 0%, #E2E2E5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ECC-hero p.lead {
  font-size: 1.15rem;
  color: #B5B5BE;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Glassmorphism Main Configurator Container */
.ECC-configurator-card {
  background: var(--color-glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-ECC);
  box-shadow: var(--shadow-ECC);
  padding: 2rem;
  margin-top: -3rem;
  position: relative;
  z-index: 10;
  transition: all 0.3s ease;
}

/* Wizard Step Progress Bar */
.ECC-steps-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  position: relative;
  padding: 0 1rem;
}

.ECC-steps-bar::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 2.5rem;
  right: 2.5rem;
  height: 3px;
  background: #E5E5EA;
  z-index: 1;
}

.ECC-step-progress-line {
  position: absolute;
  top: 20px;
  left: 2.5rem;
  height: 3px;
  background: linear-gradient(90deg, #D62828, #FF5252);
  z-index: 1;
  transition: width 0.4s ease;
  width: 0%;
}

.ECC-step-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.ECC-step-item.locked {
  opacity: 0.45;
  cursor: not-allowed;
}

.ECC-step-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid #D1D1D6;
  color: #8E8E93;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.ECC-step-item.active .ECC-step-num {
  border-color: #D62828;
  background: #D62828;
  color: #FFFFFF;
  box-shadow: 0 0 18px var(--color-arudrah-red-glow);
  transform: scale(1.1);
}

.ECC-step-item.completed .ECC-step-num {
  border-color: #D62828;
  background: #FFFFFF;
  color: #D62828;
}

.ECC-step-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #8E8E93;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.3s ease;
}

.ECC-step-item.active .ECC-step-title {
  color: #111111;
}

.ECC-wizard-pane {
  display: none;
}
.ECC-wizard-pane.active {
  display: block;
  animation: fadeInPane 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.ECC-pane-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 1rem;
}

.ECC-pane-header h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #111111;
  margin-bottom: 0.25rem;
}

.ECC-pane-header p {
  color: #6E6E73;
  font-size: 0.95rem;
}

/* Card Selectors & Option Grids */
.ECC-option-grid {
  display: grid;
  gap: 1.25rem;
}

.ECC-grid-2 { grid-template-columns: repeat(2, 1fr); }
.ECC-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ECC-grid-4 { grid-template-columns: repeat(4, 1fr); }
.ECC-grid-5 { grid-template-columns: repeat(5, 1fr); }
.ECC-grid-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 992px) {
  .ECC-grid-3, .ECC-grid-4, .ECC-grid-5, .ECC-grid-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ECC-grid-2, .ECC-grid-3, .ECC-grid-4, .ECC-grid-5, .ECC-grid-6 { grid-template-columns: 1fr; }
}

/* Selectable Luxury Card */
.ECC-card-option {
  background: #FFFFFF;
  border: 2px solid #E5E5EA;
  border-radius: var(--radius-ECC);
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  position: relative;
  overflow: hidden;
  user-select: none;
}

.ECC-card-option:hover {
  border-color: rgba(214, 40, 40, 0.5);
  transform: translateY(-3px);
  box-shadow: 
    0 15px 30px -10px rgba(214, 40, 40, 0.1),
    0 0 20px -5px rgba(0, 194, 111, 0.06);
}

.ECC-card-option.selected {
  border-color: #D62828;
  background: rgba(214, 40, 40, 0.02);
  transform: scale(1.02);
  box-shadow: 
    0 10px 30px rgba(214, 40, 40, 0.12),
    var(--shadow-ECC);
}

.ECC-card-option.selected::after {
  content: '✓';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  background: #D62828;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
}

.ECC-card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  color: #D62828;
}

.ECC-card-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: #111111;
  margin-bottom: 0.35rem;
}

.ECC-card-desc {
  font-size: 0.85rem;
  color: #6E6E73;
  line-height: 1.4;
}

.ECC-badge-pill {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  background: #F2F2F7;
  color: #48484A;
  margin-top: 0.5rem;
}

.ECC-badge-pill.highlight {
  background: rgba(214, 40, 40, 0.12);
  color: #D62828;
}

/* Custom Styled Range Sliders */
.ECC-slider-box {
  background: #FFFFFF;
  border: 1px solid #E5E5EA;
  border-radius: var(--radius-ECC);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.ECC-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.ECC-slider-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #111111;
}

.ECC-slider-val {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: #D62828;
  background: rgba(214, 40, 40, 0.08);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
}

.ECC-custom-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #E5E5EA;
  outline: none;
}

.ECC-custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #D62828;
  cursor: pointer;
  box-shadow: 0 0 12px var(--color-arudrah-red-glow);
  transition: transform 0.2s ease;
}

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

/* Right Side Sticky Summary Card */
.ECC-summary-sticky {
  position: sticky;
  top: calc(var(--header-height, 80px) + 1.5rem);
  background: #111111;
  color: #FFFFFF;
  border-radius: var(--radius-ECC);
  padding: 2rem;
  box-shadow: var(--shadow-ECC-hover);
  border: 1px solid rgba(214, 40, 40, 0.3);
}

.ECC-summary-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8E8E93;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.ECC-grand-total {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.ECC-grand-total span.currency {
  color: #D62828;
  font-size: 2rem;
}

.ECC-package-name {
  color: #FF5252;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.ECC-breakdown-list {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
  margin-bottom: 1.5rem;
}

.ECC-breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  color: #D1D1D6;
}

.ECC-breakdown-row:last-child {
  margin-bottom: 0;
}

.ECC-breakdown-row strong {
  color: #FFFFFF;
  font-weight: 700;
}

/* Donut Chart Wrapper */
.ECC-chart-wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 14px;
  margin-bottom: 1.5rem;
}

.ECC-donut-svg {
  width: 90px;
  height: 90px;
  transform: rotate(-90deg);
}

.ECC-donut-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 10;
}

.ECC-donut-segment {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dasharray 0.6s ease;
}

/* Budget Meter Gauge */
.ECC-budget-meter {
  margin-bottom: 1.5rem;
}

.ECC-meter-track {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #34C759 0%, #FF9500 50%, #D62828 100%);
  position: relative;
  margin-top: 0.5rem;
}

.ECC-meter-pointer {
  position: absolute;
  top: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid #111111;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  transform: translateX(-50%);
  transition: left 0.4s ease;
}

/* Milestone Animated Horizontal Timeline */
.ECC-timeline-section {
  background: #FFFFFF;
  border-radius: var(--radius-ECC);
  padding: 2rem;
  margin-top: 2.5rem;
  box-shadow: var(--shadow-ECC);
  border: 1px solid #E5E5EA;
}

.ECC-timeline-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  position: relative;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .ECC-timeline-steps { grid-template-columns: 1fr; }
}

.ECC-timeline-box {
  background: #FAFAFA;
  border: 1px solid #E5E5EA;
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.ECC-timeline-box:hover {
  border-color: #D62828;
  background: rgba(214, 40, 40, 0.03);
}

.ECC-timeline-day {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: #D62828;
  margin-bottom: 0.25rem;
}

.ECC-timeline-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #111111;
}

/* AI Recommendations Section */
.ECC-ai-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
@media (max-width: 992px) {
  .ECC-ai-chips { grid-template-columns: 1fr; }
}

.ECC-ai-chip {
  background: linear-gradient(135deg, rgba(214, 40, 40, 0.04) 0%, rgba(255, 255, 255, 0.9) 100%);
  border: 1px solid rgba(214, 40, 40, 0.2);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.ECC-ai-chip-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(214, 40, 40, 0.12);
  color: #D62828;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

/* Mobile Sticky Bottom Drawer */
.ECC-mobile-drawer {
  display: none;
}

@media (max-width: 992px) {
  .ECC-mobile-drawer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #111111;
    color: #FFFFFF;
    padding: 1rem 1.25rem;
    z-index: 999;
    border-top: 1px solid rgba(214, 40, 40, 0.4);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
  }
}

/* Buttons */
.btn-ECC-primary {
  background: #D62828;
  color: #FFFFFF;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px var(--color-arudrah-red-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-ECC-primary:hover {
  background: #B81D1D;
  transform: translateY(-2px);
  box-shadow: 0 12px 25px var(--color-arudrah-red-glow);
}

.btn-ECC-outline {
  background: transparent;
  color: #111111;
  border: 2px solid #111111;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-ECC-outline:hover {
  background: #111111;
  color: #FFFFFF;
}

/* ECC Responsive Grid Layout Columns */
.ECC-calculator-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 992px) {
  .ECC-calculator-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ==============================================================
   ECC MOBILE RESPONSIVE STYLES (ARUDRAH INTERIORS)
   ============================================================== */

@media (max-width: 992px) {
  body {
    padding-bottom: 80px; /* Leave space for the fixed bottom bar */
  }

  .ECC-summary-sticky {
    position: static;
    margin-top: 1.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-ECC);
  }

  .ECC-hero {
    padding: calc(var(--header-height, 68px) + 2rem) 0 3rem 0;
  }

  .ECC-hero h1 {
    font-size: 2.25rem;
  }

  .ECC-hero p.lead {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 768px) {
  .ECC-configurator-card {
    padding: 1.25rem;
    margin-top: -1.5rem;
    border-radius: 12px;
  }

  /* Step bar on mobile - hide titles to save space, center numbers */
  .ECC-step-title {
    display: none !important;
  }

  .ECC-steps-bar {
    padding: 0 0.5rem;
    margin-bottom: 1.75rem;
  }

  .ECC-steps-bar::before {
    top: 18px;
    left: 1.5rem;
    right: 1.5rem;
    height: 2px;
  }

  .ECC-step-progress-line {
    top: 18px;
    left: 1.5rem;
    height: 2px;
  }

  .ECC-step-num {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  /* Form header adjustments */
  .ECC-pane-header {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
  }

  .ECC-pane-header h3 {
    font-size: 1.25rem;
  }

  .ECC-pane-header p {
    font-size: 0.88rem;
  }

  /* Compact option grids */
  .ECC-option-grid {
    gap: 0.75rem;
  }

  /* Compact card styling */
  .ECC-card-option {
    padding: 1rem;
    border-radius: 12px;
  }

  .ECC-card-title {
    font-size: 0.95rem;
  }

  .ECC-card-desc {
    font-size: 0.8rem;
  }

  /* Make BHK configuration pills look elegant and fit on one line/two lines */
  .ECC-card-option[data-group="bhk"] {
    padding: 0.65rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
  }

  .ECC-card-option[data-group="bhk"] .ECC-card-title {
    margin-bottom: 0;
    font-size: 0.85rem;
  }

  /* Cost Breakdown Room Matrix List layout on mobile */
  #ECC-room-matrix .ECC-grid-3 {
    grid-template-columns: 1fr !important;
    gap: 0.6rem !important;
  }

  #ECC-room-matrix .ECC-grid-3 > div {
    padding: 0.75rem 1rem !important;
    border-radius: 10px !important;
  }

  /* Premium Vertical Timeline on Mobile */
  .ECC-timeline-section {
    padding: 1.25rem;
  }

  .ECC-timeline-steps {
    grid-template-columns: 1fr !important;
    gap: 0.6rem !important;
  }

  .ECC-timeline-box {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 0.75rem 1rem;
    border-radius: 10px;
  }

  .ECC-timeline-day {
    margin-bottom: 0;
    font-size: 0.95rem;
    min-width: 80px;
    flex-shrink: 0;
    border-right: 2px solid rgba(214, 40, 40, 0.15);
    padding-right: 0.75rem;
  }

  .ECC-timeline-label {
    font-size: 0.85rem;
    padding-left: 0.5rem;
  }

  /* AI recommenders */
  .ECC-ai-chip {
    padding: 1rem;
    gap: 0.75rem;
  }

  .ECC-ai-chip-icon {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }
}

@media (max-width: 640px) {
  /* BHK configuration: 3 columns */
  .ECC-grid-5 {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  /* Show option grids in 2 columns above 480px to save height */
  .ECC-grid-2, .ECC-grid-3, .ECC-grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  /* BHK configuration: 2 columns on tiny screens */
  .ECC-grid-5 {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Stack option grids to 1 column on very small mobile screens */
  .ECC-grid-2, .ECC-grid-3, .ECC-grid-4 {
    grid-template-columns: 1fr !important;
  }

  .btn-ECC-primary {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
  }

  .btn-ECC-outline {
    padding: 0.7rem 1.1rem;
    font-size: 0.85rem;
  }
}
