:root {
  --bg: #eef2f6;
  --panel: #ffffff;
  --ink: #17202a;
  --muted: #667085;
  --line: #d9e0e8;
  --brand: #147c72;
  --brand-dark: #0d5f57;
  --brand-soft: #dff4ef;
  --accent: #f2b84b;
  --error: #c33b32;
  --shadow: 0 24px 70px rgba(23, 32, 42, 0.13);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(20, 124, 114, 0.12), rgba(242, 184, 75, 0.1)),
    var(--bg);
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  gap: 28px;
  width: min(1120px, calc(100% - 32px));
  margin: 32px auto;
}

.brand-panel,
.form-panel {
  min-width: 0;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: calc(100vh - 64px);
  padding: 34px;
  overflow: hidden;
  border-radius: 8px;
}

.language-control {
  display: grid;
  grid-template-columns: auto minmax(160px, 220px);
  gap: 12px;
  align-items: center;
  align-self: flex-end;
  margin-bottom: 22px;
}

.language-control span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.language-control select {
  height: 42px;
  padding: 0 12px;
  background: #fff;
}

.brand-lockup {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.brand-mark {
  position: relative;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--brand);
}

.brand-mark span {
  position: absolute;
  display: block;
  background: #fff;
}

.brand-mark span:first-child {
  top: 14px;
  left: 13px;
  width: 26px;
  height: 6px;
}

.brand-mark span:last-child {
  top: 14px;
  left: 23px;
  width: 6px;
  height: 25px;
}

.company-name {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.2;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 420px;
  margin-bottom: 0;
  font-size: 3.25rem;
  line-height: 1.05;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.parcel-visual {
  position: relative;
  min-height: 300px;
  margin: 36px 0;
}

.parcel-box {
  position: absolute;
  left: 12%;
  top: 34px;
  width: min(290px, 78%);
  aspect-ratio: 1.18;
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 48%, rgba(255, 255, 255, 0.32) 48% 55%, transparent 55%),
    #c99355;
  box-shadow: 0 22px 40px rgba(101, 69, 34, 0.22);
  transform: rotate(-4deg);
}

.parcel-tape {
  position: absolute;
  inset: 0 auto 0 46%;
  width: 38px;
  background: rgba(255, 238, 181, 0.74);
}

.parcel-label {
  position: absolute;
  right: 26px;
  bottom: 28px;
  width: 116px;
  padding: 15px 14px;
  border-radius: 6px;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(23, 32, 42, 0.07);
}

.parcel-label span {
  display: block;
  height: 8px;
  margin-bottom: 9px;
  border-radius: 2px;
  background: #9aa7b4;
}

.parcel-label span:nth-child(2) {
  width: 72%;
}

.parcel-label span:last-child {
  width: 88%;
  margin-bottom: 0;
}

.status-card {
  position: absolute;
  right: 0;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(240px, 68%);
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(23, 32, 42, 0.16);
}

.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 6px var(--brand-soft);
}

.status-card strong,
.status-card small {
  display: block;
}

.status-card small {
  margin-top: 4px;
  color: var(--muted);
}

.service-points {
  display: grid;
  gap: 18px;
  padding: 0;
  margin: auto 0 0;
  list-style: none;
}

.service-points li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: flex-start;
}

.point-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.service-points p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.form-panel {
  padding: 38px;
  border-radius: 8px;
}

.form-heading {
  margin-bottom: 24px;
}

.form-heading h2,
.success-step h2 {
  margin-bottom: 8px;
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.form-heading p,
.success-step p {
  color: var(--muted);
  line-height: 1.7;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 26px;
}

.step {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  text-align: left;
}

.step span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #eef2f6;
  font-weight: 800;
}

.step small {
  overflow-wrap: anywhere;
  font-weight: 700;
}

.step.active {
  border-color: rgba(20, 124, 114, 0.36);
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.step.active span {
  color: #fff;
  background: var(--brand);
}

form,
fieldset {
  margin: 0;
}

fieldset {
  padding: 0;
  border: 0;
}

.form-step {
  display: none;
}

.form-step.active {
  display: grid;
  gap: 18px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
}

label > span {
  font-weight: 800;
  overflow-wrap: anywhere;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

input,
select {
  height: 52px;
  padding: 0 15px;
}

textarea {
  resize: vertical;
  min-height: 128px;
  padding: 14px 15px;
  line-height: 1.6;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(20, 124, 114, 0.12);
}

.invalid {
  border-color: var(--error);
}

.helper-box {
  padding: 16px;
  border: 1px solid rgba(20, 124, 114, 0.18);
  border-radius: 8px;
  background: #f4fbf9;
}

.helper-box p,
.file-control small {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.checkbox-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.checkbox-row span {
  font-weight: 600;
  line-height: 1.6;
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 6px;
}

.actions.spread {
  justify-content: space-between;
}

.primary-btn,
.secondary-btn {
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.primary-btn {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 10px 22px rgba(20, 124, 114, 0.24);
}

.primary-btn:hover {
  background: var(--brand-dark);
}

.primary-btn:disabled {
  cursor: wait;
  opacity: 0.72;
}

.secondary-btn {
  color: var(--ink);
  background: #e9eef3;
}

.form-status {
  min-height: 24px;
  margin: -4px 0 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

.form-status.error {
  color: var(--error);
}

.success-step {
  justify-items: center;
  padding: 36px 0 8px;
  text-align: center;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  font-size: 2.2rem;
  font-weight: 900;
}

.summary-list {
  display: grid;
  gap: 10px;
  width: 100%;
  margin: 10px 0;
  text-align: left;
}

.summary-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 15px;
  border-radius: 8px;
  background: #f6f8fa;
}

.summary-list dt,
.summary-list dd {
  margin: 0;
}

.summary-list dt {
  color: var(--muted);
  font-weight: 700;
}

.summary-list dd {
  overflow-wrap: anywhere;
  font-weight: 800;
  text-align: right;
}

@media (max-width: 900px) {
  .page-shell {
    grid-template-columns: 1fr;
    width: min(680px, calc(100% - 24px));
    margin: 12px auto;
  }

  .brand-panel {
    min-height: auto;
  }

  .parcel-visual {
    min-height: 250px;
  }

  h1 {
    font-size: 2.65rem;
  }
}

@media (max-width: 560px) {
  .brand-panel,
  .form-panel {
    padding: 22px;
  }

  .language-control {
    grid-template-columns: 1fr;
    align-self: stretch;
    margin-bottom: 18px;
  }

  h1 {
    font-size: 2.15rem;
  }

  .form-heading h2,
  .success-step h2 {
    font-size: 1.55rem;
  }

  .stepper,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .step {
    min-height: 50px;
  }

  .actions,
  .actions.spread {
    flex-direction: column-reverse;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
  }

  .parcel-box {
    left: 0;
    width: 82%;
  }

  .status-card {
    width: 82%;
  }
}
