.mg-partner-layout {
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
}

.mg-partner-panel {
  overflow: hidden;
}

.mg-partner-panel .mg-panel-head {
  border-bottom: 1px solid #e2e9e5;
}

.mg-required-mark {
  color: #d84d43;
  font-weight: 900;
}

.mg-privacy-notice {
  margin: 22px 22px 0;
  padding: 20px;
  border: 1px solid #dce4e0;
  border-radius: 13px;
  background: #f8faf9;
}

.mg-privacy-notice h3 {
  margin: 0 0 14px;
  color: #173f35;
  font-size: 16px;
}

.mg-privacy-notice ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mg-privacy-notice li {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  color: #586861;
  font-size: 13px;
  line-height: 1.65;
}

.mg-privacy-notice li strong {
  color: #263c35;
}

.mg-privacy-notice > a {
  display: inline-flex;
  margin-top: 13px;
  color: #173f35;
  font-size: 12px;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mg-partner-form {
  position: relative;
  display: grid;
  gap: 16px;
}

.mg-partner-form > label,
.mg-partner-form .mg-form-grid > label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
}

.mg-partner-form input,
.mg-partner-form select {
  min-height: 50px;
}

.mg-partner-form textarea {
  min-height: 210px;
  resize: vertical;
  line-height: 1.65;
}

.mg-character-count {
  margin-top: -2px;
  color: #7b8984;
  font-size: 12px;
  font-weight: 500;
  text-align: right;
}

.mg-character-count b {
  color: #173f35;
}

.mg-partner-consent {
  display: flex !important;
  align-items: flex-start;
  gap: 10px !important;
  padding: 16px;
  border: 1px solid #dce4e0;
  border-radius: 12px;
  background: #fff;
  color: #465750;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.55;
}

.mg-partner-consent input {
  flex: 0 0 auto;
  width: 18px;
  min-height: 18px;
  margin: 1px 0 0;
  accent-color: #173f35;
}

.mg-partner-consent strong {
  color: #173f35;
}

.mg-partner-submit {
  width: 100%;
  min-height: 54px;
  border: 0;
  cursor: pointer;
  font-size: 15px;
}

.mg-partner-submit:disabled {
  cursor: wait;
  opacity: .7;
}

.mg-partner-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.mg-partner-guide {
  position: sticky;
  top: 92px;
  gap: 13px;
  padding: 24px;
}

.mg-partner-guide .mg-sub-label {
  justify-self: start;
}

.mg-partner-guide__note {
  padding: 16px;
  border-radius: 12px;
  background: #173f35;
  color: #fff;
}

.mg-partner-guide__note strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}

.mg-partner-guide__note p {
  margin: 0;
  color: rgba(255, 255, 255, .76);
  font-size: 12px;
  line-height: 1.6;
}

.mg-partner-success {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: clamp(46px, 8vw, 82px) 24px;
  text-align: center;
}

.mg-partner-success__icon {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border-radius: 50%;
  background: #173f35;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
}

.mg-partner-success h2 {
  margin: 4px 0 0;
  color: #173f35;
  font-size: clamp(24px, 4vw, 34px);
}

.mg-partner-success > p {
  max-width: 660px;
  margin: 0;
  color: #617169;
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .mg-partner-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
  }
}

@media (max-width: 767px) {
  .mg-partner-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .mg-privacy-notice {
    margin: 16px 16px 0;
    padding: 16px;
  }

  .mg-privacy-notice li {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .mg-partner-guide {
    position: static;
    padding: 19px;
  }

  .mg-partner-form textarea {
    min-height: 180px;
  }
}
