:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --ink: #14211d;
  --muted: #65716d;
  --line: #dde8e8;
  --accent: #00a884;
  --accent-dark: #08705d;
  --accent-soft: #defaf2;
  --sun: #ffc247;
  --sky: #4f8cff;
  --coral: #ff6b5f;
  --warning: #b45b00;
  --shadow: 0 18px 50px rgba(20, 33, 29, 0.09);
  --lift-shadow: 0 22px 58px rgba(0, 168, 132, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 194, 71, 0.24), transparent 26%),
    radial-gradient(circle at 86% 6%, rgba(79, 140, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #fbfffd 0%, var(--bg) 42%, #eef7f5 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(20, 33, 29, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 33, 29, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 72%);
}

.ambient-glow {
  position: fixed;
  inset: auto 8% 8% auto;
  z-index: -1;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0, 168, 132, 0.26), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}

button,
input {
  font: inherit;
}

.hidden-field {
  display: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(221, 232, 232, 0.78);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 14px;
  filter: drop-shadow(0 12px 18px rgba(0, 168, 132, 0.2));
  transition: transform 0.18s ease, filter 0.18s ease;
}

.brand:hover .brand-mark {
  transform: rotate(-3deg) scale(1.04);
  filter: drop-shadow(0 15px 22px rgba(0, 168, 132, 0.28));
}

.brand-wordmark {
  display: grid;
  gap: 0;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  font-weight: 850;
  line-height: 0.96;
  letter-spacing: 0;
}

.brand-wordmark strong {
  color: var(--accent-dark);
  font-size: 1.17em;
  font-weight: 900;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.step {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  background: white;
  font-size: 0.86rem;
  font-weight: 700;
}

.step.is-active,
.step.is-done {
  color: #064d40;
  border-color: rgba(0, 168, 132, 0.28);
  background: linear-gradient(135deg, #e7fff7, #eff5ff);
  box-shadow: 0 8px 18px rgba(0, 168, 132, 0.12);
}

.page-shell {
  width: min(1080px, calc(100% - 28px));
  margin: 26px auto 54px;
}

.intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.72fr);
  gap: 16px;
  margin-bottom: 20px;
}

.intro-panel > div,
.upload-panel {
  border: 1px solid rgba(221, 232, 232, 0.86);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.intro-panel > div:first-child {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 4vw, 34px);
  color: white;
  background:
    linear-gradient(135deg, rgba(8, 112, 93, 0.94), rgba(25, 126, 195, 0.9)),
    url("../img/document-workflow.svg") right 24px bottom 18px / 230px auto no-repeat;
}

.intro-panel > div:first-child::after {
  content: "";
  position: absolute;
  right: -54px;
  top: -64px;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background: rgba(255, 194, 71, 0.28);
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

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

.hero-card .eyebrow {
  color: #caffee;
}

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

h1 {
  max-width: 660px;
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.intro-copy {
  max-width: 560px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.04rem;
  line-height: 1.6;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-pills span {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 8px 11px;
  color: white;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  font-weight: 800;
}

.status-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
}

.status-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 168, 132, 0.1), transparent 46%, rgba(255, 194, 71, 0.16));
  pointer-events: none;
}

.status-grid {
  display: grid;
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.status-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 850;
  color: var(--accent-dark);
}

.status-label,
.section-heading p,
.form-note,
.status-note,
.doc-text small {
  color: var(--muted);
}

.price-highlight {
  display: grid;
  gap: 3px;
  min-width: 190px;
  border: 1px solid rgba(0, 168, 132, 0.24);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.74);
  text-align: right;
}

.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  border: 1px solid rgba(255, 194, 71, 0.44);
  border-radius: 999px;
  padding: 8px 11px;
  color: #7d4c00;
  background: #fff8df;
  font-size: 0.82rem;
}

.streak-badge strong {
  font-weight: 850;
}

.price-highlight span,
.price-highlight small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.price-highlight strong {
  color: var(--accent-dark);
  font-size: 1.55rem;
  line-height: 1.1;
}

.status-note {
  margin: 12px 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.progress-track {
  overflow: hidden;
  height: 10px;
  margin-top: 18px;
  border-radius: 999px;
  background: #e5eeee;
  box-shadow: inset 0 1px 3px rgba(20, 33, 29, 0.12);
}

.progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--sun), var(--coral));
  box-shadow: 0 0 18px rgba(0, 168, 132, 0.35);
  transition: width 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.progress-milestones {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.progress-milestones span {
  height: 4px;
  border-radius: 999px;
  background: rgba(0, 168, 132, 0.18);
}

.workspace-grid {
  display: block;
}

.upload-panel {
  padding: clamp(20px, 3vw, 30px);
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading p {
  margin-bottom: 0;
  line-height: 1.55;
}

.customer-section {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}

.input-field {
  display: grid;
  gap: 8px;
  max-width: 460px;
  color: var(--ink);
  font-weight: 800;
}

.identity-field {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 220px) minmax(260px, 1fr);
  gap: 14px;
  max-width: 980px;
}

.identity-field .input-field {
  max-width: none;
}

.wide-field {
  max-width: 760px;
}

.short-field {
  max-width: 190px;
}

.street-field {
  max-width: none;
}

.input-field input,
.input-field textarea {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(20, 33, 29, 0.03);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.input-field textarea {
  min-height: 92px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.5;
}

.input-field small {
  max-width: 760px;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.45;
}

.input-field input:focus,
.input-field textarea:focus {
  outline: 3px solid rgba(0, 168, 132, 0.18);
  border-color: var(--accent);
  box-shadow: 0 12px 26px rgba(0, 168, 132, 0.12);
}

.choice-field {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff, #f8fffc);
}

.address-field {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 130px minmax(0, 1.4fr) 150px 120px;
  gap: 14px;
  max-width: 980px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff, #f8fffc);
}

.address-field legend {
  padding: 0 6px;
  color: var(--ink);
  font-weight: 800;
}

.choice-field legend {
  padding: 0 6px;
  color: var(--ink);
  font-weight: 800;
}

.choice-field label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 750;
  border-radius: 8px;
  padding: 8px;
  transition: background 0.18s ease, color 0.18s ease;
}

.choice-field label:hover {
  color: var(--ink);
  background: var(--accent-soft);
}

.choice-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.document-list {
  display: grid;
  gap: 14px;
}

.document-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 122px 104px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(221, 232, 232, 0.95);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #fbfffd);
  box-shadow: 0 8px 22px rgba(20, 33, 29, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.document-row:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 168, 132, 0.34);
  box-shadow: var(--lift-shadow);
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(0, 168, 132, 0.32);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--accent-dark);
  background: #ffffff;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.download-button:hover {
  transform: translateY(-1px);
  background: var(--accent-soft);
  box-shadow: 0 10px 20px rgba(0, 168, 132, 0.14);
}

.document-row.is-complete {
  border-color: rgba(0, 168, 132, 0.42);
  background: linear-gradient(135deg, #f0fff9, #ffffff);
  box-shadow: 0 12px 30px rgba(0, 168, 132, 0.12);
}

.document-row.just-completed {
  animation: complete-pop 0.42s ease;
}

@keyframes complete-pop {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.012);
  }

  100% {
    transform: scale(1);
  }
}

.doc-icon {
  display: grid;
  grid-row: 1 / span 2;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  color: var(--accent-dark);
  background: linear-gradient(135deg, #e7fff7, #edf4ff);
  font-size: 1.35rem;
  font-weight: 850;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(0, 168, 132, 0.1);
  transition: transform 0.18s ease, background 0.18s ease;
}

.document-row:hover .doc-icon {
  transform: rotate(-3deg) scale(1.05);
}

.document-row.is-complete .doc-icon {
  background: linear-gradient(135deg, #dffff3, #fff3c7);
}

.doc-text {
  display: grid;
  gap: 4px;
}

.document-row input[type="file"] {
  grid-column: 2 / 4;
  grid-row: 2;
  width: 100%;
  color: var(--muted);
  font-size: 0.86rem;
}

.file-state {
  grid-column: 4;
  grid-row: 2;
  justify-self: end;
  min-width: 112px;
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--warning);
  background: #fff6e8;
  font-size: 0.82rem;
  font-weight: 750;
  text-align: right;
}

.document-row.is-complete .file-state {
  color: #064d40;
  background: #dffbf1;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.form-note {
  margin-bottom: 0;
  line-height: 1.45;
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.primary-button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 0 24px;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--sky));
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 15px 30px rgba(0, 168, 132, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.primary-button:hover {
  transform: translateY(-1px);
  filter: saturate(1.08);
  box-shadow: 0 18px 36px rgba(0, 168, 132, 0.32);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
  box-shadow: none;
}

.secondary-button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 0 24px;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--sky));
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 15px 30px rgba(0, 168, 132, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.secondary-button[hidden] {
  display: none;
}

.secondary-button:hover {
  transform: translateY(-1px);
  filter: saturate(1.08);
  box-shadow: 0 18px 36px rgba(0, 168, 132, 0.32);
}

.confirmation-panel {
  margin-top: 22px;
  border: 1px solid rgba(0, 168, 132, 0.35);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 24px);
  background: linear-gradient(135deg, #edfff8, #ffffff);
  box-shadow: var(--lift-shadow);
}

.confirmation-panel:focus {
  outline: 3px solid #bfe8dc;
  outline-offset: 3px;
}

.confirmation-panel h2 {
  margin-bottom: 10px;
}

.confirmation-panel p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.process-image {
  display: block;
  width: 100%;
  max-height: 190px;
  object-fit: contain;
  margin-bottom: 24px;
  border-radius: 8px;
  background: #eef5f1;
}

.notes-field textarea {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #fbfdfc;
}

.notes-field textarea {
  min-height: 116px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.5;
}

.compact-field textarea {
  min-height: 86px;
}

.notes-field {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.notes-field label {
  font-weight: 800;
}

.field-hint {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
}

.notes-field small {
  color: var(--muted);
}

.notes-field textarea:focus {
  outline: 3px solid #bfe8dc;
  border-color: var(--accent);
}

.consent-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.consent-field input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.consent-field span {
  max-width: 760px;
}

@media (max-width: 920px) {
  .intro-panel {
    grid-template-columns: 1fr;
  }

  .address-field {
    grid-template-columns: minmax(0, 1fr) minmax(120px, 0.35fr);
  }

  .identity-field {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .identity-field .input-field:last-child {
    grid-column: 1 / -1;
  }

  .street-field {
    grid-column: 1 / -1;
  }

  .document-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .download-button,
  .download-spacer,
  .document-row input[type="file"],
  .file-state {
    grid-column: 2;
  }

  .download-spacer {
    display: none;
  }

  .file-state {
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .topbar,
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .brand {
    align-self: flex-start;
  }

  .steps {
    justify-content: flex-start;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }

  .price-highlight {
    min-width: 0;
    text-align: left;
  }

  .page-shell {
    width: min(100% - 20px, 1180px);
    margin-top: 20px;
  }

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

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

  .identity-field .input-field:last-child {
    grid-column: auto;
  }

  .street-field {
    grid-column: auto;
  }

  .intro-panel > div:first-child {
    background: linear-gradient(135deg, #08705d, #2d7fe0);
  }

  h1 {
    font-size: 2rem;
  }

  .primary-button {
    width: 100%;
  }

  .action-buttons {
    width: 100%;
  }

  .secondary-button {
    width: 100%;
  }

}
