/* Clement Lash - public gift card page.
   iOS "liquid glass" direction (Serena 2026-10-16): translucent frosted
   panels over a soft brand-tinted gradient, big radii, hairline white
   borders, soft shadows. Brand accents stay: deep green #20503A, burnt
   orange #C9602F, serif display type for the brand moments. The gift card
   preview keeps the real certificate's warm-paper look on purpose.
   Mobile-first (most visitors arrive from Instagram). Self-contained. */
:root {
  --bg: #FAF5EC;
  --sheet: #FFFDF8;
  --green: #20503A;
  --green-dark: #173D2C;
  --orange: #C9602F;
  --ink: #1C1A17;
  --muted: #6B5D4F;
  --line: #E3D7BE;
  --line-soft: #D9C6A5;
  --red: #B3261E;
  --amber: #A86E00;
  --glass: linear-gradient(135deg, rgba(255,255,255,.58), rgba(255,255,255,.30));
  --glass-border: rgba(255,255,255,.72);
  --glass-shadow: 0 12px 34px rgba(32,80,58,.12), inset 0 1px 0 rgba(255,255,255,.8), inset 0 -1px 0 rgba(255,255,255,.22);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.45;
  background:
    radial-gradient(560px 420px at 12% -6%, rgba(201,96,47,.20), rgba(201,96,47,0) 62%),
    radial-gradient(640px 520px at 108% 22%, rgba(32,80,58,.16), rgba(32,80,58,0) 60%),
    radial-gradient(520px 460px at 50% 112%, rgba(201,96,47,.12), rgba(201,96,47,0) 62%),
    linear-gradient(168deg, #FBF4E6 0%, #F7EFDF 46%, #F3EBD8 100%);
  background-attachment: fixed;
  min-height: 100vh;
}
.page { max-width: 640px; margin: 0 auto; padding: 22px 18px 32px; }

/* No outer frame (Serena 2026-10-16). Sections themselves are the glass. */
.frame { background: none; border-radius: 0; padding: 0; }
.sheet { background: none; border-radius: 0; box-shadow: none; padding: 0; }
.emblem { display: block; height: 84px; width: auto; margin: 0 auto 8px; }
.brandline {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.28em; font-size: 20px; color: var(--green);
  text-align: center;
}
.gctitle {
  font-family: Georgia, "Times New Roman", serif; font-style: italic;
  font-size: 17px; color: var(--orange); text-align: center; margin-top: 3px;
}
.divider { text-align: center; color: var(--orange); font-size: 13px; margin: 11px 0 4px; line-height: 1; }
.divider .dline {
  display: inline-block; width: 56px; border-top: 1px solid var(--line-soft);
  vertical-align: middle; margin: 0 7px 2px;
}
.intro { text-align: center; color: var(--muted); font-size: 15.5px; margin: 10px 4px 4px; }

fieldset {
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--glass-border);
  border-radius: 26px;
  box-shadow: var(--glass-shadow);
  margin: 20px 0 0; padding: 6px 18px 20px;
}
legend { font-family: Georgia, "Times New Roman", serif; font-weight: 600; color: var(--green); padding: 0 8px; font-size: 1.04rem; }
label { display: block; font-weight: 600; margin: 0.8rem 0 0.3rem; }
input[type="text"], textarea {
  width: 100%; min-height: 50px; padding: 0.6rem 0.75rem;
  border: 1px solid rgba(107,93,79,.16); border-radius: 14px;
  font-size: 1.05rem; background: rgba(255,255,255,.62); color: var(--ink);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 3px rgba(32,80,58,.06);
}
input[type="text"]:focus, textarea:focus, input[type="date"]:focus {
  outline: none; border-color: rgba(32,80,58,.55);
  box-shadow: 0 0 0 4px rgba(32,80,58,.14);
}
textarea { min-height: 70px; }
.hint { color: var(--muted); font-size: 0.88rem; margin: 0.5rem 0 0; }

/* Amount choices: frosted glass tiles, selected one turns deep green glass */
.amounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; margin-top: 0.6rem; }
.amount {
  position: relative; margin: 0; padding: 14px 0; text-align: center;
  border: 1px solid var(--glass-border); border-radius: 18px; cursor: pointer;
  font-family: Georgia, "Times New Roman", serif; font-size: 20px; color: var(--green);
  background: linear-gradient(135deg, rgba(255,255,255,.66), rgba(255,255,255,.34));
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 6px 18px rgba(32,80,58,.08), inset 0 1px 0 rgba(255,255,255,.85);
}
.amount input { position: absolute; opacity: 0; pointer-events: none; }
.amount.sel {
  background: linear-gradient(150deg, rgba(42,107,76,.94), rgba(23,61,44,.92));
  border-color: rgba(255,255,255,.35); color: #fff;
  box-shadow: 0 10px 24px rgba(23,61,44,.30), inset 0 1px 0 rgba(255,255,255,.35);
}
/* Occasion tiles carry words, not prices: smaller type, tighter padding.
   Two columns only (Serena 2026-10-16): at three-across the long words
   (Anniversary, Thanksgiving) overflowed their tiles on phones. */
#occasions { grid-template-columns: 1fr 1fr; }
.occasion { font-size: 16px; padding: 14px 4px; overflow-wrap: break-word; }
.setupnote {
  background: linear-gradient(135deg, rgba(253,246,226,.75), rgba(253,246,226,.5));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(168,110,0,.35); border-radius: 16px;
  padding: 10px 12px; color: #6d5200; font-size: 0.95rem; margin: 12px 0 0;
}

/* Delivery choices */
.deliver {
  display: flex; gap: 10px; align-items: flex-start;
  border: 1px solid var(--glass-border); border-radius: 18px;
  padding: 12px 13px; margin: 8px 0 0; font-weight: 500; cursor: pointer;
  background: linear-gradient(135deg, rgba(255,255,255,.55), rgba(255,255,255,.30));
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 6px 18px rgba(32,80,58,.07), inset 0 1px 0 rgba(255,255,255,.8);
}
.deliver input { width: 22px; height: 22px; margin-top: 1px; flex: none; accent-color: var(--green); }

.paybtn {
  display: block; width: 100%; margin-top: 22px; padding: 16px;
  background: linear-gradient(180deg, #2A6B4C 0%, #20503A 55%, #173D2C 100%);
  color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 999px;
  font-size: 1.15rem; font-weight: 700; cursor: pointer; min-height: 56px;
  box-shadow: 0 12px 26px rgba(23,61,44,.32), inset 0 1px 0 rgba(255,255,255,.38), inset 0 -2px 6px rgba(0,0,0,.18);
}
.paybtn:hover { background: linear-gradient(180deg, #256040 0%, #1B4633 55%, #143626 100%); }
.paynote { color: var(--muted); font-size: 0.9rem; text-align: center; margin: 12px 6px 0; }

.errbox {
  border: 1px solid rgba(179,38,30,.38);
  background: linear-gradient(135deg, rgba(253,238,237,.78), rgba(253,238,237,.55));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-radius: 18px;
  padding: 12px 14px; margin: 16px 0 0; font-size: 0.98rem;
}
.foot { text-align: center; color: var(--muted); font-size: 12.5px; line-height: 1.6; margin-top: 16px; }

/* v7 buy flow additions */
.lockup { display: block; width: 190px; max-width: 70%; height: auto; margin: 0 auto 6px; }
legend .opt { font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-weight: 400; font-size: 0.82rem; color: var(--muted); }
label .opt { font-weight: 400; color: var(--muted); font-size: 0.88rem; }
.stepline { color: var(--muted); font-size: 0.92rem; margin: 0.55rem 2px 0; }
.priceline { color: var(--muted); font-size: 0.9rem; text-align: center; margin: 0.7rem 2px 0.1rem; }
.priceline a { color: var(--green); }
input[type="date"] {
  width: 100%; min-height: 50px; padding: 0.6rem 0.75rem;
  border: 1px solid rgba(107,93,79,.16); border-radius: 14px;
  font-size: 1.05rem; background: rgba(255,255,255,.62); color: var(--ink);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 3px rgba(32,80,58,.06);
}
.msgchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0.6rem; }
.msgchip {
  border: 1px solid var(--glass-border);
  background: linear-gradient(135deg, rgba(255,255,255,.6), rgba(255,255,255,.32));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--green);
  border-radius: 999px; padding: 8px 13px; font-size: 0.9rem; cursor: pointer;
  font-family: Georgia, "Times New Roman", serif; font-style: italic; text-align: left;
  box-shadow: 0 4px 12px rgba(32,80,58,.07), inset 0 1px 0 rgba(255,255,255,.8);
}
.msgchip:hover { border-color: rgba(32,80,58,.5); }
.reviewbox {
  border: 1px solid var(--glass-border); border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.5), rgba(255,255,255,.26));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  padding: 10px 14px; margin-top: 0.6rem;
}
/* Live gift card preview in the review step: the ONE v7 design.
   Deliberately NOT glass: it depicts the real paper-style certificate. */
.cardpreview {
  background: #FCFAF6; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 14px 30px rgba(32,80,58,.14);
  padding: 20px 18px 14px; text-align: center; margin-top: 0.4rem; color: #2B3A32;
}
.cardpreview img { width: 150px; max-width: 60%; height: auto; }
.pv-title { font-family: Georgia, "Times New Roman", serif; letter-spacing: 0.45em; text-indent: 0.45em; font-size: 11px; color: #928064; margin-top: 8px; }
.pv-amount { font-family: Georgia, "Times New Roman", serif; font-weight: bold; font-size: 40px; margin-top: 8px; line-height: 1.1; }
.pv-rule { width: 110px; border-top: 1.5px solid #C6B28A; margin: 12px auto 0; }
.pv-names { font-family: Georgia, "Times New Roman", serif; font-size: 15px; color: #6E6C64; margin-top: 12px; }
.pv-names strong { color: #2B3A32; font-weight: normal; }
.pv-msg { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 15px; color: #4A544E; margin-top: 10px; }
.pv-lower { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin-top: 16px; text-align: left; }
.pv-small { font-size: 9.5px; line-height: 1.5; color: #6E6C64; }
.pv-small p { margin: 0 0 5px; }
.pv-qr { flex: none; text-align: center; }
.pv-qrbox {
  border: 1.5px solid #2B3A32; background: #fff; width: 62px; height: 62px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; letter-spacing: 0.2em; color: #6E6C64;
}
.pv-code { font-family: Georgia, "Times New Roman", serif; font-size: 10px; letter-spacing: 0.14em; margin-top: 5px; }
.pv-foot { font-family: Georgia, "Times New Roman", serif; letter-spacing: 0.12em; text-indent: 0.12em; font-size: 8px; color: #928064; margin-top: 14px; }
.pv-foot2 { margin-top: 3px; }
.rrow { display: flex; justify-content: space-between; gap: 14px; padding: 5px 0; font-size: 0.98rem; }
.rrow span { color: var(--muted); flex: none; }
.rrow strong { text-align: right; }

/* Step 4 expansion: recipient email + when-to-send nest INSIDE the
   recipient option's own sub-panel (indented, green left accent), so the
   two delivery options read as one pair at the same level. */
#recipient-fields {
  margin: 10px 0 8px 16px;
  padding: 2px 16px 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,.34), rgba(255,255,255,.15));
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 3px 0 0 rgba(32,80,58,.38);
}

/* Thank-you page */
.thanks-title { font-family: Georgia, "Times New Roman", serif; color: var(--green); font-size: 30px; margin: 12px 0 6px; }
.thanks-body { color: var(--muted); font-size: 16px; margin: 10px 8px; }
.homebtn {
  display: inline-block; margin-top: 10px; padding: 12px 22px; min-height: 50px;
  border: 1px solid var(--glass-border); border-radius: 999px; color: var(--green);
  background: linear-gradient(135deg, rgba(255,255,255,.6), rgba(255,255,255,.32));
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 8px 20px rgba(32,80,58,.10), inset 0 1px 0 rgba(255,255,255,.85);
  text-decoration: none; font-weight: 700;
}
.homebtn-primary {
  background: var(--green); color: #FAF6ED; border-color: var(--green-dark);
  box-shadow: 0 8px 20px rgba(32,80,58,.22), inset 0 1px 0 rgba(255,255,255,.25);
}
