.custom-page {
  background: var(--ivory);
}

.primary-nav [aria-current="page"] {
  color: var(--gold-light);
}

.design-intro {
  padding: 72px 0 66px;
  background:
    radial-gradient(circle at 80% 30%, rgba(90, 36, 52, 0.28), transparent 27%),
    linear-gradient(120deg, var(--ink), #1e2029);
  color: var(--white);
}

.design-intro-shell {
  width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.72fr);
  align-items: end;
  gap: clamp(70px, 9vw, 130px);
}

.back-link {
  width: fit-content;
  margin-bottom: 38px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
}

.back-link:hover {
  color: var(--white);
}

.design-intro h1 {
  max-width: 700px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 5vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.design-intro h1 em {
  color: var(--gold-light);
  font-weight: 500;
}

.design-intro-shell > div > p:last-child {
  max-width: 650px;
  margin: 23px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.7;
}

.design-intro ul {
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  list-style: none;
}

.design-intro li {
  padding: 17px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 12px;
}

.design-intro li > span {
  grid-row: 1 / 3;
  color: var(--gold-light);
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.design-intro li strong {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
}

.design-intro li small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.58rem;
}

.design-workspace {
  padding: 62px 0 108px;
  background: var(--ivory);
}

.design-shell {
  width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(42px, 6vw, 78px);
}

.design-summary {
  position: sticky;
  top: 112px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}

.summary-image {
  height: 250px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.summary-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.summary-copy {
  padding: 26px;
}

.summary-copy > p:first-child {
  margin: 0 0 8px;
  color: var(--burgundy);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.summary-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.06;
}

.summary-copy dl {
  margin: 24px 0 0;
  border-top: 1px solid var(--line);
}

.summary-copy dl > div {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
}

.summary-copy dt {
  color: var(--muted);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-copy dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: right;
}

.summary-copy .summary-note {
  margin: 19px 0 0;
  color: var(--muted);
  font-size: 0.58rem;
  line-height: 1.55;
}

.summary-note i {
  margin-right: 6px;
  color: var(--burgundy);
}

.design-form-wrap {
  min-width: 0;
}

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

.step-dot {
  min-width: 0;
  padding: 0 9px 15px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  justify-items: center;
  gap: 6px;
}

.step-dot span {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  display: grid;
  place-items: center;
  font-size: 0.58rem;
  font-weight: 700;
}

.step-dot small {
  overflow: hidden;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.step-dot.is-active,
.step-dot.is-complete {
  color: var(--burgundy);
}

.step-dot.is-active span {
  border-color: var(--burgundy);
  background: var(--burgundy);
  color: var(--white);
}

.step-dot.is-complete span {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

.progress-track {
  height: 2px;
  margin-bottom: 20px;
  overflow: hidden;
  background: rgba(17, 19, 26, 0.09);
}

.progress-track span {
  width: 20%;
  height: 100%;
  background: var(--burgundy);
  display: block;
  transition: width 220ms ease;
}

.design-form {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 22px 52px rgba(35, 27, 22, 0.07);
}

.form-step {
  min-width: 0;
  margin: 0;
  padding: clamp(28px, 4vw, 46px);
  border: 0;
}

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

.form-step legend {
  width: 100%;
  padding: 0;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 3.2vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.form-step legend > span {
  margin-bottom: 8px;
  display: block;
  color: var(--burgundy);
  font-family: var(--sans);
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.step-intro {
  max-width: 660px;
  margin: 13px 0 29px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 0.98rem;
  line-height: 1.65;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.choice-card {
  position: relative;
  min-height: 136px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  display: grid;
  grid-template-columns: 36px 1fr;
  align-content: center;
  column-gap: 13px;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.choice-card:hover {
  border-color: rgba(90, 36, 52, 0.42);
  transform: translateY(-2px);
}

.choice-card:has(input:checked) {
  border-color: var(--burgundy);
  background: #fbf6f4;
  box-shadow: inset 0 0 0 1px var(--burgundy);
}

.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-icon {
  grid-row: 1 / 3;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--burgundy);
}

.choice-card strong {
  align-self: end;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
}

.choice-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.58rem;
  line-height: 1.45;
}

.question-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.field {
  min-width: 0;
  margin-top: 17px;
  display: grid;
  gap: 8px;
}

.question-grid .field {
  margin-top: 0;
}

.field > span:first-child,
.question-heading > span {
  color: rgba(17, 19, 26, 0.7);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font-size: 0.74rem;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field input,
.field select {
  height: 50px;
  padding: 0 13px;
}

.field textarea {
  min-height: 132px;
  padding: 13px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #aaa69f;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(182, 147, 85, 0.12);
}

.question-block {
  margin-top: 25px;
  padding-top: 23px;
  border-top: 1px solid var(--line);
}

.question-heading {
  margin-bottom: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.question-heading small {
  color: var(--muted);
  font-size: 0.56rem;
}

.option-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-chips label {
  position: relative;
  cursor: pointer;
}

.option-chips input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-chips label > span {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--white);
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 600;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.option-chips label:hover > span {
  border-color: rgba(90, 36, 52, 0.45);
  color: var(--ink);
}

.option-chips input:checked + span {
  border-color: var(--burgundy);
  background: var(--burgundy);
  color: var(--white);
}

.option-chips input:focus-visible + span,
.choice-card input:focus-visible ~ * {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}

.option-chips-wide {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.option-chips-wide label > span {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.toggle-field {
  position: relative;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #f8f4ec;
  cursor: pointer;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
}

.toggle-field > input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--burgundy);
}

.toggle-field > span {
  display: grid;
  gap: 4px;
}

.toggle-field strong {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
}

.toggle-field small {
  color: var(--muted);
  font-size: 0.6rem;
  line-height: 1.5;
}

.file-drop {
  position: relative;
  min-height: 130px;
  padding: 22px;
  border: 1px dashed rgba(90, 36, 52, 0.38);
  background: #fbf8f2;
  cursor: pointer;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  text-align: center;
}

.file-drop i {
  margin-bottom: 5px;
  color: var(--burgundy);
  font-size: 1.4rem;
}

.file-drop strong {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
}

.file-drop small {
  color: var(--muted);
  font-size: 0.56rem;
  line-height: 1.5;
}

.file-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.review-card {
  margin-top: 24px;
  padding: 20px;
  border-left: 3px solid var(--gold);
  background: var(--ink);
  color: var(--white);
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 15px;
}

.review-card > i {
  color: var(--gold-light);
  font-size: 1.2rem;
}

.review-card strong {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 600;
}

.review-card p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.6rem;
  line-height: 1.55;
}

.form-controls {
  min-height: 76px;
  padding: 14px clamp(28px, 4vw, 46px);
  border-top: 1px solid var(--line);
  background: #f5f1e9;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}

.form-controls > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.form-controls .button {
  min-height: 46px;
}

.form-controls .button-dark,
.form-controls #design-submit {
  justify-self: end;
}

.form-back {
  justify-self: start;
  padding-left: 0;
  background: transparent;
  color: var(--ink);
}

.design-success {
  min-height: 620px;
  padding: clamp(48px, 7vw, 88px);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 22px 52px rgba(35, 27, 22, 0.07);
  text-align: center;
}

.design-success[hidden] {
  display: none;
}

.success-mark {
  width: 82px;
  height: 82px;
  margin: 0 auto 26px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--burgundy);
  font-family: var(--serif);
  font-size: 2.8rem;
}

.design-success .kicker {
  justify-content: center;
}

.design-success h2 {
  max-width: 620px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 4.4vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}

.design-success > p:not(.kicker) {
  max-width: 620px;
  margin: 22px auto 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.7;
}

.design-success > div:last-child {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.text-button {
  padding: 0 8px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--burgundy);
  cursor: pointer;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

@media (max-width: 1000px) {
  .design-intro-shell {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.65fr);
    gap: 64px;
  }

  .design-shell {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 32px;
  }

  .summary-image {
    height: 210px;
  }

  .summary-copy {
    padding: 21px;
  }

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

@media (max-width: 800px) {
  .design-intro {
    padding: 60px 0;
  }

  .design-intro-shell,
  .design-shell {
    grid-template-columns: 1fr;
  }

  .design-intro ul {
    max-width: 600px;
  }

  .design-summary {
    position: static;
    display: grid;
    grid-template-columns: minmax(220px, 0.65fr) 1fr;
  }

  .summary-image {
    height: 100%;
    min-height: 260px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }
}

@media (max-width: 600px) {
  .design-intro {
    padding: 50px 0 54px;
  }

  .back-link {
    margin-bottom: 30px;
  }

  .design-intro h1 {
    font-size: clamp(2.75rem, 12.5vw, 3.45rem);
  }

  .design-workspace {
    padding: 28px 0 74px;
  }

  .design-summary {
    grid-template-columns: 1fr;
  }

  .summary-image {
    height: 220px;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .step-nav {
    overflow-x: auto;
    grid-template-columns: repeat(5, minmax(78px, 1fr));
    scrollbar-width: none;
  }

  .step-nav::-webkit-scrollbar {
    display: none;
  }

  .step-dot {
    padding-inline: 4px;
  }

  .form-step {
    padding: 27px 20px;
  }

  .choice-grid,
  .question-grid,
  .option-chips-wide {
    grid-template-columns: 1fr;
  }

  .choice-card {
    min-height: 112px;
  }

  .option-chips-wide {
    display: grid;
  }

  .question-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .form-controls {
    padding: 14px 20px;
    grid-template-columns: 1fr 1fr;
  }

  .form-controls > p {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .form-controls .button {
    grid-row: 2;
    width: 100%;
  }

  .form-controls .button-dark,
  .form-controls #design-submit {
    grid-column: 2;
  }

  .form-back {
    grid-column: 1;
  }

  .design-success {
    min-height: 560px;
    padding: 48px 23px;
  }
}
