/* Submit add-on flow — Figma CaTNJTjcUgSE5bWXlyr2S5 */

.submit-page {
  max-width: 1443px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--color-grey-1);
}

.submit-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 56px 0;
}

.submit-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 900px;
}

.submit-hero__title {
  margin: 0;
  font-family: var(--font-text);
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  color: #42414d;
}

.submit-hero__subtitle {
  margin: 0;
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-grey-4);
}

.submit-hero__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding-top: 4px;
}

.submit-page.is-confirmation .submit-hero__actions {
  display: none;
}

.submit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 4px 12px;
  border: 0;
  background: transparent;
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-button-text, #161423);
  cursor: pointer;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 4px 16px;
  border: 0;
  border-radius: 9999px;
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-sizing: border-box;
  text-decoration: none;
}

.submit-btn--primary {
  background: #764edd;
  color: #fff;
}

.submit-btn--primary:disabled,
.submit-btn--primary.is-disabled {
  background: #75669f;
  opacity: 0.7;
  color: #fff;
  cursor: not-allowed;
}

.submit-btn--ghost {
  background: transparent;
  color: var(--color-button-text, #161423);
}

.submit-btn--outline {
  background: transparent;
  border: 1px solid #764edd;
  color: #764edd;
}

.submit-layout {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  padding: 36px 56px 64px;
}

/* ── Rail ─────────────────────────────────────────────── */

.submit-rail {
  width: 404px;
  flex-shrink: 0;
  padding: 26px;
  background: #fff;
  border: 2px solid #f1e7f8;
  border-radius: 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.submit-rail__group {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.submit-rail__label {
  margin: 0;
  padding: 0 10px;
  font-family: var(--font-text);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  color: #42414d;
}

.submit-rail__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
}

.submit-rail__steps::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: #f1e7f8;
}

.submit-rail__step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: #7b7a82;
}

.submit-rail__step::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #f1e7f8;
  background: #fff;
  box-sizing: border-box;
  flex-shrink: 0;
  z-index: 1;
}

.submit-rail__step span {
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 400;
  line-height: normal;
}

.submit-rail__step.is-done {
  color: #42414d;
}

.submit-rail__step.is-done::before {
  border-color: #7543e3;
  background: #7543e3;
}

.submit-rail__step.is-active {
  color: #fff;
}

.submit-rail__step.is-active::before {
  border-color: #7543e3;
  background: #7543e3;
}

.submit-rail__step.is-active span {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 8px;
  background: #7543e3;
  font-weight: 400;
  color: #fff;
}

/* ── Main card ────────────────────────────────────────── */

.submit-main {
  width: 902px;
  max-width: 100%;
  flex-shrink: 0;
  background: #fff;
  border: 2px solid #f1e7f8;
  border-radius: 24px;
  overflow: hidden;
  box-sizing: border-box;
}

.submit-panel {
  display: none;
  flex-direction: column;
  min-height: 640px;
}

.submit-panel.is-active {
  display: flex;
}

.submit-panel__body {
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex: 1;
  padding: 32px 40px 0;
}

.submit-panel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 32px 40px 40px;
}

.submit-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-platform);
  font-size: 13px;
  font-weight: 400;
  color: #42414d;
  line-height: normal;
}

.submit-crumb__sep {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.7;
}

.submit-panel__title {
  margin: 0;
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 600;
  line-height: normal;
  color: #180e30;
}

.submit-panel__lead {
  margin: 0;
  font-family: var(--font-platform);
  font-size: 15px;
  font-weight: 400;
  line-height: normal;
  color: #180e30;
}

.submit-panel__leads {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.submit-step-count {
  font-family: var(--font-platform);
  font-size: 15px;
  color: #7b7a82;
}

.submit-panel__nav {
  display: flex;
  align-items: center;
  gap: 0;
}

/* ── Distribution radios ──────────────────────────────── */

.dist-option {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  width: 100%;
  padding: 24px 20px;
  border: 1px solid #7b7a82;
  border-radius: 24px;
  background: #f9f9fb;
  box-sizing: border-box;
  cursor: pointer;
  text-align: left;
}

.dist-option + .dist-option {
  margin-top: 0;
}

.dist-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.dist-option.is-selected {
  border-color: #7543e3;
  background: #f1e7f8;
}

.dist-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dist-option__radio {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1px solid #a6a4a9;
  box-sizing: border-box;
  flex-shrink: 0;
  background: #fff;
  position: relative;
}

.dist-option.is-selected .dist-option__radio {
  border-color: #764edd;
}

.dist-option.is-selected .dist-option__radio::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #764edd;
  transform: translate(-50%, -50%);
}

.dist-option__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dist-option__title {
  font-family: var(--font-platform);
  font-size: 17px;
  font-weight: 600;
  color: #180e30;
}

.dist-option__desc {
  font-family: var(--font-platform);
  font-size: 15px;
  font-weight: 400;
  line-height: normal;
  color: rgba(24, 14, 48, 0.7);
}

/* ── Upload ───────────────────────────────────────────── */

.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 152px;
  padding: 50px 26px;
  border: 2px dashed #dec9ff;
  border-radius: 12px;
  background: #fff;
  text-align: center;
  box-sizing: border-box;
}

.upload-zone[hidden],
.upload-file[hidden] {
  display: none !important;
}

.upload-zone__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.upload-zone__text {
  margin: 0;
  font-family: var(--font-platform);
  font-size: 15px;
  color: #15141a;
}

.upload-zone__browse {
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 500;
  color: #7543e3;
  text-decoration: underline;
  cursor: pointer;
}

.upload-zone__hint {
  margin: 0;
  font-family: var(--font-platform);
  font-size: 15px;
  color: #7b7a82;
}

.upload-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 152px;
  padding: 50px 26px;
  border: 2px dashed #dec9ff;
  border-radius: 12px;
  background: #fff;
  box-sizing: border-box;
}

.upload-file__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.upload-file__name {
  margin: 0;
  font-family: var(--font-platform);
  font-size: 17px;
  font-weight: 400;
  color: #15141a;
  text-decoration: underline;
}

.upload-file__size {
  margin: 0;
  font-family: var(--font-platform);
  font-size: 17px;
  color: #7b7a82;
}

/* ── Validation message bars ──────────────────────────── */

.message-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.message-bar {
  display: flex;
  align-items: stretch;
  min-height: 32px;
  border: 1px solid #d6d5da;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.message-bar__icon {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px 12px;
  flex-shrink: 0;
}

.message-bar__icon img {
  width: 16px;
  height: 16px;
  display: block;
}

.message-bar--success .message-bar__icon {
  background: #c4f1e0;
}

.message-bar--warning .message-bar__icon {
  background: #fde8b5;
}

.message-bar--critical .message-bar__icon {
  background: #ffd9df;
}

.message-bar__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  padding: 16px 12px;
  min-width: 0;
  flex: 1;
}

.message-bar__title {
  margin: 0;
  font-family: var(--font-platform);
  font-size: 15px;
  font-weight: 600;
  color: #180e30;
}

.message-bar__text {
  margin: 0;
  font-family: var(--font-platform);
  font-size: 15px;
  font-weight: 400;
  color: #180e30;
}

.message-bar__actions {
  margin-top: 4px;
}

/* ── Source code ──────────────────────────────────────── */

.source-box {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  padding: 20px;
  border-radius: 16px;
  background: #f9f9fb;
  box-sizing: border-box;
}

.source-box__question {
  margin: 0;
  font-family: var(--font-platform);
  font-size: 17px;
  font-weight: 600;
  color: #180e30;
}

.source-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-checks li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--font-platform);
  font-size: 15px;
  color: #180e30;
}

.source-checks__box {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border-radius: 4px;
  background: #75669f;
  opacity: 0.7;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10px;
  line-height: 1;
}

.source-box .dist-option {
  background: #fff;
}

.source-box .dist-option.is-selected {
  background: #f1e7f8;
  border-color: #7543e3;
}

.source-box--solo {
  gap: 0;
}

/* ── Forms ────────────────────────────────────────────── */

.submit-fields {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.submit-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.submit-field__label {
  margin: 0;
  font-family: var(--font-platform);
  font-size: 15px;
  font-weight: 400;
  color: #180e30;
}

.submit-field__hint {
  margin: 0;
  font-family: var(--font-text);
  font-size: 13px;
  color: #7b7a82;
}

.submit-field input,
.submit-field textarea,
.submit-field select {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #a6a4a9;
  border-radius: 12px;
  background: #fff;
  box-sizing: border-box;
  font-family: var(--font-platform);
  font-size: 15px;
  color: #180e30;
}

.submit-field input::placeholder,
.submit-field textarea::placeholder {
  color: rgba(24, 14, 48, 0.4);
}

.submit-field textarea {
  min-height: 72px;
  resize: vertical;
}

.submit-field--select {
  position: relative;
}

.submit-field--select select {
  appearance: none;
  padding-left: 36px;
  background-image: url("../icons for dev hub project/chevron-up-16.svg");
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 16px;
}

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

/* ── Graphic assets ───────────────────────────────────── */

.asset-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}

.asset-section + .asset-section {
  margin-top: 20px;
}

.asset-section__label {
  margin: 0;
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 500;
  color: #15141a;
  line-height: 19.5px;
}

.asset-section__req {
  color: #ff453f;
}

.asset-section__hint {
  margin: 0;
  font-family: var(--font-text);
  font-size: 13px;
  color: #7b7a82;
  line-height: 19.5px;
}

.asset-drop-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.asset-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed #e8e8e8;
  border-radius: 12px;
  background: #f9f9fb;
  box-sizing: border-box;
}

.asset-drop--icon {
  width: 128px;
  height: 128px;
}

.asset-drop--shot {
  width: 200px;
  height: 125px;
}

.asset-drop--promo {
  width: 220px;
  height: 140px;
}

.asset-drop--banner {
  width: 100%;
  max-width: 400px;
  height: 160px;
}

.asset-drop__plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 16px;
  background: #f1e7f8;
  font-family: var(--font-text);
  font-size: 20px;
  font-weight: 300;
  color: #7543e3;
  line-height: 1;
}

.asset-drop__label {
  font-family: var(--font-text);
  font-size: 15px;
  color: #7b7a82;
}

/* ── Submit summary ───────────────────────────────────── */

.summary-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.summary-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.summary-row__label {
  margin: 0;
  font-family: var(--font-platform);
  font-size: 15px;
  font-weight: 400;
  color: #535664;
}

.summary-row__value {
  margin: 0;
  font-family: var(--font-platform);
  font-size: 15px;
  font-weight: 400;
  color: #180e30;
  line-height: normal;
}

.summary-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.summary-thumb {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 168px;
}

.summary-thumb__img {
  width: 168px;
  height: 102px;
  object-fit: cover;
  border: 1px dashed #e4d7fc;
  border-radius: 12px;
  display: block;
  background: #f9f9fb;
}

.summary-thumb--sm .summary-thumb__img {
  width: 108px;
  height: 98px;
}

.summary-thumb__size {
  margin: 0;
  font-family: var(--font-platform);
  font-size: 15px;
  font-weight: 600;
  color: #7b7a82;
}

.summary-thumb__hint {
  margin: 0;
  font-family: var(--font-platform);
  font-size: 15px;
  font-weight: 400;
  color: #7b7a82;
}

/* ── Confirmation ─────────────────────────────────────── */

.confirm-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  width: 100%;
  padding-bottom: 8px;
}

.confirm-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.confirm-copy__success {
  margin: 0;
  font-family: var(--font-platform);
  font-size: 15px;
  color: #180e30;
}

.confirm-art {
  width: min(370px, 100%);
  height: auto;
  display: block;
}

.confirm-footer {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  padding: 0 40px 40px;
}

.submit-panel--confirm .submit-panel__body {
  padding-bottom: 0;
}

.submit-panel--confirm .submit-panel__footer {
  display: none;
}

@media (max-width: 1100px) {
  .submit-layout {
    flex-direction: column;
    padding: 24px 24px 48px;
  }

  .submit-hero {
    padding: 24px 24px 0;
    flex-direction: column;
  }

  .submit-rail,
  .submit-main {
    width: 100%;
  }

  .submit-grid-2 {
    grid-template-columns: 1fr;
  }
}
