.three-part-form {
  grid-template-columns: minmax(360px, .95fr) minmax(400px, 1.05fr) minmax(330px, .85fr);
}

.lead-register { border-top-color: #2394d2; background: linear-gradient(145deg, #f5fbff, #eaf6fd); }
.intent-main { border-top-color: #79a83b; background: linear-gradient(145deg, #f9fdf4, #eef7e5); }
.intent-side { display: flex; flex-direction: column; border-top-color: #df9a3b; background: linear-gradient(145deg, #fffaf4, #fff0df); }

.source-field { grid-template-columns: 1fr; }
.source-field > span, .customer-region > span { padding-top: 0; }
.source-chips { display: grid; grid-template-columns: repeat(3, minmax(70px, 1fr)); gap: 7px; }
.source-option { display: block; }
.source-option > button { width: 100%; min-height: 34px; padding: 6px 8px; border: 1px solid #8fccef; border-radius: 7px; background: #fff; color: #2678a7; cursor: pointer; }
.source-option > button.active { border-color: #0788d7; background: #0788d7; color: #fff; }
.customer-region { grid-template-columns: 1fr; }
.customer-region .choice-chips { display: grid; grid-template-columns: repeat(3, minmax(70px, 1fr)); }
.lead-register > .platform-account { margin-top: 10px; grid-template-columns: 92px minmax(0, 1fr); align-items: center; }
.lead-owner { margin-top: 16px; }
.lead-owner input[readonly] { background: #edf5f8; color: #2f6d8c; font-weight: 700; }
.intent-main .choice-field, .intent-side .choice-field { grid-template-columns: 76px minmax(0, 1fr); }
.intent-side .intent-options { display: grid; grid-template-columns: 1fr; gap: 13px; margin-top: 0; }
.intent-side .intent-options .choice-field { grid-template-columns: 76px minmax(0, 1fr); margin-top: 0; }
.intent-side .intent-options .choice-field > span { padding-top: 8px; }
.intent-side .intent-footer { margin-top: 16px; }
.intent-side .intent-footer textarea { min-height: 92px; }
.intent-side .actions { margin-top: auto; padding-top: 18px; }

#tableGroupHead th { top: 0; z-index: 4; text-align: center; font-size: 14px; letter-spacing: .5px; border-bottom: 2px solid #fff; }
#tableHead th { top: 39px; z-index: 3; }
thead th.group-lead { background: #2394d2; }
thead th.group-intent { background: #79a83b; }
thead th.group-purchase { background: #df9a3b; }
tbody td.group-lead { background: #f1f9fe; }
tbody td.group-intent { background: #f3f9eb; }
tbody td.group-purchase { background: #fff5e9; }

@media (max-width: 1180px) {
  .three-part-form { grid-template-columns: 1fr 1fr; }
  .intent-side { grid-column: 1 / -1; }
  .intent-side .intent-options { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .three-part-form { grid-template-columns: 1fr; }
  .intent-side { grid-column: auto; }
  .intent-side .intent-options { grid-template-columns: 1fr; }
  .source-field, .intent-main .choice-field, .intent-side .choice-field, .intent-side .intent-options .choice-field { grid-template-columns: 1fr; }
}
