/* =====================================
   VEHICLE LOAN CALCULATOR v2.0
===================================== */

.calc-wrap {
  padding: 20px 16px 40px;
  font-family: 'Segoe UI', sans-serif;
}

/* =====================================
   GRID
===================================== */

.calc-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

/* =====================================
   LEFT CARD
===================================== */

.calc-left {
  background: #00153a;
  border-radius: 12px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* RING */
.ring-wrap {
  position: relative;
  width: 200px;
  height: 200px;
}

.ring-svg {
  width: 200px;
  height: 200px;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: #12284d;
  stroke-width: 14;
}

.premium-ring-progress {
  fill: none;
  stroke: #78e3f9;
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: 565;
  stroke-dashoffset: 565;
  transition: stroke-dashoffset 0.4s ease;
}

.ring-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ring-label {
  color: #8aa3c7;
  font-size: 9px;
  letter-spacing: 1.2px;
  font-weight: 600;
}

.ring-amount {
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  margin: 4px 0 2px;
}

.ring-sub {
  color: #8aa3c7;
  font-size: 10px;
}

/* STATS */
.calc-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.stat-box {
  background: #08214a;
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
}

.stat-box span {
  display: block;
  color: #8aa3c7;
  font-size: 9px;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 6px;
}

.stat-box strong {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

/* VEHICLE BOX */
.vehicle-box {
  background: #08214a;
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.vehicle-box span {
  display: block;
  color: #8aa3c7;
  font-size: 9px;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 6px;
}

.vehicle-box strong {
  display: block;
  color: #78e3f9;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

/* =====================================
   RIGHT FORM
===================================== */

.calc-right {
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 24px rgba(0, 21, 58, 0.07);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #888;
}

.form-group select {
  height: 46px;
  border: 1.5px solid #e0e8f0;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 14px;
  color: #222;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
  appearance: auto;
}

.form-group select:focus {
  border-color: #78e3f9;
}

/* LABEL ROW */
.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.label-row label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #888;
}

.label-row strong {
  font-size: 13px;
  color: #00153a;
  font-weight: 700;
}

/* SLIDER */
#kilometers {
  width: 100%;
  accent-color: #78e3f9;
  cursor: pointer;
  height: 4px;
}

.range-ends {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #bbb;
  margin-top: 4px;
}

/* TERM BUTTONS */
.term-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.term-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1.5px solid #e0e8f0;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: #333;
  transition: all 0.2s;
  padding: 0;
}

.term-btn:hover {
  border-color: #78e3f9;
  color: #00153a;
}

.term-btn.active {
  background: #00153a;
  color: #fff;
  border-color: #00153a;
}

/* =====================================
   ESTIMATE BOX
===================================== */

.estimate-box {
  border-top: 1.5px solid #f0f0f0;
  padding-top: 18px;
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.estimate-content {
  flex: 1;
  min-width: 0;
}

.estimate-content span {
  font-size: 10px;
  letter-spacing: 1px;
  font-weight: 700;
  color: #aaa;
  display: block;
  margin-bottom: 4px;
}

.estimate-amount {
  font-size: 38px;
  font-weight: 800;
  color: #00153a;
  margin: 4px 0;
  line-height: 1;
}

.estimate-box p {
  color: #999;
  font-size: 12px;
  margin: 0;
}

/* APPLY BUTTON */
.estimate-btn-wrap {
  flex-shrink: 0;
}

.estimate-apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #78e3f9;
  color: #00153a;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: all 0.25s ease;
  border: 2px solid transparent;
}

.estimate-apply-btn:hover {
  background: #00153a;
  color: #78e3f9;
  border-color: #78e3f9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(120, 227, 249, 0.25);
  text-decoration: none;
}

.estimate-apply-btn svg {
  transition: transform 0.2s ease;
}

.estimate-apply-btn:hover svg {
  transform: translateX(3px);
}

/* =====================================
   RESPONSIVE
===================================== */

@media screen and (min-width: 320px) and (max-width: 480px) {
  .calc-wrap {
    padding: 20px 0px 40px;
  }
}

@media (max-width: 768px) {

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

  .calc-left {
    padding: 24px 20px;
  }

  .ring-wrap,
  .ring-svg {
    width: 170px;
    height: 170px;
  }

  .ring-amount {
    font-size: 26px;
  }

  .estimate-amount {
    font-size: 30px;
  }

  .estimate-apply-btn {
    padding: 12px 18px;
    font-size: 13px;
  }

}

@media (max-width: 560px) {

  .estimate-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .estimate-btn-wrap {
    width: 100%;
  }

  .estimate-apply-btn {
    width: auto;
    justify-content: center;
    padding: 14px 20px;
    font-size: 15px;
  }

}

@media (max-width: 420px) {



  .two-col {
    grid-template-columns: 1fr;
  }

  .term-btn {
    width: 40px;
    height: 40px;
    font-size: 12px;
  }

}