/* ==========================================================================
   AI Visualizer + Calculator CSS - Complete Rebuild
   Prefixes: viz-* (visualizer), lc-by-calc-* (calculator)
   LOCALI color palette: green/gold on light backgrounds
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --green-deep: #1A3C2A;
  --green-primary: #2D5E3F;
  --green-accent: #3A7D52;
  --green-light: #4A9B66;
  --bg-primary: #FAFAF7;
  --bg-secondary: #F4F1EC;
  --text-primary: #1A1A1A;
  --text-secondary: #4A4A4A;
  --text-light: #7A7A7A;
  --accent-warm: #C4A265;
  --accent-gold: #C9A96E;
  --accent-copper: #B87333;
  --border-light: #E5E2DC;
  --btn-color: #2D5E3F;
  --btn-hover: #3A7D52;
}

/* ==========================================================================
   1. SECTION & CONTAINER (viz-*)
   ========================================================================== */
.viz-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ==========================================================================
   2. PROGRESS BAR
   ========================================================================== */
.viz-progress {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 20px 0 24px;
  max-width: 400px;
  margin: 0 auto;
}

.viz-progress__bar {
  flex: 1;
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  overflow: hidden;
}

.viz-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-copper));
  width: var(--progress, 0%);
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* ==========================================================================
   3. STEP TRANSITIONS
   ========================================================================== */
.viz-step {
  display: none;
  contain: layout style;
}

.viz-step.--active {
  display: block !important;
  animation: vizStepEnter 0.35s ease forwards;
}

.viz-step.--exit {
  display: block;
  animation: vizStepExit 0.25s ease forwards;
}

@keyframes vizStepEnter {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes vizStepExit {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-30px); }
}

/* ==========================================================================
   4. STEP HEADER & BACK BUTTON
   ========================================================================== */
.viz-step__header {
  text-align: center;
  margin-bottom: 20px;
}

.viz-step__header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: var(--green-deep);
  margin: 0 0 8px;
  line-height: 1.3;
}

.viz-step__header p {
  color: var(--text-secondary);
  font-size: 15px;
  margin: 0;
  line-height: 1.5;
}

.viz-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  min-height: 44px;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s;
  margin-bottom: 16px;
}

.viz-back:hover {
  background: var(--bg-secondary);
  border-color: var(--text-secondary);
}

/* ==========================================================================
   5. UPLOAD ZONE
   ========================================================================== */
.viz-dropzone {
  border: 2px dashed var(--border-light);
  border-radius: 12px;
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
  background: var(--bg-primary);
}

.viz-dropzone:hover,
.viz-dropzone.--dragover {
  border-color: var(--green-primary);
  background: #f0f8f3;
}

.viz-dropzone__icon {
  font-size: 48px;
  color: var(--green-light);
  margin-bottom: 16px;
  display: block;
}

.viz-dropzone__text {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.viz-dropzone__or {
  font-size: 13px;
  color: var(--text-light);
  margin: 8px 0;
}

.viz-dropzone__note {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 12px;
}

.viz-preview {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  display: none;
}

.viz-preview.--visible {
  display: block;
}

.viz-preview img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

.viz-change-photo {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: background 0.2s;
}

.viz-change-photo:hover {
  background: rgba(0, 0, 0, 0.85);
}

/* ==========================================================================
   6. OPTIONS GRID
   ========================================================================== */
.viz-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.viz-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  min-height: 44px;
  position: relative;
}

.viz-option:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 4px 16px rgba(201, 169, 110, 0.15);
  transform: scale(1.02);
}

.viz-option.--selected {
  border-color: var(--accent-gold);
  background: rgba(201, 169, 110, 0.06);
  box-shadow: 0 0 0 1px var(--accent-gold), 0 4px 12px rgba(201, 169, 110, 0.12);
}

.viz-option i {
  font-size: 24px;
  color: var(--accent-gold);
}

.viz-option.--selected i {
  color: #B8945D;
}

.viz-option strong {
  font-size: 15px;
  color: #1a1a1a;
  font-weight: 600;
}

.viz-option span {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

/* --- Finish: 1-col layout --- */
.viz-options--finish {
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 520px;
  margin: 0 auto;
}

.viz-options--finish .viz-option {
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 20px 24px;
  gap: 6px;
}

.viz-options--finish .viz-option i { display: none; }
.viz-options--finish .viz-option strong { font-size: 18px; font-weight: 700; }
.viz-options--finish .viz-option span { font-size: 14px; line-height: 1.55; margin-top: 2px; }

.viz-badge {
  display: inline-block;
  background: var(--accent-gold);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 4px;
  line-height: 1;
}

/* --- Style: Image cards --- */
.viz-options--styles {
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.viz-options--styles .viz-option {
  padding: 0;
  overflow: hidden;
  gap: 0;
}

.viz-options--styles .viz-option img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.viz-options--styles .viz-option:hover img {
  transform: scale(1.05);
}

.viz-options--styles .viz-option-label {
  padding: 12px 16px;
  text-align: center;
  width: 100%;
}

.viz-options--styles .viz-option-label strong {
  font-size: 14px;
  display: block;
}

.viz-options--styles .viz-option-label span {
  font-size: 12px;
  display: block;
  margin-top: 2px;
}

.viz-style-placeholder {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: rgba(255, 255, 255, 0.8);
}

.viz-style-placeholder--modern        { background: linear-gradient(135deg, #2c3e50, #4a6274); }
.viz-style-placeholder--mediterranean { background: linear-gradient(135deg, #c0956e, #d4a574); }
.viz-style-placeholder--tropical      { background: linear-gradient(135deg, #2d6a4f, #52b788); }
.viz-style-placeholder--classic       { background: linear-gradient(135deg, #6b5b4e, #8d7b6e); }

/* ==========================================================================
   7. PRIMARY BUTTON (LOCALI green)
   ========================================================================== */
.viz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  min-height: 44px;
  font-family: inherit;
  text-decoration: none;
}

.viz-btn--primary {
  background: var(--green-primary);
  color: #fff;
}

.viz-btn--primary:hover {
  background: var(--btn-hover);
}

.viz-btn--primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.viz-btn--gold {
  background: linear-gradient(135deg, var(--accent-warm), var(--accent-copper));
  color: #fff;
}

.viz-btn--gold:hover { filter: brightness(1.1); }
.viz-btn--sm { padding: 8px 16px; font-size: 13px; }
.viz-btn--block { width: 100%; }

.viz-btn--outline {
  background: none;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.viz-btn--outline:hover {
  background: var(--bg-secondary);
  border-color: var(--text-secondary);
}

/* ==========================================================================
   8. LOADING SCREEN
   ========================================================================== */
.viz-loading {
  text-align: center;
  padding: 48px 0;
}

.viz-spinner {
  width: 56px;
  height: 56px;
  border: 3px solid var(--border-light);
  border-top: 3px solid var(--accent-gold);
  border-radius: 50%;
  animation: vizSpin 0.8s linear infinite;
  margin: 0 auto 24px;
}

@keyframes vizSpin {
  to { transform: rotate(360deg); }
}

.viz-loading h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--green-deep);
  margin: 0 0 12px;
  line-height: 1.3;
}

.viz-loading__msg {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 16px;
  min-height: 20px;
  transition: opacity 0.4s;
}

.viz-loading__bar {
  width: 80%;
  max-width: 300px;
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  margin: 0 auto 16px;
  overflow: hidden;
}

.viz-loading__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-copper));
  width: 0%;
  transition: width 0.5s ease;
  border-radius: 2px;
}

.viz-loading__tip {
  color: var(--text-light);
  font-size: 13px;
  font-style: italic;
  min-height: 18px;
  transition: opacity 0.3s;
}

/* ==========================================================================
   9. LEAD GATE (full-width blurred image + floating form card overlay)
   ========================================================================== */
.viz-gate {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 280px;
}

.viz-gate__bg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.viz-gate__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  transition: opacity 0.5s;
}

.viz-gate__overlay.--hidden {
  opacity: 0;
  pointer-events: none;
}

.viz-gate__card {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 22px 24px;
  max-width: 380px;
  width: 85%;
  color: #fff;
  border: 1px solid rgba(201, 169, 110, 0.3);
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.viz-gate__lock {
  font-size: 24px;
  color: var(--accent-gold);
  margin-bottom: 8px;
  display: block;
}

.viz-gate__card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--accent-gold);
  margin: 0 0 6px;
  line-height: 1.3;
}

.viz-gate__card > p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  margin: 0 0 14px;
  line-height: 1.4;
}

.viz-gate__card .lc-form-group {
  margin-bottom: 8px;
}

.viz-gate__card input[type="text"],
.viz-gate__card input[type="tel"],
.viz-gate__card input[type="email"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.viz-gate__card input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.viz-gate__card input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.2);
}

.viz-gate__card .lc-form-error {
  color: #ff6b6b;
  font-size: 11px;
  margin-top: 2px;
  display: block;
  min-height: 0;
  text-align: left;
}

.viz-gate__card .viz-btn--primary {
  background: var(--accent-gold);
  color: #1a1a1a;
  border: none;
  font-weight: 700;
}

.viz-gate__card .viz-btn--primary:hover {
  background: #d4b578;
}

/* Honeypot - visually hidden */
.viz-hp { position: absolute !important; left: -9999px !important; opacity: 0 !important; height: 0 !important; width: 0 !important; overflow: hidden !important; }

/* Email alternative (shown after 20s timer) */
.viz-email-alt {
  display: none;
  text-align: center;
  margin-top: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.viz-email-alt span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

.viz-email-alt a {
  color: var(--accent-gold);
  font-size: 13px;
  text-decoration: underline;
}

/* ==========================================================================
   10. BEFORE/AFTER SLIDER (clipPath-based)
   ========================================================================== */
.viz-ba {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  aspect-ratio: 16 / 10;
  background: #f0f0f0;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.viz-ba__after,
.viz-ba__before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: high-quality;
  -webkit-image-rendering: high-quality;
}

.viz-ba__before {
  clip-path: inset(0 50% 0 0);
}

.viz-ba__divider {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: 3px;
  background: #fff;
  transform: translateX(-50%);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  z-index: 2;
}

.viz-ba__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.viz-ba__handle i {
  color: var(--green-primary);
  font-size: 16px;
}

.viz-ba__label {
  position: absolute;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 4px;
  z-index: 3;
  pointer-events: none;
  line-height: 1;
}

.viz-ba__label--before {
  left: 12px;
}

.viz-ba__label--after {
  right: 12px;
}

/* ==========================================================================
   11. PRICE RESULT & CTA
   ========================================================================== */
.viz-estimate {
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 16px 24px;
  margin: 16px 0 0;
  background: #fafafa;
}

.viz-estimate__label {
  display: block;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 8px;
}

.viz-estimate__range {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 700;
  color: #1A3C2A;
  margin-bottom: 4px;
}

.viz-estimate__note {
  display: block;
  font-size: 13px;
  color: #888;
  font-style: italic;
}

.viz-result-cta {
  text-align: center;
  padding: 10px 16px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.viz-result-cta p {
  font-size: clamp(14px, 2.5vw, 16px);
  color: #333;
  margin: 0 0 4px;
  line-height: 1.5;
  font-style: italic;
}

.viz-result-cta .viz-btn--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #1A3C2A;
  color: #fff;
  padding: clamp(12px, 2vw, 16px) clamp(24px, 4vw, 40px);
  border-radius: 8px;
  font-size: clamp(15px, 2.5vw, 18px);
  font-weight: 700;
  text-decoration: none;
  width: 100%;
  max-width: min(360px, 100%);
  text-align: center;
  box-sizing: border-box;
  transition: background 0.2s;
}

.viz-result-cta .viz-btn--primary:hover {
  background: #2a5c40;
}

.viz-retry {
  display: inline-block;
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 14px;
  text-decoration: underline;
  padding: 8px;
  font-family: inherit;
  transition: color 0.2s;
}

.viz-retry:hover { color: #C9A96E; }

/* ==========================================================================
   12. RESULT POPUP (inline rendering via flow popup)
   ========================================================================== */
#vizPopup {
  display: none;
}

#vizPopup.--visible {
  display: block;
}

/* When inside flow popup - inline mode */
#vizPopup.flow-inline {
  position: static !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  max-width: none !important;
  padding: 0 !important;
}

#vizPopup.flow-inline .viz-popup__overlay {
  display: none !important;
}

#vizPopup.flow-inline .viz-popup__content {
  position: static !important;
  max-width: none !important;
  max-height: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* ==========================================================================
   13. PROMO POPUP
   ========================================================================== */
.viz-promo {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 360px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  padding: 24px;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.4s, opacity 0.4s;
}

.viz-promo.--visible {
  transform: translateY(0);
  opacity: 1;
}

.viz-promo__close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-light);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.viz-promo__close:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.viz-promo__icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent-warm), var(--accent-copper));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.viz-promo__icon i { color: #fff; font-size: 20px; }

.viz-promo h4 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--green-deep);
  margin: 0 0 6px;
  line-height: 1.3;
}

.viz-promo p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 16px;
  line-height: 1.5;
}

.viz-promo__actions {
  display: flex;
  gap: 8px;
}

.viz-promo__btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: all 0.2s;
}

.viz-promo__btn--primary {
  background: var(--green-primary);
  color: #fff;
  border: none;
}

.viz-promo__btn--primary:hover { background: var(--btn-hover); }

.viz-promo__btn--ghost {
  background: none;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.viz-promo__btn--ghost:hover {
  background: var(--bg-secondary);
  border-color: var(--text-secondary);
}

/* ==========================================================================
   14. FLOW POPUP (fullscreen wizard modal)
   ========================================================================== */
#vizFlowPopup {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s;
  /* Hidden by default; JS sets display:flex then adds .--visible for opacity */
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#vizFlowPopup.--visible {
  opacity: 1;
}

.viz-flow__inner {
  position: relative;
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 900px;
  max-height: calc(100vh - 40px);  /* fit viewport with 20px padding each side */
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
  padding: 32px;
  box-sizing: border-box;
}

.viz-flow__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.viz-flow__close:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.viz-flow__header {
  padding-top: 24px;
  text-align: center;
  margin-bottom: 0;
}

.viz-flow__header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--green-deep);
  margin: 0 0 8px;
  line-height: 1.3;
}

.viz-flow__header p {
  color: var(--text-secondary);
  font-size: 15px;
  margin: 0;
  line-height: 1.5;
}

/* ==========================================================================
   15. ERROR STATE
   ========================================================================== */
.viz-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  display: none;
  line-height: 1.5;
  margin-top: 12px;
}

/* Nav row */
.viz-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
}

/* Limit reached */
.viz-limit-reached {
  display: none;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 400px;
  margin: 0 auto;
}

.viz-limit-reached > i:first-child {
  font-size: 48px;
  color: var(--green-primary);
  margin-bottom: 1rem;
  display: block;
}

.viz-limit-reached h3 { margin-bottom: 0.5rem; }
.viz-limit-reached p { margin-bottom: 1.5rem; color: #666; }

.viz-limit-form { text-align: left; margin-bottom: 1rem; }
.viz-limit-form .lc-form-group { margin-bottom: 12px; }
.viz-limit-form input[type="text"],
.viz-limit-form input[type="tel"],
.viz-limit-form input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.2s;
}
.viz-limit-form input:focus { border-color: var(--green-primary); outline: none; }

.viz-limit-success { padding: 1rem 0; }
.viz-limit-success i { font-size: 40px; color: var(--green-primary); margin-bottom: 0.5rem; display: block; }
.viz-limit-success p { color: #333; font-size: 16px; }

/* Result container & heading */
.viz-result {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.viz-result h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 3vw, 22px);
  color: var(--green-deep);
  margin: 0 0 12px;
  text-align: center;
  line-height: 1.2;
}

/* ==========================================================================
   16. RESPONSIVE: max-width 768px
   ========================================================================== */
@media (max-width: 768px) {
  #vizFlowPopup {
    padding: 0;
  }

  .viz-flow__inner {
    margin: 0;
    padding: 16px;
    border-radius: 0;
    max-height: 100vh;
    max-height: 100dvh;
    width: 100%;
    max-width: 100%;
  }

  .viz-flow__header h2 { font-size: 22px; }

  .viz-options { grid-template-columns: 1fr 1fr; }

  .viz-gate {
    min-height: auto;
  }

  .viz-gate__card {
    padding: 18px 20px;
    max-width: 340px;
    width: 90%;
  }

  .viz-ba {
    aspect-ratio: 4 / 3;
  }

  .viz-estimate {
    padding: 12px 16px;
    margin: 12px 0 0;
  }

  .viz-result-cta {
    padding: 8px 12px;
    gap: 8px;
  }

  .viz-promo {
    bottom: 16px;
    right: 16px;
    left: 16px;
    width: auto;
  }
}

/* ==========================================================================
   17. RESPONSIVE: max-width 380px
   ========================================================================== */
@media (max-width: 380px) {
  .viz-options { grid-template-columns: 1fr; }

  .viz-options--styles { grid-template-columns: repeat(2, 1fr); }

  .viz-options--styles .viz-option img,
  .viz-style-placeholder { height: 100px; }

  .viz-dropzone { padding: 24px 12px; }

  .viz-flow__inner { padding: 12px; }

  .viz-gate__card { padding: 16px; max-width: 300px; }
  .viz-gate__card h3 { font-size: 17px; }
  .viz-gate__card > p { font-size: 12px; margin-bottom: 10px; }
  .viz-gate__card input[type="text"],
  .viz-gate__card input[type="tel"],
  .viz-gate__card input[type="email"] { padding: 9px 12px; font-size: 13px; }
  .viz-gate__card .lc-form-group { margin-bottom: 6px; }
}

/* ==========================================================================
   18. PREFERS-REDUCED-MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .viz-step.--active { animation: none; }
  .viz-step.--exit { animation: none; }
  .viz-spinner { animation: none; border-top-color: var(--accent-gold); }
  .viz-promo { transition: none; }
  #vizFlowPopup { transition: none; }
  .viz-progress__fill { transition: none; }
  .viz-loading__fill { transition: none; }
}

/* ==========================================================================
   19. INLINE CALCULATOR (lc-by-calc-*) - KEPT UNCHANGED
   ========================================================================== */
.lc-by-calc {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 40px;
  margin: 40px 0;
}

.lc-by-calc__header {
  text-align: center;
  margin-bottom: 32px;
}

.lc-by-calc__header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  color: var(--green-deep);
  margin: 0 0 8px;
  line-height: 1.3;
}

.lc-by-calc__header p {
  color: var(--text-secondary);
  font-size: 16px;
  margin: 0;
  line-height: 1.5;
}

.lc-by-calc__section { margin-bottom: 28px; }
.lc-by-calc__section h3 { font-size: 18px; color: var(--text-primary); margin: 0 0 12px; font-weight: 600; }

.lc-by-calc__sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

.lc-by-calc__size {
  display: flex; flex-direction: column; align-items: center;
  padding: 16px 12px; border: 2px solid var(--border-light); border-radius: 10px;
  background: #fff; cursor: pointer; transition: all 0.2s; text-align: center; min-height: 44px;
}

.lc-by-calc__size:hover { border-color: var(--green-light); }
.lc-by-calc__size.--selected { border-color: var(--green-primary); background: #eef6f0; }
.lc-by-calc__size strong { font-size: 14px; color: var(--text-primary); }
.lc-by-calc__size span { font-size: 12px; color: var(--text-light); margin-top: 2px; }

.lc-by-calc__features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

.lc-by-calc__feature {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 12px; border: 2px solid var(--border-light); border-radius: 10px;
  background: #fff; cursor: pointer; transition: all 0.2s; text-align: center; min-height: 44px;
}

.lc-by-calc__feature:hover { border-color: var(--green-light); }
.lc-by-calc__feature.--selected { border-color: var(--green-primary); background: #eef6f0; }
.lc-by-calc__feature i { font-size: 22px; color: var(--green-primary); }
.lc-by-calc__feature strong { font-size: 13px; color: var(--text-primary); }

.lc-by-calc__finishes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.lc-by-calc__finish {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 16px; border: 2px solid var(--border-light); border-radius: 10px;
  background: #fff; cursor: pointer; transition: all 0.2s; text-align: center; min-height: 44px;
}

.lc-by-calc__finish:hover { border-color: var(--green-light); }
.lc-by-calc__finish.--selected { border-color: var(--green-primary); background: #eef6f0; }
.lc-by-calc__finish strong { font-size: 14px; color: var(--text-primary); }
.lc-by-calc__finish span { font-size: 12px; color: var(--text-light); }

.lc-by-calc__price {
  background: #fff; border-radius: 12px; padding: 24px; text-align: center;
  margin-top: 24px; border: 2px solid var(--green-primary);
}

.lc-by-calc__price-label { font-size: 14px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.lc-by-calc__price-range { font-family: 'Playfair Display', serif; font-size: 36px; color: var(--green-deep); font-weight: 700; }
.lc-by-calc__price-note { font-size: 12px; color: var(--text-light); margin-top: 6px; font-style: italic; }

.lc-by-calc__form { background: #fff; border-radius: 12px; padding: 24px; margin-top: 20px; }
.lc-by-calc__form h3 { font-size: 18px; margin: 0 0 12px; color: var(--text-primary); font-weight: 600; }
.lc-by-calc__form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.lc-by-calc__form input {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border-light); border-radius: 8px;
  font-size: 14px; font-family: inherit; box-sizing: border-box; transition: border-color 0.2s, box-shadow 0.2s;
}

.lc-by-calc__form input:focus { outline: none; border-color: var(--green-primary); box-shadow: 0 0 0 3px rgba(45, 94, 63, 0.1); }

.lc-by-calc__form button {
  grid-column: 1 / -1; padding: 14px; background: var(--green-primary); color: #fff;
  border: none; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer;
  margin-top: 4px; min-height: 44px; font-family: inherit; transition: background 0.2s;
}

.lc-by-calc__form button:hover { background: var(--btn-hover); }
.lc-by-calc__disclaimer { font-size: 12px; color: var(--text-light); text-align: center; margin-top: 12px; font-style: italic; }

/* Calculator responsive */
@media (max-width: 768px) {
  .lc-by-calc { padding: 24px 16px; }
  .lc-by-calc__sizes { grid-template-columns: repeat(2, 1fr); }
  .lc-by-calc__features { grid-template-columns: repeat(2, 1fr); }
  .lc-by-calc__finishes { grid-template-columns: 1fr; }
  .lc-by-calc__form-grid { grid-template-columns: 1fr; }
  .lc-by-calc__price-range { font-size: 28px; }
}

/* ── Viz Flow Tip (60 seconds messaging) ──────────────────────── */
.viz-dropzone__tip {
    text-align: center;
    font-size: 13px;
    color: var(--green-deep, #1a3c2a);
    margin-top: 14px;
    font-weight: 500;
}
.viz-dropzone__tip i {
    margin-right: 4px;
}
.viz-flow__header em {
    font-weight: 700;
    font-style: normal;
    color: var(--green-deep, #1a3c2a);
}

/* ── Hide Step 1 heading on mobile (already shown inside dropzone) ──── */
#vizStep1 > .viz-step__header {
    display: none;
}

/* ── Dropzone sub-text ─────────────────────────────────────────────── */
.viz-dropzone__sub {
    font-size: 13px;
    color: #999;
    margin: 4px 0 8px;
}

/* ── Take Photo button - make it stand out ─────────────────────────── */
.viz-btn--camera,
.viz-btn--secondary.viz-btn--camera {
    background: #1a1a2e !important;
    color: #fff !important;
    border: 2px solid #d4a017 !important;
}
.viz-btn--camera:hover {
    background: #d4a017 !important;
    color: #1a1a2e !important;
}

/* ── Dropzone title (mobile heading inside box) ────────────────────── */
.viz-dropzone__title {
    font-size: 26px;
    font-weight: 700;
    margin: 8px 0 16px;
    color: var(--green-deep, #1a3c2a);
    line-height: 1.3;
}

/* ── Dropzone subtitle (tip under title) ───────────────────────────── */
.viz-dropzone__subtitle {
    font-size: 14px;
    color: #999;
    margin: 0 0 12px;
    font-weight: 400;
}
