#ap4-calculator-root{
  max-width:1400px;
  margin:auto;
  padding:40px 20px;
  font-family:Arial,sans-serif;
}

#ap4-calculator-root *{
  box-sizing:border-box;
}

.ap4-title{
  font-size:48px;
  font-weight:800;
  margin-bottom:10px;
  color:#222;
}

.ap4-sub{
  color:#666;
  font-size:18px;
  margin-bottom:40px;
}

.ap4-styles{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:24px;
}

.ap4-style-card{
  background:#fff;
  border-radius:26px;
  overflow:hidden;
  cursor:pointer;
  transition:.25s;
  border:2px solid transparent;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.ap4-style-card:hover{
  transform:translateY(-5px);
}

.ap4-style-card.active{
  border:2px solid #8cc63e;
}

.ap4-style-card img{
  width:100%;
  height:220px;
  object-fit:cover;
}

.ap4-style-content{
  padding:20px;
}

.ap4-style-name{
  font-size:24px;
  font-weight:700;
  margin-bottom:10px;
}

.ap4-style-desc{
  color:#666;
  line-height:1.5;
}

.ap4-next{
  display:none;
  margin-top:40px;
}

.ap4-next.active{
  display:block;
}

.ap4-panel{
  background:#fff;
  border-radius:28px;
  padding:30px;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.ap4-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}

.ap4-field{
  margin-bottom:20px;
}

.ap4-field label{
  display:block;
  margin-bottom:8px;
  font-weight:700;
}

.ap4-field input{
  width:100%;
  padding:16px;
  border-radius:16px;
  border:1px solid #ddd;
}

.ap4-visual{
  width:100%;
  height:260px;
  background:linear-gradient(180deg,#dbeafe,#eff6ff);
  border-radius:26px;
  overflow:hidden;
  position:relative;
  margin-bottom:30px;
}

.ap4-substrate{
  position:absolute;
  width:100%;
  height:100%;
  left:0;
  bottom:0;
  background:linear-gradient(180deg,#7c5a38,#4b3522);
}

.ap4-summary{
  background:#f7f7f7;
  padding:20px;
  border-radius:18px;
  margin-bottom:25px;
  line-height:1.7;
}

.ap4-btn{
  width:100%;
  padding:18px;
  border:none;
  border-radius:18px;
  background:#8cc63e;
  color:#fff;
  font-size:18px;
  font-weight:700;
  cursor:pointer;
}

.ap4-results-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:18px;
  margin-top:35px;
}

.ap4-result-box{
  background:#f7f7f7;
  border-radius:20px;
  padding:24px;
}

.ap4-result-title{
  color:#666;
  margin-bottom:10px;
}

.ap4-result-value{
  font-size:34px;
  font-weight:800;
  color:#222;
}

.ap4-section{
  margin-top:60px;
}

.ap4-section-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  margin-bottom:18px;
  gap:20px;
}

.ap4-section-title{
  font-size:28px;
  font-weight:800;
  margin:0 0 6px;
  color:#222;
}

.ap4-section-text{
  margin:0;
  color:#666;
  font-size:15px;
  line-height:1.5;
}

.ap4-all-link{
  color:#8cc63e;
  text-decoration:none;
  font-weight:700;
  white-space:nowrap;
  font-size:14px;
}

.ap4-carousel{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}

.ap4-product{
  min-width:220px;
  max-width:220px;
  background:#fff;
  border-radius:16px;
  overflow:hidden;
  border:1px solid #eee;
  transition:.2s;
  flex-shrink:0;
}
.ap4-product:hover{
  transform:translateY(-3px);
  box-shadow:0 10px 24px rgba(0,0,0,.08);
}

.ap4-product img{
  width:100%;
  height:170px;
  object-fit:cover;
}

.ap4-product-content{
  padding:14px;
}

.ap4-product-title{
  font-size:15px;
  font-weight:700;
  line-height:1.4;
  margin-bottom:10px;
  color:#222;
}

.ap4-product-desc{
  color:#666;
  font-size:13px;
  line-height:1.5;
  margin-bottom:14px;
}

.ap4-product-btn{
  display:block;
  width:100%;
  padding:10px;
  background:#8cc63e;
  color:#fff;
  text-align:center;
  border-radius:10px;
  text-decoration:none;
  font-weight:700;
  font-size:13px;
}

@media(max-width:1200px){

  .ap4-carousel{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

}

@media(max-width:768px){

  .ap4-grid{
    grid-template-columns:1fr;
  }

  .ap4-carousel{
  display:flex;
  gap:18px;
  overflow-x:auto;
  scroll-behavior:smooth;
  padding-bottom:10px;
}

.ap4-carousel::-webkit-scrollbar{
  height:8px;
}

.ap4-carousel::-webkit-scrollbar-thumb{
  background:#ddd;
  border-radius:20px;
}

  .ap4-title{
    font-size:36px;
  }

  .ap4-section-head{
    flex-direction:column;
    align-items:flex-start;
  }

}