/**
 * Loan Calculator Section - shared vaynhanh styles
 */

/* ── Outer section ── */
.vaynhanh-loan-simulate {
  position: relative;
  padding: 40px 0;
}

.vaynhanh-bg-loan-simulate {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  z-index: -1;
}

/* ── Card ── */
.vaynhanh-loan-simulate-body {
  max-width: 1200px;
  margin: 0 auto;
  background: #ffffff;
  /* Box-shadow approach: upward pink bar + downward shadow (matches Figma) */
  box-shadow: 0px 4px 8px rgba(1, 18, 34, 0.12), 0px -4px 0px #db036e;
  border-radius: 10px;
  padding: 32px;
}

/* ── Two-column layout ── */
.vaynhanh-loan-simulate-content {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 54px; /* Figma n_82118 gap */
}

/* ── Left: sliders ── */
.vaynhanh-loan-simulate-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px; /* Figma n_102dd gap */
}

/* Title: gradient, 32px, left-aligned */
.vaynhanh-calc-title {
  font-family: 'SF Pro Display', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 38px;
  letter-spacing: 0.01em;
  background: linear-gradient(104.22deg, #cc002e 0%, #ec1848 53.56%, #9a268f 110.57%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  margin: 0;
}

/* Each slider block (label+value row + slider area), gap: 8px */
.vaynhanh-slider-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Slider track + range labels, gap: 16px */
.vaynhanh-slider-area {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vaynhanh-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vaynhanh-slider-label {
  font-family: 'SF Pro Display', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 26px;
  color: #333333;
}

/* Value pill: border + text */
.vaynhanh-slider-value {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 8px 8px 8px 16px;
  gap: 4px;
  height: 40px;
  background: #ffffff;
  border: 1px solid #e7252b;
  border-radius: 4px;
  font-family: 'SF Pro Display', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 22px;
  color: #333333;
}

.vaynhanh-slider-value .vaynhanh-text-gray {
  color: #999999;
}

/* Slider track */
.vaynhanh-range-slider {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: #ffdad6;
  border-radius: 2px;
  cursor: pointer;
}

.vaynhanh-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.3);
  border: 2px solid #e7252b;
  cursor: pointer;
}

.vaynhanh-range-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: #ffffff;
  border-radius: 50%;
  border: 2px solid #e7252b;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

/* Min/Max labels */
.vaynhanh-slider-range {
  display: flex;
  justify-content: space-between;
}

.vaynhanh-loan-estimate {
  font-family: 'SF Pro Display', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 21px;
  color: #999999;
}

.vaynhanh-text-right {
  text-align: right;
}

/* ── Right: result card (pink bg) ── */
.vaynhanh-loan-simulate-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  gap: 16px; /* Figma n_63902 gap */
  background: #ffecee;
  border-radius: 15px;
}

.vaynhanh-result-heading {
  width: 100%;
  font-family: 'SF Pro Display', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 26px;
  text-align: center;
  color: #333333;
  margin: 0;
}

/* Dashed result card */
.vaynhanh-loan-result-card {
  box-sizing: border-box;
  width: 100%;
  min-height: 88px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 10px;
  border: 2px dashed #e7252b;
}

/* Amount number: 30px (Figma n_508b2 + n_e65e9) */
.vaynhanh-amount-total {
  font-family: 'SF Pro Display', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  font-size: 30px;
  line-height: 30px;
  text-align: center;
  color: #333333;
  margin: 0;
}

/* Warning note: 14px regular red (Figma n_b9cfb) */
.vaynhanh-amount-warning {
  max-width: 356px;
  font-family: 'SF Pro Display', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 19px;
  text-align: center;
  color: #e7252b;
  margin: 0;
}

/* "Đăng ký ngay" button: 150×40px, 16px */
.vaynhanh-btn-card-regist {
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0 24px;
  gap: 10px;
  height: 40px;
  background: #e7252b;
  border-radius: 50px;
  border: none;
  color: #ffffff;
  font-family: 'SF Pro Display', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 19px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: opacity 0.2s;
}

.vaynhanh-btn-card-regist:hover {
  opacity: 0.9;
}

.vaynhanh-btn-arrow {
  width: 12px;
  height: 11px;
  flex-shrink: 0;
}

/* ── Detail toggle section ── */
.vaynhanh-detail-section {
  margin-top: 24px;
}

/* Row: line — button — line */
.vaynhanh-detail-toggle-row {
  display: flex;
  align-items: center;
  gap: 18px; /* Figma n_eef45 gap */
  padding: 8px 0;
}

.vaynhanh-detail-line {
  flex: 1;
  height: 1px;
  background: #e5e5e5;
}

.vaynhanh-toggle-text {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #4c4c4c;
  cursor: pointer;
  font-family: 'SF Pro Display', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 19px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
}

.vaynhanh-chevron {
  width: 30px;
  height: 20px;
  transition: transform 0.2s ease;
  transform: rotate(180deg); /* default: chevron pointing down */
}

.vaynhanh-chevron--up {
  transform: rotate(0deg); /* when expanded: chevron pointing up */
}

/* ── Expanded details ── */
.vaynhanh-interest-details {
  margin-top: 16px;
}

.vaynhanh-interest-details-grid {
  display: flex;
  flex-direction: row;
  gap: 56px; /* Figma n_2ef45 gap */
  align-items: flex-start;
}

.vaynhanh-detail-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px; /* Figma n_710fb / n_6c288 gap */
}

/* "Lãi suất minh họa" / "Ví dụ:" — red, 16px bold */
.vaynhanh-detail-title {
  font-family: 'SF Pro Display', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 22px;
  color: #e7252b;
  margin: 0;
}

.vaynhanh-detail-text-group {
  display: flex;
  flex-direction: column;
  gap: 2px; /* Figma n_08227 gap */
}

/* Bullet list */
.vaynhanh-detail-list {
  margin: 0;
  padding-left: 1.25rem;
  list-style: disc;
}

.vaynhanh-detail-list li {
  font-family: 'SF Pro Display', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 25px;
  color: #333333;
}

.sub-list {
  margin-top: 8px;
  margin-left: 20px; /* lùi vào trong */
  list-style: none;  /* bỏ chấm mặc định */
  padding-left: 0;
}

.sub-list li::before {
  content: "- ";     /* thêm dấu gạch ngang */
  color: #000;       /* màu của dấu */
}

/* Sub-list with dashes (no bullets, custom prefix) */
.vaynhanh-detail-sublist {
  list-style: none;
  margin: 0;
  padding-left: 0.5rem;
}

.vaynhanh-detail-sublist li {
  font-family: 'SF Pro Display', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 19px;
  color: #333333;
}

/* Right column example text */
.vaynhanh-detail-text {
  font-family: 'SF Pro Display', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  color: #333333;
  margin: 0;
  white-space: pre-line;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .vaynhanh-loan-simulate-body {
    padding: 24px 16px;
  }

  .vaynhanh-loan-simulate-content {
    flex-direction: column;
    gap: 24px;
  }

  .vaynhanh-interest-details-grid {
    flex-direction: column;
    gap: 24px;
  }
}

