.container{
  width:100%;
  max-width:1150px;
  display:grid;
  grid-template-columns:1fr 420px;
  gap:25px;
}

.calculator,
.result-box{
  background:#ffffff;
  border:1px solid #e2e8f0;
  border-radius:28px;
  padding:32px;
  box-shadow:0 10px 40px rgba(15,23,42,0.08);
}

/* LEFT SIDE */

.subtitle{
  color:#64748b;
  font-size:15px;
  margin-bottom:28px;
  line-height:1.6;
}

/* TOGGLE */

.currency-toggle{
  display:flex;
  background:#f1f5f9;
  border-radius:14px;
  overflow:hidden;
  margin-bottom:28px;
}

.currency-toggle button{
  flex:1;
  padding:15px;
  border:none;
  background:transparent;
  cursor:pointer;
  font-size:16px;
  font-weight:600;
  color:#334155;
  transition:0.3s;
}

.currency-toggle button.active{
  background:#2563eb;
  color:#fff;
}

/* INPUTS */

.input-group{
  margin-bottom:24px;
}

.input-group label{
  display:block;
  margin-bottom:10px;
  font-size:15px;
  color:#334155;
  font-weight:600;
}

.input-wrapper{
  position:relative;
}

.currency-symbol{
  position:absolute;
  left:18px;
  top:50%;
  transform:translateY(-50%);
  color:#64748b;
  font-size:18px;
  font-weight:600;
}

.input-group input,
.input-group select{
  width:100%;
  padding:17px 18px 17px 45px;
  border-radius:16px;
  border:1px solid #dbeafe;
  background:#f8fafc;
  color:#0f172a;
  font-size:16px;
  outline:none;
  transition:0.3s;
}

.input-group select{
  padding-left:18px;
}

.input-group input:focus,
.input-group select:focus{
  background:#fff;
  border-color:#3b82f6;
  box-shadow:0 0 0 4px rgba(59,130,246,0.15);
}

input::placeholder{
  color:#94a3b8;
}

/* RANGE */

.slider-box{
  margin-top:10px;
}

.slider-box input{
  width:100%;
  cursor:pointer;
}

.raise-display{
  margin-top:10px;
  text-align:right;
  font-size:20px;
  font-weight:700;
  color:#2563eb;
}

/* RIGHT SIDE */

.result-title{
  font-size:22px;
  margin-bottom:24px;
  color:#1e293b;
  font-weight:700;
}

.result-card{
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:20px;
  padding:22px;
  margin-bottom:18px;
}

.result-card h3{
  color:#64748b;
  font-size:14px;
  margin-bottom:10px;
  font-weight:600;
}

.result-value{
  font-size:32px;
  font-weight:700;
  color:#0f172a;
}

.highlight{
  color:#2563eb;
}

/* PROGRESS */

.progress-container{
  margin-top:28px;
}

.progress-header{
  display:flex;
  justify-content:space-between;
  margin-bottom:10px;
  color:#64748b;
  font-size:14px;
}

.progress-bar{
  width:100%;
  height:14px;
  background:#e2e8f0;
  border-radius:50px;
  overflow:hidden;
}

.progress{
  height:100%;
  width:0%;
  background:linear-gradient(90deg,#2563eb,#60a5fa);
  border-radius:50px;
  transition:0.5s;
}

/* SUMMARY */

.summary{
  margin-top:28px;
  background:#eff6ff;
  border:1px solid #bfdbfe;
  padding:20px;
  border-radius:18px;
  color:#1e3a8a;
  line-height:1.8;
  font-size:15px;
}

/* RATING */

.rating-box{
  margin-top:25px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  padding:20px;
  border-radius:20px;
}

.rating-title{
  margin-bottom:12px;
  font-size:15px;
  color:#475569;
  font-weight:600;
}

.rating{
  font-size:24px;
  font-weight:500;
  color:#2563eb;
}

/* MOBILE */

@media(max-width:950px){

  .container{
    grid-template-columns:1fr;
  }

}