:root {
  --paper: #f5f2e9;
  --paper-deep: #ebe6d9;
  --ink: #28372d;
  --muted: #788174;
  --green: #647b62;
  --green-dark: #435b47;
  --line: #d9d8c9;
  --white: #fffdf7;
  --danger: #9d5148;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body {
  margin: 0; color: var(--ink); background:
    radial-gradient(ellipse at 10% 8%, rgba(190, 198, 169, .20), transparent 28rem),
    radial-gradient(ellipse at 90% 92%, rgba(190, 198, 169, .18), transparent 25rem),
    var(--paper);
  font-family: "DM Sans", sans-serif; font-size: 15px; line-height: 1.6;
}
button, input { font: inherit; }
.page-shell { width: min(100% - 36px, 760px); margin: 0 auto; padding: 28px 0 22px; }
.topline, .footer { display: flex; justify-content: center; align-items: center; gap: 15px; color: var(--muted); font-size: 9px; letter-spacing: .22em; }
.topline { margin: 0 0 22px; }
.topline-mark { color: var(--green); font-size: 14px; }
.panel {
  position: relative; overflow: hidden; padding: clamp(28px, 7vw, 64px);
  border: 1px solid var(--line); background: rgba(255,253,247,.72);
  box-shadow: 0 18px 60px rgba(47, 59, 43, .045);
}
.intro { min-height: 650px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.eyebrow { color: var(--green); font-size: 9px; font-weight: 600; letter-spacing: .2em; }
h1, h2 { margin: 15px 0; font-family: "DM Serif Display", Georgia, serif; font-weight: 400; letter-spacing: -.035em; line-height: .99; }
h1 { font-size: clamp(58px, 10vw, 94px); }
h2 { font-size: clamp(46px, 8vw, 70px); }
h1 em, h2 em, .final-message em { color: var(--green); font-weight: 400; }
.intro-copy { max-width: 390px; color: #687267; margin: 12px auto 4px; }
.botanical-art { width: min(100%, 440px); margin: 12px auto 22px; }
.botanical-art svg { width: 100%; height: auto; fill: none; stroke: #87977b; stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; }
.button {
  border: 0; cursor: pointer; padding: 15px 22px; font-size: 12px; font-weight: 600;
  letter-spacing: .035em; transition: background .2s, transform .2s;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--green-dark); color: #fffdf7; }
.button-primary:hover { background: #354b39; }
.button span { margin-left: 14px; font-size: 17px; vertical-align: -1px; }
.button-wide { width: 100%; margin-top: 22px; }
.tiny-note { color: #8b9184; font-size: 10px; letter-spacing: .035em; margin: 15px 0 0; }
.step-section { padding-top: clamp(28px, 6vw, 52px); padding-bottom: clamp(28px, 6vw, 52px); }
.step-heading { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.step-count { color: #9a9f91; font-size: 8px; letter-spacing: .15em; }
.section-copy { color: #737c70; margin: 0 0 24px; }
.place-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 26px 0 34px; }
.place-card {
  padding: 0; text-align: left; cursor: pointer; border: 1px solid var(--line);
  background: var(--white); color: var(--ink); transition: border .2s, background .2s;
}
.place-card.selected { border: 2px solid var(--green); background: #f0f2e9; }
.place-image { width: 100%; aspect-ratio: 1.65 / 1; display: block; object-fit: cover; background: var(--paper-deep); }
.place-placeholder {
  width: 100%; aspect-ratio: 1.65 / 1; display: grid; place-items: center;
  background: linear-gradient(135deg, #e6e9dc, #d4ddcc); color: #71846a; font-family: Georgia, serif; font-size: 32px;
}
.place-info { display: block; padding: 12px 13px 14px; }
.place-name { display: block; font-family: "DM Serif Display", Georgia, serif; font-size: 20px; }
.place-description { display: block; color: #7c8377; font-size: 10px; margin-top: 2px; }
.date-time-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field input {
  width: 100%; min-width: 0; border: 1px solid var(--line); background: var(--white);
  color: var(--ink); padding: 13px 12px; border-radius: 0; outline-color: var(--green);
}
.form-error { min-height: 18px; margin: 12px 0 0; color: var(--danger); font-size: 11px; }
.text-button { display: block; margin: 14px auto 0; border: 0; background: none; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; font-size: 11px; }
.summary-card { margin: 28px 0 20px; padding: 8px 20px; background: #f0efe6; border: 1px solid var(--line); }
.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid #deded2; }
.summary-row:last-child { border-bottom: 0; }
.summary-row span { color: #81897c; font-size: 9px; letter-spacing: .15em; }
.summary-row strong { text-align: right; font-size: 12px; font-weight: 500; }
.review-copy { margin-top: 25px; }
.success { text-align: center; padding-top: 55px; }
.success-symbol { color: var(--green); font-size: 28px; }
.success .summary-card { text-align: left; }
.final-message { margin: 28px 0 0; color: var(--green-dark); font-family: "DM Serif Display", Georgia, serif; font-size: clamp(23px, 4vw, 30px); line-height: 1.35; }
.botanical-art-small { width: min(65%, 300px); margin-bottom: 0; opacity: .8; }
.footer { margin-top: 20px; font-size: 8px; }
.hidden { display: none !important; }
@media (max-width: 540px) {
  .page-shell { width: min(100% - 22px, 760px); padding-top: 17px; }
  .panel { padding: 28px 21px; }
  .intro { min-height: 620px; }
  .step-count { font-size: 7px; }
  .place-grid { gap: 9px; }
  .place-name { font-size: 18px; }
  .date-time-grid { gap: 9px; }
  .summary-card { padding: 6px 13px; }
}

/* Welcome collage: seven softly tilted, slowly floating instant-photo prints. */
.polaroid-collage {
  width: min(100%, 570px);
  min-height: 172px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -8px auto 26px;
  padding: 8px 0;
}
.polaroid {
  position: relative;
  flex: 0 0 clamp(58px, 11.2vw, 82px);
  margin: 0 -4px;
  padding: 6px 6px 17px;
  background: #fffefa;
  box-shadow: 0 5px 15px rgba(44, 54, 42, .15);
  transform: rotate(var(--tilt));
  animation: photo-float var(--float-time) ease-in-out infinite;
  animation-delay: var(--float-delay);
}
.polaroid img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #e5e3d8;
}
.polaroid figcaption {
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 3px;
  overflow: hidden;
  color: #777b6e;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 7px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}
.polaroid-1 { --tilt: -8deg; --float-time: 7.4s; --float-delay: -.8s; }
.polaroid-2 { --tilt: 5deg; --float-time: 8.1s; --float-delay: -2.6s; margin-top: 14px; }
.polaroid-3 { --tilt: -4deg; --float-time: 7.8s; --float-delay: -1.4s; margin-top: -10px; }
.polaroid-4 { --tilt: 7deg; --float-time: 8.5s; --float-delay: -3.2s; margin-top: 7px; }
.polaroid-5 { --tilt: -6deg; --float-time: 7.2s; --float-delay: -2s; margin-top: -12px; }
.polaroid-6 { --tilt: 4deg; --float-time: 8.3s; --float-delay: -4s; margin-top: 10px; }
.polaroid-7 { --tilt: -5deg; --float-time: 7.7s; --float-delay: -1s; }
@keyframes photo-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -3px; }
}

/* A small botanical bloom that opens after the date is confirmed. */
.bloom { width: 132px; height: 140px; margin: 12px auto 19px; }
.bloom svg { display: block; width: 100%; height: 100%; overflow: visible; }
.flower-stem, .flower-leaf, .petal, .flower-center { stroke: #71866c; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.flower-stem { fill: none; stroke-dasharray: 100; stroke-dashoffset: 100; animation: stem-grow 1.2s .15s ease-out forwards; }
.flower-leaf { fill: #cbd5bd; transform-box: fill-box; transform-origin: center; opacity: 0; }
.flower-leaf-left { animation: leaf-appear .8s 1s ease-out forwards; }
.flower-leaf-right { animation: leaf-appear .8s 1.2s ease-out forwards; }
.flower-head { transform-origin: 90px 91px; animation: bloom-settle 1.2s .3s ease-out both; }
.petal { fill: #e5b9a9; transform-box: view-box; transform-origin: 90px 91px; opacity: 0; }
.petal-1 { animation: petal-open .9s .45s cubic-bezier(.2,.8,.2,1) forwards; }
.petal-2 { animation: petal-open .9s .58s cubic-bezier(.2,.8,.2,1) forwards; }
.petal-3 { animation: petal-open .9s .68s cubic-bezier(.2,.8,.2,1) forwards; }
.petal-4 { animation: petal-open .9s .78s cubic-bezier(.2,.8,.2,1) forwards; }
.petal-5 { animation: petal-open .9s .88s cubic-bezier(.2,.8,.2,1) forwards; }
.flower-center { fill: #d7ad69; opacity: 0; animation: center-appear .5s 1.35s ease-out forwards; }
@keyframes stem-grow { to { stroke-dashoffset: 0; } }
@keyframes leaf-appear { from { opacity: 0; scale: .5; } to { opacity: 1; scale: 1; } }
@keyframes petal-open { from { opacity: 0; scale: .12; } to { opacity: 1; scale: 1; } }
@keyframes center-appear { to { opacity: 1; } }
@keyframes bloom-settle { from { scale: .92; } to { scale: 1; } }
@media (max-width: 540px) {
  .intro { min-height: 0; }
  .polaroid-collage { width: calc(100% + 12px); min-height: 132px; margin: -7px -6px 22px; }
  .polaroid { flex-basis: clamp(42px, 12vw, 61px); padding: 4px 4px 13px; margin-left: -3px; margin-right: -3px; }
  .polaroid figcaption { font-size: 5.5px; }
  .bloom { width: 116px; height: 124px; margin-top: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .polaroid, .flower-stem, .flower-leaf, .flower-head, .petal, .flower-center { animation: none !important; }
  .polaroid { translate: 0 0; }
  .flower-stem { stroke-dashoffset: 0; }
  .flower-leaf, .petal, .flower-center { opacity: 1; scale: 1; }
}
