:root {
  --bg: #5e5955;
  --panel: #f8f4ef;
  --text: #111111;
  --muted: #9a8d83;
  --line: #beb3a9;
  --accent: #c8102e;
  --accent-dark: #a20b24;
  --footer: #231f1b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, var(--bg) 0, var(--bg) 26%, #6a645f 26%, #6a645f 74%, var(--bg) 74%, var(--bg) 100%);
  color: var(--text);
  font-family: "Source Sans 3", sans-serif;
}

.page-shell {
  min-height: calc(100vh - 132px);
  display: flex;
  justify-content: center;
  padding: 0 24px 48px;
}

.panel {
  width: min(100%, 700px);
  background: var(--panel);
  padding: 54px 70px 44px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.02);
}

.form-panel {
  min-height: 780px;
}

h1,
h2,
h2 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.6rem, 4vw, 3.5rem);
  text-align: center;
}

h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.heading-wrap {
  margin-bottom: 30px;
}

.heading-wrap.center {
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead-copy {
  margin: 14px 0 0;
  color: #4c423a;
  font-size: 1.05rem;
}

.notice {
  margin-bottom: 22px;
  padding: 14px 16px;
  border-left: 4px solid var(--accent);
  background: #efe5de;
}

.success {
  border-left-color: #2f7d32;
}

.setup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
  gap: 28px;
  align-items: start;
}

.worker-badge,
.qr-card,
.success-card {
  padding: 18px 20px;
  background: #efe7df;
  border: 1px solid #dccfc3;
}

.store-preview {
  margin-bottom: 24px;
}

.store-preview-grid {
  display: grid;
  gap: 14px;
  background: #efe7df;
  border: 1px solid #dccfc3;
  padding: 18px 20px;
}

.preview-label {
  display: block;
  margin-bottom: 4px;
  color: #7e7065;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.preview-value {
  font-size: 1.02rem;
}

.lead-form {
  display: grid;
  gap: 16px;
}

.customer-form {
  gap: 10px;
}

.lead-form label {
  display: grid;
  gap: 4px;
}

.lead-form span {
  color: #c9b9aa;
  font-size: 0.98rem;
}

.lead-form input,
.lead-form textarea,
.lead-form select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 8px 0 7px;
  color: var(--text);
  font-size: 1rem;
  outline: none;
}

.lead-form textarea {
  border: 1px solid var(--line);
  padding: 10px 12px;
  resize: vertical;
  min-height: 120px;
}

.lead-form select {
  appearance: none;
}

.lead-form small {
  color: #5d534b;
  font-size: 0.95rem;
  font-style: italic;
}

.submit-btn,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.submit-btn {
  justify-self: center;
  margin-top: 14px;
  border: 0;
  background: var(--accent);
  color: white;
  padding: 14px 30px;
  min-width: 120px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.submit-btn:hover {
  background: var(--accent-dark);
}

.inline-btn {
  margin-top: 8px;
}

.required-note {
  margin: 18px 0 0;
  font-size: 1.8rem;
  font-family: "Barlow Condensed", sans-serif;
  font-style: italic;
}

.lead-copy-left {
  text-align: left;
}

.strong-copy {
  font-weight: 600;
}

.hidden-field {
  display: none;
  margin-top: 10px;
}

.hidden-field.is-visible {
  display: block;
}

.qr-card {
  display: grid;
  gap: 14px;
}

.qr-card p {
  margin: 0;
}

.qr-image {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1;
  justify-self: center;
  background: white;
  padding: 10px;
}

.link-line,
.secondary-link {
  color: #1d1d1d;
  word-break: break-word;
}

.secondary-link {
  padding: 12px 14px;
  border: 1px solid #bfb3a8;
  text-align: center;
}

.site-footer {
  background: var(--footer);
  color: white;
  padding: 22px 16px;
  text-align: center;
}

.footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-logo {
  width: 120px;
  height: auto;
  display: block;
}

code {
  font-family: monospace;
}

@media (max-width: 900px) {
  .setup-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  body {
    background: var(--bg);
  }

  .page-shell {
    padding: 0 0 20px;
  }

  .panel {
    width: 100%;
    padding: 34px 22px 32px;
  }

  h1 {
    font-size: 2.4rem;
  }

  .footer-logo {
    width: 104px;
  }
}
