/* Bouquet designer + budget builder (design.html). Uses the color tokens from styles.css. */

.designer-body main { position: relative; z-index: 1; }
.nav a[aria-current="page"] { color: var(--rose); }

/* ---------- intro + mode switch ---------- */
.d-intro { padding-block: 2.2rem 1.2rem; text-align: center; }
.d-intro h1 { font-size: clamp(2.3rem, 7vw, 4rem); }
.d-lede { color: var(--mist); max-width: 46ch; margin: .8rem auto 0; }
.mode-switch {
  display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; max-width: 560px; margin: 1.6rem auto 0;
  padding: .35rem; background: var(--plum); border: 1px solid var(--line); border-radius: 18px;
}
.mode-btn {
  font: inherit; cursor: pointer; border: 0; border-radius: 14px; padding: .8rem .6rem;
  background: transparent; color: var(--mist); display: grid; gap: .1rem; transition: background .2s, color .2s, box-shadow .2s;
}
.mode-title { font-size: 1.02rem; letter-spacing: .03em; }
.mode-sub { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.mode-btn.is-active { background: #fff; color: var(--rose); box-shadow: 0 6px 20px rgba(160,129,107,.16); }

/* ---------- budget box ---------- */
.budget { padding-bottom: 1.5rem; }
.budget-box {
  position: relative; max-width: 720px; margin: .6rem auto 0; padding: 1.8rem 1.3rem 1.4rem;
  background: linear-gradient(180deg, #fff, var(--plum)); border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
}
/* budget field styles live in styles.css (shared with the home page) */
.budget-quick { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .9rem; }

.pkg-wrap { max-width: 1100px; margin: 1.6rem auto 0; }
.pkg-head { text-align: center; font-size: 1.1rem; margin-bottom: 1rem; }
.pkg-grid { display: grid; gap: 1rem; }
.pkg-grid > .btn { justify-self: center; }
.pkg {
  display: grid; grid-template-columns: 120px 1fr; grid-template-areas: "cv tag" "cv h" "cv info" "go go";
  column-gap: 1rem; align-items: start; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 10px 30px rgba(160,129,107,.07);
}
.pkg-canvas { grid-area: cv; width: 120px; height: 120px; }
.pkg-tag { grid-area: tag; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--rose); }
.pkg h3 { grid-area: h; font-size: 1.3rem; margin-top: .15rem; }
.pkg-info { grid-area: info; display: grid; gap: .25rem; margin-top: .35rem; }
.pkg-line { font-size: .95rem; }
.pkg-extras { font-size: .82rem; color: var(--mist); line-height: 1.4; }
.pkg-price { font-size: 1.25rem; color: var(--pearl); }
.pkg-price small { font-size: .8rem; color: var(--mist); }
.pkg-go { grid-area: go; margin-top: .9rem; width: 100%; }

/* ---------- designer layout ---------- */
.designer { padding-block: 1rem 3rem; }
.designer-grid { display: grid; gap: 1.2rem; align-items: start; }
.preview-col { position: sticky; top: var(--hdr, 64px); z-index: 5; margin-inline: -20px; }
body.on-send .preview-col { position: relative; top: 0; }
.preview-card {
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); padding: .6rem 20px .7rem;
}
.preview-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.preview-top .eyebrow { display: none; }
.preview-title { font-size: 1.7rem; }
.est { display: grid; justify-items: end; line-height: 1.1; }
.est-label { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }
.est-num { font-size: 1.45rem; color: var(--rose); font-variant-numeric: tabular-nums; }
.preview-stage { display: grid; place-items: center; }
#bouquet-canvas { width: min(31vh, 74vw, 520px); height: min(31vh, 74vw, 520px); display: block; }
.preview-line { text-align: center; font-size: .82rem; line-height: 1.4; color: var(--pearl); margin-top: .2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview-note { display: none; text-align: center; font-size: .74rem; color: var(--mist); margin-top: .3rem; font-family: "Cormorant Garamond", serif; font-style: italic; letter-spacing: 0; }

.meter { margin-top: .4rem; }
.meter-bar { height: 8px; border-radius: 999px; background: var(--plum); border: 1px solid var(--line); overflow: hidden; }
.meter-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blush), var(--rose)); border-radius: inherit; transition: width .35s ease; }
.meter-text { font-size: .76rem; line-height: 1.3; text-align: center; margin-top: .3rem; color: var(--sage); }
.meter.is-over .meter-bar span { background: linear-gradient(90deg, #f3a0a0, #c0392b); }
.meter.is-over .meter-text { color: #b3261e; }

/* ---------- stepper ---------- */
.stepper { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.step-tab {
  width: 100%; font: .82rem var(--font-body); letter-spacing: .03em; color: var(--mist); cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .55rem .3rem; display: grid; gap: .05rem; line-height: 1.2;
}
.step-tab b { font-weight: 400; font-size: .7rem; color: var(--rose); letter-spacing: .12em; }
.step-tab.is-active { background: var(--rose); border-color: var(--rose); color: #fff; }
.step-tab.is-active b { color: #fff; opacity: .85; }
.step-intro { color: var(--mist); margin-bottom: .8rem; }

/* ---------- option groups ---------- */
.opt { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
.opt legend { font-size: 1.05rem; margin-bottom: .6rem; padding: 0; display: flex; gap: .6rem; align-items: baseline; width: 100%; }
.legend-note { font-size: .78rem; color: var(--mist); letter-spacing: .04em; }

.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: .45rem; }
.chip {
  position: relative; font: inherit; cursor: pointer; background: #fff; color: var(--pearl);
  border: 1.5px solid var(--line); border-radius: 14px; padding: .55rem .2rem .5rem; display: grid; justify-items: center; line-height: 1.15;
  transition: border-color .2s, background .2s, transform .15s;
}
.chip b { font-weight: 400; font-size: 1.35rem; }
.chip span { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mist); }
.chip em { font-style: normal; font-size: .8rem; color: var(--rose); margin-top: .15rem; }
.chip i { position: absolute; top: -.55rem; left: 50%; transform: translateX(-50%); font-style: normal; font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; background: var(--rose); color: #fff; padding: .05rem .4rem; border-radius: 999px; white-space: nowrap; }
.chip:active { transform: scale(.97); }
.chip.is-on { border-color: var(--rose); background: var(--plum); box-shadow: 0 0 0 3px var(--glow); }
.chip.is-over:not(.is-on) { opacity: .45; }

.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: .5rem .3rem; }
.swatches-sm { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
.swatch { position: relative; font: inherit; cursor: pointer; background: transparent; border: 0; padding: .2rem; display: grid; justify-items: center; gap: .3rem; color: var(--mist); }
.swatch .dot {
  width: 42px; height: 42px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--l) 0 12%, var(--c) 45%, var(--d) 100%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 3px 8px rgba(45,35,29,.15);
  transition: transform .15s, box-shadow .2s;
}
.dot.flat { background: var(--c); }
.swatch .sw-name { font-size: .72rem; letter-spacing: .03em; text-align: center; line-height: 1.15; }
.swatch.is-on .dot { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--rose), 0 4px 10px rgba(45,35,29,.2); transform: scale(1.04); }
.swatch.is-on .sw-name { color: var(--pearl); }
.swatch[data-order]:not([data-order=""])::after {
  content: attr(data-order); position: absolute; top: 0; right: calc(50% - 28px); width: 18px; height: 18px; border-radius: 50%;
  background: var(--rose); color: #fff; font-size: .68rem; display: grid; place-items: center; line-height: 1;
}

.seg { display: flex; flex-wrap: wrap; gap: .45rem; }
.seg-btn, .mini {
  font: .92rem var(--font-body); letter-spacing: .03em; cursor: pointer; background: #fff; color: var(--pearl);
  border: 1.5px solid var(--line); border-radius: 999px; padding: .6rem 1rem; display: inline-flex; align-items: center; gap: .4rem;
  transition: border-color .2s, background .2s;
}
.seg-btn em { font-style: normal; font-size: .78rem; color: var(--rose); }
.seg-btn.is-on, .mini.is-on { border-color: var(--rose); background: var(--plum); color: var(--rose); }
.mini { font-size: .82rem; padding: .45rem .8rem; }
.mini .dot { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }

/* ---------- add-ons ---------- */
.addons { display: grid; gap: .55rem; }
.addon { background: #fff; border: 1.5px solid var(--line); border-radius: 16px; transition: border-color .2s, background .2s, box-shadow .2s; }
.addon-btn {
  width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; background: transparent; border: 0;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; padding: .8rem .9rem;
}
.addon-check { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.addon-text { display: grid; gap: .1rem; }
.addon-text b { font-weight: 400; font-size: 1rem; }
.addon-text small { font-size: .78rem; color: var(--mist); letter-spacing: .02em; line-height: 1.3; }
.addon-price { font-size: .9rem; color: var(--rose); white-space: nowrap; }
.addon-over { display: none; grid-column: 2 / 4; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #b3261e; margin-top: -.4rem; }
.addon.is-over .addon-over { display: block; }
.addon.is-over { opacity: .7; }
.addon-extra { display: none; padding: 0 .9rem .9rem 3.1rem; gap: .7rem; }
.addon.is-on { border-color: var(--rose); background: var(--plum); box-shadow: 0 6px 18px rgba(160,129,107,.12); }
.addon.is-on .addon-check { background: var(--rose); border-color: var(--rose); }
.addon.is-on .addon-check::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.addon.is-on .addon-extra { display: grid; }
.mini-choices { display: flex; flex-wrap: wrap; gap: .35rem; }

/* ---------- step 3 form ---------- */
.form-grid { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.field { display: grid; gap: .35rem; }
.field > span { font-size: .95rem; }
.field em { font-style: normal; color: var(--mist); font-size: .8rem; }
.field small { color: var(--mist); font-size: .78rem; letter-spacing: .02em; }
.field input, .field textarea {
  font: 16px/1.4 "Cormorant Garamond", Georgia, serif; font-weight: 600; letter-spacing: 0; color: var(--pearl);
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: .7rem .85rem; width: 100%; min-width: 0;
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--rose); box-shadow: 0 0 0 4px var(--glow); }
.field.small > span { font-size: .8rem; color: var(--mist); }
.field input[type="date"] { min-height: 48px; -webkit-appearance: none; appearance: none; }
.form-grid .opt { margin: 0; }

.summary { background: var(--plum); border: 1px solid var(--line); border-radius: 18px; padding: 1.1rem 1.1rem 1rem; }
.summary h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.summary ul { list-style: none; margin: 0; padding: 0; display: grid; }
.summary li { display: grid; grid-template-columns: 5.2rem 1fr auto; gap: .6rem; padding: .5rem 0; border-bottom: 1px dashed var(--line); font-size: .88rem; align-items: baseline; }
.summary li span { color: var(--mist); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.summary li b { font-weight: 400; overflow-wrap: anywhere; }
.summary li em { font-style: normal; color: var(--rose); white-space: nowrap; }
.summary-total { text-align: right; margin-top: .8rem; font-size: 1rem; }
.summary-total b { font-weight: 400; font-size: 1.5rem; color: var(--rose); margin-left: .3rem; }
.summary-total small { color: var(--mist); }
.summary-note { font-size: .78rem; color: var(--mist); margin-top: .3rem; text-align: right; font-family: "Cormorant Garamond", serif; font-style: italic; letter-spacing: 0; }

.send { display: grid; gap: .6rem; margin-top: 1.3rem; }
.send .btn { width: 100%; }
.send-main { font-size: 1.05rem; padding-block: 1rem; }
.send-email { text-align: center; color: var(--mist); font-size: .9rem; }
.send-tip { text-align: center; font-size: .8rem; color: var(--mist); font-family: "Cormorant Garamond", serif; font-style: italic; letter-spacing: 0; font-size: .95rem; }

.step-nav { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-top: 1.4rem; }
.step-nav .btn-primary { flex: 1; max-width: 340px; margin-left: auto; }

/* ---------- real photos ---------- */
.real { padding-top: 2rem; }
.real .section-head { margin-bottom: 1.2rem; }
.real-sub { margin-top: .4rem; }
.real-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: .7rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: .6rem; margin-inline: -20px; padding-inline: 20px; scrollbar-width: thin;
}
.real-strip figure { margin: 0; scroll-snap-align: start; border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--plum); }
.real-strip img { width: 100%; height: 100%; object-fit: cover; animation: fade-in .4s ease both; }

/* ---------- bigger screens ---------- */
@media (min-width: 560px) {
  .pkg-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .pkg { grid-template-columns: 1fr; grid-template-areas: "cv" "tag" "h" "info" "go"; text-align: center; }
  .pkg-canvas { width: 200px; height: 200px; justify-self: center; margin-bottom: .6rem; }
  .addons { grid-template-columns: 1fr 1fr; align-items: start; }
  .real-strip { grid-auto-columns: 30%; }
}
@media (min-width: 900px) {
  .d-intro { padding-top: 3.5rem; }
  .designer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3rem; }
  .preview-col { margin-inline: 0; top: calc(var(--hdr, 72px) + 16px); }
  body.on-send .preview-col { position: sticky; top: calc(var(--hdr, 72px) + 16px); }
  .preview-card { border: 1px solid var(--line); border-radius: 24px; padding: 1.4rem 1.4rem 1.2rem; background: linear-gradient(180deg, #fff, var(--plum)); }
  .preview-top .eyebrow { display: block; margin-bottom: .3rem; }
  .preview-title { font-size: 1.9rem; }
  .est-num { font-size: 1.9rem; }
  #bouquet-canvas { width: min(100%, 62vh); height: auto; aspect-ratio: 1; }
  .preview-line { font-size: .95rem; white-space: normal; }
  .preview-note { display: block; }
  .chips { grid-template-columns: repeat(4, 1fr); }
  .addons { grid-template-columns: 1fr; }
  .real-strip { grid-auto-columns: 22%; }
  .budget-box { padding: 2.2rem 2.4rem 1.8rem; }
}
@media (min-width: 1100px) {
  .addons { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) {
  .mode-sub { display: none; }
}
@media (prefers-reduced-motion: reduce) { .meter-bar span, .real-strip img { transition: none; animation: none; } }

/* ---------- one-page flow (replaces the 3 tabs) ---------- */
.howto { color: var(--mist); margin: .4rem 0 1rem; }
.sec { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.1rem 1rem 1.2rem; margin-bottom: 1rem; scroll-margin-top: calc(var(--hdr, 64px) + 12px); }
.sec-head { display: flex; align-items: center; gap: .65rem; margin-bottom: .8rem; }
.sec-num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--rose); color: #fff; display: grid; place-items: center; font-size: .95rem; line-height: 1; }
.sec-head h3 { font-size: 1.25rem; font-weight: 400; }
.sec-head h3 em { font-style: normal; font-size: .8rem; color: var(--mist); }
.sec-pick { margin-left: auto; font-size: .8rem; color: var(--rose); text-align: right; letter-spacing: .03em; }
.sec-help { color: var(--mist); font-size: .88rem; margin: -.35rem 0 .8rem; }
.sub-opt { margin-top: 1rem; }
.sub-opt:first-of-type { margin-top: 0; }
.sub-label { font-size: .9rem; margin-bottom: .5rem; }
.more-btn {
  display: block; width: 100%; margin-top: .7rem; font: .95rem var(--font-body); letter-spacing: .03em; color: var(--rose); cursor: pointer;
  background: var(--plum); border: 1.5px dashed var(--blush); border-radius: 14px; padding: .8rem;
}
.more-btn:hover { border-color: var(--rose); }
.start-over { justify-self: center; font: .85rem var(--font-body); color: var(--mist); background: none; border: 0; text-decoration: underline; cursor: pointer; padding: .5rem; }
#sec-send .summary { margin-top: .2rem; }

/* bottom bar with the estimate and one button */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  padding: .6rem max(16px, env(safe-area-inset-right, 0px)) calc(.6rem + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  transition: transform .3s ease, opacity .3s ease;
}
.dock-inner { max-width: var(--maxw); margin-inline: auto; display: flex; align-items: center; gap: 1rem; }
.dock-info { display: grid; line-height: 1.15; min-width: 0; }
.dock-price { font-size: 1.35rem; color: var(--rose); font-variant-numeric: tabular-nums; }
.dock-sub { font-size: .76rem; color: var(--mist); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-btn { margin-left: auto; white-space: nowrap; padding: .8rem 1.3rem; }
body.on-send .dock { transform: translateY(110%); opacity: 0; pointer-events: none; }
.designer-body .site-footer { padding-bottom: 6rem; }
@media (min-width: 900px) {
  .sec { padding: 1.4rem 1.4rem 1.5rem; }
  .dock { display: none; }
  .designer-body .site-footer { padding-bottom: initial; }
}
.preview-send { display: none; }
@media (min-width: 900px) { .preview-send { display: flex; width: 100%; margin-top: 1rem; } body.on-send .preview-send { display: none; } }

/* v5: script headings need a little more size */
.d-intro h1 { font-size: clamp(3rem, 9vw, 5.2rem); }
.pkg h3 { font-size: 1.8rem; }
.summary h3, .sec-head h3 { font-size: 1.75rem; }
.sec-head h3 em { font-family: var(--font-body); }
