/* --- OVERLAY --- */
.cibil-overlay { position: fixed; inset: 0; background: rgba(5, 8, 16, 0.55); backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; z-index: 10000; padding: 24px; }
.cibil-overlay[hidden] { display: none; }

/* --- MODAL --- */
.cibil-modal { background: #ffffff; border-radius: 24px; width: 100%; max-width: 600px; max-height: 92vh; display: flex; flex-direction: column; box-shadow: 0 20px 40px rgba(0,0,0,0.2); overflow: hidden; font-family: 'Inter', sans-serif; }

/* --- HEADER --- */
.cibil-header { background: #0a1633; padding: 24px; display: flex; align-items: center; justify-content: space-between; }
.cibil-header-left { display: flex; align-items: center; gap: 16px; }
.cibil-header-icon { width: 44px; height: 44px; border-radius: 12px; background: #d99b22; display: flex; align-items: center; justify-content: center; }
.cibil-header h3 { color: #ffffff; margin: 0 0 4px; font-size: 20px; font-weight: 700; }
.cibil-header p { color: #d99b22; margin: 0; font-size: 13px; }
.cibil-close { background: rgba(255,255,255,0.1); border: none; color: #fff; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* --- STEPS --- */
.cibil-steps { display: flex; align-items: center; justify-content: space-between; padding: 20px 32px; background: #ffffff; }
.cibil-step { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #a0aec0; }
.cibil-step span { width: 24px; height: 24px; border-radius: 50%; background: #edf2f7; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.cibil-step.active { color: #0a1633; }
.cibil-step.active span { background: #0033A0; color: #fff; }
.cibil-step-line { flex: 1; height: 2px; background: #edf2f7; margin: 0 12px; }
.cibil-step-line.active { background: #0033A0; }

/* --- BODY --- */
.cibil-body { padding: 0 32px 32px; overflow-y: auto; }
.cibil-hint { font-size: 14px; color: #4a5568; margin: 0 0 24px; line-height: 1.5; }

/* --- FORM ELEMENTS --- */
.cibil-field { margin-bottom: 20px; }
.cibil-field label { display: block; font-size: 12px; font-weight: 700; color: #4a5568; text-transform: uppercase; margin-bottom: 6px; letter-spacing: 0.5px; }
.cibil-field small { display: block; font-size: 11px; color: #a0aec0; margin-bottom: 8px; margin-top: -4px; }
.cibil-field input, .cibil-field select { width: 100%; padding: 14px 16px; background: #f7fafc; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 15px; color: #1a202c; outline: none; transition: all 0.2s; box-sizing: border-box; }
.cibil-field input:focus, .cibil-field select:focus { border-color: #3182ce; background: #fff; box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1); }
.cibil-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cibil-row-split { display: flex; gap: 16px; margin-top: 24px; }

/* --- BUTTONS --- */
.cibil-btn-primary { width: 100%; padding: 16px; background: #2b9deb; color: #ffffff; font-size: 16px; font-weight: 700; border: none; border-radius: 12px; cursor: pointer; transition: background 0.2s; }
.cibil-btn-primary:hover { background: #1c86d1; }
.cibil-btn-ghost { padding: 16px 24px; background: #ffffff; color: #4a5568; font-size: 16px; font-weight: 700; border: 1px solid #e2e8f0; border-radius: 12px; cursor: pointer; }
.cibil-btn-ghost:hover { background: #f7fafc; }
.cibil-btn-link { background: none; border: none; color: #4a5568; font-size: 13px; cursor: pointer; padding: 0; text-decoration: underline; }
.cibil-otp-footer { display: flex; justify-content: space-between; margin-top: -10px; margin-bottom: 24px; }

/* --- PAYMENT BOX --- */
.cibil-amount-card { background: #f7fafc; border: 1px solid #e2e8f0; border-radius: 16px; padding: 24px; margin-bottom: 20px; }
.cibil-amount-label { font-size: 12px; font-weight: 700; color: #718096; text-transform: uppercase; margin: 0 0 8px; }
.cibil-amount-value { font-size: 42px; font-weight: 800; color: #1a202c; margin: 0 0 16px; }
.cibil-amount-value span { font-size: 14px; font-weight: 400; color: #718096; }
.cibil-amount-rows { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid #e2e8f0; padding-top: 16px; }
.cibil-amount-rows div { display: flex; justify-content: space-between; font-size: 14px; color: #4a5568; }
.cibil-amount-rows div span:last-child { font-weight: 600; color: #1a202c; }
.cibil-secure-note { display: flex; align-items: flex-start; gap: 12px; background: #f7fafc; padding: 16px; border-radius: 10px; font-size: 13px; color: #718096; line-height: 1.5; }

/* --- CONSENT --- */
.cibil-consent { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; color: #4a5568; margin-bottom: 24px; line-height: 1.5; }
.cibil-consent input { width: 18px; height: 18px; margin-top: 2px; }

/* --- ERRORS --- */
.cibil-error { background: #fff5f5; color: #c53030; padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 20px; border: 1px solid #feb2b2; }

@media (max-width: 600px) {
  .cibil-row { grid-template-columns: 1fr; gap: 0; }
  .cibil-body { padding: 0 20px 20px; }
  .cibil-header { padding: 20px; }
}