.partner-two-sections > .partner-card:first-child {
  border-top: 3px solid #c8102e;
  box-shadow: 0 18px 50px rgba(16, 24, 40, .08);
}

.request-type-picker {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

.request-type-picker legend {
  margin-bottom: 10px;
  color: #39424e;
  font-size: 12px;
  font-weight: 800;
}

.request-type-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 5px;
  border: 1px solid #e1e5ea;
  border-radius: 12px;
  background: #f1f3f5;
}

.request-type-switch label {
  min-width: 0;
  min-height: 76px;
  display: flex !important;
  align-items: center;
  gap: 11px;
  margin: 0 !important;
  padding: 12px 13px;
  border: 0;
  border-radius: 9px;
  color: #66707c;
  background: transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.request-type-switch label:hover {
  color: #202832;
  transform: translateY(-1px);
}

.request-type-switch label:has(input:checked) {
  color: #18202a;
  background: #fff;
  box-shadow: 0 5px 16px rgba(24, 32, 42, .1);
}

.request-type-switch label:has(input:focus-visible) {
  outline: 3px solid rgba(200, 16, 46, .22);
  outline-offset: 2px;
}

.request-type-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.request-type-switch label > span:last-child {
  min-width: 0;
}

.request-type-switch strong,
.request-type-switch small {
  display: block;
}

.request-type-switch strong {
  font-size: 12px;
}

.request-type-switch small {
  margin-top: 4px;
  color: #7a838e;
  font-size: 10px;
}

.request-type-icon {
  width: 34px;
  height: 34px;
  display: grid !important;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  color: #66707c;
  background: #e2e6ea;
  font-size: 20px;
  font-weight: 700;
}

.request-type-switch label:has(input:checked) .request-type-icon {
  color: #fff;
  background: linear-gradient(145deg, #d41436, #a70925);
}

.flow-hint {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 15px;
  padding: 12px 14px;
  border: 1px solid #dce7f5;
  border-radius: 8px;
  background: #f5f9ff;
  color: #24507d;
}

.flow-hint > span {
  width: 30px;
  height: 30px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #e4effc;
  font-size: 18px;
}

.flow-hint strong,
.flow-hint small {
  display: block;
}

.flow-hint small {
  margin-top: 3px;
  color: #62778e;
  font-size: 10px;
}

.target-case-field {
  margin-bottom: 20px;
}

.target-case-field .form-select {
  min-height: 52px;
  border-color: #bfc8d2;
  font-weight: 700;
}

.target-case-field > small {
  display: block;
  margin-top: 6px;
  color: #7a838e;
}

#intakeUploadForm .identity-checklist {
  display: none;
}

#intakeUploadForm:has(input[name="request_type"][value="create_new"]:checked) .identity-checklist {
  display: block;
}

#intakeUploadForm:has(input[name="request_type"][value="create_new"]:checked) .update-flow {
  display: none;
}

.identity-checklist {
  margin: 20px 0;
  padding: 18px;
  border: 1px solid #dfe3e8;
  border-radius: 9px;
  background: #fafbfc;
}

.checklist-heading {
  display: flex;
  gap: 11px;
  margin-bottom: 16px;
}

.checklist-heading > span {
  width: 32px;
  height: 32px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #19704d;
  background: #e8f6ef;
  font-weight: 800;
}

.checklist-heading h3 {
  margin: 0;
  font-size: 15px;
}

.checklist-heading p {
  margin: 5px 0 0;
  color: #68717d;
  font-size: 11px;
}

.check-indicator {
  width: 18px;
  height: 18px;
  display: inline-grid;
  margin-inline-end: 5px;
  place-items: center;
  border-radius: 50%;
  color: #929aa4;
  background: #e6e9ed;
}

.is-complete .check-indicator {
  color: #fff;
  background: #19704d;
}

.document-checklist {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #dfe3e8;
}

.document-checklist > p {
  margin: 0 0 3px;
  font-size: 12px;
  font-weight: 700;
}

.document-check-item {
  min-height: 44px !important;
  display: flex !important;
  align-items: center;
  gap: 9px;
  margin: 0 !important;
  padding: 8px 10px;
  border: 1px solid #dfe3e8;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.document-check-item:has(input:checked) {
  border-color: #8bc6ac;
  background: #f1fbf6;
}

.document-check-item input {
  width: 20px;
  height: 20px;
  accent-color: #19704d;
}

.auxiliary-fields {
  margin-top: 10px;
}

.intake-drop-zone {
  padding: 18px;
  border: 1.5px dashed #b9c2cc;
  border-radius: 9px;
  background: #fafbfc;
  transition: border-color .18s ease, background .18s ease;
}

.intake-drop-zone.is-dragging {
  border-color: #c8102e;
  background: #fff4f6;
}

.note-field {
  margin-top: 5px;
}

.note-field label small {
  color: #8a929c;
  font-weight: 400;
}

.partner-primary {
  border-radius: 8px;
  background: linear-gradient(135deg, #d41436, #a70925);
  box-shadow: 0 8px 20px rgba(200, 16, 46, .2);
}

.permission-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.permission-toolbar input {
  max-width: 420px;
}

.permission-grid ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.permission-grid label {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface-alt);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.permission-grid input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--accent-red);
}

@media (max-width: 620px) {
  .request-type-switch {
    grid-template-columns: 1fr;
  }

  .request-type-switch label {
    min-height: 66px;
  }

  .identity-checklist {
    padding: 13px;
  }

  .permission-grid ul {
    grid-template-columns: 1fr;
  }
}
