/* /digital-card/ order page (2026-10-27). Same soft pastel gold and navy as the
   homepage cards pop-up, so the visitor arrives somewhere that looks like where
   they clicked. */
.dco {
  --dco-bg: #fbf3dd;
  --dco-card: #fffdf7;
  --dco-ink: #0e1b39;
  --dco-soft: rgba(14,27,57,0.74);
  --dco-line: rgba(14,27,57,0.16);
  --dco-gold-ink: hsl(38, 70%, 29%);
  --dco-ok: #1f6b45;
  --dco-err: #b3261e;
  background:
    radial-gradient(70% 50% at 85% 0%, #fffaf0 0%, transparent 70%),
    var(--dco-bg);
  color: var(--dco-ink);
  padding: clamp(6.5rem, 10vw, 8.5rem) 16px clamp(3rem, 6vw, 5rem);
}
.dco__wrap { max-width: 1120px; margin: 0 auto; }
.dco__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.dco__intro { position: sticky; top: 6.5rem; }
.dco__eyebrow {
  display: flex; align-items: center; gap: 0.55rem;
  margin: 0 0 0.9rem;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--dco-gold-ink);
}
.dco__eyebrow span {
  padding: 0.2rem 0.55rem; border-radius: 999px;
  background: var(--dco-ink); color: #fff; font-size: 0.6875rem; letter-spacing: 0.1em;
}
.dco__h {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em;
  text-wrap: balance;
}
.dco__lead { margin: 0 0 1.25rem; font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.6; color: var(--dco-soft); }
.dco__price { margin: 0 0 1.5rem; font-size: 1.0625rem; color: var(--dco-soft); }
.dco__offer {
  display: inline-block; margin: 0 0 0.5rem; padding: 0.25rem 0.7rem; border-radius: 999px;
  background: #b3261e; color: #fff; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.dco__price s {
  margin-right: 0.4rem; font-size: 1.5rem; font-weight: 600; color: var(--dco-soft);
  text-decoration-thickness: 2px; text-decoration-color: #b3261e;
}
.dco__price span:not(.screen-reader-text) { display: block; margin-top: 0.35rem; }
.dco__price strong {
  display: inline-block; margin-right: 0.35rem;
  font-size: 2.4rem; line-height: 1; letter-spacing: -0.02em; color: var(--dco-ink);
}
.dco__steps { margin: 0 0 1.75rem; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 0.75rem; }
.dco__steps li { counter-increment: s; position: relative; padding-left: 2.5rem; line-height: 1.5; }
.dco__steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: -0.1rem;
  width: 1.75rem; height: 1.75rem; display: grid; place-items: center;
  border-radius: 50%; background: var(--dco-ink); color: #fff; font-size: 0.875rem; font-weight: 600;
}
.dco__sample {
  display: block; width: min(260px, 70%); height: auto; aspect-ratio: 540 / 1169; object-fit: cover; object-position: top;
  border-radius: 28px; border: 7px solid #141c33;
  box-shadow: 0 30px 60px -28px rgba(14,27,57,0.55), 0 0 80px -20px hsla(38, 72%, 50%, 0.35);
}

/* The form */
.dco__form {
  background: var(--dco-card);
  border-radius: 22px;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  box-shadow: 0 0 0 1px hsla(38, 60%, 55%, 0.3), 0 30px 70px -40px rgba(120,84,20,0.45);
}
.dco__set { border: 0; margin: 0 0 1.75rem; padding: 0; }
.dco__set legend { margin: 0 0 0.9rem; padding: 0; font-size: 1.125rem; font-weight: 700; }
.dco__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 1rem; }
.dco__grid > *, .dco__field { min-width: 0; }
.dco__field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.dco__field > span { font-size: 0.9375rem; font-weight: 600; }
.dco__field b { color: var(--dco-err); font-weight: 700; }
.dco__field small, .dco__small { font-size: 0.8125rem; color: var(--dco-soft); }
.dco__field input[type="text"], .dco__field input[type="tel"], .dco__field input[type="email"], .dco__field textarea {
  min-height: 48px; padding: 0.7rem 0.9rem;
  border: 1px solid var(--dco-line); border-radius: 12px; background: #fff;
  font: inherit; font-size: 1rem; color: var(--dco-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.dco__field textarea { resize: vertical; line-height: 1.5; }
.dco__field input:hover, .dco__field textarea:hover { border-color: rgba(14,27,57,0.32); }
.dco__field input:focus, .dco__field textarea:focus { outline: none; border-color: var(--dco-ink); box-shadow: 0 0 0 3px hsla(38, 72%, 50%, 0.35); }
.dco__field input::placeholder, .dco__field textarea::placeholder { color: rgba(14,27,57,0.42); }
.dco__file input[type="file"] {
  width: 100%; min-width: 0;
  padding: 0.6rem; border: 1px dashed rgba(14,27,57,0.35); border-radius: 12px; background: #fff;
  font: inherit; font-size: 0.9375rem; cursor: pointer;
}
.dco__file input[type="file"]:hover { border-color: var(--dco-ink); }
.dco__file input[type="file"]:focus-visible { outline: 3px solid hsla(38, 72%, 50%, 0.6); outline-offset: 2px; }
.dco__file input::file-selector-button {
  margin-right: 0.75rem; padding: 0.5rem 0.9rem; border: 0; border-radius: 999px;
  background: var(--dco-ink); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}

/* A picked file: its picture, its name and a Remove button (card-order.js, 2026-10-28) */
.dco__picked {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.5rem 0.5rem 0.5rem 0.6rem; border: 1px solid var(--dco-line); border-radius: 12px; background: #fff;
}
.dco__picked[hidden] { display: none; }
.dco__picked img { flex: none; width: 48px; height: 48px; object-fit: cover; border-radius: 8px; background: #f1ece0; }
.dco__picked-name { flex: 1; min-width: 0; font-size: 0.9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dco__remove {
  flex: none; min-height: 44px; padding: 0.5rem 1rem; border: 1px solid rgba(179,38,30,0.35); border-radius: 999px;
  background: #fff; color: var(--dco-err); font: inherit; font-size: 0.9375rem; font-weight: 600; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.dco__remove:hover { background: var(--dco-err); color: #fff; }
.dco__remove:active { transform: scale(0.97); }
.dco__remove:focus-visible { outline: 3px solid hsla(38, 72%, 50%, 0.6); outline-offset: 2px; }

/* "Pick a look" button that opens the eight looks (2026-10-28) */
.dco__looks { margin-bottom: 1rem; }
.dco__looks-btn {
  display: flex; align-items: center; gap: 1rem; padding: 0.75rem 1rem 0.75rem 0.75rem;
  border: 2px solid var(--dco-ink); border-radius: 16px; background: #fff; cursor: pointer; list-style: none;
  box-shadow: 0 10px 24px -16px rgba(14,27,57,0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.dco__looks-btn::-webkit-details-marker { display: none; }
.dco__looks-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -18px rgba(14,27,57,0.55); background: #fffaf0; }
.dco__looks-btn:active { transform: translateY(0); }
.dco__looks-btn:focus-visible { outline: 3px solid hsla(38, 72%, 50%, 0.7); outline-offset: 3px; }
.dco__looks-thumb { flex: none; width: 64px; height: 96px; object-fit: cover; object-position: top; border-radius: 10px; border: 1px solid var(--dco-line); }
.dco__looks-text { flex: 1; display: flex; flex-direction: column; gap: 0.2rem; font-size: 1rem; }
.dco__looks-text strong { font-size: 1.125rem; }
.dco__looks-name { color: var(--dco-gold-ink); }
.dco__looks-hint { font-size: 0.9375rem; color: var(--dco-soft); }
.dco__looks-chev { flex: none; width: 28px; height: 28px; fill: none; stroke: var(--dco-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s ease; }
.dco__looks[open] .dco__looks-chev { transform: rotate(180deg); }
.dco__looks[open] .dco__styles { margin-top: 0.9rem; animation: dco-open 0.25s ease; }
@keyframes dco-open { from { opacity: 0; transform: translateY(-6px); } }

/* "Pay without Link" notice above the pay button (2026-10-28) */
.dco__paynote {
  display: flex; gap: 0.85rem; align-items: flex-start; margin: 0.25rem 0 1rem; padding: 1rem 1.1rem;
  border: 2px solid hsl(38, 72%, 50%); border-radius: 14px; background: #fff6df;
}
.dco__paynote svg { flex: none; width: 28px; height: 28px; fill: none; stroke: var(--dco-ink); stroke-width: 2; stroke-linecap: round; }
.dco__paynote p { margin: 0; font-size: 1.0625rem; line-height: 1.5; }
.dco__paynote strong { display: block; margin-bottom: 0.2rem; font-size: 1.125rem; }

/* The looks to choose from */
.dco__styles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
@media (max-width: 640px) { .dco__styles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dco__style {
  position: relative; display: flex; flex-direction: column; gap: 0.25rem; padding: 0.6rem;
  border: 2px solid var(--dco-line); border-radius: 16px; background: #fff; cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.dco__style:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(14,27,57,0.45); }
.dco__style:active { transform: translateY(0); }
.dco__style input { position: absolute; opacity: 0; pointer-events: none; }
.dco__style img { width: 100%; height: auto; aspect-ratio: 540 / 820; object-fit: cover; object-position: top; border-radius: 10px; }
.dco__style strong { font-size: 0.9375rem; }
.dco__style small { font-size: 0.75rem; line-height: 1.35; color: var(--dco-soft); }
.dco__style:has(input:checked) { border-color: var(--dco-ink); box-shadow: 0 0 0 3px hsla(38, 72%, 50%, 0.45); }
.dco__style:has(input:focus-visible) { outline: 3px solid var(--dco-ink); outline-offset: 2px; }
.dco__color { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 0.6rem 0.9rem; }
.dco__color > span { flex-basis: 100%; }
.dco__color input[type="color"] {
  width: 56px; height: 40px; padding: 2px; border: 1px solid var(--dco-line); border-radius: 10px; background: #fff; cursor: pointer;
}
.dco__color input[type="color"]:focus-visible { outline: 3px solid hsla(38, 72%, 50%, 0.6); outline-offset: 2px; }

/* Hosting choice */
.dco__choice {
  display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 0.6rem; padding: 0.85rem 1rem;
  border: 2px solid var(--dco-line); border-radius: 14px; background: #fff; cursor: pointer;
  line-height: 1.45; font-size: 0.9375rem; color: var(--dco-soft);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.dco__choice:hover { border-color: rgba(14,27,57,0.35); }
.dco__choice:has(input:checked) { border-color: var(--dco-ink); box-shadow: 0 0 0 3px hsla(38, 72%, 50%, 0.35); }
.dco__choice input { margin-top: 0.25rem; accent-color: var(--dco-ink); width: 18px; height: 18px; }
.dco__choice strong { display: block; color: var(--dco-ink); }
/* Only asked for when they want it on their own site. */
.dco__access { display: none; margin-top: 0.4rem; }
.dco__set:has(input[value="theirs"]:checked) .dco__access { display: flex; }

.dco__consent { display: flex; gap: 0.7rem; align-items: flex-start; margin: 0 0 1.4rem; font-size: 0.9375rem; line-height: 1.5; cursor: pointer; }
.dco__consent input { margin-top: 0.2rem; width: 18px; height: 18px; accent-color: var(--dco-ink); }

.dco__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0.9rem 1.9rem; border: 0; border-radius: 999px;
  background: var(--dco-ink); color: #fff;
  font: inherit; font-size: 1.0625rem; font-weight: 600; text-decoration: none; cursor: pointer;
  box-shadow: 0 14px 30px -14px rgba(14,27,57,0.6);
  transition: background 0.2s ease, transform 0.2s ease;
}
.dco__btn:hover { background: var(--gold); transform: translateY(-2px); color: #fff; }
.dco__btn:active { transform: translateY(0); }
.dco__btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.dco__btn--pay { width: 100%; margin-bottom: 0.6rem; }
.dco__btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

.dco__note {
  margin: 0 0 1.25rem; padding: 0.9rem 1.1rem; border-radius: 12px;
  background: #fff; border-left: 4px solid var(--dco-gold-ink); line-height: 1.5;
}
.dco__note--ok { border-left-color: var(--dco-ok); }
.dco__note--err { border-left-color: var(--dco-err); color: var(--dco-err); background: #fff6f5; }
.dco__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Thank-you and review states */
.dco__done, .dco__review { max-width: 640px; margin: 0 auto; text-align: center; }
.dco__done .dco__eyebrow, .dco__review .dco__eyebrow { justify-content: center; }
.dco__done .dco__btn { margin-top: 1rem; }
.dco__review form { margin: 1.25rem 0 0.5rem; }
.dco__preview {
  margin: 0 auto 0.75rem; width: min(390px, 100%); height: 760px; max-height: 75svh;
  border-radius: 24px; overflow: hidden; border: 7px solid #141c33; background: #fff;
}
.dco__preview iframe { width: 100%; height: 100%; border: 0; }
.dco__link { color: var(--dco-ink); font-weight: 600; }
.dco__link:hover { color: var(--dco-gold-ink); }

@media (max-width: 900px) {
  .dco__grid { grid-template-columns: minmax(0, 1fr); }
  .dco__intro { position: static; }
  .dco__sample { display: none; }
}
@media (max-width: 560px) {
  .dco__row { grid-template-columns: minmax(0, 1fr); }
  .dco__styles { gap: 0.6rem; }
  .dco__style { padding: 0.45rem; }
  .dco__style small { display: none; }
  .dco__looks-btn { gap: 0.75rem; padding: 0.6rem 0.75rem 0.6rem 0.6rem; }
  .dco__looks-thumb { width: 52px; height: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .dco__style, .dco__btn, .dco__choice, .dco__field input, .dco__looks-btn, .dco__looks-chev, .dco__remove { transition: none; }
  .dco__looks[open] .dco__styles { animation: none; }
}
