/* ============================================
   ITR Wizard — Shared Styles
   Extracted from inline <style> blocks
   ============================================ */

:root {
  --itr-shell-max: 1120px;
  --itr-card-padding: clamp(1.1rem, 2vw, 1.6rem);
  --itr-stack-gap: clamp(1rem, 2vw, 1.4rem);
  --itr-stepper-top: 1rem;
  --itr-stepper-height: 96px;
  --itr-soft-blue: rgba(91, 124, 250, 0.12);
  --itr-soft-green: rgba(46, 204, 113, 0.14);
  --itr-soft-red: rgba(220, 53, 69, 0.12);
  --itr-soft-amber: rgba(243, 156, 18, 0.14);
}

.panel-page-inner:has(.itr-wizard-shell) {
  max-width: 100%;
  padding-bottom: 3rem;
}

.itr-wizard-shell {
  max-width: var(--itr-shell-max);
  margin: 0 auto;
}

.itr-stepper-wrap {
  position: sticky;
  top: var(--itr-stepper-top);
  z-index: 12;
  max-width: var(--itr-shell-max);
  margin: 0 auto .75rem;
  scroll-margin-top: var(--itr-stepper-top);
}

.itr-stepper-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.97), rgba(26, 39, 69, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
  padding: .8rem .95rem .75rem;
}

.itr-stepper-shell::before {
  content: "";
  position: absolute;
  inset: -45% auto auto 62%;
  width: 11rem;
  height: 11rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(91, 124, 250, 0.22), transparent 68%);
  pointer-events: none;
}

.itr-stepper-head,
.itr-stepper-current-row,
.itr-stepper-stats,
.itr-stepper-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.itr-stepper-head,
.itr-stepper-progress,
.itr-stepper-rail {
  position: relative;
  z-index: 1;
}

.itr-stepper-summary {
  min-width: 0;
}

.itr-stepper-kicker {
  color: rgba(255, 255, 255, 0.66);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: .22rem;
  text-transform: uppercase;
}

.itr-stepper-current {
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.02em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.itr-stepper-current-meta,
.itr-stepper-progress-meta {
  color: rgba(255, 255, 255, 0.68);
  font-size: .8rem;
}

.itr-stepper-stats {
  flex-shrink: 0;
}

.itr-stepper-status-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.94);
  font-size: .78rem;
  font-weight: 700;
  padding: .42rem .68rem;
}

.itr-stepper-status-chip.has-error {
  background: rgba(220, 53, 69, 0.16);
  color: #ffd8de;
}

.itr-stepper-percent {
  color: #fff;
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: -.03em;
}

.itr-stepper-progress {
  margin-top: .55rem;
}

.itr-stepper-progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.itr-stepper-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5b7cfa 0%, #20c997 100%);
}

.itr-stepper-progress-meta {
  margin-top: .35rem;
}

.itr-stepper-rail {
  overflow-x: auto;
  overflow-y: hidden;
  margin-top: .6rem;
  padding-bottom: .15rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.24) transparent;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.itr-stepper-rail::-webkit-scrollbar {
  height: 6px;
}

.itr-stepper-rail::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.itr-stepper-list {
  display: flex;
  align-items: stretch;
  gap: .5rem;
  min-width: max-content;
}

.itr-step-chip {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-width: 132px;
  max-width: 170px;
  padding: .48rem .68rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.92);
  scroll-snap-align: center;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.itr-step-chip-badge {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .78rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.itr-step-chip-copy {
  min-width: 0;
}

.itr-step-chip-label {
  display: block;
  color: inherit;
  font-size: .83rem;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.itr-step-chip-state {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  margin-top: .12rem;
  text-transform: uppercase;
}

.itr-step-chip.completed {
  background: rgba(25, 135, 84, 0.18);
  border-color: rgba(46, 204, 113, 0.34);
}

.itr-step-chip.completed .itr-step-chip-badge {
  background: linear-gradient(135deg, #198754, #2ecc71);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.itr-step-chip.current {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.28), rgba(91, 124, 250, 0.18));
  border-color: rgba(91, 124, 250, 0.46);
  box-shadow: 0 10px 18px rgba(13, 110, 253, 0.16);
  transform: translateY(-1px);
}

.itr-step-chip.current .itr-step-chip-badge {
  background: linear-gradient(135deg, #0d6efd, #5b7cfa);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.itr-step-chip.current .itr-step-chip-state {
  color: rgba(207, 230, 255, 0.9);
}

.itr-step-chip.pending {
  opacity: .82;
}

.itr-step-chip.error {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.24), rgba(148, 27, 49, 0.14));
  border-color: rgba(255, 157, 174, 0.38);
}

.itr-step-chip.error .itr-step-chip-badge {
  background: linear-gradient(135deg, #dc3545, #ff8c98);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.itr-step-chip.error .itr-step-chip-state {
  color: #ffdbe0;
}

.itr-page-band {
  position: relative;
  overflow: hidden;
  max-width: var(--itr-shell-max);
  margin: 0 auto .75rem;
  padding: 1rem 1.1rem;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(32, 201, 151, 0.18), transparent 34%),
    radial-gradient(circle at bottom left, rgba(91, 124, 250, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 255, 0.98));
  border: 1px solid rgba(91, 124, 250, 0.14);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
}

.itr-page-band::before {
  content: "";
  position: absolute;
  inset: auto -4rem -5rem auto;
  width: 14rem;
  height: 14rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(91, 124, 250, 0.13), transparent 68%);
  pointer-events: none;
}

/* === LAYOUT === */
.wizard-container {
  position: relative;
  max-width: var(--itr-shell-max);
  margin: 0 auto 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 255, 0.98));
  padding: clamp(.95rem, 2vw, 1.45rem);
  border-radius: 22px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(91, 124, 250, 0.14);
}

.itr-shell-narrow {
  max-width: 980px !important;
}

.wizard-container::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

.wizard-container > form {
  position: relative;
  z-index: 1;
}

.wizard-container .row {
  --bs-gutter-y: 0.55rem;
}

.wizard-container,
.itr-page-band,
.itr-error-summary,
.wizard-container .form-control,
.wizard-container .form-select,
.wizard-container .form-check-input,
.wizard-container .btn {
  scroll-margin-top: calc(var(--itr-stepper-height) + 1rem);
}

/* === TITLE ROW === */
.title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: .4rem;
}
.icon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
  background: linear-gradient(135deg, var(--brand-blue-start), var(--brand-blue-end));
}
.sublead-strong {
  color: var(--ink-soft);
  font-weight: 600;
  text-align: center;
  max-width: 720px;
  margin: 0 auto .35rem;
  line-height: 1.55;
}

/* === SECTION HEADER === */
.section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.sec-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  border: 1px solid var(--border-soft);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0;
}

.card,
.salary-card,
.property-card,
.biz-card,
.oi-card,
.ded-card,
.bank-card,
.summary-section,
.submit-card {
  border-radius: 20px !important;
}

/* === INPUT ICONS === */
.input-icon {
  position: relative;
}
.input-icon .bi {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: .65;
  pointer-events: none;
  font-size: 1rem;
}
.input-icon input,
.input-icon select {
  padding-left: 2rem;
}

.input-group .form-control,
.input-group .form-select,
.input-group-text {
  min-height: 3rem;
}

/* === FORM CONTROLS === */
.form-control,
.form-select {
  color: var(--ink);
  font-weight: 600;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  min-height: 3rem;
  background: rgba(255, 255, 255, 0.98);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease, transform .2s ease;
}
.form-control::placeholder {
  color: var(--ink-muted);
  opacity: .95;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--brand-blue-start);
  box-shadow: 0 0 0 0.24rem rgba(91, 124, 250, .15);
  background: #fff;
}
.input-group-text {
  font-weight: 700;
  border-radius: 14px;
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(91, 124, 250, 0.06);
  color: var(--ink-soft);
}

.form-label {
  margin-bottom: .45rem;
  color: var(--ink-soft);
}

.form-text {
  color: var(--ink-muted);
}

.form-check-input {
  border-color: rgba(91, 124, 250, 0.35);
}

.form-check-input:focus {
  border-color: var(--brand-blue-start);
  box-shadow: 0 0 0 .24rem rgba(91, 124, 250, .14);
}

.form-control.is-invalid,
.form-select.is-invalid,
.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
  border-color: #dc3545;
  background-image: none;
  box-shadow: 0 0 0 .24rem rgba(220, 53, 69, .12);
}

.form-control.is-valid,
.form-select.is-valid {
  border-color: #198754;
  background-image: none;
  box-shadow: 0 0 0 .24rem rgba(25, 135, 84, .10);
}

.invalid-feedback,
.field-error {
  display: block;
  margin-top: .45rem;
  color: #b42318;
  font-size: .9rem;
  font-weight: 600;
}

.itr-error-summary,
.itr-inline-banner,
.wizard-container .alert {
  border: 0;
  border-radius: 18px;
  padding: 1rem 1.1rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.itr-error-summary,
.wizard-container .alert-danger {
  background: linear-gradient(135deg, rgba(255, 235, 238, 0.98), rgba(255, 245, 245, 0.98));
  color: #8b1e2d;
  border-left: 5px solid #dc3545;
}

.wizard-container .alert-warning {
  background: linear-gradient(135deg, rgba(255, 243, 205, 0.98), rgba(255, 249, 232, 0.98));
  color: #8a5a00;
  border-left: 5px solid #f39c12;
}

.wizard-container .alert-info {
  background: linear-gradient(135deg, rgba(227, 242, 253, 0.98), rgba(240, 247, 255, 0.98));
  color: #0b5394;
  border-left: 5px solid #0d6efd;
}

.wizard-container .alert-success {
  background: linear-gradient(135deg, rgba(223, 247, 235, 0.98), rgba(240, 255, 247, 0.98));
  color: #0f5132;
  border-left: 5px solid #198754;
}

.itr-error-summary-title {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-weight: 800;
  margin-bottom: .45rem;
}

.itr-error-summary ul,
.wizard-container .alert ul {
  margin-bottom: 0;
  padding-left: 1.1rem;
}

.itr-field-highlight {
  animation: itrFieldPulse .9s ease;
}

@keyframes itrFieldPulse {
  0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, .24); }
  100% { box-shadow: 0 0 0 .3rem rgba(220, 53, 69, 0); }
}

/* === BUTTONS === */
.btn-lg-bold {
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 14px;
  min-height: 3rem;
}
.btn-choice {
  min-width: 90px;
  font-weight: 700;
  border-radius: 14px;
  min-height: 2.85rem;
}

.btn-primary,
.btn-secondary,
.btn-warning,
.btn-success,
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-danger {
  border-radius: 14px;
  font-weight: 700;
}

.btn-check:checked + .btn.btn-outline-success,
.btn-check:checked + .btn-outline-success {
  background-color: #198754;
  border-color: #198754;
  color: #fff;
  box-shadow: 0 0 0 .2rem rgba(25, 135, 84, .22);
}

.btn-check:checked + .btn.btn-outline-danger,
.btn-check:checked + .btn-outline-danger {
  background-color: #dc3545;
  border-color: #dc3545;
  color: #fff;
  box-shadow: 0 0 0 .2rem rgba(220, 53, 69, .18);
}

.btn-primary {
  box-shadow: 0 12px 24px rgba(13, 110, 253, 0.18);
}

.btn-primary:hover,
.btn-success:hover,
.btn-warning:hover,
.btn-secondary:hover {
  transform: translateY(-1px);
}

/* === FORM BADGE === */
.form-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: linear-gradient(135deg, var(--brand-blue-start), var(--brand-blue-end));
  color: #fff;
  border-radius: 999px;
  padding: 7px 13px;
  box-shadow: 0 10px 24px rgba(13, 110, 253, 0.18);
  font-weight: 700;
}
.form-badge .bi { opacity: .9; }

/* === CARD PATTERNS === */
.salary-card,
.property-card,
.biz-card,
.oi-card,
.ded-card,
.bank-card {
  border: 1px solid rgba(91, 124, 250, 0.12);
  border-radius: 18px;
  padding: 16px 16px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 255, 0.98));
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  position: relative;
  margin-bottom: 20px;
}

.wizard-container .card {
  border: 1px solid rgba(91, 124, 250, 0.12);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06) !important;
}

.wizard-container .card-header {
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,249,255,.96));
  border-bottom-color: rgba(91, 124, 250, 0.10);
}

/* === CARD HEADER FLEX === */
.card-header-flex {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
}
@media (min-width:768px) {
  .card-header-flex {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  width: 100%;
}
@media (min-width:768px) {
  .card-actions {
    width: auto;
    justify-content: flex-end;
  }
}

/* === READONLY / COMPUTED === */
.readonly-like {
  background: var(--surface-soft) !important;
  cursor: not-allowed !important;
  user-select: none !important;
  caret-color: transparent !important;
  pointer-events: none !important;
}
.rupee-line { font-weight: 700; }

/* === NOTES === */
.note-strong { font-weight: 800; }
.note-center { text-align: center; }

/* === MISC BLOCKS === */
.vehicle-block,
.ada-block {
  border: 1px solid rgba(91, 124, 250, 0.12);
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
}
.bank-hd { font-weight: 700; }
.q-text { font-weight: 600; }
.question-line { font-weight: 600; }

.section-title .bi {
  opacity: .9;
}

.sec-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d6efd, #66a3ff);
  box-shadow: 0 3px 8px rgba(13, 110, 253, .25);
}

.sec-icon i {
  color: #fff;
  font-size: .95rem;
  line-height: 1;
}

.form-footer-mobile {
  gap: 10px;
}

.form-footer-desktop {
  align-items: center;
  justify-content: space-between;
}

.form-footer-desktop .right-actions {
  display: flex;
  gap: 10px;
}

.nav-custom-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.nav-custom-pills .nav-link {
  border: 1px solid #e9ecef;
  background: #fff;
  border-radius: 999px;
  font-weight: 700;
  padding: 8px 14px;
  color: #0d6efd;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-custom-pills .nav-link.active {
  background: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
}

.tab-pane {
  display: none;
}

.tab-pane.show {
  display: block;
}

.oi-card .card-header {
  background: #ffffff;
  border-bottom: 1px solid #edf0f4;
  padding: 12px 16px;
}

.question-line {
  color: #212529;
  display: flex;
  align-items: center;
  gap: 8px;
}

.question-line .qi {
  opacity: .8;
}

.declaration-card .form-check-input {
  width: 1.25em;
  height: 1.25em;
  margin-top: .2rem;
  accent-color: #0d6efd;
  border: 2px solid #0d6efd;
}

.declaration-card .form-check-input:focus {
  box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);
  border-color: #0d6efd;
}

.declaration-card .form-check-label {
  font-weight: 500;
  line-height: 1.5;
}

.itr-form {
  max-width: 960px;
  margin: 0 auto 32px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, .08);
  padding: 24px;
  border: 1px solid rgba(91, 124, 250, .12);
}

.itr-question {
  border-bottom: 1px dashed #e9ecef;
  padding: 16px 0;
}

.itr-question:last-child {
  border-bottom: 0;
}

.itr-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.pill-salary { background: linear-gradient(135deg, #0d6efd, #6ea8fe); }
.pill-house  { background: linear-gradient(135deg, #198754, #58d3a0); }
.pill-biz    { background: linear-gradient(135deg, #fd7e14, #ffb37a); }
.pill-gains  { background: linear-gradient(135deg, #6f42c1, #b18ae6); }
.pill-other  { background: linear-gradient(135deg, #dc3545, #ff8c98); }

.subtext {
  margin-left: 60px;
}

.btn-outline-success i {
  color: #198754;
}

.btn-outline-danger i {
  color: #dc3545;
}

.btn-check:checked + .btn i {
  color: #fff;
}

.summary-section {
  border: 1px solid #e9ecef;
  border-radius: 18px;
  margin-bottom: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, .92);
}

.summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.summary-header h6 {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.summary-body {
  padding: 16px 18px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 6px 0;
  border-bottom: 1px dashed #f1f3f5;
}

.summary-row:last-child {
  border-bottom: 0;
}

.summary-row--highlight {
  border-top: 2px solid #dee2e6;
  padding-top: 10px;
}

.summary-section--tax {
  border: 2px solid #0d6efd;
}

.summary-header--tax {
  background: linear-gradient(135deg, #e7f1ff, #f0f6ff);
}

.summary-label {
  color: #6c757d;
  font-weight: 500;
  font-size: .9rem;
}

.summary-value {
  font-weight: 600;
  color: #212529;
  font-size: .9rem;
  text-align: right;
  max-width: 60%;
  word-break: break-word;
}

.chip {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .85rem;
  flex-shrink: 0;
}

.chip-blue { background: #0d6efd; }
.chip-green { background: #198754; }
.chip-orange { background: #fd7e14; }
.chip-purple { background: #6f42c1; }
.chip-teal { background: #20c997; }
.chip-red { background: #dc3545; }
.chip-indigo { background: #6610f2; }
.chip-sky { background: #5bc0de; }

.edit-link {
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
}

.edit-link:hover {
  text-decoration: underline;
}

.status-badge {
  font-size: .75rem;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.badge-draft {
  background: #fff3cd;
  color: #856404;
}

.badge-submitted {
  background: #d1e7dd;
  color: #0f5132;
}

.empty-step {
  color: #adb5bd;
  font-style: italic;
  font-size: .88rem;
  padding: 8px 0;
}

.submit-card {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  margin-top: 20px;
}

.itr-summary-success-screen {
  min-height: calc(100vh - 13rem);
  display: grid;
  place-items: center;
  padding: clamp(2rem, 5vw, 4rem) 0;
  position: relative;
  overflow: hidden;
}

.itr-summary-success-card {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.98));
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
  text-align: center;
  overflow: hidden;
}

.itr-summary-celebration {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.itr-cracker {
  position: absolute;
  pointer-events: none;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,.98) 0 14%, transparent 15%);
  transform: scale(.12);
  opacity: 0;
  animation: itr-cracker-burst 3.4s ease-out infinite;
}

.itr-cracker::before,
.itr-cracker::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.itr-cracker::before {
  background: repeating-conic-gradient(
    from 0deg,
    var(--cracker-a) 0deg 10deg,
    transparent 10deg 20deg,
    var(--cracker-b) 20deg 30deg,
    transparent 30deg 40deg,
    var(--cracker-c) 40deg 50deg,
    transparent 50deg 60deg
  );
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--cracker-a) 55%, white));
}

.itr-cracker::after {
  inset: -14px;
  background: radial-gradient(circle, color-mix(in srgb, var(--cracker-b) 55%, white) 0 8%, transparent 9%),
              radial-gradient(circle, color-mix(in srgb, var(--cracker-c) 45%, white) 0 6%, transparent 7%);
  background-size: 28px 28px, 36px 36px;
  background-position: 0 0, 12px 12px;
  opacity: .75;
}

.itr-cracker--a {
  top: 12%;
  left: 10%;
  --cracker-a: #ff7a00;
  --cracker-b: #ffd65a;
  --cracker-c: #ff4d6d;
  animation-delay: 0s;
}

.itr-cracker--b {
  top: 8%;
  left: 42%;
  --cracker-a: #1f6feb;
  --cracker-b: #6ea8fe;
  --cracker-c: #9b59ff;
  animation-delay: .8s;
}

.itr-cracker--c {
  top: 18%;
  right: 12%;
  --cracker-a: #ff5f6d;
  --cracker-b: #ffc371;
  --cracker-c: #ffd166;
  animation-delay: 1.5s;
}

.itr-cracker--d {
  bottom: 20%;
  left: 16%;
  --cracker-a: #22a06b;
  --cracker-b: #82e0aa;
  --cracker-c: #56a6ff;
  animation-delay: .45s;
}

.itr-cracker--e {
  bottom: 12%;
  left: 52%;
  --cracker-a: #ff8fab;
  --cracker-b: #fcbf49;
  --cracker-c: #7b2cbf;
  animation-delay: 1.1s;
}

.itr-cracker--f {
  bottom: 24%;
  right: 10%;
  --cracker-a: #06d6a0;
  --cracker-b: #118ab2;
  --cracker-c: #ffd166;
  animation-delay: 1.9s;
}

.itr-success-icon-wrap {
  display: inline-grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin: 0 auto;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.88), rgba(220, 248, 232, .72) 45%, rgba(186, 236, 210, .55));
  box-shadow: 0 18px 40px rgba(21, 128, 90, 0.16);
}

.itr-summary-success-title {
  margin: 1rem 0 .5rem;
  color: #15805a;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
}

.itr-summary-success-copy {
  max-width: 40rem;
  margin: 0 auto;
  color: #5d6775;
  font-size: 1.05rem;
  line-height: 1.6;
}

.itr-summary-success-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.4rem;
}

.itr-summary-success-actions .btn {
  min-width: 220px;
}

@keyframes itr-cracker-burst {
  0% {
    transform: scale(.12);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  62% {
    transform: scale(6.8);
    opacity: .95;
  }
  100% {
    transform: scale(8.6);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .itr-cracker {
    animation: none;
  }
}

.itr-progress-slim {
  height: 10px;
  border-radius: 999px;
}

.itr-success-icon {
  font-size: 3rem;
}

.itr-success-modal .modal-content {
  border-radius: 18px;
}

.itr-success-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #d1e7dd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.itr-success-lead {
  font-size: 1.05rem;
}

.itr-success-sublead {
  color: #495057;
}

.itr-success-popup {
  position: fixed;
  inset: 0;
  z-index: 1090;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(248, 250, 252, 0.78);
  backdrop-filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.itr-success-popup.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.itr-success-popup-card {
  position: relative;
  width: min(740px, 100%);
  padding: 3rem 2.5rem 2.35rem;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.98));
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.14);
  text-align: center;
}

.itr-success-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #355746;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.itr-success-popup-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 999px;
  background: linear-gradient(135deg, #198754, #4dd38a);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 18px 32px rgba(25, 135, 84, 0.22);
}

.itr-success-popup-title {
  margin-top: 1.15rem;
  color: #15805a;
  font-size: clamp(1.55rem, 2vw, 1.95rem);
  font-weight: 800;
}

.itr-success-popup-copy {
  max-width: 34rem;
  margin: .55rem auto 0;
  color: #5d6775;
  font-size: 1rem;
  line-height: 1.6;
}

.itr-success-popup-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.35rem;
}

.itr-success-popup-actions .btn {
  flex: 0 1 254px;
  min-height: 3rem;
  padding-inline: 1.35rem;
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.12);
}

.itr-actions {
  position: sticky;
  bottom: 0;
  z-index: 15;
  margin-top: 1.25rem;
  padding-top: 1rem;
  background: linear-gradient(180deg, rgba(249, 251, 255, 0), rgba(249, 251, 255, 0.95) 26%, rgba(249, 251, 255, 0.98));
}

.summary-declaration {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1.15rem;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 1rem 1.1rem;
  padding-left: 1.1rem;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.06);
}

.summary-declaration.form-check {
  padding-inline-start: 1.1rem;
}

.summary-declaration .form-check-input {
  flex: 0 0 1.22rem;
  width: 1.22rem;
  height: 1.22rem;
  margin: .28rem 0 0;
  margin-left: 0;
  appearance: auto;
  border: 2px solid #2563eb;
  background-color: #fff;
  accent-color: #2563eb;
}

.summary-declaration .form-check-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 .24rem rgba(37, 99, 235, 0.18);
}

.summary-declaration .form-check-label {
  flex: 0 1 auto;
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.55;
  white-space: nowrap;
}

.itr-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .8rem;
  border-radius: 999px;
  background: rgba(91, 124, 250, 0.08);
  color: var(--ink-soft);
  font-weight: 700;
}

.itr-form-grid {
  display: grid;
  gap: var(--itr-stack-gap);
}

@media (max-width: 991.98px) {
  :root {
    --itr-stepper-top: .75rem;
  }

  .itr-page-band,
  .wizard-container {
    border-radius: 20px;
  }

  .itr-step-chip {
    min-width: 124px;
  }
}

@media (max-width: 767.98px) {
  .panel-page-inner:has(.itr-wizard-shell) {
    padding-bottom: 6rem;
  }

  :root {
    --itr-stepper-top: .5rem;
  }

  .itr-stepper-wrap {
    margin-bottom: .65rem;
  }

  .itr-stepper-shell {
    border-radius: 18px;
    padding: .72rem .8rem .68rem;
  }

  .itr-stepper-head,
  .itr-stepper-current-row,
  .itr-stepper-stats,
  .itr-stepper-progress-meta {
    flex-wrap: wrap;
  }

  .itr-stepper-current {
    font-size: .94rem;
  }

  .itr-stepper-stats {
    width: 100%;
  }

  .itr-stepper-status-chip,
  .itr-stepper-percent {
    font-size: .76rem;
  }

  .itr-step-chip {
    min-width: 116px;
    max-width: 156px;
    padding: .42rem .62rem;
  }

  .itr-step-chip-label {
    font-size: .78rem;
  }

  .itr-page-band {
    margin-bottom: .7rem;
    padding: .88rem .95rem;
    border-radius: 18px;
  }

  .wizard-container {
    padding: .9rem;
    margin-bottom: 1rem;
    border-radius: 18px;
  }

  .title-wrap {
    gap: 10px;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .icon-pill {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .sublead-strong {
    text-align: left;
    margin-bottom: .55rem;
  }

  .itr-success-popup {
    padding: 1rem;
  }

  .itr-summary-success-screen {
    min-height: auto;
    padding: 1.25rem 0 .5rem;
  }

  .itr-summary-celebration {
    opacity: .72;
  }

  .itr-summary-success-card {
    padding: 2.25rem 1.15rem;
    border-radius: 24px;
  }

  .itr-summary-success-title {
    font-size: 1.8rem;
  }

  .itr-summary-success-copy {
    font-size: .98rem;
  }

  .itr-summary-success-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .itr-success-icon-wrap {
    width: 96px;
    height: 96px;
  }

  .itr-cracker {
    width: 16px;
    height: 16px;
  }

  .itr-success-popup-card {
    width: 100%;
    padding: 2.75rem 1.2rem 1.35rem;
    border-radius: 24px;
  }

  .itr-success-popup-title {
    font-size: 1.5rem;
  }

  .itr-success-popup-copy {
    font-size: .95rem;
  }

  .itr-success-popup-actions .btn {
    flex-basis: 100%;
  }

  .itr-actions {
    position: static;
    background: transparent;
    padding-top: .6rem;
  }

  .btn-choice {
    min-width: 74px;
    flex: 1 1 auto;
  }

  .subtext {
    margin-left: 0;
    margin-top: .45rem;
  }

  .summary-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .summary-value {
    max-width: 100%;
    text-align: left;
  }
}
