/* ==========================================================================
   INTERIOR QUOTATION & COST CALCULATOR STYLES
   Santra Interiors | Bespoke Luxury Living & Turnkey Design
   ========================================================================== */

/* --------------------------------------------------------------------------
   Variables & Tokens
   -------------------------------------------------------------------------- */
:root {
  --calc-gold: #c9a96e;
  --calc-gold-light: #dfc28d;
  --calc-gold-dark: #a88548;
  --calc-bg: #0d0d0e;
  --calc-surface: #141416;
  --calc-surface-elevated: #1a1a1d;
  --calc-border: rgba(201, 169, 110, 0.2);
  --calc-border-subtle: rgba(255, 255, 255, 0.08);
  --calc-text: #f3f4f6;
  --calc-text-muted: #9ca3af;
  --calc-radius-sm: 8px;
  --calc-radius-md: 14px;
  --calc-radius-lg: 20px;
  --calc-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6);
  --calc-glow: 0 0 25px rgba(201, 169, 110, 0.2);
}

/* --------------------------------------------------------------------------
   Calculator Layout & Hero
   -------------------------------------------------------------------------- */
.calc-page-wrapper {
  background-color: var(--calc-bg);
  color: var(--calc-text);
  min-height: 100vh;
  padding-bottom: 80px;
}

.calc-hero {
  padding: 120px 0 40px;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at 50% 20%, rgba(201, 169, 110, 0.08) 0%, transparent 60%);
}

.calc-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(201, 169, 110, 0.1);
  border: 1px solid var(--calc-border);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--calc-gold-light);
  margin-bottom: 16px;
}

.calc-title {
  font-family: var(--font-head, 'Cinzel', serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
  line-height: 1.2;
}

.calc-title em {
  font-style: italic;
  color: var(--calc-gold);
}

.calc-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--calc-text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Stepper Progress Navigation
   -------------------------------------------------------------------------- */
.calc-stepper-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--calc-surface);
  padding: 8px;
  border-radius: var(--calc-radius-md);
  border: 1px solid var(--calc-border-subtle);
  margin-bottom: 30px;
}

.calc-step-btn {
  background: transparent;
  border: none;
  padding: 12px 16px;
  border-radius: var(--calc-radius-sm);
  text-align: left;
  cursor: pointer;
  transition: all 0.25s ease;
  color: var(--calc-text-muted);
}

.calc-step-btn.active {
  background: var(--calc-gold);
  color: #0d0d0e;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(201, 169, 110, 0.3);
}

.calc-step-btn.completed {
  background: rgba(201, 169, 110, 0.12);
  color: var(--calc-gold-light);
}

.calc-step-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
}

.calc-step-desc {
  font-size: 0.75rem;
  opacity: 0.8;
  display: block;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   Main Wizard Container
   -------------------------------------------------------------------------- */
.calc-grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 992px) {
  .calc-grid-layout {
    grid-template-columns: 7fr 5fr;
  }
}

.calc-card-main {
  background: var(--calc-surface);
  border: 1px solid var(--calc-border-subtle);
  border-radius: var(--calc-radius-lg);
  padding: 28px;
  box-shadow: var(--calc-shadow);
  position: relative;
}

.calc-step-content {
  display: none;
}

.calc-step-content.active {
  display: block;
  animation: calcFadeIn 0.3s ease-out;
}

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

.calc-section-header {
  margin-bottom: 24px;
}

.calc-step-h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.calc-step-p {
  font-size: 0.85rem;
  color: var(--calc-text-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Step 1: Presets & Area Slider
   -------------------------------------------------------------------------- */
.bhk-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.bhk-btn {
  background: var(--calc-surface-elevated);
  border: 1px solid var(--calc-border-subtle);
  border-radius: var(--calc-radius-md);
  padding: 16px 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #fff;
}

.bhk-btn:hover {
  border-color: var(--calc-gold);
}

.bhk-btn.selected {
  border-color: var(--calc-gold);
  background: rgba(201, 169, 110, 0.12);
  box-shadow: 0 0 16px rgba(201, 169, 110, 0.15);
}

.bhk-btn-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.bhk-btn-size {
  font-size: 0.75rem;
  color: var(--calc-text-muted);
  margin-top: 4px;
}

.slider-container {
  background: var(--calc-surface-elevated);
  border: 1px solid var(--calc-border-subtle);
  border-radius: var(--calc-radius-md);
  padding: 20px;
}

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

.slider-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e5e7eb;
}

.slider-input-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.slider-num-input {
  width: 90px;
  background: #0d0d0e;
  border: 1px solid var(--calc-border);
  color: var(--calc-gold-light);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: var(--calc-radius-sm);
  text-align: right;
  font-family: monospace;
}

.slider-range {
  width: 100%;
  accent-color: var(--calc-gold);
  cursor: pointer;
  height: 6px;
  background: #26262a;
  border-radius: 999px;
  margin: 10px 0;
}

.slider-sub-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--calc-text-muted);
}

/* --------------------------------------------------------------------------
   Step 2: Room Scope & Options
   -------------------------------------------------------------------------- */
.scope-box {
  background: var(--calc-surface-elevated);
  border: 1px solid var(--calc-border-subtle);
  border-radius: var(--calc-radius-md);
  padding: 20px;
  margin-bottom: 16px;
}

.scope-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.scope-box-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--calc-gold-light);
}

.options-pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}

.option-pill-btn {
  background: #101012;
  border: 1px solid var(--calc-border-subtle);
  padding: 10px;
  border-radius: var(--calc-radius-sm);
  font-size: 0.8rem;
  color: var(--calc-text-muted);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.option-pill-btn.selected {
  background: rgba(201, 169, 110, 0.15);
  border-color: var(--calc-gold);
  color: var(--calc-gold);
  font-weight: 600;
}

.counter-ctrl {
  display: flex;
  align-items: center;
  gap: 12px;
}

.counter-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--calc-radius-sm);
  background: #222226;
  border: 1px solid var(--calc-border-subtle);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.counter-btn:hover {
  background: var(--calc-gold);
  color: #0d0d0e;
}

.counter-val {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--calc-gold-light);
  min-width: 50px;
  text-align: center;
  font-family: monospace;
}

.addons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.addon-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--calc-surface-elevated);
  border: 1px solid var(--calc-border-subtle);
  border-radius: var(--calc-radius-md);
  cursor: pointer;
  transition: all 0.2s;
}

.addon-card.checked {
  border-color: rgba(201, 169, 110, 0.4);
  background: rgba(201, 169, 110, 0.08);
}

.addon-card input[type="checkbox"] {
  accent-color: var(--calc-gold);
  width: 18px;
  height: 18px;
}

.addon-card-label {
  font-size: 0.8rem;
  color: #e5e7eb;
}

/* --------------------------------------------------------------------------
   Step 3: Quality Tier Cards
   -------------------------------------------------------------------------- */
.tier-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.tier-box {
  background: var(--calc-surface-elevated);
  border: 1px solid var(--calc-border-subtle);
  border-radius: var(--calc-radius-lg);
  padding: 24px;
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tier-box:hover {
  border-color: var(--calc-gold);
}

.tier-box.selected {
  border-color: var(--calc-gold);
  background: rgba(201, 169, 110, 0.08);
  box-shadow: 0 0 25px rgba(201, 169, 110, 0.15);
}

.tier-popular-tag {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--calc-gold);
  color: #0d0d0e;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.tier-box-name {
  font-family: var(--font-head, 'Cinzel', serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px;
}

.tier-box-rate {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--calc-gold-light);
  background: rgba(201, 169, 110, 0.15);
  padding: 2px 8px;
  border-radius: var(--calc-radius-sm);
  margin-bottom: 12px;
}

.tier-box-desc {
  font-size: 0.78rem;
  color: var(--calc-text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.tier-specs-list {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
  margin-bottom: 16px;
}

.tier-spec-item {
  font-size: 0.72rem;
  color: #d1d5db;
  margin-bottom: 6px;
  line-height: 1.4;
}

.tier-spec-item strong {
  color: var(--calc-text-muted);
  display: block;
}

.tier-select-btn {
  width: 100%;
  padding: 10px;
  border-radius: var(--calc-radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.tier-box.selected .tier-select-btn {
  background: var(--calc-gold);
  color: #0d0d0e;
}

.tier-box:not(.selected) .tier-select-btn {
  background: #252529;
  color: #d1d5db;
}

/* --------------------------------------------------------------------------
   Sticky Price Summary Sidebar
   -------------------------------------------------------------------------- */
.calc-sidebar-sticky {
  position: sticky;
  top: 90px;
}

.summary-card {
  background: var(--calc-surface);
  border: 1px solid var(--calc-border);
  border-radius: var(--calc-radius-lg);
  padding: 28px;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden;
}

.summary-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.summary-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--calc-gold);
  font-weight: 600;
  margin-bottom: 4px;
}

.summary-grand-total {
  font-family: var(--font-head, 'Cinzel', serif);
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--calc-gold-light);
  line-height: 1.1;
  margin-bottom: 6px;
}

.summary-lakhs {
  font-size: 0.85rem;
  color: var(--calc-text-muted);
  margin-bottom: 24px;
}

.summary-lakhs strong {
  color: #ffffff;
}

.summary-breakdown {
  border-top: 1px solid var(--calc-border-subtle);
  padding-top: 18px;
  margin-bottom: 24px;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 10px;
  color: var(--calc-text-muted);
}

.breakdown-row.highlight {
  color: #34d399;
}

.breakdown-row.timeline {
  border-top: 1px dashed var(--calc-border-subtle);
  padding-top: 10px;
  margin-top: 12px;
  color: #e5e7eb;
}

.breakdown-row span:last-child {
  font-family: monospace;
  font-size: 0.85rem;
  color: #fff;
}

.breakdown-row.highlight span:last-child {
  color: #34d399;
  font-family: inherit;
  font-weight: 600;
}

.summary-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-calc-primary {
  width: 100%;
  padding: 14px;
  background: var(--calc-gold);
  color: #0d0d0e;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--calc-radius-md);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(201, 169, 110, 0.25);
}

.btn-calc-primary:hover {
  background: var(--calc-gold-light);
  transform: translateY(-1px);
}

.btn-calc-whatsapp {
  width: 100%;
  padding: 12px;
  background: #1f2024;
  color: #e5e7eb;
  font-weight: 600;
  font-size: 0.82rem;
  border-radius: var(--calc-radius-md);
  border: 1px solid var(--calc-border-subtle);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-calc-whatsapp:hover {
  background: #2a2b30;
  color: #fff;
  border-color: rgba(201, 169, 110, 0.4);
}

/* --------------------------------------------------------------------------
   Step Navigation Buttons Inside Main Card
   -------------------------------------------------------------------------- */
.calc-nav-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--calc-border-subtle);
  padding-top: 20px;
  margin-top: 30px;
}

.btn-step-prev {
  padding: 10px 18px;
  background: #222226;
  color: #e5e7eb;
  border: none;
  border-radius: var(--calc-radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-step-prev:hover {
  background: #333338;
}

.btn-step-next {
  padding: 12px 24px;
  background: var(--calc-gold);
  color: #0d0d0e;
  border: none;
  border-radius: var(--calc-radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-step-next:hover {
  background: var(--calc-gold-light);
}

/* --------------------------------------------------------------------------
   BoQ Modal & Lead Capture Gate
   -------------------------------------------------------------------------- */
.boq-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.boq-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.boq-modal-card {
  background: var(--calc-surface);
  border: 1px solid var(--calc-border);
  border-radius: var(--calc-radius-lg);
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

.boq-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: #0f0f11;
  border-bottom: 1px solid var(--calc-border-subtle);
}

.boq-modal-title {
  font-family: var(--font-head, 'Cinzel', serif);
  font-size: 1.15rem;
  color: #ffffff;
  margin: 0;
}

.boq-modal-title span {
  color: var(--calc-gold);
}

.boq-close-btn {
  background: transparent;
  border: none;
  color: var(--calc-text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.boq-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

/* Lead Gate */
.lead-gate-wrap {
  max-width: 480px;
  margin: 20px auto;
  text-align: center;
}

.lead-gate-icon {
  font-size: 2.2rem;
  color: var(--calc-gold);
  margin-bottom: 12px;
}

.lead-gate-h4 {
  font-size: 1.25rem;
  color: #fff;
  margin: 0 0 8px;
}

.lead-gate-p {
  font-size: 0.82rem;
  color: var(--calc-text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

.lead-gate-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.calc-input-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #d1d5db;
  margin-bottom: 5px;
}

.calc-text-input {
  width: 100%;
  padding: 10px 14px;
  background: #0d0d0e;
  border: 1px solid var(--calc-border-subtle);
  border-radius: var(--calc-radius-sm);
  color: #fff;
  font-size: 0.85rem;
  outline: none;
}

.calc-text-input:focus {
  border-color: var(--calc-gold);
}

/* BoQ Table */
.boq-table-wrap {
  border: 1px solid var(--calc-border-subtle);
  border-radius: var(--calc-radius-md);
  overflow-x: auto;
  margin-bottom: 20px;
}

.boq-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  text-align: left;
}

.boq-table th {
  background: #0d0d0e;
  color: var(--calc-text-muted);
  padding: 12px;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--calc-border-subtle);
}

.boq-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: top;
}

.boq-item-title {
  font-weight: 600;
  color: #e5e7eb;
}

.boq-item-desc {
  font-size: 0.72rem;
  color: var(--calc-text-muted);
  margin-top: 3px;
  line-height: 1.4;
}

.boq-banner-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(201, 169, 110, 0.1);
  border: 1px solid var(--calc-border);
  padding: 16px;
  border-radius: var(--calc-radius-md);
  margin-bottom: 20px;
}

.boq-banner-left .title {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--calc-gold);
  font-weight: 600;
}

.boq-banner-left .price {
  font-family: var(--font-head, 'Cinzel', serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}

.boq-banner-right {
  display: flex;
  gap: 8px;
}
