.container{
  max-width:1400px;
  margin:auto;
  display:grid;
  grid-template-columns:1fr 420px;
  gap:30px;
}

.calculator{
  background:#fff;
  border-radius:25px;
  padding:35px;
  border:1px solid #e5e7eb;
  box-shadow:0 15px 40px rgba(0,0,0,0.08);
}

.result-box{
  background:#ffffff;
  color:#111827;
  border-radius:25px;
  padding:30px;
  position:sticky;
  top:20px;
  height:fit-content;
  border:1px solid #e5e7eb;
  box-shadow:0 15px 40px rgba(0,0,0,0.08);
}

.top-bar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:20px;
  margin-bottom:35px;
}


.currency-toggle{
  background:#f3f4f6;
  border-radius:50px;
  padding:5px;
  display:flex;
}

.currency-toggle button{
  border:none;
  background:transparent;
  padding:10px 22px;
  border-radius:50px;
  cursor:pointer;
  font-weight:700;
  transition:0.3s;
}

.currency-toggle button.active{
  background:#111827;
  color:#fff;
}

.grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}

.input-group{
  margin-bottom:25px;
}

.input-group label{
  display:block;
  margin-bottom:10px;
  font-weight:600;
  font-size:15px;
}

.input-wrapper{
  position:relative;
}

.symbol{
  position:absolute;
  left:15px;
  top:50%;
  transform:translateY(-50%);
  font-weight:700;
  color:#6b7280;
}

.input-group input,
.input-group select{
  width:100%;
  height:56px;
  border:1px solid #d1d5db;
  border-radius:15px;
  padding:0 18px 0 40px;
  font-size:16px;
  outline:none;
  transition:0.3s;
}

.input-group input:focus,
.input-group select:focus{
  border-color:#111827;
  box-shadow:0 0 0 4px rgba(17,24,39,0.08);
}

.range-value{
  margin-top:10px;
  font-size:14px;
}

input[type="range"]{
  width:100%;
  accent-color:#111827;
  cursor:pointer;
}

.calculate-btn{
  width:100%;
  height:60px;
  border:none;
  border-radius:16px;
  background:#111827;
  color:#fff;
  font-size:18px;
  font-weight:700;
  cursor:pointer;
  transition:0.3s;
  margin-top:10px;
}

.calculate-btn:hover{
  transform:translateY(-2px);
}

.result-title{
  font-size:28px;
  margin-bottom:25px;
  font-weight:700;
}

.result-card{
  background:#f9fafb;
  border:1px solid #e5e7eb;
  border-radius:18px;
  padding:10px;
  margin-bottom:12px;
}

.result-card span{
  display:block;
  color:#6b7280;
  margin-bottom:8px;
}


.progress-box{
  margin-top:25px;
}

.progress-head{
  display:flex;
  justify-content:space-between;
  margin-bottom:10px;
}

.progress{
  height:14px;
  background:rgba(255,255,255,0.15);
  border-radius:50px;
  overflow:hidden;
}

.progress-fill{
  height:100%;
  width:0%;
  background:#10b981;
  transition:1s;
}

.summary{
  margin-top:25px;
  background:#f3f4f6;
  padding:18px;
  border-radius:16px;
  line-height:1.7;
  color:#374151
}



@media(max-width:1000px){

  .container{
    grid-template-columns:1fr;
  }

  .result-box{
    position:relative;
    top:0;
  }

}

@media(max-width:700px){

  .grid{
    grid-template-columns:1fr;
  }

  .title{
    font-size:28px;
  }

}