/*
|--------------------------------------------------------------------------
| iToolsEra Loan EMI Calculator
|--------------------------------------------------------------------------
|
| Page-level styles extracted from loanEmiCalculator.php
| v2.0.4
|
|--------------------------------------------------------------------------
*/

/*
    |--------------------------------------------------------------------------
    | Range Slider
    |--------------------------------------------------------------------------
    */

.custom-range {
  cursor: pointer;
}

/*
    |--------------------------------------------------------------------------
    | Mobile slider UX
    |--------------------------------------------------------------------------
    |
    | The slider remains a native range input.
    | JavaScript controls whether a mobile touch is allowed
    | to interact with it.
    |--------------------------------------------------------------------------
    */

@media (max-width: 767.98px) {
  .custom-range {
    touch-action: pan-y;
  }
}

#monthlyEMI {
  letter-spacing: -0.5px;
}

.table-responsive {
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 576px) {
  #monthlyEMI {
    font-size: 2.25rem;
  }
}

/*
 |--------------------------------------------------------------------------
 | Calculation Mode Description
 |--------------------------------------------------------------------------
 */

.calculation-mode-description {
  border-left: 3px solid currentColor;
  padding: 0.5rem 0.75rem;
}

.calculation-mode-description #calculationModeDescriptionTitle {
  font-size: 0.875rem;
}

/*
|--------------------------------------------------------------------------
| iToolsEra Mobile Safe Slider
|--------------------------------------------------------------------------
*/

.mobile-safe-slider {
  position: relative;
}

.mobile-safe-slider .slider-toggle {
  display: none;
}

@media (max-width: 767.98px) {
  .mobile-safe-slider .slider-toggle {
    display: inline-block;
  }

  .mobile-safe-slider .safe-range:disabled {
    opacity: 0.55;
    cursor: not-allowed;
  }

  .mobile-safe-slider.slider-active .safe-range {
    opacity: 1;
  }

  .mobile-safe-slider.slider-active .slider-toggle {
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.15);
  }

  @media (max-width: 767.98px) {
    .custom-range {
      min-height: 32px;
    }
  }
}

/*
 |--------------------------------------------------------------------------
 | V2.0.4 — Slider Value Confirmation Bubble
 |--------------------------------------------------------------------------
 | The selected value follows the native range thumb and gives users an
 | immediate visual confirmation without changing the underlying control.
 |--------------------------------------------------------------------------
 */

.loan-slider-value-wrap {
  position: relative;
  width: 100%;
  overflow: visible;
  padding-bottom: 1.85rem;
}

.loan-slider-value-wrap .custom-range {
  display: block;
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

.loan-slider-value-bubble {
  position: absolute;
  top: 1.8rem;
  left: 10px;
  z-index: 2;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
  min-width: 3.25rem;
  padding: 0.18rem 0.5rem;
  border: 1px solid rgba(67, 85, 194, 0.18);
  border-radius: 0.4rem;
  background: #fff;
  color: #4355c2;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.loan-slider-value-bubble::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-top: 1px solid rgba(67, 85, 194, 0.18);
  border-left: 1px solid rgba(67, 85, 194, 0.18);
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
}

@media (max-width: 767.98px) {
  .loan-slider-value-wrap {
    padding-bottom: 1.95rem;
  }

  .loan-slider-value-bubble {
    top: 1.85rem;
    font-size: 0.7rem;
    padding-left: 0.45rem;
    padding-right: 0.45rem;
  }
}

/*
 |--------------------------------------------------------------------------
 | V2.0.5 — User-facing content readability
 |--------------------------------------------------------------------------
 | Loan EMI content contains real paragraphs, lists and callouts. Keep the
 | section width readable and give each block enough vertical breathing room.
 |--------------------------------------------------------------------------
 */
.loan-emi-content .loan-emi-content-inner {
  width: 100%;
}

.loan-emi-content-section {
  padding: 0 0 1.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.loan-emi-content-section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.loan-emi-content-section h2 {
  margin: 0 0 0.8rem;
  font-size: 1.35rem;
  line-height: 1.35;
  color: #0f172a;
}

.loan-emi-content-body {
  color: #475569;
  font-size: 0.96rem;
  line-height: 1.75;
}

.loan-emi-content-body p {
  margin: 0 0 0.9rem;
}

.loan-emi-content-body p:last-child {
  margin-bottom: 0;
}

.loan-emi-content-body ul,
.loan-emi-content-body ol {
  margin: 0.4rem 0 1rem;
  padding-left: 1.35rem;
}

.loan-emi-content-body li {
  margin-bottom: 0.55rem;
}

.loan-emi-content-body strong {
  color: #1e293b;
}

.loan-emi-content-body .emi-content-callout {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid #4355c2;
  border-radius: 0.35rem;
  background: #f8f9ff;
}

.loan-emi-content-body .emi-content-table-wrap {
  margin: 1rem 0;
  overflow-x: auto;
}

.loan-emi-content-body .emi-content-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.loan-emi-content-body .emi-content-table th,
.loan-emi-content-body .emi-content-table td {
  padding: 0.7rem 0.75rem;
  border: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
}

.loan-emi-content-body .emi-content-table th {
  background: #f8fafc;
  color: #1e293b;
  font-weight: 600;
}

@media (max-width: 767.98px) {
  .loan-emi-content-section {
    padding-bottom: 1.35rem;
    margin-bottom: 1.35rem;
  }

  .loan-emi-content-section h2 {
    font-size: 1.18rem;
  }

  .loan-emi-content-body {
    font-size: 0.94rem;
    line-height: 1.68;
  }
}

/*
 |--------------------------------------------------------------------------
 | V2.0.6 — Helpful Guides
 |--------------------------------------------------------------------------
 | Keep the guide card visually consistent with the existing tool directory
 | while allowing the section to use the normal page container width.
 |--------------------------------------------------------------------------
 */
.loan-emi-helpful-guides {
  margin-top: 2.5rem;
}

.loan-emi-helpful-guide-card {
  height: 100%;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.75rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.loan-emi-helpful-guide-card-body {
  padding: 1.25rem 1.35rem;
}

.loan-emi-helpful-guide-title {
  margin: 0.15rem 0 0.65rem;
  font-size: 1.08rem;
  line-height: 1.45;
}

.loan-emi-helpful-guide-title a {
  color: #0f172a;
  text-decoration: none;
}

.loan-emi-helpful-guide-title a:hover,
.loan-emi-helpful-guide-title a:focus {
  color: #4355c2;
}

.loan-emi-helpful-guide-excerpt {
  margin: 0 0 0.9rem;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.65;
}

@media (max-width: 767.98px) {
  .loan-emi-helpful-guides {
    margin-top: 2rem;
  }

  .loan-emi-helpful-guide-card-body {
    padding: 1rem 1.1rem;
  }
}
