:root{
  --bg:#f6f8fc;
  --card:#ffffff;
  --text:#172033;
  --muted:#5d6b82;
  --line:#dbe3f0;
  --brand:#e67e22;
  --brand-dark:#c96713;
  --soft:#eef4ff;
  --shadow:0 18px 50px rgba(16, 24, 40, .10);
  --radius:20px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, #fff4ea 0%, transparent 28%),
    radial-gradient(circle at top right, #eef4ff 0%, transparent 30%),
    var(--bg);
  color:var(--text);
}

.wizard-shell{
  min-height:100vh;
  padding:32px 16px;
}

.wizard-card{
  max-width:980px;
  margin:0 auto;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:28px;
  box-shadow:var(--shadow);
  overflow:hidden;
}

.hero{
  padding:32px 32px 20px;
  background:linear-gradient(135deg, #fff8f2, #f8fbff);
  border-bottom:1px solid var(--line);
}

.badge{
  display:inline-block;
  padding:8px 12px;
  border-radius:999px;
  background:#fff;
  border:1px solid #ffd7b2;
  color:var(--brand-dark);
  font-weight:700;
  font-size:13px;
}

.hero h1{
  margin:16px 0 10px;
  font-size:clamp(30px, 4vw, 44px);
  line-height:1.1;
}

.lead{
  margin:0;
  font-size:18px;
  color:var(--muted);
  max-width:760px;
}

.progress-wrap{
  padding:20px 32px 0;
}
.progress-bar{
  height:10px;
  background:#edf1f7;
  border-radius:999px;
  overflow:hidden;
}
#progressFill{
  height:100%;
  width:10%;
  background:linear-gradient(90deg, var(--brand), #ffb05d);
  border-radius:999px;
  transition:width .25s ease;
}
.progress-text{
  margin-top:8px;
  color:var(--muted);
  font-size:14px;
}

form{
  padding:24px 32px 12px;
}

.step{
  display:none;
}
.step.active{
  display:block;
}

.step h2{
  margin:0 0 8px;
  font-size:28px;
}

.help{
  margin:0 0 22px;
  color:var(--muted);
  font-size:16px;
  line-height:1.6;
}

.options{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
}
.options.two{
  grid-template-columns:repeat(2, minmax(0, 1fr));
}
.options.compact{
  margin-top:18px;
}

.option-card{
  display:flex;
  align-items:stretch;
  gap:12px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:18px;
  padding:18px;
  cursor:pointer;
  transition:.2s ease;
  min-height:78px;
}
.option-card:hover{
  transform:translateY(-1px);
  border-color:#f2b171;
  box-shadow:0 8px 24px rgba(230,126,34,.08);
}
.option-card input{
  margin-top:4px;
  transform:scale(1.15);
}
.option-card span{
  font-size:17px;
  line-height:1.45;
}
.option-card:has(input:checked){
  border-color:var(--brand);
  background:#fff8f2;
  box-shadow:0 0 0 4px rgba(230,126,34,.12);
}

.field-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:16px;
}
.field-grid label{
  display:block;
}
.field-grid span{
  display:block;
  margin-bottom:8px;
  color:var(--muted);
  font-weight:600;
}
.field-grid input,
.lead-form input{
  width:100%;
  height:52px;
  border:1px solid var(--line);
  border-radius:14px;
  padding:0 16px;
  font-size:16px;
}

.checks{
  display:grid;
  gap:10px;
  margin-top:18px;
  color:var(--muted);
}

.wizard-actions{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-top:28px;
  padding-top:20px;
  border-top:1px solid var(--line);
}

.btn{
  height:50px;
  border:none;
  border-radius:14px;
  padding:0 20px;
  font-size:16px;
  font-weight:700;
  cursor:pointer;
}
.btn-primary{
  background:var(--brand);
  color:#fff;
}
.btn-primary:hover{
  background:var(--brand-dark);
}
.btn-secondary{
  background:#edf2f9;
  color:#1d2a40;
}
.hidden{
  display:none !important;
}

.results{
  padding:8px 32px 32px;
}
.result-head h2{
  margin:0 0 10px;
  font-size:30px;
}
.result-head p{
  margin:0 0 24px;
  color:var(--muted);
  font-size:17px;
  line-height:1.7;
}

.result-cards{
  display:grid;
  gap:18px;
}

.result-card{
display:grid;
grid-template-columns:220px 1fr;
gap:24px;
align-items:start;

background:#fff;
border-radius:14px;
padding:20px;
box-shadow:0 10px 25px rgba(0,0,0,0.08);

position:relative;
}

.result-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  background:#f3f5f9;
}
.result-card .result-body{
  padding:18px 18px 18px 0;
}

.card-image{
width:100%;
}

.card-image img{
width:100%;
height:auto;
border-radius:10px;
display:block;
}

.juci-pick{
position:absolute;
top:-10px;
left:20px;

background:#ff6b35;
color:white;
font-size:13px;
font-weight:600;

padding:6px 10px;
border-radius:8px;
}

@media (max-width:700px){

.result-card{
grid-template-columns:1fr;
}

.card-image{
order:-1;
}

}

.result-body{
display:flex;
flex-direction:column;
gap:14px;
}
.result-card h3{
  margin:0 0 8px;
  font-size:22px;
}
.result-meta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.pill{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background:#eef4ff;
  color:#27406a;
  font-size:13px;
  font-weight:700;
}
.result-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:12px;
  padding:12px 16px;
  border-radius:12px;
  background:var(--brand);
  color:#fff;
  font-weight:700;
  text-decoration:none;
}

.lead-box{
  margin-top:28px;
  border:1px solid var(--line);
  background:linear-gradient(135deg, #fff8f2, #f7fbff);
  border-radius:24px;
  padding:24px;
}
.lead-box h3{
  margin:0 0 8px;
  font-size:24px;
}
.lead-box p{
  margin:0 0 18px;
  color:var(--muted);
  line-height:1.6;
}
.lead-form{
  padding:0;
  display:grid;
  grid-template-columns:2fr 2fr auto;
  gap:12px;
}
.lead-message{
  margin-top:12px;
  font-weight:700;
}

@media (max-width: 900px){
  .options,
  .options.two,
  .field-grid,
  .lead-form{
    grid-template-columns:1fr;
  }

  .result-card{
    grid-template-columns:1fr;
  }

  .result-card .result-body{
    padding:0 18px 18px;
  }

  .hero,
  .progress-wrap,
  form,
  .results{
    padding-left:18px;
    padding-right:18px;
  }
}


.loading-overlay{
  position:fixed;
  inset:0;
  background:rgba(255,255,255,0.7);
  backdrop-filter:blur(4px);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  z-index:9999;
}

.spinner{
  width:50px;
  height:50px;
  border:4px solid #eee;
  border-top:4px solid #e67e22;
  border-radius:50%;
  animation:spin 0.8s linear infinite;
}

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


.result-section{
    margin: 20px;
}

.result-section.perfect{
background:#f6fbf7;
border:2px solid #3bb273;
padding:25px;
border-radius:14px;
}

.section-title{
font-size:24px;
margin-bottom:6px;
}

.section-title.secondary{
color:#555;
}

.section-sub{
color:#666;
margin-bottom:20px;
}

.result-grid{
display:flex;
flex-direction: column;
gap:20px;
padding: 20px;
}

.perfect-card{
border:2px solid #3bb273;
box-shadow:0 8px 20px rgba(0,0,0,0.08);
}

.match-badge{
display:inline-block;
background:#3bb273;
color:white;
padding:6px 10px;
border-radius:8px;
font-size:13px;
margin-bottom:10px;
}

.badge-list{
margin-top:10px;
display:flex;
flex-wrap:wrap;
gap:6px;
}

.badge{
font-size:12px;
padding:4px 8px;
border-radius:6px;
}

.badge.ok{
background:#e8f7ee;
color:#2b8a57;
}

.badge.warn{
background:#fff4e5;
color:#b87400;
}

.wizard-summary {
margin:20px 0;
padding:20px;
background:#f6f8fb;
border-radius:10px;
}

.wizard-summary h3{
margin-top:0;
}

.wizard-summary-list{
list-style:none;
padding:0;
margin:15px 0;
}

.wizard-summary-list li{
margin:6px 0;
}

.spec-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:10px;
margin:15px 0;
}

.spec{
background:#f6f8fb;
padding:10px;
border-radius:8px;
text-align:center;
}

.spec .label{
font-size:12px;
color:#666;
margin-bottom:4px;
}

.spec .stars{
color:#ffb400;
font-size:14px;
}

.spec .value{
font-weight:600;
font-size:13px;
}

.juci-pick{
background:#ffe9a8;
color:#6b4e00;
font-weight:600;
padding:6px 10px;
border-radius:6px;
margin-bottom:8px;
display:inline-block;
font-size:13px;
}

.spec-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:12px;
margin:18px 0;
}

.spec{
background:#f7f7f7;
padding:10px;
border-radius:8px;
text-align:center;
}

.spec .label{
font-size:12px;
color:#666;
margin-bottom:4px;
}

.spec .stars{
font-size:16px;
color:#f5a623;
margin-bottom:4px;
}

.spec .value{
font-size:13px;
color:#333;
}

.film-help{
max-width:1000px;
margin:auto;
padding:40px 20px;
font-family:system-ui;
}

.film-help h2{
font-size:28px;
margin-bottom:10px;
}

.help-lead{
font-size:16px;
color:#555;
margin-bottom:30px;
line-height:1.6;
}

.film-grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:24px;
}

.film-box{
background:#fff;
border-radius:12px;
padding:26px;
box-shadow:0 8px 25px rgba(0,0,0,0.06);
border:1px solid #eee;
position:relative;
}

.film-box h3{
margin-top:10px;
font-size:20px;
}

.film-icon{
font-size:32px;
}

.film-highlight{
font-weight:700;
color:#e53935;
margin:10px 0;
}

.film-box ul{
margin:14px 0;
padding-left:18px;
}

.film-box li{
margin-bottom:6px;
}

.film-note{
font-size:14px;
color:#777;
margin-top:12px;
}

.exterior{
border-top:4px solid #ff6b35;
}

.interior{
border-top:4px solid #3a86ff;
}

.film-important{
margin-top:30px;
background:#fff7e6;
border-left:5px solid #ff9800;
padding:20px;
border-radius:8px;
font-size:15px;
}

@media (max-width:768px){

.film-grid{
grid-template-columns:1fr;
}

.film-help{
padding:30px 16px;
}

}