/* Approved order-page poster refresh: pattern stays in compact bands and
   panel headers, while all copy and editable fields keep solid surfaces. */
.order-intro {
  padding: clamp(24px, 2.4vw, 34px) 0 clamp(36px, 3.4vw, 48px);
  background: var(--orange);
}

.order-intro-grid {
  width: min(100% - 96px, 1120px);
  grid-template-columns: minmax(0, 1.15fr) minmax(250px, .68fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.order-intro-content { max-width: 670px; }
.order-intro-copy { margin-top: 1.25rem; }
.order-intro-copy > p:first-child { max-width: 560px; }
.order-shop-photo { width: min(100%, 570px); margin-top: 1.3rem; }
.order-portrait { max-width: 300px; }
.order-intro-art { border-width: 7px; }

.order-start-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  min-height: 50px;
  margin-top: 1.15rem;
  padding: .7rem 1.15rem;
  border: 2px solid var(--purple);
  border-radius: 999px;
  color: var(--cream);
  background: var(--purple);
  box-shadow: 4px 5px 0 rgba(66, 21, 75, .2);
  font-weight: 850;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.order-start-link:hover { transform: translateY(-2px); background: #42154b; }
.order-start-link:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }

.order-workspace {
  padding-top: clamp(32px, 4vw, 52px);
  background: var(--cream);
}
.order-workspace::before {
  display: none;
}
.order-email-fallback {
  width: fit-content;
  max-width: 100%;
  margin-bottom: 1.5rem;
  border: 3px solid var(--purple);
  background: var(--paper);
}

.order-form-grid { gap: clamp(1.5rem, 2.4vw, 2.2rem); }
.order-contact-panel { margin-top: 0; }
.order-panel.has-order-frame,
.order-message-panel.has-order-frame { padding: clamp(38px, 3vw, 44px); }
.order-panel.has-order-frame::before,
.order-message-panel.has-order-frame::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: var(--reading-inset, 36px);
  border-radius: 34px 42px 32px 38px;
  background: var(--paper);
}
.order-panel.has-order-frame > :not(.order-frame),
.order-message-panel.has-order-frame > :not(.order-frame) { z-index: 2; }

/* Pattern runs in a framed header and the inset SVG rim; all reading areas
   beneath it keep their solid cream surface. */
.order-step-heading {
  position: relative;
  isolation: isolate;
  min-height: 0;
  height: auto;
  align-items: flex-start;
  overflow: clip;
  margin: 0 0 1.5rem;
  padding: 15px 20px 25px;
  border-radius: 25px 34px 16px 23px;
  color: var(--cream);
  background: var(--purple);
}
.order-step-heading::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: 24%;
  background: url("./assets/order-groovy-background.webp") 87% 36% / 300px auto no-repeat;
  clip-path: ellipse(112% 112% at 100% 0%);
}
.order-step-heading::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -25px;
  left: 0;
  height: 40px;
  border-top: 7px solid var(--orange);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: var(--blue);
}
.order-step-heading > span,
.order-step-heading > div { position: relative; z-index: 1; }
.order-step-heading > div {
  flex: 0 1 auto;
  min-width: 0;
  max-width: calc(76% - 72px);
  padding: .15rem .45rem .35rem 0;
  border-radius: 8px;
  background: var(--purple);
}
.order-step-heading > span {
  flex-basis: 44px;
  width: 44px;
  height: 44px;
  border: 2px solid var(--cream);
  color: var(--purple);
  background: var(--orange);
}
.order-contact-panel .order-step-heading > span { color: var(--purple); background: var(--cream); }
.order-step-heading .eyebrow { color: #ffd79e; }
.order-step-heading h2 { color: var(--cream); }

.order-list-wrap { border-color: rgba(86, 38, 93, .35); }
.order-message-panel { margin-top: clamp(2rem, 3vw, 2.8rem); }
.order-message-intro { margin-top: -.5rem; }
.order-message-helper {
  margin: .55rem 0 0;
  padding: .75rem .9rem;
  border-left: 4px solid var(--orange);
  border-radius: 4px 15px 13px 4px;
  color: var(--purple);
  background: #fff0d9;
  font-size: .88rem;
  line-height: 1.5;
}

.order-submit-panel {
  position: relative;
  overflow: hidden;
  border: 9px solid var(--blue);
  border-radius: 44px 54px 38px 50px;
  box-shadow: 8px 10px 0 var(--blue);
}
.order-submit-panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 15px;
  background: url("./assets/order-groovy-background.webp") 88% 23% / 260px auto repeat-x;
}
.order-submit-panel > * { position: relative; }

@media (max-width: 900px) {
  .order-intro-grid { width: min(100% - 64px, 1120px); }
  .order-intro-grid { grid-template-columns: minmax(0, 1.2fr) minmax(210px, .65fr); gap: 1.5rem; }
}

@media (width < 761px) {
  .order-shell { width: calc(100% - 40px); }
  .order-intro-grid { width: calc(100% - 40px); grid-template-columns: 1fr; gap: 1.25rem; }
  .order-intro { padding-top: 30px; }
  .order-portrait { width: min(68vw, 300px); }
  .order-shop-photo { width: min(100%, 570px); }
}

@media (max-width: 560px) {
  .order-step-heading {
    min-height: 0;
    gap: .7rem;
    margin-bottom: 1.15rem;
    padding: 12px 12px 23px;
    border-radius: 20px 26px 13px 19px;
  }
  .order-step-heading::before { width: 22%; background-size: 235px auto; }
  .order-step-heading > div { max-width: calc(100% - 60px); }
  .order-step-heading::after { bottom: -24px; height: 38px; border-top-width: 6px; }
  .order-step-heading > span { flex-basis: 36px; width: 36px; height: 36px; }
  .order-step-heading h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
  .order-panel.has-order-frame,
  .order-message-panel.has-order-frame { padding: 32px; }
  .order-submit-panel { border-width: 6px; border-radius: 28px 34px 26px 32px; }
  .order-submit-panel::before { height: 11px; background-size: 210px auto; }
}

@media (prefers-reduced-motion: reduce) {
  .order-start-link { transition: none; }
}

@media (max-width: 400px) {
  .order-step-heading { flex-direction: column; gap: .65rem; }
  .order-step-heading > div { width: 100%; max-width: none; }
  .order-step-heading h2 { font-size: 1.6rem; }
}
