body {
  margin: 0;
  min-height: 100%;
  color: #0f172a;
  background:
    radial-gradient(720px 280px at 50% -80px, rgba(66, 133, 245, 0.22), transparent 70%),
    linear-gradient(180deg, #f7fafc 0%, #e7eef6 100%);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.upload-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.upload-logo-link {
  display: flex;
}

.upload-logo {
  display: block;
  height: 38px;
  width: auto;
  max-width: min(220px, 58vw);
  object-fit: contain;
}

.upload-back {
  color: #1d4ed8;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.upload-back:hover {
  text-decoration: underline;
}

.upload-main {
  width: min(40rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.75rem 0 2.5rem;
}

.upload-intro h1 {
  margin: 0 0 0.4rem;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}

.upload-intro p {
  margin: 0 0 1.15rem;
  color: #64748b;
  line-height: 1.5;
}

.upload-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  counter-reset: upload-step;
}

.upload-steps li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.72);
  color: #64748b;
  font-weight: 600;
}

.upload-steps li::before {
  content: counter(upload-step);
  counter-increment: upload-step;
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 0.82rem;
}

.upload-steps li[aria-current="step"] {
  border-color: #bfdbfe;
  background: #fff;
  color: #1d4ed8;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.08);
}

.upload-steps li[aria-current="step"]::before {
  background: #2563eb;
  color: #fff;
}

.upload-card {
  display: grid;
  gap: 0.9rem;
  padding: 1.35rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.upload-step {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}

.upload-step[hidden],
.upload-card label[hidden],
.upload-choice[hidden],
#profile-details[hidden],
#listed-contact[hidden],
.upload-actions[hidden],
.upload-actions button[hidden] {
  display: none;
}

#profile-details,
#listed-contact {
  display: grid;
  gap: 0.9rem;
}

.upload-choice {
  display: grid;
  gap: 0.65rem;
}

.upload-choice-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.upload-choice-copy {
  margin: 0 0 0.2rem;
  color: #64748b;
  line-height: 1.45;
}

.upload-card label.upload-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.7rem;
  font-weight: 600;
  cursor: pointer;
}

.upload-card label.upload-option:has(input:checked) {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

.upload-card label.upload-option input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: #2563eb;
}

.upload-card label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.carrier-lookup {
  position: relative;
  font-weight: 400;
}

.carrier-lookup input {
  width: 100%;
}

.carrier-hint {
  font-size: 0.82rem;
  font-weight: 400;
  color: #64748b;
}

.carrier-suggest {
  position: absolute;
  z-index: 2;
  top: calc(100% + 0.2rem);
  left: 0;
  right: 0;
  max-height: 16rem;
  margin: 0;
  padding: 0.25rem 0;
  overflow: auto;
  list-style: none;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 0.45rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.carrier-suggest button {
  width: 100%;
  padding: 0.5rem 0.7rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.carrier-suggest button.is-active,
.carrier-suggest button:hover {
  background: #eff6ff;
}

.carrier-suggest .is-new {
  color: #1d4ed8;
}

.upload-card input,
.upload-card select,
.upload-card textarea {
  box-sizing: border-box;
  width: 100%;
  font: inherit;
  font-weight: 400;
  padding: 0.65rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.55rem;
  background: #fff;
}

.upload-card input:focus,
.upload-card select:focus,
.upload-card textarea:focus {
  outline: 2px solid rgba(37, 99, 235, 0.25);
  border-color: #2563eb;
}

.upload-step > button,
.upload-actions button {
  justify-self: stretch;
  border: 0;
  border-radius: 0.55rem;
  padding: 0.75rem 1rem;
  background: #2563eb;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.upload-step > button:hover,
.upload-actions button[type="submit"]:hover {
  background: #1d4ed8;
}

.upload-actions {
  display: flex;
  gap: 0.6rem;
}

.upload-actions button[type="submit"] {
  flex: 1;
}

#upload-back {
  background: #fff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

.upload-step > button:disabled,
.upload-actions button:disabled {
  opacity: 0.6;
  cursor: default;
}

.upload-message {
  margin: 0;
  line-height: 1.4;
}

.upload-message.is-error {
  color: #a73333;
}

.upload-message.is-ok {
  color: #166534;
}
