/* ── RESET (scoped) ── */
.calc-shell *, .calc-shell *::before, .calc-shell *::after { box-sizing: border-box; }

:root {
  --sc-bg: #F2F0EB; --sc-white: #ffffff; --sc-dark: #1C1C1A;
  --sc-gold: #C8904A; --sc-gold-light: #D9A069;
  --sc-text: #2A2A26; --sc-muted: #7A7A72; --sc-border: #E0DDD7;
  --sc-radius: 4px; --sc-transition: 0.18s ease;
}

/* ── LAYOUT ── */
.calc-shell { max-width: 1100px; margin: 0 auto; min-height: 100vh; padding-bottom: 100px; background: var(--sc-bg); font-family: 'Jost', sans-serif; color: var(--sc-text); font-weight: 400; }

/* ── PROGRESS ── */
.calc-shell .progress-bar-wrap { position: sticky; top: 0; z-index: 10; background: var(--sc-white); border-bottom: 1px solid var(--sc-border); padding: 0 48px; }
.calc-shell .progress-track { height: 3px; background: var(--sc-border); border-radius: 2px; margin: 0 0 10px; }
.calc-shell .progress-fill { height: 3px; background: var(--sc-gold); border-radius: 2px; transition: width 0.4s ease; width: 0%; }
.calc-shell .progress-labels { display: flex; justify-content: space-between; padding: 8px 0 10px; font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sc-muted); }
.calc-shell .progress-labels span.active { color: var(--sc-gold); }

/* ── MAIN ── */
.calc-shell .main-panel { padding: 0 48px 80px; background: var(--sc-bg); }
.calc-shell .step { display: none; padding-top: 48px; }
.calc-shell .step.active { display: block; }
.calc-shell .step-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sc-gold); background: rgba(200,144,74,0.1); border: 1px solid rgba(200,144,74,0.25); border-radius: 20px; padding: 5px 14px; margin-bottom: 20px; }
.calc-shell .step-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--sc-gold); }
.calc-shell .step-title { font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 600; line-height: 1.2; color: var(--sc-text); margin-bottom: 10px; }
.calc-shell .step-desc { font-size: 15px; color: var(--sc-muted); line-height: 1.6; margin-bottom: 36px; max-width: 520px; }

/* ── CARDS GRID ── */
.calc-shell .cards-grid { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 16px !important; margin-bottom: 40px; }
.calc-shell .cards-grid.two-col { grid-template-columns: repeat(2, 1fr) !important; }
/* ── STYLE CARDS — 2 / 2 / 1 layout ── */
.calc-shell .sc-style-grid { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; margin-bottom: 40px; }
.calc-shell .sc-style-grid .card-img { height: 260px !important; min-height: 260px !important; }
.calc-shell .sc-style-last { grid-column: 1 / -1; max-width: 50%; }
.calc-shell #garage-cards { grid-template-columns: repeat(3, 1fr) !important; }

/* ── OPTION CARD ── */
.calc-shell .option-card { position: relative; background: #ffffff; border: 1.5px solid #E0DDD7 !important; border-radius: 4px; padding: 0 0 16px; cursor: pointer; transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease; user-select: none; overflow: hidden; display: flex; flex-direction: column; }
.calc-shell .option-card:hover { border-color: #D9A069 !important; box-shadow: 0 4px 16px rgba(0,0,0,0.08); transform: translateY(-2px); }
.calc-shell .option-card.selected { border-color: #C8904A !important; box-shadow: 0 0 0 1px #C8904A, 0 4px 16px rgba(200,144,74,0.15); }
.calc-shell .option-card.selected::after { content: '✓'; position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; background: #C8904A; color: #fff; border-radius: 50%; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; z-index: 2; }

/* ── CARD IMAGE — fixed height, uniform, with fallback placeholder ── */
.calc-shell .card-img { width: 100% !important; height: 180px !important; min-height: 180px !important; display: block !important; object-fit: cover !important; object-position: center 55% !important; border-radius: 4px 4px 0 0; margin-bottom: 12px; flex-shrink: 0; background-color: #E0DDD7; }

.calc-shell .card-title { font-family: 'Playfair Display', serif; font-size: 14px; font-weight: 600; color: var(--sc-text); padding: 0 14px; margin-bottom: 4px; }
.calc-shell .card-desc { font-size: 11px; color: var(--sc-muted); line-height: 1.5; padding: 0 14px; }

/* ── SLIDER ── */
.calc-shell .slider-section { background: var(--sc-white); border: 1.5px solid var(--sc-border); border-radius: var(--sc-radius); padding: 28px 32px; margin-bottom: 32px; }
.calc-shell .slider-label-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.calc-shell .slider-label { font-size: 13px; font-weight: 500; color: var(--sc-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.calc-shell .slider-value { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 600; color: var(--sc-text); }
.calc-shell .slider-value span { font-size: 16px; color: var(--sc-muted); font-family: 'Jost', sans-serif; font-weight: 400; }
.calc-shell input[type="range"] { -webkit-appearance: none; width: 100%; height: 4px; border-radius: 2px; background: var(--sc-border); outline: none; cursor: pointer; }
.calc-shell input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--sc-gold); border: 3px solid var(--sc-white); box-shadow: 0 2px 8px rgba(0,0,0,0.2); cursor: grab; }
.calc-shell input[type="range"]::-webkit-slider-thumb:active { cursor: grabbing; }
.calc-shell .slider-range-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--sc-muted); margin-top: 10px; }

/* ── RADIO ── */
.calc-shell .radio-row { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.calc-shell .radio-option { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--sc-white); border: 1.5px solid var(--sc-border); border-radius: var(--sc-radius); cursor: pointer; transition: border-color var(--sc-transition); }
.calc-shell .radio-option:hover { border-color: var(--sc-gold-light); }
.calc-shell .radio-option.selected { border-color: var(--sc-gold); }
.calc-shell .radio-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--sc-border); flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: border-color var(--sc-transition); }
.calc-shell .radio-option.selected .radio-dot { border-color: var(--sc-gold); background: var(--sc-gold); }
.calc-shell .radio-option.selected .radio-dot::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.calc-shell .radio-label { font-size: 14px; font-weight: 500; color: var(--sc-text); }

/* ── SECTION DIVIDER ── */
.calc-shell .section-divider { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sc-muted); margin: 28px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--sc-border); }

/* ── NAV ── */
.calc-shell .nav-row { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--sc-border); margin-top: 8px; }
.calc-shell .btn { padding: 13px 32px; border-radius: 2px; font-family: 'Jost', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; border: none; transition: all var(--sc-transition); }
.calc-shell .btn-next { background: var(--sc-dark); color: var(--sc-white); }
.calc-shell .btn-next:hover { background: #000; }
.calc-shell .btn-back { background: transparent; color: var(--sc-muted); border: 1.5px solid var(--sc-border); }
.calc-shell .btn-back:hover { border-color: var(--sc-text); color: var(--sc-text); }

/* ── LEAD FORM ── */
.calc-shell .lead-input { width: 100%; padding: 12px 14px; background: var(--sc-white); border: 1.5px solid var(--sc-border); border-radius: 2px; color: var(--sc-text); font-family: 'Jost', sans-serif; font-size: 14px; outline: none; transition: border-color var(--sc-transition); margin-bottom: 14px; }
.calc-shell .lead-input:focus { border-color: var(--sc-gold); }
.calc-shell .lead-label { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--sc-muted); margin-bottom: 6px; }
.calc-shell .btn-submit { width: 100%; padding: 16px; background: var(--sc-gold); color: #fff; border: none; border-radius: 2px; font-family: 'Jost', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; transition: background var(--sc-transition); }
.calc-shell .btn-submit:hover { background: #b07a38; }

/* ── SUCCESS ── */
.calc-shell .success-state { text-align: center; padding: 32px 0; }
.calc-shell .success-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--sc-gold); color: #fff; font-size: 24px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.calc-shell .success-state h3 { font-family: 'Playfair Display', serif; font-size: 24px; color: var(--sc-text); margin-bottom: 10px; }
.calc-shell .success-state p { font-size: 14px; color: var(--sc-muted); line-height: 1.6; }

/* ── INFO MODAL ── */
.sc-info-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 10000; align-items: center; justify-content: center; }
.sc-info-overlay.open { display: flex; }
.sc-info-modal { background: #fff; border-radius: 6px; padding: 32px; max-width: 420px; width: 90%; position: relative; }
.sc-info-modal h4 { font-family: 'Playfair Display', serif; font-size: 20px; margin-bottom: 10px; }
.sc-info-modal p { font-size: 14px; color: #7A7A72; line-height: 1.6; }
.sc-modal-close { position: absolute; top: 14px; right: 14px; background: none; border: none; font-size: 20px; cursor: pointer; color: #7A7A72; }

/* ── LUXURY NOTE ── */
.calc-shell .luxury-note { display: none; background: rgba(200,144,74,0.1); border: 1px solid rgba(200,144,74,0.3); border-radius: 4px; padding: 12px 16px; margin-bottom: 20px; font-size: 13px; color: var(--sc-gold); font-weight: 500; }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .calc-shell .progress-bar-wrap, .calc-shell .main-panel { padding-left: 20px; padding-right: 20px; }
  .calc-shell .cards-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .calc-shell .sc-style-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .calc-shell .sc-style-grid .card-img { height: 200px !important; min-height: 200px !important; }
  .calc-shell #garage-cards { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 520px) {
  .calc-shell .cards-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .calc-shell .sc-style-grid { grid-template-columns: 1fr !important; }
  .calc-shell .sc-style-last { max-width: 100%; grid-column: auto; }
  .calc-shell .sc-style-grid .card-img { height: 200px !important; min-height: 200px !important; }
  .calc-shell #garage-cards { grid-template-columns: repeat(2, 1fr) !important; }
  .calc-shell .step-title { font-size: 22px; }
  .calc-shell .step-desc { font-size: 13px; }
  .calc-shell .card-img { height: 130px !important; min-height: 130px !important; }
  .calc-shell .card-title { font-size: 11px; }
  .calc-shell .card-desc { font-size: 10px; }
  .calc-shell .btn { padding: 12px 20px; font-size: 12px; }
  .calc-shell .btn-submit { font-size: 13px; }
  .calc-shell .lead-input { font-size: 16px; }
}
