* {
  box-sizing: border-box;
}

body {
  font-family: "Be Vietnam Pro", ui-sans-serif, system-ui;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(237, 28, 36, 0.2), transparent 30%),
    radial-gradient(circle at bottom right, rgba(247, 181, 0, 0.12), transparent 28%);
  pointer-events: none;
}

.loan-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ed1c24 40%, #fde7a7 40%);
  outline: none;
}

.loan-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border: 4px solid #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, #ed1c24, #f7b500);
  box-shadow: 0 10px 25px rgba(237, 28, 36, 0.35);
  cursor: pointer;
}

.loan-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border: 4px solid #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, #ed1c24, #f7b500);
  box-shadow: 0 10px 25px rgba(237, 28, 36, 0.35);
  cursor: pointer;
}

.category-tab {
  padding: 10px 8px;
  border-radius: 16px;
  border: 1.5px solid #fde7a7;
  background: #fffdf4;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.category-tab:hover {
  border-color: #ed1c24;
  color: #ed1c24;
}

.category-tab.is-active {
  background: linear-gradient(135deg, #ed1c24, #d8141d);
  border-color: #ed1c24;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(237, 28, 36, 0.25);
}

.term-card {
  position: relative;
  display: flex;
  min-height: 104px;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  border-radius: 16px;
  border: 1.5px solid #fde7a7;
  background: #fffdf4;
  padding: 12px;
  text-align: left;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.term-card:hover {
  transform: translateY(-2px);
  border-color: #ed1c24;
  box-shadow: 0 18px 35px rgba(237, 28, 36, 0.12);
}

.term-card.is-active {
  border-color: #ed1c24;
  background: linear-gradient(180deg, #fff5d8 0%, #ffffff 100%);
  box-shadow: 0 20px 42px rgba(237, 28, 36, 0.16);
}

.term-check {
  position: absolute;
  right: 14px;
  top: 14px;
  display: grid;
  height: 24px;
  width: 24px;
  place-items: center;
  border-radius: 999px;
  background: #ffe7a5;
  color: transparent;
  font-size: 13px;
  font-weight: 800;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.term-card.is-active .term-check {
  background: #ed1c24;
  color: #ffffff;
  transform: scale(1.02);
}

.result-card {
  border-radius: 28px;
  background: #ffffff;
  padding: 22px 20px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(247, 181, 0, 0.25);
}

@media (min-width: 768px) {
  .term-card {
    min-height: 120px;
  }

  .result-card {
    padding: 28px 24px;
  }
}

@media (min-width: 1024px) {
  .term-card {
    min-height: 132px;
  }

  .result-card--accent {
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.photo-upload-area {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  border-radius: 18px;
  border: 2px dashed #d1d5db;
  background: #fafafa;
  cursor: pointer;
  overflow: hidden;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.photo-upload-area:hover {
  border-color: #ed1c24;
  background: #fff8ef;
}

.photo-upload-area.has-photo {
  border-style: solid;
  border-color: #22c55e;
}

.photo-upload-placeholder {
  padding: 16px;
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  text-align: center;
}

.photo-preview {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
}

.loan-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #e6f4ea, #d1f0d9);
  border: 1px solid #b7e4c7;
  transition: 0.2s;
}

.loan-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.loan-option h3 {
  font-size: 16px;
  font-weight: 700;
  color: #2f855a;
}

.loan-option p {
  font-size: 13px;
  color: #4a5568;
}
/* Thêm vào cuối styles.css */
.loan-option {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.loan-option.active {
  border-color: #ed1c24;
  background: linear-gradient(135deg, #fff8ef, #fffdf4);
  box-shadow: 0 0 0 4px rgba(237, 28, 36, 0.12);
}

.section-title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}