/* /custom-cakes: the custom cake request page. Built on storefront-pages.css (variables and sf-* classes);
   only this page's own layout lives here. */

/* ---------- page top: heading on the left, the bakery's cake photo on the right ---------- */
.ck-head.has-photo{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:clamp(28px,5vw,84px);align-items:center}
.ck-kinds{list-style:none;display:flex;flex-wrap:wrap;gap:8px;margin-top:1.6rem}
.ck-kinds li{padding:.38rem .95rem;border-radius:999px;font-size:.84rem;font-weight:500;color:var(--gold-soft);border:1px solid color-mix(in srgb,var(--gold) 45%,transparent)}
.ck-head-photo{position:relative;justify-self:end;width:min(100%,29rem);transform:rotate(1.6deg)}
.ck-head-photo img{width:100%;aspect-ratio:5/4;height:auto;object-fit:cover;border-radius:var(--sf-radius);box-shadow:0 0 0 1px color-mix(in srgb,var(--gold) 40%,transparent),0 0 0 9px color-mix(in srgb,var(--cream) 8%,transparent),0 40px 60px -28px #000}
.ck-head-photo .sf-note{position:absolute;inset-inline-start:-14px;bottom:-12px;max-width:14.5rem;font-size:1.12rem}

/* ---------- body: how it works beside the form ---------- */
.ck-body{display:grid;grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr);gap:clamp(30px,5vw,84px);align-items:start;padding-inline:max(var(--pad),calc(50vw - 660px))}
.ck-side{position:sticky;top:calc(var(--sf-navh) + 28px)}
.ck-side h2{font-size:clamp(1.9rem,3.2vw,2.9rem);margin-top:.15em}
.ck-steps{list-style:none;counter-reset:ck;display:grid;gap:1.35rem;margin:1.9rem 0 1.7rem}
.ck-steps li{counter-increment:ck;display:grid;grid-template-columns:3.1rem minmax(0,1fr);column-gap:1rem;align-items:start;padding-bottom:1.35rem;border-bottom:1.5px dashed color-mix(in srgb,var(--ink) 20%,transparent)}
.ck-steps li:last-child{border-bottom:0;padding-bottom:0}
.ck-steps li::before{content:counter(ck);grid-row:1/3;width:3.1rem;height:3.1rem;border-radius:50%;display:grid;place-items:center;background:var(--lacquer);color:var(--on-lacquer);font-family:var(--display);font-style:italic;font-size:1.45rem;line-height:1;box-shadow:inset 0 0 0 2px var(--gold)}
.ck-steps b{font-family:var(--display);font-weight:500;font-size:1.2rem;line-height:1.2;font-variation-settings:"SOFT" 100,"WONK" 1}
.ck-steps span{color:var(--muted);font-size:.96rem;margin-top:.2rem}
.ck-intro{color:var(--muted);max-width:30em}
.ck-call{margin-top:1.8rem}
.ck-call .sf-eyebrow{font-size:1.25rem}
.ck-call-tel{display:inline-block;font-family:var(--display);font-size:clamp(1.7rem,2.6vw,2.2rem);line-height:1.1;color:var(--cream);margin:.1em 0 .3em}
.ck-call-tel:hover{color:var(--gold-on-ink)}
.ck-call p:last-child{font-size:.92rem;color:color-mix(in srgb,var(--cream) 80%,transparent)}
.ck-call p a{color:var(--gold-on-ink);text-decoration:underline;text-underline-offset:3px}

/* ---------- the form ---------- */
.ck-form{padding:clamp(22px,3vw,44px)}
.ck-sec{border:0;min-width:0;padding-bottom:clamp(14px,1.8vw,24px);margin-bottom:clamp(20px,2.4vw,32px);border-bottom:1.5px dashed color-mix(in srgb,var(--ink) 20%,transparent)}
.ck-sec-h{display:flex;align-items:center;gap:.7rem;width:100%;padding:0;margin-bottom:1.15rem;font-family:var(--display);font-weight:400;font-size:clamp(1.4rem,2vw,1.75rem);line-height:1.1;font-variation-settings:"SOFT" 100,"WONK" 1}
.ck-sec-h span{font-family:var(--hand);font-size:1.5rem;line-height:1;color:var(--lacquer-ink);width:2rem;height:2rem;border-radius:50%;border:1.5px solid currentColor;display:grid;place-items:center;flex:none;padding-top:.1em}
.ck-opt{font-weight:400;font-size:.78rem;color:var(--muted);margin-inline-start:.35rem}
.ck-desc{min-height:8.5rem}
.cake-hp{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;opacity:0;pointer-events:none}

/* the occasion: one tap each */
.ck-occ{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.ck-occ-item{position:relative;cursor:pointer}
.ck-occ-item input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;margin:0}
.ck-occ-item span{display:flex;align-items:center;justify-content:center;min-height:3.1rem;padding:.6rem .7rem;border:1.5px solid color-mix(in srgb,var(--ink) 24%,transparent);border-radius:8px;background:#fffdf7;text-align:center;font-weight:500;font-size:.95rem;line-height:1.2;transition:border-color .2s,background .25s,color .25s,box-shadow .25s}
.ck-occ-item:hover span{border-color:var(--ink)}
.ck-occ-item input:checked+span{background:var(--ink);border-color:var(--ink);color:var(--cream);box-shadow:inset 0 0 0 1.5px var(--gold)}
.ck-occ-item input:focus-visible+span{outline:3px solid var(--gold);outline-offset:3px}
.cake-field.has-error .ck-occ-item span{border-color:#b3261e;background:#fff6f4}
.cake-field.has-error .ck-occ-item input:checked+span{background:var(--ink)}

/* the photo: tap or drop */
.ck-drop{position:relative;display:flex;align-items:center;gap:1rem;padding:1.15rem 1.2rem;border:1.5px dashed color-mix(in srgb,var(--ink) 38%,transparent);border-radius:12px;background:color-mix(in srgb,var(--sand) 45%,#fffdf7);cursor:pointer;transition:border-color .2s,background .25s}
.ck-drop:hover,.ck-drop.is-over{border-color:var(--ink);background:var(--sand)}
.ck-drop:focus-within{outline:3px solid var(--gold);outline-offset:3px}
.ck-file{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.ck-drop-ico{flex:none;width:3.2rem;height:3.2rem;border-radius:50%;display:grid;place-items:center;background:var(--paper);color:var(--lacquer-ink);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--ink) 16%,transparent)}
.ck-drop-ico svg{width:1.45rem;height:1.45rem}
.ck-drop-text{min-width:0}
.ck-drop-text b{display:block;font-weight:600}
.ck-drop-text small{display:block;font-size:.84rem;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cake-photo-preview{flex:none;width:5rem;height:5rem;object-fit:cover;border-radius:10px;box-shadow:0 0 0 1.5px var(--ink),0 10px 18px -8px color-mix(in srgb,var(--wood) 60%,transparent);transform:rotate(-2deg)}
.ck-drop.has-photo{border-style:solid;background:var(--paper)}
.ck-drop.has-photo .ck-drop-ico{display:none}
.cake-field.has-error .ck-drop{border-color:#b3261e;background:#fff6f4}
.ck-clear{margin-top:.55rem;font-size:.86rem;font-weight:600;color:var(--lacquer-ink);text-decoration:underline;text-underline-offset:3px}

.cake-msg{margin-bottom:1rem;font-weight:600}
.cake-submit{font-size:1.04rem;padding-block:1.15rem}
.ck-fine{text-align:center;margin-top:.9rem}
.ck-fine a{color:var(--lacquer-ink);text-decoration:underline;text-underline-offset:3px}

/* ---------- sent ---------- */
.ck-done{padding:clamp(30px,4vw,60px) clamp(22px,3vw,48px);text-align:center}
.ck-done:focus{outline:none}
.ck-done-tick{width:4.4rem;height:4.4rem;margin:0 auto 1.1rem;border-radius:50%;display:grid;place-items:center;background:var(--lacquer);color:var(--on-lacquer);box-shadow:inset 0 0 0 2px var(--gold),0 16px 28px -14px color-mix(in srgb,var(--wood) 70%,transparent)}
.ck-done-tick svg{width:2.1rem;height:2.1rem}
.ck-done h2{font-size:clamp(1.9rem,3.4vw,2.9rem);margin:.15em auto .5em;max-width:14em}
.ck-done>p{color:var(--muted);max-width:32em;margin-inline:auto}
.ck-done-ref:empty{display:none}
.ck-done .ck-done-ref{display:inline-block;margin-top:1.3rem;padding:.5rem 1.1rem;background:#fffdf7;border:1.5px solid var(--ink);font-family:var(--hand);font-size:1.4rem;line-height:1.2;color:var(--ink);transform:rotate(-1.5deg);box-shadow:0 10px 20px -10px color-mix(in srgb,var(--wood) 60%,transparent)}
.ck-done-cta{justify-content:center;margin-top:1.8rem}

@media (max-width:980px){
  .ck-head.has-photo{grid-template-columns:minmax(0,1fr)}
  .ck-head-photo{justify-self:start;width:min(100%,34rem);transform:none;margin-bottom:10px}
  .ck-head-photo img{aspect-ratio:16/10}
  .ck-head-photo .sf-note{inset-inline-start:12px}
  .ck-body{grid-template-columns:minmax(0,1fr)}
  .ck-side{position:static}
}
@media (max-width:620px){
  .ck-occ{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ck-form{padding:22px 16px}
  .ck-drop{padding:1rem}
  .ck-done-cta .sf-btn{width:100%}
}
