.entity-representation-main {
  padding-bottom: 36px;
}

.entity-representation-shell {
  max-width: 980px;
}

.entity-representation-hero {
  max-width: 760px;
}

.entity-representation-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 18px;
  align-items: start;
}

.entity-representation-target,
.entity-representation-form-card,
.entity-representation-unavailable {
  min-width: 0;
  padding: 26px;
}

.entity-representation-target {
  position: sticky;
  top: 92px;
}

.entity-representation-target__icon,
.entity-representation-success > span,
.entity-representation-unavailable > span {
  display: inline-grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, #eeecff, #f9effa);
  color: #6355e8;
}

.entity-representation-target > p {
  margin: 18px 0 4px;
  color: #6d61dc;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.entity-representation-target h2,
.entity-representation-form-card h2,
.entity-representation-unavailable h1 {
  margin: 0;
  color: #20283a;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.2;
}

.entity-representation-target ul {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.entity-representation-target li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  color: #5f687a;
  font-size: 0.86rem;
  line-height: 1.45;
}

.entity-representation-target li svg {
  width: 19px;
  color: #7164e8;
}

.entity-representation-form-intro {
  margin: 8px 0 22px;
  color: #6b7280;
  font-size: 0.9rem;
}

.entity-representation-form-card form {
  display: grid;
  gap: 16px;
}

.entity-representation-form-card label:not(.entity-representation-confirmation) {
  display: grid;
  gap: 7px;
  color: #30384b;
  font-size: 0.84rem;
  font-weight: 780;
}

.entity-representation-form-card input:not([type="checkbox"]),
.entity-representation-form-card select {
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  border: 1px solid #dfe3ec;
  border-radius: 14px;
  background: #fbfcff;
  color: #1e293b;
  font-size: 1rem;
}

.entity-representation-form-card [aria-invalid="true"] {
  border-color: #cc3157 !important;
  background: #fff8fa;
}

.entity-representation-contact-grid {
  display: grid;
  grid-template-columns: minmax(130px, 0.42fr) minmax(0, 1fr);
  gap: 12px;
}

.entity-representation-confirmation {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 14px;
  border: 1px solid #e5e1fb;
  border-radius: 14px;
  background: #faf9ff;
  color: #454c5d;
  font-size: 0.86rem;
  line-height: 1.45;
}

.entity-representation-confirmation input {
  width: 19px;
  height: 19px;
  margin-top: 1px;
  accent-color: #6355e8;
}

.entity-field-error {
  color: #b42348;
  font-size: 0.77rem;
  font-weight: 700;
}

.entity-representation-form-card button,
.entity-representation-success a,
.entity-representation-unavailable a {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, #6457e8, #a733af);
  color: #fff;
  font-weight: 850;
  text-decoration: none;
}

.entity-representation-success,
.entity-representation-unavailable {
  display: grid;
  justify-items: start;
  gap: 14px;
}

.entity-representation-success p,
.entity-representation-unavailable p {
  margin: 0;
  color: #626b7c;
  line-height: 1.55;
}

@media (max-width: 767.98px) {
  .entity-representation-main .container {
    padding-inline: 12px;
  }

  .entity-representation-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .entity-representation-target,
  .entity-representation-form-card,
  .entity-representation-unavailable {
    padding: 22px;
  }

  .entity-representation-target {
    position: static;
  }

  .entity-representation-contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 389.98px) {
  .entity-representation-target,
  .entity-representation-form-card,
  .entity-representation-unavailable {
    padding: 18px;
  }
}
