﻿:root {
  --primary: #ff1100;
  --primary-deep: #d70f04;
  --secondary: #000000;
  --tertiary: #ffffff;
  --neutral: #1a1a1a;
  --background: #1d1f23;
  --screen: #fffafa;
  --surface: #ffffff;
  --surface-soft: #f3eeee;
  --line: #efb8b0;
  --line-muted: #e9e1df;
  --text: #09080d;
  --muted: #5f3b36;
  --icon: #5e5e5e;
  --disabled: #f0eded;
  --disabled-text: #e97870;
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  font-family: "Hanken Grotesk", Arial, sans-serif;
  background: var(--background);
  color: var(--text);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--background);
}

button {
  font: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.page-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 10px;
  background: #9ca3af;
}

.app-screen {
  position: relative;
  min-height: calc(100vh - 20px);
  overflow: hidden;
  border-radius: 34px;
  background: var(--screen);
  box-shadow: var(--shadow);
}

.app-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  display: block;
  width: 212px;
  height: auto;
}

.close-button {
  position: relative;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

.close-button span::before,
.close-button span::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 7px;
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: #4c342f;
}

.close-button span::before {
  transform: rotate(45deg);
}

.close-button span::after {
  transform: rotate(-45deg);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 30px;
}

.header-actions a {
  color: #1f2937;
  font-size: 14px;
  font-weight: 800;
}

.header-actions button {
  min-height: 42px;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  background: var(--primary-deep);
  color: var(--tertiary);
  font-size: 14px;
  font-weight: 800;
}

.selection-page {
  height: calc(100vh - 96px);
  min-height: 720px;
  overflow-y: auto;
  padding: 28px 34px 42px;
}

.progress-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 48px;
}

.progress-wrap p {
  margin: 0;
  color: #372824;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.progress-bars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.progress-bars span {
  height: 4px;
  border-radius: 999px;
  background: var(--line-muted);
}

.progress-bars .active {
  background: var(--primary-deep);
}

.intro {
  margin-bottom: 45px;
}

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

h1 {
  max-width: 310px;
  margin-bottom: 12px;
  font-size: 27px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: 0;
}

.intro p {
  max-width: 320px;
  margin-bottom: 0;
  color: #4a3c3a;
  font-size: 18px;
  line-height: 1.45;
}

.package-list {
  display: grid;
  gap: 22px;
}

.package-card {
  position: relative;
  min-height: 362px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.package-card.selected {
  border: 2px solid var(--primary);
  box-shadow: 0 10px 28px rgba(255, 17, 0, 0.08);
}

.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--primary-deep);
  color: var(--tertiary);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.secondary-badge {
  background: #fff7f5;
  color: var(--primary-deep);
  border: 1px solid var(--line);
}

.dark-badge {
  background: var(--neutral);
  color: var(--tertiary);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 13px;
}

.card-top h2 {
  margin-bottom: 0;
  font-size: 22px;
  line-height: 1.18;
  font-weight: 800;
}

.card-icon {
  width: 24px;
  height: 24px;
  color: var(--icon);
}

.card-icon.accent {
  color: var(--primary-deep);
}

.description {
  margin-bottom: 10px;
  color: #4b3b38;
  font-size: 15px;
  line-height: 1.45;
}

.best-for {
  margin-bottom: 18px;
  color: #6b504b;
  font-size: 14px;
  line-height: 1.45;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: auto 0 18px;
  color: var(--primary-deep);
}

.price strong {
  font-size: 16px;
  line-height: 1.1;
  font-weight: 800;
}

.price span {
  color: #4b3b38;
  font-size: 12px;
}

.price.talk strong {
  font-size: 16px;
}

.package-card ul {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.package-card li {
  position: relative;
  min-height: 40px;
  display: flex;
  align-items: center;
  padding-left: 27px;
  border-bottom: 1px solid var(--line-muted);
  font-size: 15px;
  line-height: 1.35;
}

.package-card li:last-child {
  border-bottom: 0;
}

.package-card li::before {
  content: "\2713";
  position: absolute;
  left: 2px;
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  border: 1.8px solid var(--primary);
  border-radius: 50%;
  color: var(--primary);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.primary-action,
.secondary-action {
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.primary-action {
  border: 1px solid var(--primary-deep);
  background: var(--primary-deep);
  color: var(--tertiary);
}

.secondary-action {
  border: 1px solid #77706d;
  background: transparent;
  color: #332522;
}

.package-card.selected .secondary-action {
  border-color: var(--primary-deep);
  background: var(--primary-deep);
  color: var(--tertiary);
}

.estimate-bar {
  display: none;
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 18px 34px 22px;
  border-top: 1px solid var(--line);
  background: rgba(255, 250, 250, 0.96);
  box-shadow: 0 -12px 28px rgba(26, 26, 26, 0.08);
}

.estimate-bar div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.estimate-bar span {
  color: #6f6663;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.estimate-bar strong {
  color: var(--primary-deep);
  font-size: 24px;
  line-height: 1;
}

.estimate-bar button {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 7px;
  background: var(--disabled);
  color: var(--disabled-text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: min(340px, calc(100vw - 40px));
  padding: 13px 16px;
  border-radius: 10px;
  background: var(--neutral);
  color: var(--tertiary);
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.step-nav {
  display: none;
}

.customize-step[hidden] {
  display: none;
}

.submit-step[hidden] {
  display: none;
}

.confirmation-step[hidden] {
  display: none;
}

.quote-document-step[hidden] {
  display: none;
}

body.is-customizing .estimate-bar,
body.is-submitting .estimate-bar,
body.is-confirmed .estimate-bar,
body.is-document .estimate-bar {
  display: none;
}

.customize-intro {
  margin-bottom: 40px;
}

.customize-intro h1 {
  max-width: 560px;
  margin-bottom: 12px;
  font-size: 39px;
  line-height: 1.18;
}

.customize-intro p {
  max-width: 700px;
  margin-bottom: 0;
  color: #4b3b38;
  font-size: 17px;
  line-height: 1.55;
}

.customize-layout {
  display: grid;
  gap: 24px;
}

.customize-options {
  display: grid;
  gap: 20px;
}

.option-panel,
.order-summary {
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(26, 26, 26, 0.08);
}

.option-panel {
  position: relative;
  padding: 22px;
}

.optional-label {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #f2eeee;
  color: #6b504b;
  padding: 5px 9px;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
}

.option-panel h2,
.order-summary h2 {
  margin-bottom: 9px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
}

.option-panel p {
  margin-bottom: 12px;
  color: #4b3b38;
  font-size: 15px;
  line-height: 1.45;
}

.option-panel > strong,
.pages-panel strong {
  color: var(--primary-deep);
  font-size: 12px;
}

.niche-panel label {
  display: block;
  margin: 14px 0 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid #6b7280;
  border-bottom: 1.5px solid #6b7280;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.niche-panel select,
.niche-panel input,
.niche-panel textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

.niche-panel select,
.niche-panel input {
  min-height: 38px;
}

.niche-panel select {
  appearance: none;
  padding: 0 40px 0 14px;
}

.niche-panel input {
  padding: 0 14px;
}

.niche-panel textarea {
  min-height: 130px;
  padding: 12px 14px;
  resize: vertical;
}

.niche-panel input::placeholder,
.niche-panel textarea::placeholder {
  color: #7b8494;
}

.pages-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
}

.examples {
  display: block;
  color: #6b504b;
  font-size: 13px;
  line-height: 1.45;
}

.counter-wrap {
  display: grid;
  gap: 8px;
  justify-items: end;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.counter {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff7f5;
}

.counter button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}

.counter output {
  min-width: 24px;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
}

.choice-grid,
.feature-grid {
  display: grid;
  gap: 12px;
}

.choice-card,
.feature-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
}

.choice-card {
  min-height: 66px;
  padding: 14px;
}

.choice-card strong,
.choice-card span {
  display: block;
}

.choice-card strong {
  margin-bottom: 7px;
  font-size: 15px;
  font-weight: 800;
}

.choice-card span {
  color: var(--primary-deep);
  font-size: 13px;
  font-weight: 800;
}

.choice-card.selected,
.feature-card.selected {
  border-color: var(--primary);
  background: #fff7f5;
}

.choice-card.selected::after {
  content: "\2713";
  position: absolute;
  top: 10px;
  right: 12px;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--tertiary);
  font-size: 11px;
  font-weight: 900;
}

.feature-card {
  min-height: 66px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--primary-deep);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

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

.feature-card strong {
  margin-bottom: 2px;
  font-size: 15px;
  font-weight: 800;
}

.feature-card small {
  color: #4b3b38;
  font-size: 10px;
}

.feature-card b {
  color: var(--primary-deep);
  font-size: 13px;
  white-space: nowrap;
}

.feature-card.selected b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--primary);
  color: var(--tertiary);
  padding: 6px 9px;
  font-size: 12px;
}

.more-features {
  margin-top: 14px;
}

.more-features summary {
  cursor: pointer;
  color: var(--primary-deep);
  font-size: 14px;
  font-weight: 900;
}

.more-features .feature-grid {
  margin-top: 14px;
}

.order-summary {
  padding: 22px;
  min-width: 0;
  overflow: hidden;
}

.order-summary h2 {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.summary-lines {
  min-height: 0;
  padding-top: 18px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.summary-lines > div:not(#summary-features),
.summary-total {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.summary-lines > div,
#summary-features div {
  margin-bottom: 16px;
  color: #4b3b38;
  font-size: 15px;
}

.summary-lines small {
  display: block;
  margin-top: 3px;
  color: #6b504b;
  font-size: 13px;
}

.summary-empty-features {
  display: flex !important;
}

.summary-empty-features[hidden] {
  display: none !important;
}

#summary-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

#summary-features div {
  display: grid;
  grid-template-columns: minmax(112px, 0.65fr) minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  margin-bottom: 0;
}

#summary-features span,
.summary-lines span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.summary-package-line {
  color: var(--text) !important;
}

.summary-package-line strong,
.summary-package-line small {
  display: block;
}

.summary-package-line strong {
  font-size: 12px;
  font-weight: 900;
}

.summary-package-line small {
  margin-top: 2px;
  color: #4b3b38;
  font-size: 13px;
}

.summary-lines b {
  min-width: 0;
  max-width: 100%;
  color: #1c1b1b;
  font-size: 15px;
  text-align: right;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.summary-total {
  align-items: center;
  padding: 22px 0;
}

.summary-total span {
  font-size: 20px;
  font-weight: 800;
}

.summary-total strong {
  min-width: 0;
  text-align: right;
  color: var(--primary-deep);
  font-size: 24px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.estimate-note {
  margin: -6px 0 18px;
  color: #6b504b;
  font-size: 13px;
  line-height: 1.45;
}

.summary-primary,
.summary-back {
  width: 100%;
  min-height: 46px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
}

.summary-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--primary-deep);
  background: var(--primary-deep);
  color: var(--tertiary);
}

.summary-back {
  min-height: 34px;
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: #4b3b38;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.submit-hero {
  max-width: 620px;
  margin: 0 auto 48px;
  text-align: center;
}

.submit-hero h1 {
  max-width: none;
  margin-bottom: 16px;
}

.submit-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.submit-layout {
  display: grid;
  gap: 24px;
}

.quote-form,
.quote-submit-summary {
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(26, 26, 26, 0.08);
}

.quote-form {
  padding: 26px 28px 30px;
}

.form-block + .form-block {
  margin-top: 42px;
}

.form-block h2,
.quote-submit-summary h2 {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-muted);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
}

.form-grid,
.more-details-grid {
  display: grid;
  gap: 20px 24px;
}

.quote-form label,
.quote-form legend {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.field-note {
  display: inline;
  margin-left: 5px;
  color: #6b504b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.quote-form input,
.quote-form textarea,
.quote-form select {
  width: 100%;
  margin-top: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f3f6fa;
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.quote-form input,
.quote-form select {
  min-height: 52px;
  padding: 0 14px;
}

.quote-form textarea {
  min-height: 122px;
  padding: 14px;
  resize: vertical;
}

.quote-form input::placeholder,
.quote-form textarea::placeholder {
  color: #64748b;
}

.contact-method {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  border: 0;
}

.contact-method legend {
  width: 100%;
  margin-bottom: 10px;
}

.contact-method label {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
}

.contact-method input,
.more-details input[type="checkbox"],
.agreement input {
  width: 16px;
  min-height: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--primary-deep);
}

.contact-method label:has(input:checked) {
  border-color: var(--primary);
  background: #fff7f5;
}

.full-field {
  display: block;
  margin-bottom: 24px;
}

.upload-box {
  min-height: 118px;
  display: grid;
  place-items: center;
  align-content: center;
  margin: 24px 0;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: #f3f6fa;
  text-align: center;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.upload-box input {
  display: none;
}

.upload-box.is-dragging {
  border-color: var(--primary);
  background: #fff7f5;
}

.upload-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 8px;
  color: #5e5e5e;
}

.upload-box strong {
  color: var(--primary-deep);
}

.upload-box span,
.upload-box small,
.upload-box em {
  color: #334155;
  font-size: 13px;
}

.upload-box em {
  font-style: normal;
}

.upload-filename {
  max-width: 100%;
  margin-top: 8px;
  color: var(--primary-deep) !important;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.upload-progress {
  width: min(280px, 100%);
  height: 7px;
  display: none;
  overflow: hidden;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--line-muted);
}

.upload-progress span {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--primary-deep);
  transition: width 0.18s ease;
}

.upload-percent {
  display: none;
  margin-top: 4px;
  font-weight: 800;
}

.upload-box.is-uploading .upload-progress,
.upload-box.is-uploading .upload-percent {
  display: block;
}

.more-details {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.more-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.more-details summary::after {
  content: "\\2304";`r`n  color: #334155;`r`n  font-size: 20px;
}

.more-details[open] summary {
  border-bottom: 1px solid var(--line);
}

.more-details[open] summary::after {
  transform: rotate(180deg);
}

.more-details summary::after {
  content: "\2304";
}

.more-details-grid {
  padding: 22px 26px 24px;
}

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

.more-details fieldset {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

.more-details fieldset label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
}

.quote-submit-summary {
  padding: 26px 26px 28px;
  min-width: 0;
  overflow: hidden;
}

.quote-submit-summary > p {
  margin: -14px 0 28px;
  color: var(--muted);
  font-size: 15px;
}

.submit-summary-lines {
  display: grid;
  gap: 18px;
  padding: 0 0 26px;
  border-bottom: 1px solid var(--line-muted);
  min-width: 0;
}

.submit-summary-lines > div:not(#submit-features),
#submit-features div,
.submit-pricing {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(112px, 0.65fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.submit-summary-lines strong,
.submit-summary-lines small {
  display: block;
}

.submit-summary-lines strong {
  font-size: 14px;
  font-weight: 900;
}

.submit-summary-lines small,
.submit-summary-lines span,
.agreement {
  color: #4b3b38;
  font-size: 13px;
  line-height: 1.45;
}

.submit-summary-lines b {
  min-width: 0;
  max-width: 100%;
  text-align: right;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.summary-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.summary-chips em {
  display: inline-flex;
  max-width: 100%;
  border-radius: 999px;
  background: #fff7f5;
  color: #4b3b38;
  padding: 5px 8px;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

#submit-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.submit-pricing {
  align-items: center;
  padding: 28px 0;
}

.submit-pricing span {
  font-size: 24px;
  font-weight: 800;
}

.submit-pricing strong {
  min-width: 0;
  text-align: right;
  overflow-wrap: anywhere;
  line-height: 1.2;
  color: var(--primary-deep);
  font-size: 24px;
}

.agreement {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff7f5;
}

.request-button,
.submit-back {
  width: 100%;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 0;
  border-radius: 8px;
  background: var(--primary-deep);
  color: var(--tertiary);
  font-size: 14px;
  font-weight: 800;
}

.request-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.submit-back {
  margin-top: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: #4b3b38;
}

.secure-note {
  display: block;
  margin-top: 16px;
  color: #475569;
  text-align: center;
  font-size: 13px;
  line-height: 1.45;
}

.privacy-note {
  margin: 14px 0 0;
  color: #6b504b;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.privacy-note a {
  color: var(--primary-deep);
  font-weight: 800;
}

.confirmation-step {
  min-height: calc(100vh - 120px);
  display: grid;
  justify-items: center;
  align-content: start;
  padding: 42px 16px 72px;
  background: var(--screen);
}

.confirmation-brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 58px;
}

.confirmation-brand img {
  display: block;
  width: 186px;
  height: auto;
}

.confirmation-card {
  width: min(120%, 516px);
  padding: 36px 40px 40px;
  border: 1px solid var(--line-muted);
  border-radius: 9px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(26, 26, 26, 0.08);
  text-align: center;
}

.success-icon {
  width: 64px;
  height: 64px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(255, 17, 0, 0.18);
}

.success-icon svg {
  width: 48px;
  height: 48px;
  padding: 12px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--tertiary);
  fill: currentColor;
}

.confirmation-card h1 {
  max-width: 390px;
  margin: 0 auto 16px;
  font-size: 26px;
  line-height: 1.22;
}

.confirmation-card > p {
  max-width: 420px;
  margin: 0 auto 40px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.request-summary {
  margin-bottom: 38px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 7px;
  text-align: left;
}

.request-summary h2 {
  margin: 0 0 22px;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.request-summary dl {
  margin: 0;
}

.request-summary dl div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-muted);
}

.request-summary dl div:last-child {
  border-bottom: 0;
}

.request-summary dt {
  color: var(--muted);
  font-size: 13px;
}

.request-summary dd {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}

.confirmation-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: 12px;
}

.download-summary,
.new-quote {
  min-height: 44px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
}

.download-summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--primary-deep);
  background: var(--primary-deep);
  color: var(--tertiary);
}

.download-summary svg,
.download-document svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: currentColor;
}

.new-quote {
  border: 1px solid #9b6c65;
  background: var(--surface);
  color: #4b3b38;
}

.quote-document-step {
  min-height: 100vh;
  margin: -31px calc(50% - 50vw) -80px;
  background: #f3f1f0;
}

.document-toolbar {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  padding: 0 max(24px, calc((100vw - 1140px) / 2));
  border-bottom: 1px solid #1a1a1a;
  background: var(--surface);
}

.document-toolbar div {
  display: flex;
  align-items: center;
  gap: 26px;
}

.document-toolbar button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}

.document-toolbar .download-document {
  color: var(--primary-deep);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.quote-document {
  position: relative;
  width: min(840px, calc(100% - 32px));
  margin: 40px auto 80px;
  padding: 76px 64px 64px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 22px 70px rgba(26, 26, 26, 0.1);
}

.document-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 128px;
  height: 128px;
  border-top: 4px solid var(--primary-deep);
  border-right: 4px solid var(--primary-deep);
}

.document-head,
.document-client-grid,
.document-total-band,
.document-terms,
.document-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
}

.document-head {
  align-items: start;
  margin-bottom: 24px;
}

.document-brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
}

.document-brand img {
  display: block;
  width: 210px;
  height: auto;
}

.date-issued {
  min-width: 128px;
  text-align: center;
  text-transform: uppercase;
}

.date-issued span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.16em;
}

.date-issued strong {
  display: block;
  font-size: 17px;
  line-height: 1.35;
}

.document-title {
  margin-bottom: 66px;
}

.document-title h1 {
  max-width: 420px;
  margin-bottom: 12px;
  font-size: 44px;
  line-height: 1.05;
  text-transform: uppercase;
}

.document-title p {
  margin: 0;
  color: var(--primary-deep);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.document-client-grid {
  margin-bottom: 64px;
  padding: 32px 0;
  border-top: 1px solid var(--line-muted);
  border-bottom: 1px solid var(--line-muted);
}

.document-client-grid h2,
.document-section h2,
.document-terms h2 {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.document-client-grid strong,
.document-client-grid span {
  display: block;
}

.document-client-grid strong {
  margin-bottom: 6px;
  font-size: 24px;
}

.document-client-grid span {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.document-section {
  margin-bottom: 48px;
}

.document-section > h2 {
  position: relative;
  padding-left: 24px;
  color: var(--text);
  font-size: 22px;
  letter-spacing: 0;
}

.document-section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 7px;
  height: 32px;
  background: var(--primary-deep);
}

.core-package-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  padding: 34px 34px 30px;
  border-left: 4px solid var(--secondary);
  background: #efeded;
}

.core-package-box strong {
  display: block;
  margin-bottom: 22px;
  font-size: 18px;
}

.core-package-box b {
  white-space: nowrap;
  font-size: 18px;
}

.core-package-box ul {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.core-package-box li,
.document-addons div,
.document-details div {
  color: var(--muted);
  font-size: 15px;
}

.core-package-box li {
  position: relative;
  padding-left: 28px;
}

.core-package-box li::before {
  content: "âœ“";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-deep);
  font-weight: 900;
}

.document-addons,
.document-details {
  display: grid;
}

.document-addons div,
.document-details div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-muted);
}

.document-addons strong,
.document-addons small,
.document-details strong,
.document-details small {
  display: block;
}

.document-addons strong,
.document-details strong {
  margin-bottom: 4px;
  color: var(--text);
  font-size: 15px;
}

.document-details small {
  max-width: 560px;
  line-height: 1.55;
}

.document-addons b,
.document-details b {
  color: var(--text);
  font-size: 15px;
  white-space: nowrap;
}

.document-total-band {
  align-items: center;
  margin: 72px 0 46px;
  padding: 36px 40px;
  background: var(--neutral);
  color: var(--tertiary);
}

.document-total-band span {
  display: block;
  margin-bottom: 10px;
  color: #bdb8b7;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.document-total-band strong {
  font-size: 38px;
  line-height: 1.1;
}

.document-total-band div:last-child {
  text-align: right;
}

.document-total-band div:last-child strong {
  color: var(--primary);
  font-size: 24px;
}

.document-terms {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 68px;
}

.document-terms p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.document-footer {
  align-items: end;
  padding-top: 44px;
  border-top: 2px solid var(--secondary);
}

.document-footer span {
  position: relative;
  padding-top: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.document-footer span::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 255px;
  height: 4px;
  background: var(--line-muted);
}

.document-footer small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.submit-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 96px calc(50% - 50vw) 0;
  padding: 24px max(24px, calc((100vw - 1390px) / 2));
  border-top: 1px solid var(--line);
}

.submit-footer p {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}

.submit-footer nav {
  display: flex;
  gap: 34px;
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 899px) {
  .customize-step {
    padding-bottom: 24px;
  }

  .order-summary {
    margin-bottom: 8px;
  }
}

@media (min-width: 900px) {
  body {
    display: block;
    padding: 0;
    background: var(--screen);
  }

  .page-shell {
    width: 100%;
    min-height: 100vh;
    padding: 0;
    background: var(--screen);
  }

  .app-screen {
    min-height: 100vh;
    height: auto;
    overflow: visible;
    border-radius: 0;
    box-shadow: none;
  }

  .app-header {
    height: 80px;
    padding: 0 39px;
  }

  .selection-page {
    width: min(1390px, calc(100% - 64px));
    height: auto;
    min-height: 0;
    margin: 0 auto;
    overflow: visible;
    padding: 31px 0 80px;
  }

  .progress-wrap {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    margin-bottom: 52px;
  }

  .progress-bars {
    gap: 16px;
  }

  .progress-bars span {
    height: 4px;
  }

  .intro {
    margin-bottom: 52px;
  }

  h1 {
    max-width: none;
    margin-bottom: 14px;
    font-size: 34px;
    line-height: 1.12;
  }

  .intro p {
    max-width: none;
    font-size: 19px;
  }

  .package-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }

  .package-card {
    min-height: 438px;
    padding: 25px;
    border-radius: 10px;
  }

  .card-top h2 {
    font-size: 25px;
  }

  .description {
    margin-bottom: 10px;
    font-size: 16px;
  }

  .price {
    margin-bottom: 20px;
  }

  .price strong {
    font-size: 16px;
  }

  .package-card li {
    min-height: 42px;
    font-size: 16px;
  }

  .estimate-bar {
    display: none;
  }

  .step-bars {
    display: none;
  }

  .step-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 13px;
    margin: 0 0 72px;
    padding: 0;
    list-style: none;
  }

  .step-nav li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4b3b38;
    font-size: 13px;
    font-weight: 800;
  }

  .step-nav li:not(:last-child)::after {
    content: "";
    width: 42px;
    height: 1px;
    margin-left: 2px;
    background: var(--line);
  }

  .step-nav span {
    width: 23px;
    height: 23px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: var(--surface-soft);
    color: #77706d;
    font-size: 12px;
  }

  .step-nav .active {
    color: var(--primary-deep);
  }

  .step-nav .active span {
    background: var(--primary-deep);
    color: var(--tertiary);
  }

  body.is-submitting .step-nav li:first-child,
  body.is-submitting .step-nav li:nth-child(2),
  body.is-submitting .step-nav li.active {
    color: var(--primary-deep);
  }

  body.is-submitting .close-button {
    display: none;
  }

  body.is-submitting .header-actions,
  body.is-confirmed .header-actions {
    display: flex;
  }

  body.is-confirmed .app-header,
  body.is-confirmed .step-nav,
  body.is-document .app-header,
  body.is-document .step-nav {
    display: none;
  }

  body.is-submitting .step-nav {
    justify-content: center;
    gap: 0;
    margin: 118px auto 86px;
    max-width: 770px;
  }

  body.is-submitting .step-nav li {
    position: relative;
    flex: 1;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  body.is-submitting .step-nav li:not(:last-child)::after {
    position: absolute;
    top: 10px;
    left: calc(50% + 18px);
    width: calc(100% - 36px);
    height: 3px;
    margin: 0;
    background: var(--primary-deep);
  }

  body.is-submitting .step-nav li span {
    width: 32px;
    height: 32px;
  }

  body.is-submitting .step-nav li:first-child span,
  body.is-submitting .step-nav li:nth-child(2) span {
    background: var(--primary-deep);
    color: var(--tertiary);
    font-size: 0;
  }

  body.is-submitting .step-nav li:first-child span::before,
  body.is-submitting .step-nav li:nth-child(2) span::before {
    content: "\2713";
    font-size: 12px;
  }

  .customize-step {
    margin-top: -36px;
  }

  .customize-layout {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 30px;
    align-items: start;
  }

  .customize-options {
    gap: 20px;
  }

  .option-panel {
    padding: 22px 20px;
  }

  .choice-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-summary {
    position: sticky;
    top: 24px;
    padding: 24px 20px 20px;
  }

  .submit-step {
    margin-top: 72px;
  }

  .submit-layout {
    grid-template-columns: minmax(0, 1fr) 445px;
    align-items: start;
    gap: 32px;
  }

  .form-grid,
  .more-details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-submit-summary {
    position: sticky;
    top: 24px;
  }
}

@media (max-width: 899px) {
  .submit-layout {
    grid-template-columns: 1fr;
  }

  .quote-form,
  .quote-submit-summary {
    padding: 22px;
  }

  .quote-submit-summary {
    order: -1;
  }

  .submit-hero {
    margin: 12px 0 28px;
    text-align: left;
  }

  .submit-hero p {
    font-size: 16px;
  }

  .form-grid,
  .more-details-grid {
    grid-template-columns: 1fr;
  }

  .submit-footer {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 48px;
  }

  .submit-footer nav {
    flex-direction: column;
    gap: 14px;
  }

  .confirmation-step {
    padding-top: 28px;
  }

  .confirmation-brand {
    margin-bottom: 30px;
  }

  .confirmation-card {
    padding: 30px 22px 24px;
  }

  .confirmation-actions {
    grid-template-columns: 1fr;
  }

  .request-summary dl div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .request-summary dd {
    text-align: left;
  }
}

@media (max-width: 459px) {
  .page-shell {
    width: 100%;
    min-height: 100vh;
    padding: 0;
    background: var(--screen);
  }

  .app-screen {
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }

  .selection-page {
    height: calc(100vh - 76px);
    min-height: 640px;
  }
}

@media (max-width: 390px) {
  .app-header,
  .selection-page,
  .estimate-bar {
    padding-left: 22px;
    padding-right: 22px;
  }

  .progress-bars {
    gap: 10px;
  }
}

@media (max-width: 899px) {
  .document-toolbar {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 20px;
  }

  .document-toolbar div {
    gap: 14px;
  }

  .quote-document {
    width: calc(100% - 24px);
    padding: 46px 24px 34px;
  }

  .document-head,
  .document-client-grid,
  .document-total-band,
  .document-terms,
  .document-footer,
  .core-package-box,
  .document-addons div,
  .document-details div {
    grid-template-columns: 1fr;
  }

  .document-brand {
    justify-self: start;
  }

  .date-issued,
  .document-total-band div:last-child {
    text-align: left;
  }

  .document-title h1 {
    font-size: 34px;
  }
}

@media print {
  @page {
    size: A4;
    margin: 0;
  }

  html,
  body {
    background: #ffffff !important;
  }

  body * {
    visibility: hidden;
  }

  .quote-document,
  .quote-document * {
    visibility: visible;
  }

  .quote-document {
    position: absolute;
    inset: 0 auto auto 0;
    width: 210mm;
    min-height: 297mm;
    margin: 0;
    padding: 24mm 18mm;
    border: 0;
    box-shadow: none;
  }

  .document-toolbar,
  .toast {
    display: none !important;
  }
}


