/* Cherish Designs - order form page (order.html).
   Shared colors, fonts, buttons and the taped-photo look come from site.css. */

body.order-page { background: var(--lilac); font-size: 16px; line-height: 1.55; }
.top { background: var(--paper); border-bottom: 1px solid var(--line); }
.top .inner { max-width: 1160px; margin: 0 auto; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.top .logo { font-size: 21px; }
.top .logo i { width: 28px; height: 28px; box-shadow: inset -6px -5px 0 var(--lav-dark); }
.top a.back { font-size: 14px; color: var(--muted); }
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.08; }

.page { max-width: 1160px; margin: 0 auto; padding: 32px 20px 72px; }
.intro { margin-bottom: 24px; }
.intro h1 { font-size: clamp(34px, 5vw, 52px); }
.intro h1 .hand { color: var(--lav); font-size: 1.05em; }
.intro p { color: var(--muted); margin: 10px 0 0; max-width: 40em; }

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

/* progress */
.progress { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; list-style: none; padding: 0; }
.progress li { flex: 1 1 0; min-width: 0; }
.progress button { width: 100%; font: 600 12px/1.2 "Onest", sans-serif; color: var(--muted); background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.progress button:disabled { cursor: default; }
.progress .bar { display: block; height: 6px; border-radius: 99px; background: var(--lilac-2); margin-bottom: 7px; }
.progress li.done .bar { background: var(--lav); }
.progress li.current .bar { background: var(--ink); }
.progress li.current button { color: var(--ink); }
.progress li.skipped { opacity: .45; }
.progress .name { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress-mobile { display: none; font-weight: 600; font-size: 14px; margin-bottom: 10px; }

.card { background: var(--paper); border-radius: 26px; padding: 30px; box-shadow: 0 1px 0 var(--line); }
.step h2 { font-size: clamp(26px, 3.2vw, 34px); }
.step .lead { color: var(--muted); margin: 8px 0 22px; max-width: 40em; }
.q { margin: 26px 0 0; padding: 0; border: 0; min-width: 0; }
.q legend, .q > .label { font-weight: 700; font-size: 17px; padding: 0; margin-bottom: 4px; }
.q .help { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.optional { font-weight: 500; color: var(--muted); font-size: 14px; }

/* picture choice cards */
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.choice { position: relative; display: grid; gap: 8px; align-content: start; background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 10px 10px 14px; cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; }
.choice:hover { border-color: var(--lilac-2); transform: translateY(-2px); }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice:has(input:checked) { border-color: var(--lav); box-shadow: 0 0 0 3px var(--lilac-2); }
.choice:has(input:focus-visible) { outline: 3px solid var(--lav); outline-offset: 3px; }
.choice:has(input:checked)::after { content: "✓"; position: absolute; top: 14px; right: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--lav); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.choice img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 11px; }
.choice .ph { aspect-ratio: 1; border-radius: 11px; border: 2px dashed var(--lilac-2); display: grid; place-items: center; text-align: center; color: var(--muted); font-family: "Gochi Hand", cursive; font-size: 19px; padding: 8px; }
.choice .t { font-weight: 700; line-height: 1.25; }
.choice .s { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.choices.small { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.choices.chains { grid-template-columns: repeat(3, 1fr); max-width: 520px; }

/* pill choices */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--lilac-2); background: #fff; border-radius: 999px; padding: 9px 16px; font-weight: 500; font-size: 15px; transition: border-color .15s, background .15s; }
.pill:hover span { border-color: var(--lav); }
.pill input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill input:focus-visible + span { outline: 3px solid var(--lav); outline-offset: 2px; }
.swatch { width: 18px; height: 18px; border-radius: 50%; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.sw-silver { background: linear-gradient(135deg, #f4f4f6, #b9bcc4 55%, #e9eaee); }
.sw-10k { background: linear-gradient(135deg, #f6e7b0, #d4b05a 55%, #f1dfa0); }
.sw-18k { background: linear-gradient(135deg, #ffe39a, #d49a1e 55%, #f7d170); }
.sw-gold-tone { background: linear-gradient(135deg, #fbe7a6, #d9aa3c 55%, #f3d584); }

/* text inputs */
.field { display: grid; gap: 6px; margin-top: 16px; }
.field label { font-weight: 600; font-size: 15px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
input[type=text], input[type=email], input[type=tel], input[type=date], select, textarea {
  font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--lilac-2); border-radius: 14px; padding: 12px 14px; width: 100%;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--lav); outline: none; box-shadow: 0 0 0 3px var(--lilac-2); }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 15px; }
.check input { width: 20px; height: 20px; accent-color: var(--lav); margin-top: 2px; flex: none; }

.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--lilac-2); border-radius: 999px; background: #fff; overflow: hidden; }
.stepper button { font: 700 20px/1 "Onest", sans-serif; width: 44px; height: 44px; border: 0; background: none; color: var(--ink); cursor: pointer; }
.stepper button:hover { background: var(--lilac); }
.stepper input { width: 48px; text-align: center; border: 0; font: 600 17px "Onest", sans-serif; padding: 0; background: transparent; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* upload */
.drop { display: grid; place-items: center; text-align: center; gap: 6px; border: 2px dashed var(--lav); background: var(--lilac); border-radius: 20px; padding: 30px 20px; cursor: pointer; transition: background .15s; }
.drop:hover, .drop.over { background: var(--lilac-2); }
.drop strong { font-size: 18px; }
.drop .hand { font-size: 22px; color: var(--lav); }
.drop small { color: var(--muted); }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; margin-top: 14px; }
.thumb { position: relative; background: #fff; padding: 6px 6px 24px; box-shadow: 0 6px 16px rgba(23,20,42,.12); }
.thumb:nth-child(odd) { transform: rotate(-2deg); } .thumb:nth-child(even) { transform: rotate(2deg); }
.thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.thumb button { position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-weight: 700; cursor: pointer; }
.thumb span { position: absolute; left: 8px; right: 8px; bottom: 4px; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tips { margin-top: 16px; background: #fff8e1; border-radius: 16px; padding: 14px 18px; font-size: 14.5px; }
.tips b { display: block; margin-bottom: 4px; }
.tips ul { margin: 0; padding-left: 18px; }

.chainphoto { margin-top: 14px; border-radius: 18px; overflow: hidden; }
.note { margin-top: 14px; background: var(--lilac); border-radius: 14px; padding: 12px 16px; font-size: 14.5px; color: var(--ink); }
.warn { margin-top: 12px; background: #fff1e6; border-radius: 14px; padding: 12px 16px; font-size: 14.5px; }

.error { color: var(--error); font-weight: 600; font-size: 14.5px; margin: 16px 0 0; }

.nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.nav .skipnote { font-size: 13.5px; color: var(--muted); }

/* review */
.review { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.review li { display: grid; grid-template-columns: 150px 1fr auto; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); align-items: start; }
.review .k { color: var(--muted); font-size: 14px; padding-top: 1px; }
.review .v { font-weight: 500; }
.review .v .empty { color: var(--muted); font-weight: 400; font-style: italic; }
.review button { font: 600 13px "Onest", sans-serif; color: var(--lav); background: none; border: 0; cursor: pointer; padding: 2px 0; }
.review-photos { display: flex; gap: 8px; flex-wrap: wrap; }
.review-photos img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.deposit { margin-top: 24px; background: var(--ink); color: #fff; border-radius: 22px; padding: 24px 26px; display: grid; gap: 8px; }
.deposit h3 { font-size: 22px; }
.deposit ul { margin: 0; padding-left: 20px; color: #d4cfee; }
.fine { font-size: 13.5px; color: var(--muted); margin-top: 14px; }

/* summary sidebar */
.summary { position: sticky; top: calc(20px + env(safe-area-inset-top, 0px)); }
.summary .snap { background: #fff; padding: 10px 10px 36px; box-shadow: 0 10px 26px rgba(23,20,42,.14); position: relative; transform: rotate(-1.5deg); }
.summary .snap::before { content: ""; position: absolute; top: -11px; left: 50%; width: 76px; height: 22px; background: var(--tape); transform: translateX(-50%) rotate(-4deg); }
.summary .snap img, .summary .snap .ph { width: 100%; aspect-ratio: 1; object-fit: cover; }
.summary .snap .ph { display: grid; place-items: center; background: var(--lilac); color: var(--muted); font-family: "Gochi Hand", cursive; font-size: 22px; text-align: center; padding: 16px; }
.summary .snap figcaption { position: absolute; left: 12px; right: 12px; bottom: 7px; font-family: "Gochi Hand", cursive; font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.summary dl { margin: 26px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 14.5px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; }
.summary .promise { margin-top: 20px; border: 2px dashed var(--lav); border-radius: 18px; padding: 14px 16px; font-size: 14px; }
.summary .promise .hand { color: var(--lav); font-size: 21px; }

/* done */
.done { text-align: center; padding: 20px 0; }
.done .hand { font-size: 30px; color: var(--lav); }
.done h2 { font-size: 36px; margin: 8px 0 12px; }
.done p { color: var(--muted); max-width: 34em; margin: 0 auto 12px; }
.done .oid { display: inline-block; margin-top: 8px; font-weight: 700; background: var(--lilac); border-radius: 999px; padding: 8px 16px; }
.demo-flag { margin-top: 22px; font-size: 13.5px; background: #fff8e1; border-radius: 14px; padding: 12px 16px; text-align: left; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .summary { display: none; }
  .progress { display: none; }
  .progress-mobile { display: block; }
  .progress-mobile .bar { height: 6px; border-radius: 99px; background: var(--lilac-2); margin-top: 8px; overflow: hidden; }
  .progress-mobile .bar i { display: block; height: 100%; background: var(--lav); transition: width .2s; }
}
@media (max-width: 520px) {
  .card { padding: 22px 18px; border-radius: 22px; }
  .choices { grid-template-columns: 1fr 1fr; gap: 10px; }
  .choices.small { grid-template-columns: 1fr 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .review li { grid-template-columns: 1fr auto; }
  .review .k { grid-column: 1 / -1; padding-top: 0; }
  .nav .btn { flex: 1 1 auto; }
}
