/* ==========================================================================
   VAIKRON Interior Budget Estimator — Bright White + Metallic Saffron Theme
   Universal Fit-to-Screen 100dvh Responsive CSS (Mobile, Tablet & PC)
   ========================================================================== */

:root {
  --bg-page: #ffffff;
  --bg-surface: #ffffff;
  --bg-surface-soft: #fffdf9;
  --bg-tint: #fff7ed;
  --bg-muted: #f8fafc;

  --saffron-dark: #9a4504;
  --saffron-deep: #b85906;
  --saffron: #e8760f;
  --saffron-bright: #f59e0b;
  --saffron-metallic: linear-gradient(135deg, #b85906 0%, #e8760f 38%, #f59e0b 68%, #c96408 100%);
  --saffron-foil: linear-gradient(135deg, #fffbf5 0%, #ffedd5 52%, #fef3c7 100%);

  --text-main: #1c1917;
  --text-secondary: #57534e;
  --text-muted: #78716c;

  --whatsapp: #25d366;
  --whatsapp-ink: #052e16;

  --border-subtle: rgba(28, 25, 23, 0.1);
  --border-saffron: rgba(232, 118, 15, 0.34);

  --shadow-card: 0 14px 36px -20px rgba(28, 25, 23, 0.14), 0 4px 12px -4px rgba(232, 118, 15, 0.08);
  --shadow-saffron: 0 10px 24px -8px rgba(232, 118, 15, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  --shadow-selected: 0 8px 20px -8px rgba(232, 118, 15, 0.28);

  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 10px;
}

@media (min-width: 640px) {
  :root {
    --radius-xl: 22px;
    --radius-lg: 16px;
    --radius-md: 12px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body.fit-screen-mode {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

@media (max-height: 500px) {
  body.fit-screen-mode {
    height: auto;
    min-height: 100dvh;
    overflow-y: auto;
  }
}

h1,
h2,
h3,
.font-display {
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}

button,
input {
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ==========================================================================
   Ambient Bright Background
   ========================================================================== */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(245, 158, 11, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 88% 18%, rgba(232, 118, 15, 0.1) 0%, transparent 42%),
    radial-gradient(circle at 50% 94%, rgba(251, 146, 60, 0.08) 0%, transparent 45%),
    #ffffff;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(28, 25, 23, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(28, 25, 23, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 25%, transparent 80%);
}

.ambient-orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(72px);
  opacity: 0.52;
  animation: orbFloat 15s ease-in-out infinite alternate;
}

.ambient-orb-1 {
  width: 240px;
  height: 240px;
  top: -70px;
  left: -60px;
  background: rgba(245, 158, 11, 0.22);
}

.ambient-orb-2 {
  width: 220px;
  height: 220px;
  top: 28%;
  right: -70px;
  background: rgba(232, 118, 15, 0.16);
  animation-delay: -7s;
}

/* ==========================================================================
   Header (Always Visible Across Mobile, Tablet & PC)
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 20;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 6px 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.brand-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 2px 0;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
  min-width: 0;
}

.brand-btn:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 2px;
}

.brand-emblem {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--saffron-metallic);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-saffron);
}

.brand-emblem svg {
  width: 16px;
  height: 16px;
}

.brand-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.brand-wordmark {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--text-main);
}

.brand-dot {
  width: 3px;
  height: 3px;
  border-radius: 9999px;
  background: var(--saffron);
}

.brand-app-name {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--saffron-deep);
  white-space: nowrap;
}

.brand-tagline {
  display: none;
  margin-top: 1px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.header-badge-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 9999px;
  background: var(--saffron-foil);
  border: 1px solid var(--border-saffron);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--saffron-dark);
  text-transform: uppercase;
  white-space: nowrap;
}

.demo-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 9999px;
  background: var(--saffron);
  flex-shrink: 0;
}

.demo-badge-full {
  display: none;
}

.demo-badge-short {
  display: inline;
}

@media (min-width: 640px) {
  .header-inner {
    padding: 10px 24px;
    gap: 12px;
  }
  .brand-emblem {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .brand-emblem svg {
    width: 18px;
    height: 18px;
  }
  .brand-wordmark {
    font-size: 0.88rem;
  }
  .brand-app-name {
    font-size: 0.78rem;
  }
  .brand-tagline {
    display: block;
  }
  .demo-badge {
    padding: 5px 10px;
    font-size: 0.62rem;
  }
  .demo-badge-full {
    display: inline;
  }
  .demo-badge-short {
    display: none;
  }
}

/* ==========================================================================
   Main Shell (Safe Auto-Margin Vertical Centering — Never Clips Top!)
   ========================================================================== */
.main-shell {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 10px 10px;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body.fit-screen-mode .main-shell {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.screen-stage {
  width: 100%;
  margin-top: auto;
  margin-bottom: auto;
}

body.results-mode .screen-stage {
  margin-top: 0;
  margin-bottom: 0;
}

@media (min-width: 640px) {
  .main-shell {
    padding: 16px 24px 20px;
  }
  body.results-mode .main-shell {
    padding: 24px 24px 48px;
  }
}

.sticky-action-bar {
  position: relative;
  z-index: 25;
  flex-shrink: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
  padding: 8px 12px max(10px, env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px -12px rgba(28, 25, 23, 0.14);
}

.sticky-action-inner {
  max-width: 720px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .sticky-action-bar {
    display: none !important;
  }
}

.card-surface {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(28, 25, 23, 0.09);
  border-radius: var(--radius-xl);
  padding: 14px 12px;
  box-shadow: var(--shadow-card);
}

.card-surface::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--saffron-metallic);
}

.hero-card {
  padding: 18px 14px;
}

@media (min-width: 640px) {
  .card-surface {
    padding: 22px 26px;
  }
  .hero-card {
    padding: 30px 32px;
  }
}

/* ==========================================================================
   Typography & Badges
   ========================================================================== */
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: var(--saffron-foil);
  border: 1px solid var(--border-saffron);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--saffron-dark);
}

.step-kicker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--saffron-deep);
}

.hero-title {
  margin: 10px 0 0;
  font-size: clamp(1.38rem, 5.4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.metallic-saffron-text {
  background: linear-gradient(135deg, #9a4504 0%, #e8760f 45%, #f59e0b 75%, #b85906 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 8px 0 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.step-title {
  margin: 3px 0 0;
  font-size: clamp(1.06rem, 3.8vw, 1.38rem);
  font-weight: 800;
  line-height: 1.24;
  color: var(--text-main);
}

.step-helper {
  margin: 3px 0 0;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

@media (min-width: 640px) {
  .hero-title {
    margin-top: 14px;
  }
  .hero-sub {
    margin-top: 12px;
    font-size: 1rem;
  }
  .step-kicker {
    font-size: 0.7rem;
  }
  .step-helper {
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   Hero Feature Chips & Secondary Strip
   ========================================================================== */
.feature-chips {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 5px 10px;
  border-radius: 9px;
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-subtle);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-main);
}

.feature-chip svg {
  width: 14px;
  height: 14px;
  color: var(--saffron);
  flex-shrink: 0;
}

.custom-strip {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-lg);
  background: var(--bg-tint);
  border: 1px solid var(--border-saffron);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.custom-strip p {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.hero-footer {
  margin-top: 10px;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .feature-chips {
    margin-top: 16px;
    gap: 9px;
  }
  .feature-chip {
    min-height: 38px;
    padding: 7px 12px;
    font-size: 0.8rem;
  }
  .custom-strip {
    margin-top: 16px;
    padding: 13px 16px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .custom-strip p {
    font-size: 0.84rem;
  }
  .hero-footer {
    margin-top: 14px;
    font-size: 0.74rem;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--saffron-metallic);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: var(--shadow-saffron);
  transition: transform 0.16s ease, filter 0.16s ease, opacity 0.16s ease;
}

@media (min-width: 640px) {
  .btn-primary {
    min-height: 48px;
    padding: 11px 20px;
    font-size: 0.92rem;
  }
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 25%, rgba(255, 255, 255, 0.24) 50%, transparent 75%);
  transform: translateX(-100%);
  transition: transform 0.55s ease;
}

.btn-primary:hover:not(:disabled)::after {
  transform: translateX(100%);
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.05);
}

.btn-primary:active:not(:disabled) {
  transform: scale(0.985);
}

.btn-primary:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 50px;
  padding: 12px 18px;
  border-radius: var(--radius-lg);
  background: var(--whatsapp);
  color: var(--whatsapp-ink);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 12px 26px -8px rgba(37, 211, 102, 0.5);
  transition: transform 0.16s ease, filter 0.16s ease;
}

.btn-whatsapp:hover {
  filter: brightness(1.04);
}

.btn-whatsapp:active {
  transform: scale(0.985);
}

.btn-whatsapp-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1.5px solid #16a34a;
  color: #15803d;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background-color 0.16s ease;
}

.btn-whatsapp-outline:hover {
  background: #f0fdf4;
}

@media (min-width: 640px) {
  .btn-whatsapp-outline {
    width: auto;
    flex-shrink: 0;
  }
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid rgba(28, 25, 23, 0.16);
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.btn-secondary:hover {
  border-color: var(--saffron);
  background: var(--bg-tint);
}

/* ==========================================================================
   Progress Header
   ========================================================================== */
.progress-wrap {
  margin-bottom: 8px;
  flex-shrink: 0;
}

.progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 5px 11px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(28, 25, 23, 0.04);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.back-btn:hover {
  border-color: var(--saffron);
  background: var(--bg-tint);
}

.back-btn svg {
  width: 14px;
  height: 14px;
  color: var(--saffron-deep);
}

.step-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.step-pct {
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--saffron-foil);
  border: 1px solid var(--border-saffron);
  color: var(--saffron-dark);
  font-weight: 800;
}

.progress-track {
  width: 100%;
  height: 6px;
  border-radius: 9999px;
  background: #f1f5f9;
  border: 1px solid rgba(28, 25, 23, 0.06);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: var(--saffron-metallic);
  transition: width 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 640px) {
  .progress-wrap {
    margin-bottom: 10px;
  }
  .step-meta {
    font-size: 0.74rem;
  }
}

/* ==========================================================================
   Adaptive Selection Grids (Mobile -> Tablet -> PC)
   ========================================================================== */
/* Property Type Grid: 2x3 on mobile, 3x2 on tablet/PC */
.grid-property {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

@media (min-width: 640px) {
  .grid-property {
    margin-top: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
  }
}

/* Scope Grid: 1x4 on mobile, 2x2 on tablet/PC */
.grid-scope {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

@media (min-width: 640px) {
  .grid-scope {
    margin-top: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
}

/* Package Grid: 3x1 stacked on mobile, 1x3 horizontal on tablet/PC */
.grid-packages {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

@media (min-width: 720px) {
  .grid-packages {
    margin-top: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
  }
}

.choice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 70px;
  padding: 9px 10px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface-soft);
  border: 1.5px solid var(--border-subtle);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, transform 0.14s ease;
}

@media (min-width: 640px) {
  .choice-card {
    min-height: 96px;
    padding: 14px;
  }
}

.choice-card:hover {
  border-color: rgba(232, 118, 15, 0.45);
  background: #ffffff;
}

.choice-card:active {
  transform: scale(0.985);
}

.choice-card.selected {
  border-color: var(--saffron);
  background: #fffaf2;
  box-shadow: var(--shadow-selected);
}

.choice-row {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 9px 11px;
}

@media (min-width: 640px) {
  .choice-row {
    gap: 12px;
    min-height: 82px;
    padding: 13px 14px;
  }
}

.choice-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.choice-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 8px;
  background: #f5f5f4;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, color 0.18s ease;
}

.choice-icon svg {
  width: 15px;
  height: 15px;
}

@media (min-width: 640px) {
  .choice-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .choice-icon svg {
    width: 17px;
    height: 17px;
  }
}

.choice-card.selected .choice-icon {
  background: var(--saffron-metallic);
  color: #ffffff;
}

.check-dot {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  border-radius: 9999px;
  background: var(--saffron-metallic);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: checkPop 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.check-dot svg {
  width: 11px;
  height: 11px;
}

.choice-label {
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
  word-break: break-word;
}

.choice-row .choice-label {
  margin-top: 0;
  font-size: 0.86rem;
}

.choice-sub {
  margin-top: 2px;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
}

.choice-desc {
  margin: 2px 0 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--text-secondary);
}

@media (min-width: 640px) {
  .choice-label {
    margin-top: 8px;
    font-size: 0.92rem;
  }
  .choice-row .choice-label {
    font-size: 0.92rem;
  }
  .choice-sub {
    font-size: 0.72rem;
  }
  .choice-desc {
    font-size: 0.78rem;
  }
}

/* Package Cards */
.package-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  padding: 11px 12px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface-soft);
  border: 1.5px solid var(--border-subtle);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, transform 0.14s ease;
}

@media (min-width: 720px) {
  .package-card {
    padding: 15px 14px;
    min-height: 168px;
  }
}

.package-card.popular {
  border-color: rgba(232, 118, 15, 0.35);
  background: linear-gradient(180deg, #fffdf9 0%, #fff7ed 100%);
}

.package-card.selected {
  border-color: var(--saffron);
  background: #fffaf2;
  box-shadow: var(--shadow-selected);
}

.package-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.package-head-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.package-name {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-main);
}

.pkg-badge {
  padding: 2px 7px;
  border-radius: 9999px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pkg-badge-essential {
  background: #f5f5f4;
  border: 1px solid rgba(28, 25, 23, 0.12);
  color: var(--text-secondary);
}

.pkg-badge-popular {
  background: var(--saffron-metallic);
  color: #ffffff;
}

.pkg-badge-luxury {
  background: var(--saffron-foil);
  border: 1px solid var(--border-saffron);
  color: var(--saffron-dark);
}

/* ==========================================================================
   Locality Chips, 2x2 Timeline & Inputs
   ========================================================================== */
.chip-wrap {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 5px 9px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-soft);
  border: 1.5px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip-btn:hover {
  border-color: rgba(232, 118, 15, 0.45);
  color: var(--text-main);
}

.chip-btn.selected {
  border-color: var(--saffron);
  background: var(--saffron-foil);
  color: var(--saffron-dark);
  box-shadow: 0 4px 10px -4px rgba(232, 118, 15, 0.3);
}

.section-divider {
  margin: 10px 0;
  height: 1px;
  background: var(--border-subtle);
}

.timeline-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.timeline-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  min-height: 44px;
  padding: 6px 9px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-soft);
  border: 1.5px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.timeline-btn:hover {
  border-color: rgba(232, 118, 15, 0.45);
}

.timeline-btn.selected {
  border-color: var(--saffron);
  background: #fffaf2;
  color: var(--saffron-dark);
  box-shadow: var(--shadow-selected);
}

@media (min-width: 640px) {
  .chip-wrap {
    margin-top: 10px;
    gap: 7px;
  }
  .chip-btn {
    padding: 6px 12px;
    font-size: 0.82rem;
  }
  .section-divider {
    margin: 14px 0;
  }
  .timeline-grid {
    margin-top: 10px;
    gap: 9px;
  }
  .timeline-btn {
    padding: 8px 12px;
    font-size: 0.82rem;
  }
}

.field-group {
  margin-top: 10px;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-main);
}

.field-label svg {
  width: 13px;
  height: 13px;
  color: var(--saffron);
}

.text-input {
  width: 100%;
  min-height: 46px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(28, 25, 23, 0.18);
  background: #ffffff;
  color: var(--text-main);
  font-size: 16px;
  font-weight: 500;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.text-input:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(232, 118, 15, 0.16);
  outline: none;
}

.text-input.error {
  border-color: #dc2626;
}

.phone-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.phone-prefix {
  position: absolute;
  left: 12px;
  padding-right: 9px;
  border-right: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  pointer-events: none;
}

.phone-input {
  padding-left: 58px;
}

.error-msg {
  margin: 4px 0 0;
  font-size: 0.74rem;
  font-weight: 600;
  color: #dc2626;
}

/* ==========================================================================
   Carpet Area Slider & Numeric Input (Step 5)
   ========================================================================== */
.area-readout {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-lg);
  background: var(--saffron-foil);
  border: 1px solid var(--border-saffron);
  text-align: center;
}

.area-readout-label {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--saffron-dark);
}

.area-readout-val {
  margin-top: 2px;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-main);
}

.area-readout-unit {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.slider-wrap {
  margin-top: 12px;
}

@media (min-width: 640px) {
  .area-readout {
    margin-top: 12px;
    padding: 12px;
  }
  .area-readout-val {
    font-size: 1.75rem;
  }
  .slider-wrap {
    margin-top: 14px;
  }
}

.saffron-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 9px;
  border-radius: 9999px;
  outline: none;
  cursor: pointer;
}

.saffron-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 9999px;
  background: var(--saffron-metallic);
  border: 3px solid #ffffff;
  box-shadow: 0 2px 12px rgba(232, 118, 15, 0.55);
  cursor: pointer;
}

.saffron-slider::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 9999px;
  background: var(--saffron-metallic);
  border: 3px solid #ffffff;
  box-shadow: 0 2px 12px rgba(232, 118, 15, 0.55);
  cursor: pointer;
}

.slider-bounds {
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.input-suffix-wrap {
  position: relative;
}

.input-suffix {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  pointer-events: none;
}

.quick-grid {
  margin-top: 4px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

@media (min-width: 640px) {
  .quick-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
}

/* ==========================================================================
   Consent, Privacy & Desktop Action
   ========================================================================== */
.consent-box {
  margin-top: 10px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-height: 44px;
  padding: 9px 11px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
}

.consent-box input {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: var(--saffron);
  flex-shrink: 0;
}

.consent-box span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-main);
}

.privacy-note {
  margin-top: 7px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.privacy-note svg {
  width: 14px;
  height: 14px;
  color: var(--saffron);
  flex-shrink: 0;
  margin-top: 1px;
}

.desktop-action {
  margin-top: 14px;
  display: none;
}

@media (min-width: 640px) {
  .desktop-action {
    display: block;
  }
}

/* ==========================================================================
   Results Dashboard (Screen 7)
   ========================================================================== */
.results-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 16px;
}

.result-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.result-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.result-pkg-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: var(--saffron-metallic);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.price-showcase {
  margin-top: 12px;
  padding: 18px 12px;
  border-radius: var(--radius-lg);
  background: var(--saffron-foil);
  border: 1.5px solid var(--border-saffron);
  text-align: center;
  animation: priceReveal 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.price-main {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: clamp(1.55rem, 6.8vw, 2.7rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.price-inr {
  margin-top: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-secondary);
}

@media (min-width: 640px) {
  .price-showcase {
    margin-top: 14px;
    padding: 22px 16px;
  }
  .price-inr {
    margin-top: 8px;
    font-size: 0.96rem;
  }
}

.unlocked-pill {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: #dcfce7;
  color: #166534;
  font-size: 0.72rem;
  font-weight: 700;
  max-width: 100%;
}

.status-banner {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 0.76rem;
  font-weight: 600;
}

@media (min-width: 640px) {
  .status-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.status-sending {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.status-sent {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.status-warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.status-err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.retry-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #fca5a5;
  color: #991b1b;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.compare-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 640px) {
  .compare-grid {
    margin-top: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
}

.compare-card {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-soft);
  border: 1.5px solid var(--border-subtle);
}

.compare-card.selected {
  border-color: var(--saffron);
  background: #fffaf2;
  box-shadow: var(--shadow-selected);
}

.compare-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.compare-name {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.compare-tag {
  padding: 2px 7px;
  border-radius: 9999px;
  background: var(--saffron-metallic);
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
}

.compare-price {
  margin-top: 6px;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-main);
}

.alloc-bar {
  margin-top: 12px;
  display: flex;
  height: 14px;
  width: 100%;
  border-radius: 9999px;
  overflow: hidden;
  background: #f1f5f9;
  padding: 2px;
  transform-origin: left center;
  animation: barGrow 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.alloc-seg {
  height: 100%;
}

.alloc-seg:first-child {
  border-top-left-radius: 9999px;
  border-bottom-left-radius: 9999px;
}

.alloc-seg:last-child {
  border-top-right-radius: 9999px;
  border-bottom-right-radius: 9999px;
}

.alloc-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 640px) {
  .alloc-grid {
    margin-top: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

.alloc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-subtle);
}

.alloc-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.alloc-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  flex-shrink: 0;
}

.alloc-label {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}

.alloc-pct {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}

.alloc-right {
  text-align: right;
  flex-shrink: 0;
}

.alloc-lakhs {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text-main);
}

.alloc-inr {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.summary-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 500px) {
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

.summary-cell {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-subtle);
}

.summary-cell dt {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.summary-cell dd {
  margin: 3px 0 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  word-break: break-word;
}

.summary-cell dd.highlight {
  color: var(--saffron-deep);
}

.disclaimer-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border-radius: var(--radius-lg);
  background: #fffbeb;
  border: 1.5px solid rgba(245, 158, 11, 0.55);
  font-size: 0.78rem;
  line-height: 1.5;
  color: #78350f;
}

.disclaimer-card svg {
  width: 18px;
  height: 18px;
  color: #d97706;
  flex-shrink: 0;
  margin-top: 2px;
}

.disclaimer-card p {
  margin: 0;
}

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

/* ==========================================================================
   Animations & Reduced Motion
   ========================================================================== */
.screen-enter {
  animation: screenIn 0.26s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.spin {
  animation: spinAnim 0.9s linear infinite;
}

@keyframes orbFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(16px, 20px, 0) scale(1.06);
  }
}

@keyframes screenIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes checkPop {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  70% {
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes priceReveal {
  0% {
    opacity: 0;
    transform: translate3d(0, 8px, 0) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes barGrow {
  0% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .ambient-orb,
  .screen-enter,
  .check-dot,
  .price-showcase,
  .alloc-bar,
  .spin {
    animation: none !important;
  }
  * {
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
