/* Nasabah 2.4 — responsive form, clear progress and consistent controls. */
:root { --canvas: #f3f6fa; --line: #dce5ee; }
[hidden] { display: none !important; }
button, input, select, textarea { font-family: inherit; }
:where(button,a,input,select,textarea):focus-visible { outline: 3px solid #4296ee; outline-offset: 3px; }
.container { width: min(1200px,calc(100% - 48px)); }
.intro { padding-top: 40px; }
.intro-copy h1 { letter-spacing: -.04em; line-height: 1.12; max-width: 720px; }
.intro-copy>p:last-child { max-width: 600px; color: #d5e2ec; }
.intro-slide { transition: opacity .6s ease; transform: none; }
.intro-slide.active { transform: none; }
.intro-slider-dot { width: 30px; height: 6px; padding: 0; border-radius: 6px; }
.intro-slider-dots { gap: 8px; }
.slider-toggle { border: 1px solid #ffffff60; color: #fff; background: #0c2d4590; border-radius: 8px; font-family: inherit; font-weight: 600; font-size: 11px; line-height: 1.3; padding: 8px 10px; cursor: pointer; margin-left: 8px; }
.workspace, .application-shell { border-radius: 22px; box-shadow: 0 12px 45px #12314b09; }
.workspace-wrap { position: relative; z-index: 2; }
.calculator-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.calculator-panel, .result-panel, .form-field, .form-section-heading>div { min-width: 0; }
.btn { min-height: 48px; border-radius: 12px; gap: 9px; font-size: 14px; line-height: 1.4; }
.btn:disabled { cursor: not-allowed; opacity: .6; transform: none; }
.btn-primary { background: #1262c7; box-shadow: 0 4px 12px #1262c71a; }
.btn .bi { width: 19px; height: 19px; flex: 0 0 19px; }
:is(.form-section-icon,.upload-icon,.step-number,.wizard-step-number,.close-application,.menu-toggle,.floating-whatsapp,.scroll-top) {
  display: grid; place-items: center; padding: 0; flex-shrink: 0; line-height: 1;
}
:is(.form-section-icon,.upload-icon) { width: 42px; min-width: 42px; height: 42px; border-radius: 12px; }
:is(.form-section-icon,.upload-icon)>.bi { width: 20px; height: 20px; font-size: 20px; margin: 0; }
.bi { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; flex-shrink: 0; }
.bi>svg { display: block; width: 1em; height: 1em; flex: 0 0 auto; margin: 0; }
.floating-whatsapp { width: 52px; height: 52px; }
.floating-whatsapp .bi { width: 25px; height: 25px; font-size: 25px; }
.application-section { scroll-margin-top: 90px; }
.application-header { padding: 30px 34px; background: #112f48; gap: 16px; }
.application-header p { font-size: 14px; line-height: 1.7; color: #c9d8e4; }
.application-kicker { font-size: 11px; color: #b3dae5; }
.application-header h2 { line-height: 1.25; letter-spacing: -.025em; }
.application-form { padding: 0; }
.summary-item { padding: 18px 24px; background: #f4f8fc; }
.summary-item span { font-size: 12px; }
.summary-item strong { font-size: 17px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.form-wizard { padding: 0 22px; background: #fff; }
.wizard-step { border: 0; border-radius: 0; background: transparent; cursor: pointer; text-align: left; padding: 20px 12px; font: inherit; }
.wizard-step:disabled { cursor: default; opacity: .7; }
.wizard-step-copy strong { font-size: 13px; }
.wizard-step-copy small { font-size: 10px; }
.wizard-step-number { width: 32px; height: 32px; font-size: 12px; }
.form-step { padding: 32px 34px; }
.form-section-heading { margin-bottom: 24px; gap: 13px; align-items: center; }
.form-section-heading h3 { font-size: 20px; letter-spacing: -.025em; margin: 0 0 5px; }
.form-section-heading p { font-size: 13px; line-height: 1.6; margin: 0; color: #5b7085; }
.form-grid { gap: 20px; }
.form-grid--three { grid-template-columns: repeat(2,minmax(0,1fr)); }
.form-field--wide { grid-column: 1/-1; }
.form-field label { font-size: 13px; color: #29435b; }
.form-field .text-input, .form-field select { min-height: 48px; padding: 12px 14px; font-size: 15px; border: 1px solid #cbd8e4; border-radius: 10px; background: #fff; color: #16334c; width: 100%; min-width: 0; }
.form-field textarea.text-input { min-height: 96px; resize: vertical; }
.text-input::placeholder { color: #7d8d9f; opacity: 1; }
.form-field small { font-size: 12px; }
.optional-mark { font-size: 11px; color: #697d8f; }
.form-hint-strip { display: flex; align-items: flex-start; gap: 9px; padding: 13px 16px; margin: 0 0 24px; background: #f0f6fb; color: #4a657b; border-radius: 10px; font-size: 12px; }
.field-validation { margin-top: 7px; color: #b33645; font-size: 12px; line-height: 1.5; }
.text-input[aria-invalid=true], select[aria-invalid=true] { border-color: #c24552; background: #fffafa; }
.consent { align-items: flex-start; font-size: 13px; line-height: 1.7; }
.consent input { width: 19px; height: 19px; min-height: 19px; padding: 0; margin: 3px 0 0; flex: 0 0 19px; accent-color: #1262c7; }
.form-step-actions { gap: 12px; margin-top: 28px; padding-top: 22px; }
.form-step-actions .btn { min-width: 130px; }
.signature-grid { gap: 20px; }
.signature-card { min-width: 0; }
.signature-pad { height: 180px; background: #fff; }
.signature-pad canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.signature-name-preview { overflow-wrap: anywhere; }
.upload-intro { padding: 16px 18px; align-items: center; background: #eff6fc; color: #1a3650; }
.upload-intro strong { font-size: 14px; }
.upload-intro span { font-size: 12px; color: #4d667e; }
.upload-grid { gap: 16px; align-items: stretch; }
.upload-card { padding: 18px; gap: 12px; background: #fff; border-radius: 14px; align-content: start; }
.upload-card:hover { transform: none; }
.upload-card strong { font-size: 14px; color: #1a3650; line-height: 1.45; }
.upload-card small { font-size: 12px; color: #61768a; }
.upload-badge { font-size: 9px; padding: 4px 8px; letter-spacing: .04em; }
.upload-card input[type=file] { min-width: 0; font-size: 12px; padding: 8px; min-height: 44px; }
input[type=file]::file-selector-button { border: 0; background: #edf3fa; color: #195ca4; font-family: inherit; font-weight: 600; font-size: 12px; line-height: 1.5; padding: 7px 10px; border-radius: 7px; margin-right: 8px; cursor: pointer; }
.upload-card.is-invalid { border-color: #d85f69; background: #fff7f8; }
.upload-feedback { grid-column: 1/-1; display: flex; align-items: center; gap: 10px; }
.upload-feedback>span { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 12px; line-height: 1.5; }
.upload-feedback button { background: transparent; color: #8e3a49; border: 1px solid #d7c2c6; border-radius: 7px; padding: 6px 10px; font: inherit; font-size: 11px; cursor: pointer; }
.upload-feedback button[hidden] { display: none; }
.upload-progress-copy { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: #506c84; margin-bottom: 18px; }
.upload-progress-copy strong { color: #16764e; }
.upload-progress-copy strong.is-invalid { color: #b33645; }
.application-review { margin-top: 28px; border: 1px solid #dbe5ef; border-radius: 14px; overflow: hidden; }
.application-review>header { padding: 18px 20px; border-bottom: 1px solid #dbe5ef; background: #f6f9fc; }
.application-review h3 { font-size: 18px; margin: 0; }
.application-review p { font-size: 12px; margin: 4px 0 0; color: #61768a; }
.review-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding: 20px; gap: 18px 22px; }
.review-grid span, .review-grid strong { display: block; }
.review-grid span { font-size: 11px; color: #65798d; margin-bottom: 4px; }
.review-grid strong { font-size: 14px; color: #1b374f; overflow-wrap: anywhere; }
.submission-panel { background: #f8fafc; padding: 22px; border: 1px solid #e1e8ef; border-radius: 14px; }
.form-message.visible { display: flex; gap: 10px; align-items: center; margin: 20px 32px; font-size: 13px; }
.service-status { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin: 20px 32px; padding: 14px 16px; background: #fff5df; border: 1px solid #f1d69f; color: #71561e; border-radius: 10px; font-size: 13px; }
.service-status button { flex-shrink: 0; background: #fff; border: 1px solid #c3aa79; border-radius: 7px; padding: 7px 12px; cursor: pointer; color: #71561e; font: inherit; }
.submission-success { padding: 40px 24px; }
.submission-success p { font-size: 14px; max-width: 530px; margin: 12px auto; }
.submission-success .submission-code { overflow-wrap: anywhere; font-size: 17px; max-width: 100%; }
.receipt-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.privacy-note { font-size: 12px; align-items: flex-start; }
.toast { max-width: min(440px,calc(100vw - 32px)); font-size: 13px; }
@media (max-width: 900px) {
  .calculator-grid { grid-template-columns: minmax(0,1fr); }
  .form-wizard { grid-template-columns: repeat(5,minmax(0,1fr)); overflow: visible; padding: 0 14px; }
  .wizard-step { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 7px; padding: 16px 3px; }
  .wizard-step-copy small { display: none; }
  .wizard-step-copy strong { font-size: 11px; white-space: normal; }
  .intro-trust { display: none; }
}
@media (max-width: 620px) {
  .container { width: calc(100% - 28px); }
  .workspace, .application-shell { border-radius: 16px; }
  .application-header { padding: 24px 20px; }
  .application-header h2 { font-size: 25px; }
  .application-header p { font-size: 13px; }
  .application-kicker { font-size: 9px; }
  .summary-item { padding: 13px 10px; }
  .summary-item span { font-size: 10px; line-height: 1.4; }
  .summary-item strong { font-size: 13px; }
  .form-step { padding: 24px 20px; }
  .form-grid, .form-grid--three { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .form-field--wide { grid-column: auto; }
  .form-field .text-input, .form-field select { font-size: 16px; }
  .form-section-heading h3 { font-size: 18px; }
  .form-section-heading p { font-size: 12px; }
  .form-step-actions { flex-wrap: wrap; }
  .form-step-actions .btn { min-width: 0; flex: 1 1 120px; }
  .signature-grid, .upload-grid, .review-grid { grid-template-columns: 1fr; }
  .submission-panel { padding: 16px; }
  .upload-card { padding: 16px; }
  .form-message.visible, .service-status { margin: 16px 20px; }
  .service-status { align-items: flex-start; flex-direction: column; }
  .floating-actions { right: 16px; bottom: 20px; }
  .form-wizard { padding-inline: 6px; }
  .wizard-step-copy strong { font-size: 10px; }
  .progress-bar { display: none; }
  .upload-progress-copy { align-items: flex-start; flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
