* {
  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(101, 163, 13, 0.2), transparent 30%),
    radial-gradient(circle at bottom right, rgba(101, 163, 13, 0.12), transparent 28%);
  pointer-events: none;
}

.loan-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #65a30d 40%, #d9f99d 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, #65a30d, #a3e635);
  box-shadow: 0 10px 25px rgba(101, 163, 13, 0.35);
  cursor: pointer;
}

.loan-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border: 4px solid #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, #65a30d, #a3e635);
  box-shadow: 0 10px 25px rgba(101, 163, 13, 0.35);
  cursor: pointer;
}

.loan-amount-input {
  width: 100%;
  height: 52px;
  border-radius: 18px;
  border: 1.5px solid #d9f99d;
  background: #f8fafc;
  padding: 0 52px 0 16px;
  font-size: 22px;
  font-weight: 800;
  color: #1e293b;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.loan-amount-input:focus {
  border-color: #65a30d;
  box-shadow: 0 0 0 4px #d9f99d;
}

.loan-amount-suffix {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 800;
  color: #94a3b8;
  pointer-events: none;
}


.category-tab {
  padding: 10px 8px;
  border-radius: 16px;
  border: 1.5px solid #d9f99d;
  background: #f8fafc;
  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: #65a30d;
  color: #65a30d;
}

.category-tab.is-active {
  background: linear-gradient(135deg, #65a30d, #4d7c0f);
  border-color: #65a30d;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(101, 163, 13, 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 #d9f99d;
  background: #f8fafc;
  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: #65a30d;
  box-shadow: 0 18px 35px rgba(101, 163, 13, 0.12);
}

.term-card.is-active {
  border-color: #65a30d;
  background: linear-gradient(180deg, #ecfccb 0%, #ffffff 100%);
  box-shadow: 0 20px 42px rgba(101, 163, 13, 0.16);
}

.term-check {
  position: absolute;
  right: 14px;
  top: 14px;
  display: grid;
  height: 24px;
  width: 24px;
  place-items: center;
  border-radius: 999px;
  background: #d9f99d;
  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: #65a30d;
  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(101, 163, 13, 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: #65a30d;
  background: #f7fee7;
}

.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: #65a30d;
  background: linear-gradient(135deg, #f7fee7, #f8fafc);
  box-shadow: 0 0 0 4px rgba(101, 163, 13, 0.12);
}

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

/* Application form: keep the site's red/cream identity in a quieter layout. */
:root {
  --form-ink: #0f172a;
  --form-muted: #64748b;
  --form-red: #4d7c0f;
  --form-line: #e2e8f0;
  --form-cream: #f1f5f9;
  --form-green: #247456;
}

[hidden] { display: none !important; }
body.consultation-open { overflow: hidden; }
.consultation-form.hidden, .photo-preview.hidden, #consultationSuccessPanel.hidden { display: none !important; }
.loan-form-panel {
  width: 100%;
  max-width: 760px;
  max-height: 92vh;
  max-height: 92dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  border-radius: 28px;
  background: var(--form-cream);
  color: var(--form-ink);
  box-shadow: 0 32px 100px #23161340;
  animation: form-arrive 220ms ease-out both;
}
.form-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 30px 32px 26px;
  border-top: 5px solid var(--form-red);
  border-bottom: 1px solid var(--form-line);
  background: radial-gradient(ellipse at 100% 0, #ecfccb 0, transparent 65%), #f8fafc;
}
.form-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 10px; font-weight: 800; letter-spacing: .15em; color: var(--form-red); }
.form-eyebrow > span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.form-heading h2 { margin: 10px 0 8px; font-size: 30px; line-height: 1.25; font-weight: 800; letter-spacing: -.045em; }
.form-intro { margin: 0; max-width: 400px; color: var(--form-muted); font-size: 13px; line-height: 1.7; }
.form-close { display: flex; align-items: center; gap: 12px; flex-shrink: 0; padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 12px; background: #fff9; color: #475569; font: inherit; font-size: 12px; cursor: pointer; }
.form-close span { font-size: 21px; line-height: 1; }
.form-close:hover { background: white; color: var(--form-red); }
.consultation-form { display: grid; gap: 16px; padding: 24px; }
.form-section { min-width: 0; padding: 24px; border: 1px solid var(--form-line); border-radius: 20px; background: white; }
.form-section-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 24px; }
.form-section-number { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border: 1px solid #ecfccb; border-radius: 11px; background: #f7fee7; color: #4d7c0f; font-size: 11px; font-weight: 800; }
.form-section-heading h3 { margin: 0; font-size: 16px; line-height: 1.45; font-weight: 800; letter-spacing: -.025em; }
.form-section-heading p { margin: 4px 0 0; font-size: 12px; color: var(--form-muted); line-height: 1.65; }
.form-section-tag { margin-left: auto; padding: 5px 9px; white-space: nowrap; border-radius: 7px; background: #e2e8f0; color: #64748b; font-size: 10px; font-weight: 700; }
.form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
.field-wide { grid-column: 1 / -1; }
.loan-form-panel label:not(.photo-upload-area) { display: block; margin-bottom: 8px; color: #334155; font-size: 12px; font-weight: 600; line-height: 1.6; }
.loan-form-panel input:not([type="checkbox"]):not([type="file"]):not([type="range"]):not([type="hidden"]),
.loan-form-panel select {
  width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px; border: 1px solid #e5ded7; border-radius: 11px;
  outline: none; background: #f8fafc; color: var(--form-ink); font-family: inherit; font-size: 14px; font-weight: 500;
  transition: border-color 150ms, box-shadow 150ms;
}
.loan-form-panel input::placeholder { color: #a59a92; font-weight: 400; }
.loan-form-panel input:focus, .loan-form-panel select:focus { border-color: #65a30d !important; box-shadow: 0 0 0 3px #65a30d10 !important; background: #fff !important; }
.loan-form-panel :focus-visible { outline: 2px solid var(--form-red); outline-offset: 3px; }
.loan-form-panel input:disabled, .loan-form-panel select:disabled { opacity: .65; }
.loan-form-panel .contact-pair, .device-fields .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-pair { border-top: 1px solid #e2e8f0; padding-top: 18px; }
.device-fields > * + * { margin-top: 18px; }
.identity-number { max-width: 340px; margin-bottom: 20px; }
.photo-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.loan-form-panel .photo-upload-area { position: relative; flex-direction: column; gap: 5px; min-height: 168px; border: 1px dashed #94a3b8; border-radius: 13px; background: repeating-linear-gradient(135deg, #f8fafc, #f8fafc 8px, #f1f5f9 8px, #f1f5f9 9px); }
.loan-form-panel .photo-upload-area:hover { border-color: var(--form-red); background: #f7fee7; }
.photo-upload-symbol { width: 38px; height: 38px; color: #475569; }
.loan-form-panel .photo-upload-placeholder { padding: 8px; font-size: 11px; font-weight: 700; color: #334155; line-height: 1.7; }
.photo-upload-placeholder small { display: block; font-size: 10px; font-weight: 400; color: #64748b; }
.loan-form-panel .photo-upload-area.has-photo { border-color: #a4c9b5; background: #f5fbf7; }
.has-photo .photo-upload-symbol { display: none; }
.loan-form-panel .photo-preview { max-height: 180px; }
.form-note { margin: 14px 0 0; color: #94a3b8; font-size: 11px; line-height: 1.7; }
.loan-form-panel #phoneModelCardTarget > div { padding: 0; border-radius: 0; background: transparent; box-shadow: none; --tw-ring-shadow: 0 0 #0000; }
.loan-form-panel .category-tab { padding: 8px 6px; border-radius: 9px; font-size: 12px; box-shadow: none; }
.loan-form-panel .term-card { min-height: 76px; border-radius: 12px; padding: 10px; box-shadow: none; }
.loan-form-panel .term-check { width: 18px; height: 18px; right: 8px; top: 8px; font-size: 11px; }
.loan-form-panel .form-consent { display: flex; align-items: flex-start; gap: 11px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--form-line); }
.form-consent input { width: 17px; height: 17px; margin-top: 3px; flex-shrink: 0; accent-color: var(--form-red); }
.loan-form-panel .form-consent label { margin: 0; font-size: 12px; font-weight: 400; line-height: 1.8; }
.form-submit-area { padding: 0 8px 4px; }
#consultationStatus { overflow-wrap: anywhere; }
#consultationStatus:empty { display: none; }
.form-submit-area #consultationStatus { margin-bottom: 14px; }
.form-submit-button, .transfer-retry { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 16px 22px; border: 0; border-radius: 13px; background: #4d7c0f; box-shadow: 0 8px 18px #3f621220; color: white; font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.form-submit-button > span:last-child { font-size: 21px; font-weight: 400; }
.form-submit-button:hover, .transfer-retry:hover { background: #3f6212; }
.form-submit-button:disabled { opacity: .6; cursor: wait; }
.form-submit-note { margin: 12px 0 0; text-align: center; font-size: 11px; line-height: 1.6; color: var(--form-muted); }

.transfer-panel { margin: 24px; padding: 32px; border: 1px solid var(--form-line); border-radius: 22px; background: white; }
.transfer-heading { text-align: center; }
.transfer-heading .form-eyebrow { justify-content: center; margin-top: 18px; font-size: 9px; }
.transfer-heading h3 { margin: 9px 0; font-size: 25px; font-weight: 800; letter-spacing: -.035em; line-height: 1.4; }
#transferDetail { min-height: 42px; margin: 0 auto; max-width: 430px; font-size: 12px; line-height: 1.8; color: var(--form-muted); overflow-wrap: anywhere; }
.transfer-orbit { position: relative; display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto; border-radius: 20px; background: #f7fee7; color: var(--form-red); }
.transfer-orbit::after { content: ""; position: absolute; inset: -5px; border: 1.5px solid #d9f99d; border-top-color: #65a30d; border-radius: 50%; animation: transfer-spin 1.8s linear infinite; }
.transfer-orbit svg { width: 29px; height: 29px; }
.transfer-steps { display: flex; gap: 8px; margin: 26px 0 24px; padding: 0; list-style: none; }
.transfer-steps li { display: flex; align-items: center; justify-content: center; gap: 9px; flex: 1; padding: 12px 5px; border-bottom: 2px solid #e2e8f0; color: #94a3b8; font-size: 12px; font-weight: 600; }
.transfer-steps li > span { font-size: 10px; }
.transfer-steps li[data-state="active"] { border-color: var(--form-red); color: var(--form-red); }
.transfer-steps li[data-state="done"] { border-color: #8eb6a0; color: var(--form-green); }
.transfer-meter-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 12px; font-weight: 600; }
.transfer-meter-label strong { color: var(--form-red); font-size: 13px; }
.transfer-meter { height: 9px; overflow: hidden; border-radius: 20px; background: #e2e8f0; }
.transfer-meter > div { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #84cc16, #4d7c0f); transition: width 250ms ease; }
.transfer-meter.is-indeterminate > div { width: 30% !important; animation: transfer-sweep 1.5s ease-in-out infinite; }
.transfer-meter-note { margin: 9px 0 22px; color: #94a3b8; font-size: 10px; line-height: 1.6; }
.transfer-photo-list { padding: 0; margin: 0; list-style: none; }
.transfer-photo-list li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid #e2e8f0; font-size: 12px; font-weight: 600; }
.transfer-photo-icon { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 40px; border-radius: 9px; background: #e2e8f0; color: #64748b; font-size: 11px; }
.transfer-photo-list small { display: block; margin-top: 3px; color: #64748b; font-size: 10px; font-weight: 400; }
.transfer-photo-list strong { margin-left: auto; font-size: 10px; white-space: nowrap; color: #64748b; }
.transfer-photo-list li[data-state="active"] strong { color: var(--form-red); }
.transfer-photo-list li[data-state="done"] strong { color: var(--form-green); }
.transfer-photo-list li[data-state="done"] .transfer-photo-icon { background: #edf6f0; color: var(--form-green); }
.transfer-reassurance { margin: 22px 0 0; padding: 12px 15px; border-radius: 10px; background: #f1f5f9; color: #64748b; font-size: 11px; line-height: 1.8; text-align: center; }
.transfer-retry { justify-content: center; margin-top: 18px; }
.transfer-panel[data-phase="error"] .transfer-orbit::after { animation: none; border-color: #d9f99d; }
.transfer-panel[data-phase="error"] .transfer-meter > div { background: #64748b; }
.loan-form-panel #consultationSuccessPanel { margin: 24px; }
@keyframes form-arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes transfer-spin { to { transform: rotate(360deg); } }
@keyframes transfer-sweep { from { transform: translateX(-100%); } to { transform: translateX(440%); } }
@media (max-width: 560px) {
  #consultationModal { padding: 10px; }
  .loan-form-panel { border-radius: 21px; max-height: 95vh; max-height: 95dvh; }
  .form-heading { padding: 22px 20px; gap: 10px; }
  .form-heading h2 { font-size: 27px; }
  .form-heading .form-eyebrow { font-size: 8px; }
  .form-intro { font-size: 11px; }
  .form-close { padding: 7px 9px; font-size: 10px; gap: 7px; }
  .loan-form-panel.is-transferring .form-heading { padding: 16px 20px; }
  .loan-form-panel.is-transferring .form-heading h2 { font-size: 22px; margin-bottom: 0; }
  .loan-form-panel.is-transferring .form-intro { display: none; }
  .consultation-form { padding: 14px; gap: 12px; }
  .form-section { padding: 18px 16px; border-radius: 16px; }
  .form-section-heading { gap: 10px; margin-bottom: 20px; }
  .form-section-heading h3 { font-size: 14px; }
  .form-section-heading p { font-size: 11px; }
  .form-section-number { height: 29px; flex-basis: 29px; border-radius: 9px; font-size: 10px; }
  .form-fields { grid-template-columns: 1fr; gap: 18px; }
  .loan-form-panel input:not([type="checkbox"]):not([type="file"]):not([type="range"]):not([type="hidden"]), .loan-form-panel select { font-size: 16px; }
  .photo-fields { grid-template-columns: 1fr; gap: 16px; }
  .loan-form-panel .photo-upload-area { min-height: 110px; flex-direction: row; gap: 14px; padding: 12px; }
  .loan-form-panel .photo-upload-placeholder { text-align: left; font-size: 12px; }
  .photo-upload-placeholder small { font-size: 11px; }
  .loan-form-panel .contact-pair, .device-fields .grid { grid-template-columns: 1fr; }
  .transfer-panel { padding: 26px 18px; margin: 14px; border-radius: 18px; }
  .transfer-heading h3 { font-size: 22px; }
  .transfer-steps li { font-size: 11px; }
  .loan-form-panel #consultationSuccessPanel { margin: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .loan-form-panel, .transfer-orbit::after, .transfer-meter.is-indeterminate > div { animation: none; }
  .transfer-meter > div { transition: none; }
}

/* ============================================================
   MOBILE-FIRST REDESIGN - BAN 2: TONE XANH DUONG / XANH NGOC  •  v=mobile1  •  2026-11-23
   Nguyên tắc: base = điện thoại (360-430px), desktop chỉ
   nới ra bằng min-width. Không đổi ID / class JS dùng,
   không đổi app.js, không đổi màu thương hiệu.
   ============================================================ */
html { -webkit-text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
button, .loan-option, .term-card, .photo-upload-area { touch-action: manipulation; }
img, svg { max-width: 100%; }

/* --- Loan option: dọn bản trùng màu xanh lá trong file gốc --- */
.loan-option { position: relative; background: #fff; border: 1.5px solid #d9f99d; }
.loan-option h3 { color: #1e293b; }
.loan-option p { color: #64748b; }
.loan-check {
  position: absolute; top: 10px; right: 10px; display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 999px;
  background: #d9f99d; color: transparent; font-size: 12px; font-weight: 800;
}
.loan-option.active { border-color: #65a30d; background: linear-gradient(135deg, #f7fee7, #f8fafc); box-shadow: 0 0 0 4px rgba(101, 163, 13, 0.12); }
.loan-option.active .loan-check { background: #65a30d; color: #fff; }
@media (hover: none) { .fintech-card:hover, .loan-option:hover { transform: none; } }

/* --- Trust chips --- */
.trust-chip {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 6px; border-radius: 14px; background: #fff;
  border: 1px solid #d9f99d; text-align: center; line-height: 1.35; font-weight: 600;
}
@media (min-width: 640px) {
  .trust-chip { flex-direction: row; justify-content: flex-start; padding: 0; background: transparent; border: 0; text-align: left; gap: 12px; }
}
@media (max-width: 639px) { .trust-chips { margin-top: 2px; } }

/* --- CTA: thanh dính đáy trên mobile, về chỗ cũ trên desktop --- */
@media (max-width: 1023px) {
  main { padding-bottom: 92px; }
  .cta-sticky {
    position: fixed; left: 12px; right: 12px; z-index: 40;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    padding: 10px; border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border: 1px solid rgba(101, 163, 13, 0.12);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  }
  .cta-sticky .trust-chips { display: none; }
  .cta-sticky .cta-button { min-height: 56px; }
  body.consultation-open .cta-sticky { display: none; }
}
@media (min-width: 1024px) {
  .cta-sticky { position: static; background: transparent; border: 0; box-shadow: none; padding: 0; }
}

/* --- Form / modal: bottom-sheet trên điện thoại --- */
.sheet-handle { display: none; }
@media (max-width: 767px) {
  #consultationModal { align-items: flex-end; padding: 0; }
  .loan-form-panel {
    max-height: 94vh; max-height: 94dvh;
    border-radius: 24px 24px 0 0;
    animation: sheet-up 260ms ease-out both;
  }
  .sheet-handle {
    display: block; width: 44px; height: 5px; margin: 10px auto 0;
    border-radius: 999px; background: #e5ded7; flex-shrink: 0;
  }
  .form-heading { position: sticky; top: 0; z-index: 5; padding: 18px 20px 16px; }
  .form-heading h2 { font-size: 22px; }
  /* Input 16px để iOS không tự zoom khi chạm vào */
  .loan-form-panel input:not([type="checkbox"]):not([type="file"]):not([type="range"]):not([type="hidden"]),
  .loan-form-panel select,
  .loan-amount-input { font-size: 16px; }
  .loan-form-panel input:not([type="checkbox"]):not([type="file"]):not([type="range"]):not([type="hidden"]),
  .loan-form-panel select { min-height: 52px; }
  .form-submit-area {
    position: sticky; bottom: 0; z-index: 5;
    background: var(--form-cream);
    padding: 12px 8px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--form-line);
  }
  .form-submit-button { min-height: 54px; font-size: 16px; border-radius: 14px; }
  .term-card { min-height: 64px; padding: 8px; }
  .loan-form-panel .term-card { min-height: 64px; }
  .term-card .text-lg { font-size: 16px; }
  .photo-fields { gap: 12px; }
  .loan-form-panel .photo-upload-area { min-height: 96px; }
  .loan-form-panel .photo-preview { max-height: 140px; }
  #consultationSuccessPanel a { min-height: 52px; }
}
@keyframes sheet-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* --- Số tiền vay: không tràn trên màn hẹp --- */
.loan-amount-input { font-size: 20px; }
@media (min-width: 640px) { .loan-amount-input { font-size: 22px; } }
#loanAmountLabel { overflow-wrap: anywhere; }
