:root {
  --ems-orange: #ffa500;
  --ems-green: #5fbc3c;
  --ems-soft-green: #b7d2ae;
  --ems-gray: #cfcfcf;
  --ems-black: #000000;
  --ems-white: #ffffff;
  --ems-bg: #f6f5ef;
  --ems-card: rgba(255, 255, 255, 0.9);
  --ems-shadow: 0 24px 80px rgba(0, 0, 0, 0.12);
  --ems-radius: 28px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 165, 0, 0.18), transparent 34%),
    radial-gradient(circle at top right, rgba(95, 188, 60, 0.18), transparent 32%),
    linear-gradient(180deg, #fbfaf5 0%, #eef3e8 100%);
  color: var(--ems-black);
}

body {
  min-height: 100vh;
}

.page-shell {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 24px 16px 112px;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 12px 0 16px;
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  padding: 6px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.eyebrow,
.section-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ems-green);
  font-style: italic;
}

.brand-title {
  margin: 4px 0 0;
  font-size: 1.2rem;
  line-height: 1.15;
}

.progress-shell {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.progress-bar {
  height: 9px;
  border-radius: 999px;
  background: rgba(207, 207, 207, 0.7);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 11.11%;
  background: linear-gradient(90deg, var(--ems-orange), var(--ems-green));
  border-radius: inherit;
  transition: width 220ms ease;
}

.section-scroller {
  display: grid;
  gap: 0;
  padding-bottom: 16vh;
}

.app-section {
  position: sticky;
  top: 154px;
  min-height: calc(100vh - 186px);
  display: flex;
  align-items: stretch;
  padding-bottom: 14vh;
}

.section-card {
  width: 100%;
  background: var(--ems-card);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--ems-radius);
  box-shadow: var(--ems-shadow);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 186px);
}

.hero-card,
.success-card {
  text-align: center;
}

h2 {
  margin: 10px 0 12px;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  line-height: 0.98;
}

.section-copy {
  margin: 0;
  color: rgba(0, 0, 0, 0.72);
  font-size: 1rem;
  line-height: 1.6;
}

.support-card span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(95, 188, 60, 0.12);
  border: 1px solid rgba(95, 188, 60, 0.22);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.field,
.upload-group,
.choice-group,
.conditional-panel,
.review-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.field span,
.upload-copy span,
.choice-group p,
.color-heading {
  font-size: 0.92rem;
  color: rgba(0, 0, 0, 0.72);
  margin: 0;
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.96);
  font: inherit;
  color: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(255, 165, 0, 0.5);
  border-color: rgba(255, 165, 0, 0.5);
}

.color-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.color-button {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 18px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease;
}

.color-button.is-selected {
  border-color: var(--ems-black);
  transform: translateY(-2px);
}

.color-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.color-chip {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.upload-stack {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.upload-group {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.upload-zone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 132px;
  text-align: center;
  border: 2px dashed rgba(95, 188, 60, 0.35);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(183,210,174,0.16));
  cursor: pointer;
  overflow: hidden;
}

.upload-zone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-list {
  display: grid;
  gap: 8px;
}

.file-chip {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.04);
}

.file-remove {
  border: 0;
  background: transparent;
  color: #9d3e00;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill-button {
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 12px 16px;
  cursor: pointer;
  font: inherit;
}

.pill-button.is-selected {
  background: var(--ems-green);
  color: var(--ems-white);
  border-color: var(--ems-green);
}

.conditional-panel {
  margin-top: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 20px;
}

.review-grid {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.review-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.75);
}

.review-card h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.review-card p {
  margin: 0;
  white-space: pre-line;
  color: rgba(0, 0, 0, 0.75);
  line-height: 1.5;
}

.submit-row {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.submit-status {
  margin: 0;
  min-height: 24px;
  font-size: 0.92rem;
}

.support-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}

.success-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(12px);
}

.success-dialog {
  width: min(100%, 560px);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--ems-shadow);
  padding: 28px 24px;
  text-align: center;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 12px;
  padding: 14px 16px 18px;
  background: rgba(246, 245, 239, 0.92);
  backdrop-filter: blur(20px);
}

.nav-button,
.primary-button,
.secondary-button {
  border: 0;
  border-radius: 18px;
  padding: 14px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.nav-button {
  flex: 1;
}

.primary-button {
  background: linear-gradient(135deg, var(--ems-orange), var(--ems-green));
  color: var(--ems-white);
  box-shadow: 0 16px 34px rgba(95, 188, 60, 0.2);
}

.secondary-button {
  background: rgba(0, 0, 0, 0.08);
  color: var(--ems-black);
}

.hidden,
.hidden-frame {
  display: none !important;
}

@media (max-width: 800px) {
  .field-grid,
  .color-section {
    grid-template-columns: 1fr;
  }

  .page-shell {
    padding-bottom: 120px;
  }

  .app-section {
    top: 142px;
    min-height: calc(100vh - 170px);
    padding-bottom: 12vh;
  }

  .section-card {
    min-height: calc(100vh - 170px);
  }

  h2 {
    font-size: 2.1rem;
  }
}
