/* Application flow styles */
.app-wrap { padding: 40px 0 80px; }
.app-grid { display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: start; }
@media (max-width: 940px) { .app-grid { grid-template-columns: 1fr; } .app-aside { order: -1; } }

/* aside */
.app-aside {
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  color: #fff; border-radius: var(--radius-lg); padding: 30px 28px;
  position: sticky; top: 96px; overflow: hidden;
}
.app-aside::after { content:""; position:absolute; right:-50px; bottom:-50px; width:200px; height:200px; background: radial-gradient(circle, rgba(246,216,123,.14), transparent 70%); }
.app-aside h2 { color:#fff; font-size: 24px; position:relative; z-index:1; }
.app-aside .sub { color: rgba(255,255,255,.72); font-size: 14px; margin: 12px 0 22px; position:relative; z-index:1; }
.aside-checks { list-style:none; padding:0; margin:0 0 24px; display:grid; gap:14px; position:relative; z-index:1; }
.aside-checks li { display:flex; gap:11px; align-items:flex-start; font-size: 14px; color: rgba(255,255,255,.9); }
.aside-checks .ck { width:22px;height:22px;border-radius:50%; background: rgba(246,216,123,.22); color: var(--gold-300); display:grid;place-items:center; flex:none; }
.aside-checks .ck svg { width:13px;height:13px; }
.aside-note { background: rgba(255,255,255,.10); border:1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 16px 18px; position:relative; z-index:1; }
.aside-note b { font-family: var(--font-ui); color:#fff; font-size: 14.5px; display:block; margin-bottom: 6px; }
.aside-note p { color: rgba(255,255,255,.74); font-size: 13px; margin:0; }

/* summary card */
.summary-card { margin-top: 18px; background:#fff; border:1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.summary-card h3 { font-size: 16px; margin-bottom: 16px; display:flex; align-items:center; gap:8px; }
.sum-row { display:flex; justify-content:space-between; gap: 16px; padding: 9px 0; font-size: 14px; border-bottom: 1px solid var(--line-soft); }
.sum-row .k { color: var(--ink-500); }
.sum-row .v { font-family: var(--font-ui); font-weight: 700; color: var(--ink-900); }
.sum-total { display:flex; justify-content:space-between; padding-top: 14px; margin-top: 6px; border-top: 2px solid var(--line); }
.sum-total .k { font-family: var(--font-ui); font-weight: 800; font-size: 18px; color: var(--ink-900); }
.sum-total .v { font-family: var(--font-ui); font-weight: 800; font-size: 22px; color: var(--navy-700); }
.secure-note { display:flex; gap:9px; align-items:flex-start; margin-top:16px; background: var(--green-100); border-radius: var(--radius-sm); padding: 11px 13px; font-size: 12.5px; color: var(--green-600); }
.secure-note svg { width:16px; height:16px; flex:none; margin-top:1px; }

/* main panel */
.app-panel { background:#fff; border:1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.panel-head { background: linear-gradient(110deg, var(--navy-700), var(--navy-800)); color:#fff; padding: 20px 28px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.panel-head h2 { color:#fff; font-size: 18px; }
.panel-head .step-pill { background: rgba(255,255,255,.16); border-radius:999px; padding:7px 14px; font-family:var(--font-ui); font-weight:700; font-size:12.5px; white-space:nowrap; }

/* stepper tabs */
.stepper { display:grid; grid-template-columns: repeat(3,1fr); gap: 12px; padding: 22px 28px 4px; }
.stepper .st { display:flex; align-items:center; justify-content:center; gap:9px; padding: 13px; border-radius: var(--radius); font-family:var(--font-ui); font-weight:700; font-size:14.5px; border:1.5px solid var(--line); color: var(--ink-400); background:#fff; }
.stepper .st .dot { width:22px;height:22px;border-radius:50%; display:grid;place-items:center; background:var(--line-soft); color:var(--ink-400); font-size:12px; flex:none; }
.stepper .st.done { border-color: var(--green-100); background: var(--green-100); color: var(--green-600); }
.stepper .st.done .dot { background: var(--green-600); color:#fff; }
.stepper .st.active { border-color: var(--navy-400); background: var(--navy-50); color: var(--navy-700); box-shadow: 0 0 0 3px rgba(62,127,208,.10); }
.stepper .st.active .dot { background: var(--navy-700); color:#fff; }
@media (max-width:560px){ .stepper{ grid-template-columns:1fr; } }

.panel-body { padding: 24px 28px 28px; }
.alert {
  display:flex; gap:11px; align-items:flex-start; background: var(--green-100);
  border:1px solid #c7e7d6; border-radius: var(--radius); padding: 14px 16px; margin-bottom: 24px; font-size: 14px; color: var(--ink-700);
}
.alert .ic { width:24px;height:24px;border-radius:6px;background:var(--green-600);display:grid;place-items:center;flex:none; }
.alert .ic svg { width:15px;height:15px;color:#fff; }
.alert b { color: var(--green-600); font-family:var(--font-ui); }

.section-label { display:flex; align-items:center; gap:10px; font-family:var(--font-ui); font-weight:800; font-size:16px; color:var(--ink-900); margin: 26px 0 16px; }
.section-label::before { content:""; width:4px; height:18px; background: var(--navy-700); border-radius:2px; }
.section-label:first-child { margin-top: 6px; }

/* form fields */
.field-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
@media (max-width:560px){ .field-grid{ grid-template-columns:1fr; } }
.field { display:flex; flex-direction:column; gap:7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family:var(--font-ui); font-weight:600; font-size:13.5px; color:var(--ink-700); }
.field label .req { color: var(--red-600); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 14.5px; color: var(--ink-900);
  padding: 12px 14px; border:1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-soft); transition: border .15s, box-shadow .15s; width:100%;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-300); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline:none; border-color: var(--navy-400); background:#fff; box-shadow: 0 0 0 3px rgba(62,127,208,.12);
}
.field textarea { resize: vertical; min-height: 92px; }
.field .hint { font-size: 12px; color: var(--ink-400); }
.field.err input, .field.err select { border-color: var(--red-600); background: var(--red-100); }
.field .errmsg { font-size: 12px; color: var(--red-600); font-weight:500; }
.phone-row { display:grid; grid-template-columns: 96px 1fr; gap: 8px; }

/* applicant cards */
.applicant-block { border:1.5px solid var(--line); border-radius: var(--radius-lg); padding: 22px; margin-bottom: 18px; position:relative; }
.applicant-block.collapsed { padding: 16px 22px; }
.ab-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.ab-head .who { display:flex; align-items:center; gap:12px; }
.ab-head .av { width:38px;height:38px;border-radius:10px; background: var(--navy-100); color: var(--navy-700); display:grid;place-items:center; font-family:var(--font-ui); font-weight:800; flex:none; }
.ab-head .who b { font-family:var(--font-ui); font-size:15.5px; color:var(--ink-900); display:block; }
.ab-head .who small { font-size:12.5px; color:var(--ink-400); }
.icon-btn { background:none; border:1px solid var(--line); border-radius:8px; width:34px;height:34px; display:grid;place-items:center; cursor:pointer; color:var(--ink-500); transition: .15s; }
.icon-btn:hover { border-color: var(--red-600); color: var(--red-600); background: var(--red-100); }
.ab-actions { display:flex; gap:8px; }
.add-applicant { width:100%; border: 2px dashed var(--navy-200, #c5d6ee); background: var(--navy-50); color: var(--navy-700); border-radius: var(--radius); padding: 16px; font-family:var(--font-ui); font-weight:700; font-size:14.5px; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:10px; transition:.15s; }
.add-applicant:hover { background: var(--navy-100); border-color: var(--navy-400); }

/* nav buttons */
.panel-nav { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top: 30px; padding-top: 24px; border-top:1px solid var(--line); }
.total-pill { display:flex; align-items:center; gap:12px; background: var(--navy-50); border:1px solid var(--navy-100); border-radius:999px; padding: 8px 8px 8px 18px; }
.total-pill .lbl { font-family:var(--font-ui); font-weight:600; font-size:13.5px; color:var(--ink-500); }
.total-pill .amt { background: var(--navy-700); color:#fff; border-radius:999px; padding:8px 16px; font-family:var(--font-ui); font-weight:800; font-size:15px; }
@media (max-width:560px){ .panel-nav{ flex-wrap:wrap; } .total-pill{ order:-1; width:100%; justify-content:space-between; } }

/* processing speed options */
.speed-opt { display:flex; align-items:center; gap:18px; border:2px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px; margin-bottom: 14px; cursor:pointer; transition:.15s; position:relative; }
.speed-opt:hover { border-color: var(--navy-300, #aac3e6); }
.speed-opt.sel { border-color: var(--navy-700); background: var(--navy-50); box-shadow: 0 0 0 3px rgba(62,127,208,.10); }
.speed-radio { width:24px;height:24px;border-radius:50%; border:2px solid var(--line); flex:none; display:grid;place-items:center; transition:.15s; }
.speed-opt.sel .speed-radio { border-color: var(--navy-700); }
.speed-opt.sel .speed-radio::after { content:""; width:12px;height:12px;border-radius:50%; background:var(--navy-700); }
.speed-main { flex:1; }
.speed-main h4 { font-family:var(--font-ui); font-weight:800; font-size:17px; color:var(--ink-900); margin:0 0 4px; }
.speed-main p { font-size:13.5px; color:var(--ink-500); margin:0; }
.speed-price { font-family:var(--font-ui); font-weight:800; font-size:22px; color:var(--ink-900); white-space:nowrap; }
.speed-tag { position:absolute; top:-11px; right:18px; }

/* confirm review */
.review-grid { display:grid; grid-template-columns:1fr 1fr; gap: 14px 28px; }
@media (max-width:560px){ .review-grid{ grid-template-columns:1fr; } }
.review-item { padding: 11px 0; border-bottom:1px solid var(--line-soft); }
.review-item .k { font-size:12px; color:var(--ink-400); font-family:var(--font-ui); font-weight:600; text-transform:uppercase; letter-spacing:.04em; }
.review-item .v { font-size:15px; color:var(--ink-900); font-family:var(--font-ui); font-weight:700; margin-top:3px; }
.consent { display:flex; gap:11px; align-items:flex-start; margin-top:20px; font-size:13.5px; color:var(--ink-500); }
.consent input { width:18px;height:18px; margin-top:2px; accent-color: var(--navy-700); flex:none; }

/* Cashfree modal */
.cf-overlay { position:fixed; inset:0; background: rgba(11,31,69,.55); backdrop-filter: blur(4px); display:grid; place-items:center; z-index:300; padding:20px; }
.cf-modal { background:#fff; width:100%; max-width: 440px; border-radius: var(--radius-lg); overflow:hidden; box-shadow: var(--shadow-lg); }
.cf-head { background:#fff; padding: 18px 22px; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; }
.cf-logo { display:flex; align-items:center; gap:9px; font-family:var(--font-ui); font-weight:800; color: #6933FF; font-size: 18px; }
.cf-logo .mk { width:30px;height:30px;border-radius:8px; background: linear-gradient(135deg,#6933FF,#9B6BFF); display:grid;place-items:center; color:#fff; }
.cf-amt { padding: 20px 22px; background: var(--bg); display:flex; justify-content:space-between; align-items:center; }
.cf-amt .l { font-size:13px; color:var(--ink-500); }
.cf-amt .a { font-family:var(--font-ui); font-weight:800; font-size:22px; color:var(--ink-900); }
.cf-body { padding: 20px 22px; }
.cf-methods { display:flex; gap:8px; margin-bottom: 18px; flex-wrap:wrap; }
.cf-method { flex:1; min-width:80px; border:1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 8px; text-align:center; cursor:pointer; font-family:var(--font-ui); font-weight:700; font-size:12.5px; color:var(--ink-500); transition:.15s; }
.cf-method.sel { border-color:#6933FF; color:#6933FF; background:#F4EFFF; }
.cf-method svg { width:22px;height:22px; display:block; margin:0 auto 5px; }
.cf-pay-btn { width:100%; background:#6933FF; color:#fff; border:none; border-radius: var(--radius-sm); padding: 15px; font-family:var(--font-ui); font-weight:800; font-size:16px; cursor:pointer; transition:.15s; display:flex; align-items:center; justify-content:center; gap:10px; }
.cf-pay-btn:hover { background:#5826e6; }
.cf-pay-btn:disabled { opacity:.7; cursor:wait; }
.cf-secure { text-align:center; font-size:11.5px; color:var(--ink-400); margin-top:14px; display:flex; align-items:center; justify-content:center; gap:6px; }
.cf-spinner { width:18px;height:18px;border:2.5px solid rgba(255,255,255,.4); border-top-color:#fff; border-radius:50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* success */
.success-wrap { text-align:center; padding: 30px 20px; }
.success-ring { width:84px;height:84px;border-radius:50%; background: var(--green-100); display:grid;place-items:center; margin: 0 auto 22px; }
.success-ring svg { width:42px;height:42px;color:var(--green-600); }
.success-wrap h2 { font-size: 28px; margin-bottom: 10px; }
.ref-box { display:inline-flex; align-items:center; gap:12px; background: var(--navy-50); border:1px solid var(--navy-100); border-radius: var(--radius); padding: 14px 22px; margin: 22px 0; }
.ref-box .k { font-size:12px; color:var(--ink-400); text-transform:uppercase; letter-spacing:.06em; font-family:var(--font-ui); font-weight:600; }
.ref-box .v { font-family:var(--font-ui); font-weight:800; font-size:20px; color:var(--navy-700); letter-spacing:.02em; }
.fade-in { animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform:none; } }
