/* HEADER */
.loan-cal-header {
  text-align: center;
  padding: 30px 20px;
  margin: 40px auto 0px;
}

.loan-cal-header h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.loan-cal-header p {
  color: grey;
  margin: auto;
  font-size: 1.1rem;
}

/* calculator header badge */
.calculator-header {
  text-align: center;
  margin-bottom: 20px;
}

/* main form container */
.page {
  max-width: 1200px;
  margin: 40px auto 65px auto;
  padding: 20px 20px 28px;
  border: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
  background: rgba(255, 255, 255, 0.014);
  backdrop-filter: blur(5px);
  border-radius: 20px;
}

/* monthly revenue full‑width block */
.monthly-revenue-row {
  margin-bottom: 28px;
  margin-left: 22px;
  margin-right: 22px;
  margin-top: 16px;
}

/* two‑column layout: left + divider + right */
.calculator {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 28px;
  align-items: start;
  padding: 0 22px 20px;
}

/* vertical divider */
.divider {
  width: 1px;
  background: #d9dde3;
  min-height: 340px;
  margin-top: 24px;
}

/* every field group */
.field-group {
  margin-bottom: 5px;
}

/* labels */
.label {
  display: block;
  font-size: 19px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
}

/* dollar‑prefix input */
.input-with-prefix {
  display: flex;
  width: 100%;
  height: 45px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
}

.prefix {
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  color: #4b5563;
  font-weight: 600;
}

.input-with-prefix input,
.text-input,
.select-input {
  width: 100%;
  height: 45px;
  padding: 0 12px;
  font-size: 18px;
  outline: none;
  color: #8b8787;
}

.input-with-prefix input {
  border: 0;
  height: 43px;
  padding-left: 12px;
  border-radius: 0.5rem;
  background: transparent;
}

.text-input {
  margin-bottom: 10px;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: none;
}

.select-input {
  appearance: auto;
  padding-left: 16px;
  font-size: 17px;
  background: rgba(255, 255, 255, 0.12);
}

.slider-wrapper {
    position: relative;
    width: 100%;
    margin-top: 12px;
}

/* slider track */
.amount-slider {
    width: 100%;
    position: relative;
    z-index: 2;
    accent-color: #45e5fa;
}

/* segmented background */
.slider-segments {
    display: flex;
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    height: 6px;
    z-index: 1;
}

.slider-segments .segment {
    flex: 1;
    margin: 0 2px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
}

/* labels */
.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    font-size: 12px;
    color: #aaa;
}

/* optional glow when moving */
.amount-slider:active {
    filter: drop-shadow(0 0 6px rgba(69, 229, 250, 0.4));
}

/* right‑column vertical alignment */
.right-col {
  align-self: start;
}

/* button grids (credit score / time in business / business type) */
.button-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* industries dropdown options */
#industry option {
  color: black;
  font-size: 0.8rem;
}

/* style buttons in the button grids */
.option-btn {
  height: 45px;
  color: grey;
  font-size: 14px;
  cursor: pointer;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: none;
}

.option-btn:hover {
  background: #f8fafc;
  color: black;
}

.option-btn.active {
  background: linear-gradient(135deg, #0084ff, #00c2ff);
  color: #fff;
  border: 1px solid rgba(0, 132, 255, 0.9);
  transform: translateY(-2px);
}

/* field errors */
.field-error {
  color: #ff4d4d;
  font-size: 14px;
  margin-top: 8px;
  min-height: 18px;
}

/* footer buttons + note */
.cal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #d9dde3;
  margin-top: 20px;
  padding-top: 22px;
}

.reset-link {
  color: #548cd5;
  font-size: 15px;
  text-decoration: underline;
  background: transparent;
  border: 0;
  border-radius: 12px;
  padding: 12px 15px;
  cursor: pointer;
}

.reset-link:hover {
  color: #0084ff;
  transform: scaleX(1.05);
}

.calculate-btn {
  background: linear-gradient(90deg, #00f7ff, #0084ff, #00f7ff);
  background-size: 300% 100%;
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  padding: 12px 28px;
  animation: iridescentBW 3s linear infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calculate-btn:hover {
  background: linear-gradient(135deg, #3759f1, #043aee);
  transform: translateY(-4px);
}

/* legal note text */
.note {
  margin-top: 22px;
  color: #7a8491;
  font-size: 12px;
  line-height: 1.6;
}

/* media queries */
@media (max-width: 1300px) {
  .page {
    width: 96%;
  }
}

@media (max-width: 900px) {
  .calculator {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px;
  }

  .estimate-badge {
    width: 85%;
    justify-content: center;
  }

  .loan-cal-header h1 {
    font-size: 1.5rem;
  }

  .loan-cal-header p {
    font-size: 0.9rem;
  }

  .divider {
    display: none;
  }

  .cal-footer {
    gap: 16px;
    flex-direction: column;
    align-items: center;
  }

  .button-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .field-group {
    margin-bottom: 28px;
  }
}

@media (max-width: 600px) {
  .cal-result {
    width: 40% !important;
  }
}
