@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap");

* {
  font-family: "Open Sans";
}

.calc-container {
  max-width: 100%;
  padding: 50px 0;
}

.main-column {
  display: flex;
  gap: 20px;
}

.input-group-main-container {
  width: 100%;
}

.input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  margin-top: 0;
  position: relative;
  background-color: #fff;
  border-radius: 12px;
  padding: 15px 30px 15px 30px;
}

.input-group label {
  color: #06152b;
  font-weight: bold;
  display: block;
  font-size: 24px;
  line-height: 1.4em;
  letter-spacing: -0.7px;
}

.input-group label .label-sub {
  font-size: 13px;
  font-weight: 400;
}

#results p {
  font-size: 18px;
  margin: 10px 0;
}

/* 
Slide design */

/* General Input Group Styling */

.input-group input[type="range"] {
  width: 100%;
  padding: 0;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  box-sizing: border-box;
  margin-bottom: 10px;
}

/* Range Slider Customization */
.input-group input[type="range"] {
  -webkit-appearance: none; /* Remove default styling */
  appearance: none;
  width: 100%;
  height: 10px;
  background: linear-gradient(
    to right,
    #895bf1 0%,
    #895bf1 0%,
    #ccc 0%,
    #ccc 100%
  );
  border-radius: 10px;
  outline: none;
  cursor: pointer;
  margin-bottom: 10px;
}

/* Chrome, Safari, Edge, Opera */
.input-group input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 0;
  background: #94d8f0;
  border-radius: 10px;
  cursor: pointer;
}

.input-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; /* Remove default thumb */
  appearance: none;
  width: 25px;
  height: 25px;
  background: #895bf1;
  border-radius: 50%;
  cursor: pointer;
  margin-top: -12px;
}

/* Firefox */
.input-group input[type="range"]::-moz-range-track {
  width: 100%;
  height: 10px;
  background: #000;
  border-radius: 10px;
  cursor: pointer;
}

/* Firefox */
.input-group input[type="range"]::-moz-range-thumb {
  width: 25px;
  height: 25px;
  background: #895bf1; /* Blue color for the thumb */
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.input-group input[type="range"]:focus {
  outline: none;
}

/* Display Value Below Slider */
.input-group .input-values {
  letter-spacing: -1px;
  margin-bottom: 0;
  position: absolute;
  top: -35px;
  left: 0;
  transform: translateX(0);
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  font-family: "Open Sans", sans-serif;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 3px;
  pointer-events: none;
  white-space: nowrap;
  font-weight: 600;
  text-align: center;
}

.input-group .input-values::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.3) transparent transparent transparent;
}

.input-group .input-min-values {
  font-size: 21px;
  font-weight: bold;
  margin-top: 10px;
  letter-spacing: -0.7px;
  margin-bottom: 0;
}

.group-value-container {
  display: flex;
  justify-content: space-between;
}

.input-group .label-description {
  font-size: 12px;
  color: #809fb8;
  font-weight: 600;
  letter-spacing: -0.7px;
  margin-bottom: 50px;
}

/* Section Titles */

.section-title {
  font-size: 50px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #45116e;
}
.mini-section-title {
  font-size: 18px;
  letter-spacing: -1px;
  font-weight: bold;
  color: #06152b;
}

.roi-section-title {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: bold;
  color: #809fb8;
}

.calc-section {
  background-color: #fff;
  padding: 15px 30px;
  border-radius: 12px;
}

button {
  background-color: #895bf1 !important;
  color: white !important;
  border: none !important;
}

#monthly-breakdown-table tr th {
  min-width: 150px;
}

.item-title-left {
  color: #809fb8;
  font-size: 24px;
  font-weight: bold;
  letter-spacing: -0.7px;
  margin: 0;
  line-height: 2em;
}

.item-title-center {
  color: #809fb8;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: -0.7px;
  margin: 0;
  line-height: 1.2em;
  text-align: center;
  border-bottom: 1px solid #d9e1e7;
  box-sizing: border-box;
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
}

.item-title-center:nth-child(odd) {
  border-right: 1px solid #d9e1e7;
  box-sizing: border-box;
}

.item-title-center:nth-child(5) {
  border-bottom: none;
}

.item-title-center:last-child {
  border-bottom: none;
}

.item-price-left {
  color: #06152b;
  font-family: "Bebas Neue", sans-serif;
  font-size: 30px;
  font-weight: bold;
  letter-spacing: -2px;
  margin: 0;
}

.item-price-center {
  color: #06152b;
  font-family: "Bebas Neue", sans-serif;
  font-size: 35px;
  font-weight: bold;
  letter-spacing: -2px;
  margin: 0;
  line-height: 1.5em;
}

.results-group-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 430px;
}
.results-group-column {
  display: flex;
  gap: 20px;
}

.results-group-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 30px;
}

.progress-label {
  color: #809fb8;
  font-size: 20px !important;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: -1px;
  margin: 0;
  text-align: center;
}

.margin-per-user-column {
  width: 100%;
}

.progress-circle-container {
  width: 200px;
  margin: 20px auto;
  text-align: center;
  font-family: sans-serif;
}

.progress-circle {
  width: 100%;
  height: auto;
}

.circle-bg {
  fill: none;
  stroke: #d9e1e7; /* default background color */
  stroke-width: 3.8;
}

.circle {
  fill: none;
  stroke: #895bf1; /* progress color */
  stroke-width: 3.8;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dasharray 0.6s ease;
}

.percentage-text {
  font-size: 7px;
  fill: #0a1c2c; /* dark text */
  font-weight: bold;
}

/* Chart.js */

.roi-charts {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.chart-container {
  width: calc(50% - 10px);
  padding: 20px;
  background-color: #ffffff;
  border-radius: 12px;
  display: flex;
  justify-content: end;
  flex-direction: column;
}

.roi-inner-title {
  font-size: 16px;
  letter-spacing: -1px;
  font-weight: bold;
  color: #06152b;
  margin-bottom: 15px;
}

#calculations-section {
  display: none;
}

.analysis-section {
  width: calc(100% - 430px);
  margin-top: 40px;
}

.calculator-form-step-2 {
  margin-top: 80px;
}

.range-wrapper {
  position: relative;
  width: 100%;
}

@media screen and (max-width: 767px) {
  .main-column {
    flex-direction: column;
  }
  .results-group-section {
    max-width: 100%;
  }
  .analysis-section {
    width: 100%;
  }
  .roi-charts {
    flex-direction: column;
    width: 100%;
  }
  .chart-container {
    width: 100%;
  }
  .section-title {
    font-size: 35px;
    text-align: center;
  }
}

.generate-report-button {
  padding: 17px 35px;
  border-radius: 12px;
  background-color: #895bf1 !important;
  color: #fff !important;
  border: none !important;
  font-size: 16px;
  align-self: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

/*monthly breakdown table stlye*/

.monthly-breakdown-table-container {
  border-radius: 12px;
  padding: 30px;
  background-color: #fff;
  overflow: auto;
}

#monthly-breakdown-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -1px;
}

/* ===== HEADER ===== */
#monthly-breakdown-table thead {
  background-color: #d9e4ec;
}

#monthly-breakdown-table thead th {
  padding: 15px 10px;
  border: 1px solid #809fb8;
  border-top: none;
  text-align: center;
  color: #000;
  white-space: nowrap;
}

#monthly-breakdown-table thead tr th:first-child {
  border-top-left-radius: 12px;
  border-left: none;
}

#monthly-breakdown-table thead tr th:last-child {
  border-top-right-radius: 12px;
  border-right: none;
}

/* ===== BODY ===== */
#monthly-breakdown-table tbody td {
  padding: 5px;
  border: 1px solid #809fb8;
  text-align: center;
  vertical-align: middle;
  color: #000;
}

/* No left border for first column */
#monthly-breakdown-table tbody td:first-child {
  border-left: none;
}

/* No right border for last column */
#monthly-breakdown-table tbody td:last-child {
  border-right: none;
}

/* Row striping */
#monthly-breakdown-table tbody tr:nth-child(even) {
  background-color: #fff;
}

#monthly-breakdown-table tbody tr:nth-child(odd) {
  background-color: #f1f5f7;
}

/* Hover effect */
#monthly-breakdown-table tbody tr:hover {
  background-color: #f1f5f7;
}

/* ===== LAST ROW AS FOOTER ===== */
#monthly-breakdown-table tbody tr:last-child td {
  font-weight: bold;
  background-color: #00aeef;
  color: #fff;
  border-bottom: none;
  padding: 12px;
}

/* Footer: remove left/right borders and apply border-radius */
#monthly-breakdown-table tbody tr:last-child td:first-child {
  border-left: none;
  border-bottom-left-radius: 12px;
}

#monthly-breakdown-table tbody tr:last-child td:last-child {
  border-right: none;
  border-bottom-right-radius: 12px;
}

/* ===== INPUT STYLING ===== */
#monthly-breakdown-table input[type="number"] {
  width: 80px !important;
  font-size: 14px;
  font-weight: 600;
  color: #000;
  text-align: center;
  border: none;
  color: #000;
  background: transparent;
  padding: 5px 0;
  -moz-appearance: textfield;
}

#monthly-breakdown-table input[type="number"]::-webkit-outer-spin-button,
#monthly-breakdown-table input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* New Users Adjustment Buttons */
.user-adjust-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-adjust-buttons button {
  width: 20px !important;
  height: 20px !important;
  padding: 0;
  font-size: 14px;
  border-radius: 100%;
  background-color: #809fb8 !important;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
  line-height: 1.4em;
  display: flex;
  justify-content: center;
  align-items: center;
}

.user-adjust-buttons button:hover {
  background-color: #809fb8e3 !important;
}
