.wizard-shell{
  max-width: 1080px;
  margin: 32px auto;
  border-radius: 16px;
  overflow:hidden;
  box-shadow: 0 18px 50px rgba(18, 38, 63, .12);
  background:#fff;
}

.wizard-header{
  background: #eef4ff;
  padding: 28px 28px 18px;
}

.wizard-title{
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.wizard-sub{
  color: var(--muted);
  margin: 0;
  font-size: .95rem;
  line-height: 1.35;
}

/* Stepper */
.stepper{
  display:flex;
  align-items:center;
  gap: 18px;
  margin-top: 18px;
  padding: 0;
  list-style:none;
  flex-wrap: wrap;
}

.stepper .step{
  display:flex;
  align-items:center;
  gap: 10px;
}

.step-circle{
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display:grid;
  place-items:center;
  font-weight:700;
  font-size:.95rem;
  border: 2px solid #d7deea;
  color:#7b8794;
  background:#fff;
  flex: 0 0 auto;
}

.step-line{
  width: 80px;
  height: 4px;
  background:#dfe6f2;
  border-radius:999px;
  margin: 0 2px;
  flex: 0 0 auto;
}

.step.is-active .step-circle{
  border-color: var(--brand);
  background: var(--brand);
  color:#fff;
}

.step.is-done .step-circle{
  border-color: var(--brand);
  background: var(--brand);
  color:#fff;
  position: relative;
}

.step.is-done .step-circle::before{
  content:"✓";
  font-weight:800;
  font-size:1rem;
}

.step.is-done .step-circle span{ display:none; }

.stepper .step.is-done + .step-line,
.stepper .step.is-active + .step-line{
  background: var(--brand);
}

/* Content */
.wizard-body{
  padding: 28px;
  background:#fff;
}

.step-title{
  font-weight: 700;
  margin-bottom: 2px;
}

.step-subtitle{
  color: var(--muted);
  margin-bottom: 18px;
}

/* Ownership pill radios */
.pill-radio {
  border: 2px solid #e6ebf4;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  background: #fff;
  color: #000; 
}

.pill-radio input {
  margin-top: 0;
}

/* YES */
.pill-radio.is-yes {
  border-color: #34a853;
  background-color: #eaf7ef;
}

/* NO */
.pill-radio.is-no {
  border-color: #fd7e14;
  background-color: #fff4ec;
}

.pill-radio input:checked {
  background-color: #000;
  border-color: #ffffff;
}

.pill-radio input:focus,
.pill-radio input:focus-visible {
  outline: 0;
  box-shadow: none;
}

.pill-radio input.form-check-input:checked {
  background-color: #ffffff;
  border-color: #000000;
}

.pill-radio input.form-check-input[type="radio"]:checked {
  background-image: radial-gradient(circle, #000000 65%, transparent 40%);
}

/* Relationship pills */
.relationship-section .pill-radio.is-selected {
  border-color: #6366f1;      
  background-color: #eef2ff;    
}

/* Footer buttons */
.wizard-footer{
  display:flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid #f0f2f6;
  margin-top: 22px;
}

#btnNext1{
  background-color:#111827;
  border-color:#111827;
  color:#ffffff;
}


#btnCancel1{
  background-color:#ffffff;
  border-color:#e5e7eb;
  color:#111827;
}

#btnCancel1:hover,
#btnCancel1:focus,
#btnCancel1:active {
  background-color:#f9fafb;
  border-color:#e5e7eb;
  color:#111827;
}

.btn-darkish{
  background:#ffffff;
  border-color:#ffffff;
}

button.is-disabled,
button.is-disabled:hover,
button.is-disabled:focus,
button.is-disabled:active {
  background-color: #7a7a7a;
  border-color: #7a7a7a;
  color: #ffffff;
  opacity: 1;
  pointer-events: none;
  cursor: not-allowed;
}

.btn.submit-petition-btn {
  background-color: #1fa84a; 
  border-color: #1fa84a;
  color: #ffffff;
}

.btn.submit-petition-btn,
.btn.submit-petition-btn:hover,
.btn.submit-petition-btn:focus,
.btn.submit-petition-btn:active,
.btn.submit-petition-btn:active:focus  {
  background-color: #1fa84a;
  border-color: #1fa84a;
  color: #ffffff;
  opacity: 1;
}

.btn.submit-petition-btn i {
  color: inherit;
}

.btn.submit-petition-btn:disabled {
  background-color: #8fd3a8;
  border-color: #8fd3a8;
  color: #ffffff;
  opacity: 1;
  cursor: not-allowed;
}

.btn.submit-petition-btn:disabled i {
  color: inherit;
}

.form-control{
  border-radius: 12px;
  padding: 12px 14px;
  border-color:#e6ebf4;
}
.form-label{
  font-weight:700;
  font-size: .92rem;
}

input.form-control:focus,
input.form-control:focus-visible {
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
    border-color: #000000;
    outline: 0;
    box-shadow: none;
}

.wizard-step{ display:none; }
.wizard-step.active{ display:block; }

.select-card{
  border: 2px solid var(--card-border);
  border-radius: 14px;
  padding: 18px;
  transition: .15s ease;
  height: 100%;
  cursor:pointer;
  background:#fff;
}
.select-card:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(18,38,63,.08);
}
.select-card .icon{
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #f1f5ff;
  display:grid;
  place-items:center;
  color: var(--brand);
  margin: 0 auto 12px;
}
.select-card h6{
  font-weight: 800;
  margin-bottom: 2px;
}
.select-card p{
  margin:0;
  color: var(--muted);
  font-size: .92rem;
}

/* Checked styling (radio -> card) */
.card-radio{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.card-radio:checked + .select-card{
  border-color: var(--brand);
  background: var(--brand-100);
}

.alert.alert-warning-soft {
  --bs-alert-bg: rgba(255, 243, 205, 0.85); /* lighter yellow */
  --bs-alert-border-color: rgba(255, 193, 7, 0.6);
  --bs-alert-color: #664d03;
}

.alert-warning-soft .alert-icon {
  color: #f59e0b;
  font-size: 20px;
  border-width: 4px;
}


/* Style for reminder icon/message */
.alert.alert-info-soft {
  --bs-alert-bg: rgba(219, 233, 255, 0.5);          /* LIGHT background */
  --bs-alert-border-color: rgba(176, 207, 255, 0.5);
  --bs-alert-color: #1e40af;       /* TEXT color */
}

.alert-info-soft .alert-icon {
  color: #2563eb;
  font-size: 20px;
  border-width: 4px;
}

/* adjustment on the alert to much the ui */
#spaAlert {
  margin-top: 20px;
}

/* step 5 birth certi */
#birthAddEntryToCorrectBtn, #marriageAddEntryToCorrectBtn, #deathAddEntryToCorrectBtn{
  padding: 7px 12px;
  font-size: .8rem;
  border-radius: 8px;
  margin-top: 8px;
}

.alert-info-soft .form-control,
.alert-info-soft .form-select{
  background-color: rgb(239 246 255 / 1);
}

.step5-input .form-control:focus {
  background-color: rgb(239 246 255 / 1);
}

/* Custom dropdown for step 5 */
.field-dropdown { 
  position: relative; 
  width: 100%;
}

.field-dropdown-trigger {
  width: 100%;
  height: 39px;
  padding: 6px 36px 6px 12px;
  border: 1px solid #dbe3ec;
  border-radius: 6px;
  background-color: rgb(239 246 255 / 1);
  color: #495057;
  font-size: 16px;
  line-height: 24px;
  text-align: left;
  position: relative;
  display: flex;
  align-items: center;
}

.field-dropdown-text {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}

.field-dropdown-arrow {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 6px;
  height: 6px;
  border-right: 2px solid #9ca3af;
  border-bottom: 2px solid #9ca3af;
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

.field-dropdown.open .field-dropdown-trigger {
  border-color: #000000;
}

.field-dropdown-panel { 
  position: absolute; 
  bottom: 100%; 
  left: 0; 
  right: 0; 
  margin-bottom: 4px; 
  height: 280px; 
  background: #ffffff; 
  border: 1px solid #e5e7eb; 
  border-radius: 8px; 
  overflow-y: auto; 
  box-shadow: 0 10px 25px rgba(0,0,0,0.08); 
  z-index: 1000; 
}


.field-group { 
  padding: 8px 12px; 
  font-size: 12px; 
  color: #6b7280; 
  background: #f3f4f6; 
}

.field-option { 
  width: 100%; 
  padding: 10px 12px; 
  background: #ffffff; 
  border: none; 
  text-align: left; 
  font-size: 14px; 
  cursor: pointer; 
}

.field-option:hover { 
  background: #f9fafb; 
}

.field-option.selected { 
  background: #eef2ff; 
  font-weight: 500; 
}
