.company-profile,
.company-profile * {
  box-sizing: border-box;
}

.company-profile {
  width: 100%;
  min-width: 0;
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid #dce3ee;
  border-radius: 16px;
  background: #fff;
  color: #1a2233;
  font-family: inherit;
  line-height: 1.6;
}

#account-company-profile {
  margin: 28px 0;
}

#account-company-profile:empty {
  display: none;
}

.company-profile__eyebrow {
  margin: 0 0 8px;
  color: #315b9b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.company-profile__title {
  margin: 0 0 12px;
  font-size: clamp(21px, 3vw, 28px);
  line-height: 1.35;
}

.company-profile__description {
  max-width: 820px;
  margin: 0 0 18px;
  color: #556176;
  font-size: 14px;
}

.company-profile__benefit {
  margin-bottom: 22px;
  padding: 16px 18px;
  border: 1px solid #d8e5f9;
  border-left: 3px solid #1f66d1;
  border-radius: 8px;
  background: #f1f6fe;
}

.company-profile__benefit-title {
  margin: 0 0 5px;
  color: #254a80;
  font-size: 14px;
  font-weight: 700;
}

.company-profile__benefit-text {
  margin: 0;
  color: #425a7a;
  font-size: 13px;
}

.company-profile__optional {
  margin: 0 0 16px;
  color: #626d7f;
  font-size: 12px;
}

.company-profile__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
}

.company-profile__field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
}

.company-profile__label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 700;
}

.company-profile__input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  margin-top: auto;
  padding: 11px 12px;
  border: 1px solid #aebbd0;
  border-radius: 8px;
  background: #fff;
  color: #1a2233;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
}

.company-profile__input:focus-visible,
.company-profile__button:focus-visible {
  outline: 3px solid #7db0ff;
  outline-offset: 3px;
}

.company-profile__input[aria-invalid='true'] {
  border-color: #b3261e;
}

.company-profile__field-error {
  color: #a5231b;
  font-size: 12px;
}

.company-profile__field-error:not(:empty) {
  margin-top: 6px;
}

.company-profile__notice {
  margin: 22px 0 18px;
  color: #626d7f;
  font-size: 12px;
}

.company-profile__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.company-profile__button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid #bcc9db;
  border-radius: 8px;
  background: #fff;
  color: #254a80;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.company-profile__button:hover {
  background: #f1f6fe;
}

.company-profile__button--primary {
  border-color: #1f66d1;
  background: #1f66d1;
  color: #fff;
}

.company-profile__button--primary:hover {
  border-color: #174fa4;
  background: #174fa4;
}

.company-profile__button:disabled,
.company-profile__input:disabled {
  cursor: wait;
  opacity: 0.65;
}

.company-profile__status {
  margin: 16px 0 0;
  color: #1a6740;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.company-profile__status:empty {
  margin: 0;
}

.company-profile__status--error {
  color: #a5231b;
}

@media (max-width: 600px) {
  .company-profile__fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .company-profile__actions > .company-profile__button {
    flex: 1 1 100%;
  }
}
