/* VOLBK Credit Tunnel - Frontend CSS */
.volbk-tunnel { max-width: 720px; margin: 0 auto; font-family: 'Segoe UI', Arial, sans-serif; color: #1a1a2e; }

/* Progress bar */
.vt-progress { display: flex; align-items: center; margin-bottom: 2rem; }
.vt-step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; position: relative; z-index: 1; }
.vt-connector { flex: 1; height: 2px; background: #e0e0e0; margin-bottom: 24px; transition: background .3s; }
.vt-connector.done { background: #0a4a99; }
.vt-dot { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #ddd; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: #999; transition: all .3s; }
.vt-step.active .vt-dot { border-color: #0a4a99; background: #0a4a99; color: #fff; }
.vt-step.done .vt-dot { border-color: #0a4a99; background: #e8f0fb; color: #0a4a99; }
.vt-step-label { font-size: 11px; color: #999; text-align: center; }
.vt-step.active .vt-step-label { color: #0a4a99; font-weight: 600; }

/* Sections */
.vt-section { display: none; }
.vt-section.active { display: block; }

/* Cards */
.vt-card { background: #fff; border: 1px solid #e8edf5; border-radius: 12px; padding: 24px; margin-bottom: 16px; box-shadow: 0 2px 12px rgba(10,74,153,.06); }
.vt-card-title { font-size: 16px; font-weight: 600; color: #0a4a99; margin: 0 0 20px; display: flex; align-items: center; gap: 8px; }

/* Range sliders */
.vt-range-group { margin-bottom: 20px; }
.vt-range-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.vt-range-header label { font-size: 13px; color: #555; font-weight: 500; }
.vt-range-val { font-size: 15px; font-weight: 700; color: #0a4a99; }
.vt-range-limits { display: flex; justify-content: space-between; font-size: 11px; color: #aaa; margin-top: 4px; }
input[type=range] { width: 100%; accent-color: #0a4a99; height: 6px; }

/* Fields */
.vt-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.vt-field label { font-size: 13px; color: #444; font-weight: 500; }
.vt-req { color: #e24b4a; }
.vt-field input, .vt-field select {
  height: 42px; padding: 0 12px; border-radius: 8px;
  border: 1.5px solid #dde3ed; font-size: 14px; color: #1a1a2e;
  background: #fff; transition: border-color .2s;
}
.vt-field input:focus, .vt-field select:focus { outline: none; border-color: #0a4a99; box-shadow: 0 0 0 3px rgba(10,74,153,.1); }
.vt-field.has-error input, .vt-field.has-error select { border-color: #e24b4a; }
.vt-error { font-size: 12px; color: #e24b4a; display: none; }
.vt-field.has-error .vt-error { display: block; }
.vt-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .vt-grid-2 { grid-template-columns: 1fr; } }

/* Results */
.vt-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
@media (max-width: 480px) { .vt-results { grid-template-columns: 1fr; } }
.vt-result-card { background: #f5f8fd; border-radius: 10px; padding: 14px 12px; text-align: center; }
.vt-result-card.highlight { background: #e8f0fb; }
.vt-result-label { font-size: 11px; color: #666; margin-bottom: 6px; }
.vt-result-val { font-size: 17px; font-weight: 700; color: #1a1a2e; }
.vt-result-card.highlight .vt-result-val { color: #0a4a99; }
.vt-note { font-size: 11px; color: #aaa; text-align: right; margin-top: 8px; }

/* Upload */
.vt-upload-zone {
  border: 2px dashed #c0cfe8; border-radius: 10px; padding: 28px 20px;
  text-align: center; cursor: pointer; transition: all .2s;
}
.vt-upload-zone:hover { border-color: #0a4a99; background: #f5f8fd; }
.vt-upload-icon { font-size: 28px; margin-bottom: 8px; }
.vt-upload-zone p { font-size: 13px; color: #666; margin: 0; }
.vt-upload-hint { font-size: 11px !important; color: #aaa !important; margin-top: 4px !important; }
.vt-upload-name { font-size: 13px; color: #0a6e56; font-weight: 600; margin-top: 8px; }

/* Recap */
.vt-recap-section { margin-bottom: 20px; }
.vt-recap-section-title { font-size: 11px; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.vt-recap-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; gap: 16px; }
.vt-recap-row:last-child { border-bottom: none; }
.vt-recap-row span { color: #666; }
.vt-recap-row strong { color: #1a1a2e; text-align: right; max-width: 60%; word-break: break-word; }
.vt-notice { background: #fff8e6; border: 1px solid #f0c36d; border-radius: 8px; padding: 12px 16px; font-size: 12px; color: #7a5000; line-height: 1.6; }

/* Buttons */
.vt-btn-row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.vt-btn-primary {
  background: #0a4a99; color: #fff; border: none; border-radius: 8px;
  padding: 12px 28px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s;
}
.vt-btn-primary:hover { background: #073a7a; }
.vt-btn-primary:disabled { background: #a0b8d8; cursor: not-allowed; }
.vt-btn-outline {
  background: transparent; color: #444; border: 1.5px solid #dde3ed;
  border-radius: 8px; padding: 12px 22px; font-size: 14px; cursor: pointer; transition: all .2s;
}
.vt-btn-outline:hover { background: #f5f8fd; border-color: #0a4a99; color: #0a4a99; }

/* Success */
.vt-success-card { text-align: center; padding: 40px 32px; }
.vt-success-icon { font-size: 52px; margin-bottom: 16px; }
.vt-success-card h2 { font-size: 20px; font-weight: 700; margin-bottom: 12px; color: #0a4a99; }
.vt-success-card p { font-size: 14px; color: #555; max-width: 440px; margin: 0 auto 20px; line-height: 1.7; }
.vt-ref-box { background: #f5f8fd; border-radius: 8px; padding: 12px 20px; display: inline-block; margin-bottom: 20px; font-size: 14px; }
.vt-ref-box strong { color: #0a4a99; font-size: 16px; margin-left: 8px; }
.vt-pdf-btn {
  display: inline-block; background: #0a6e56; color: #fff; text-decoration: none;
  border-radius: 8px; padding: 14px 32px; font-size: 15px; font-weight: 600; transition: background .2s;
}
.vt-pdf-btn:hover { background: #085041; color: #fff; }

/* Loading */
.vt-loading { text-align: center; padding: 40px; }
.vt-spinner {
  width: 36px; height: 36px; border: 3px solid #e8edf5;
  border-top-color: #0a4a99; border-radius: 50%;
  animation: vtSpin .8s linear infinite; margin: 0 auto 12px;
}
@keyframes vtSpin { to { transform: rotate(360deg); } }
.vt-global-error { background: #fff0f0; border: 1px solid #f0a0a0; border-radius: 8px; padding: 14px 16px; color: #c0392b; font-size: 14px; margin-top: 12px; }
