/* ---------------------------------------------------------------------------
   Coleton & Gorya — May 29, 2027 — Baba Beach Club, Hua Hin
   Palette: navy + white, cornflower accent, a little sand and sea.
--------------------------------------------------------------------------- */

:root {
  --navy: #1b2f5f;
  --navy-deep: #13244d;
  --navy-soft: #2a4482;
  --cornflower: #6a8fe0;
  --cornflower-light: #8faef0;
  --cornflower-pale: #eaf0fb;
  --link: #4a6fc7;
  --white: #ffffff;
  --ivory: #faf8f3;
  --sand: #eadfc8;
  --sand-light: #f3ecdd;
  --sea: #c9d6f5;
  --text: #1b2f5f;
  --muted: #3c4a6b;
  --line: #e3e7f0;
  --input-line: #d5dae6;
  --danger: #b4443c;
  --success: #1f7a4d;

  --serif: "Libre Caslon Display", "Bai Jamjuree", "Georgia", "Times New Roman", serif;
  --sans: "Nunito Sans", "Bai Jamjuree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --thai: "Bai Jamjuree", "Noto Sans Thai", "Leelawadee UI", "Tahoma", sans-serif;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 42, 74, 0.10);
  --shadow-sm: 0 3px 10px rgba(15, 42, 74, 0.08);
  --max: 1080px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  color: var(--navy);
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(2.8rem, 8vw, 5.5rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(2rem, 4.5vw, 2.9rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
a { color: var(--link); text-decoration-color: var(--cornflower); text-underline-offset: 3px; }
a:hover { color: var(--cornflower); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--link);
  margin-bottom: 1rem;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: var(--sans); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.9em 1.9em; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--cornflower); outline-offset: 3px; }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn-primary { background: var(--navy); color: var(--ivory); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-soft); color: var(--ivory); }
.btn-accent { background: var(--cornflower); color: var(--navy); }
.btn-accent:hover { background: var(--cornflower-light); color: var(--navy); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--cornflower-pale); color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn-outline-light:hover { background: var(--white); color: var(--navy); }
.btn-link { background: none; border: 0; padding: 0; color: var(--navy-soft); text-decoration: underline; text-decoration-color: var(--cornflower); text-underline-offset: 3px; text-transform: none; letter-spacing: 0; font-weight: 600; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--navy); color: var(--ivory);
  border-bottom: 1px solid rgba(143, 174, 240, 0.25);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { font-family: var(--serif); font-size: 1.3rem; letter-spacing: 0.04em; color: var(--ivory); text-decoration: none; display: flex; align-items: center; gap: 0.5rem; }
.brand .amp { color: var(--cornflower-light); }
.brand svg { width: 24px; height: 24px; color: var(--cornflower-light); }
.site-nav { display: flex; align-items: center; gap: clamp(0.9rem, 2.5vw, 2rem); }
.site-nav a { font-weight: 600; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; color: var(--ivory); }
.site-nav a:hover { color: var(--cornflower-light); }
.site-nav .btn { padding: 0.6em 1.2em; font-size: 0.78rem; }
.site-nav a.btn-accent, .site-nav a.btn-accent:hover { color: var(--navy); }
@media (max-width: 640px) {
  .site-nav a:not(.btn) { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden; color: var(--white);
  background: radial-gradient(120% 90% at 50% 100%, var(--navy-soft) 0%, var(--navy) 55%, var(--navy-deep) 100%);
  padding: clamp(4rem, 10vw, 7.5rem) 0 0;
  text-align: center;
}
.hero h1 { color: var(--white); margin-bottom: 0.15em; }
.hero h1 .amp { font-style: italic; font-weight: 400; color: var(--cornflower-light); padding: 0 0.12em; }
.hero .eyebrow { color: var(--cornflower-light); }
.hero h1 { font-weight: 400; }
.hero-sub { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 3vw, 1.8rem); color: var(--cornflower-light); margin-bottom: 1.8rem; }
.hero-date { font-family: var(--serif); font-size: clamp(1.5rem, 3.6vw, 2.2rem); font-weight: 600; margin-bottom: 0.2em; }
.hero-place { font-size: 1.05rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.85); margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-bottom: 3rem; }
.hero-flower { width: 64px; height: 64px; margin: 0 auto 1.2rem; color: var(--cornflower); }
.hero-flower.spin { animation: sway 9s ease-in-out infinite; transform-origin: 50% 50%; }
@keyframes sway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }

.hero-corner { position: absolute; width: clamp(120px, 16vw, 220px); height: auto; color: var(--cornflower-light); opacity: 0.16; pointer-events: none; }
.hero-corner.tl { top: 2rem; left: -1.5rem; }
.hero-corner.tr { top: 6rem; right: -1.5rem; transform: scaleX(-1); }
@media (max-width: 700px) { .hero-corner { width: 90px; opacity: 0.12; } .hero-corner.tr { top: auto; bottom: 9rem; } }
.hero-shore { position: relative; margin-top: 1rem; }
.hero-elephants {
  display: flex; justify-content: center; align-items: flex-end; gap: clamp(0.5rem, 4vw, 3rem);
  color: var(--cornflower-light); opacity: 0.32; pointer-events: none;
}
.hero-waves { display: block; width: min(560px, 80%); height: 22px; margin: 0.4rem auto 0; color: var(--cornflower); opacity: 0.55; }
.hero-elephants svg { width: clamp(80px, 15vw, 150px); height: auto; }
.hero-elephants svg.flip { transform: scaleX(-1); }
.hero-elephants svg.baby { width: clamp(50px, 9vw, 90px); }

.wave { display: block; width: 100%; height: clamp(40px, 8vw, 90px); }
.wave-bottom { color: var(--white); margin-top: -1px; }

/* ---------- Countdown ---------- */

.countdown { display: flex; justify-content: center; gap: clamp(0.6rem, 3vw, 1.6rem); margin: 0 auto 2.5rem; }
.countdown div { min-width: 68px; padding: 0.7rem 0.5rem; border-radius: var(--radius); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); }
.countdown b { display: block; font-family: var(--serif); font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 600; line-height: 1; }
.countdown span { display: block; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cornflower-light); margin-top: 0.35rem; }

/* ---------- Sections ---------- */

section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
section.alt { background: var(--ivory); }
section.sand { background: var(--sand-light); position: relative; overflow: hidden; }
.botanical {
  position: absolute; right: 0; bottom: -40px; width: clamp(120px, 17vw, 230px); height: auto;
  color: var(--navy); opacity: 0.16; pointer-events: none;
}
@media (max-width: 1100px) { .botanical { display: none; } }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 2rem 1.7rem;
  box-shadow: var(--shadow-sm); border-top: 4px solid var(--cornflower);
}
.card h3 { margin-bottom: 0.5rem; }
.card .icon { width: 44px; height: 44px; color: var(--cornflower); margin-bottom: 1rem; }
.card p:last-child { margin-bottom: 0; }
.tbd { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.25em 0.7em; border-radius: 999px; background: var(--cornflower-pale); color: var(--navy-soft); vertical-align: middle; }

/* ---------- Photo carousel ---------- */

section.gallery { background: var(--navy); color: var(--ivory); }
section.gallery .section-head h2 { color: var(--ivory); }
section.gallery .section-head p { color: var(--sea); }
section.gallery .eyebrow { color: var(--cornflower-light); }
.carousel { position: relative; max-width: 900px; margin: 0 auto; }
.carousel .track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; gap: 12px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; border-radius: 18px;
}
.carousel .track::-webkit-scrollbar { display: none; }
.carousel figure { flex: 0 0 100%; margin: 0; scroll-snap-align: center; scroll-snap-stop: always; position: relative; }
.carousel img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 18px; display: block; background: var(--navy-deep); }
.carousel figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem 1.2rem 1rem; border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, rgba(19,36,77,0) 0%, rgba(19,36,77,0.75) 100%);
  color: var(--ivory); font-family: var(--serif); font-size: 1.15rem; text-align: center;
}
.carousel figcaption:empty { display: none; }
.carousel .arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(143,174,240,0.6); background: rgba(19,36,77,0.7); color: var(--ivory); cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; line-height: 1; transition: background 0.15s;
}
.carousel .arrow:hover { background: var(--cornflower); color: var(--navy); }
.carousel .arrow:focus-visible { outline: 3px solid var(--cornflower); outline-offset: 2px; }
.carousel .arrow.prev { left: 12px; }
.carousel .arrow.next { right: 12px; }
.carousel .dots { display: flex; justify-content: center; gap: 8px; margin-top: 1rem; }
.carousel .dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: rgba(143,174,240,0.4); cursor: pointer; transition: background 0.15s, transform 0.15s; }
.carousel .dots button[aria-current="true"] { background: var(--cornflower-light); transform: scale(1.25); }
.carousel .dots button:focus-visible { outline: 2px solid var(--cornflower-light); outline-offset: 2px; }
@media (max-width: 640px) {
  .carousel .arrow { width: 38px; height: 38px; }
  .carousel figcaption { font-size: 1rem; }
}

/* ---------- Travel & stay ---------- */

.travel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.tcard { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 1.8rem 1.6rem; display: flex; flex-direction: column; }
.tcard .icon { width: 40px; height: 40px; color: var(--cornflower); margin-bottom: 0.9rem; }
.tcard h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.tcard p { color: var(--muted); font-size: 0.97rem; }
.tlist { margin: 0 0 1rem; padding: 0; list-style: none; }
.tlist li { position: relative; padding-left: 1.1rem; margin-bottom: 0.5rem; color: var(--muted); font-size: 0.97rem; }
.tlist li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--cornflower); }
.tlist strong { color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.2rem 0 0.9rem; }
.chip { display: inline-block; font-size: 0.82rem; font-weight: 600; color: var(--navy); background: var(--cornflower-pale); border: 1px solid transparent; border-radius: 999px; padding: 0.3em 0.75em; text-decoration: none; }
.chip:hover { border-color: var(--cornflower); color: var(--navy); }
.tcard .tlink { margin-top: auto; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; color: var(--link); }
.tcard .tlink:hover { color: var(--navy); text-decoration: underline; }

/* ---------- Venue ---------- */

.venue { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.venue-art {
  aspect-ratio: 4 / 3; max-width: 100%; border-radius: var(--radius); overflow: hidden; position: relative;
  background: linear-gradient(180deg, #dcecf8 0%, var(--sea) 55%, var(--sand) 56%, #ece3d1 100%);
  box-shadow: var(--shadow);
}
.venue-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.venue address { font-style: normal; margin-bottom: 1.2rem; }
@media (max-width: 800px) { .venue { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */

.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--navy); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-size: 1.4rem; color: var(--cornflower); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0.8rem 0 0; color: var(--muted); }
.faq details p + p { margin-top: 0.5rem; }
.faq summary .thai { font-size: inherit; }
.faq .thai { font-family: var(--thai); }

/* ---------- RSVP call-out ---------- */

.rsvp-cta { background: var(--navy); color: var(--white); text-align: center; }
.rsvp-cta h2 { color: var(--white); }
.rsvp-cta p { color: rgba(255,255,255,0.85); }
.code-form { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.code-form input {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 1.15rem; letter-spacing: 0.15em; text-transform: lowercase;
  padding: 0.75em 1em; border-radius: 999px; border: 2px solid transparent; width: min(100%, 260px); text-align: center; color: var(--navy);
}
.code-form input:focus { outline: 3px solid var(--cornflower); }
.rsvp-cta .continue { margin-top: 1.5rem; }
.rsvp-cta .continue .btn { margin-bottom: 0.9rem; }
.rsvp-cta .continue .btn-link { color: var(--sea); }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.7); padding: 2.5rem 0 2rem; text-align: center; font-size: 0.9rem; }
.site-footer .names { font-family: var(--serif); font-size: 1.6rem; color: var(--white); margin-bottom: 0.3rem; }
.site-footer .elephant-row { display: flex; justify-content: center; gap: 0.6rem; color: var(--cornflower); margin-bottom: 1rem; }
.site-footer .elephant-row svg { width: 40px; height: auto; }
.site-footer .elephant-row svg.flip { transform: scaleX(-1); }
.site-footer a { color: var(--cornflower-light); }
.site-footer .credits { font-size: 0.75rem; color: rgba(255,255,255,0.45); margin-top: 1.5rem; }
.site-footer .credits a { color: rgba(255,255,255,0.6); }

/* ---------- RSVP page ---------- */

.page-rsvp { background: var(--ivory); min-height: 100vh; display: flex; flex-direction: column; }
.page-rsvp .site-header .wrap { min-height: 60px; }
.page-rsvp .back { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sea); text-decoration: none; }
.page-rsvp .back:hover { color: var(--white); }
.page-rsvp main { flex: 1; padding: clamp(1.75rem, 5vw, 4rem) 0 clamp(3rem, 7vw, 6rem); }
.rsvp-col { max-width: 640px; margin: 0 auto; }
.ornament { display: block; width: 120px; margin: 0 auto 24px; }
.page-rsvp .site-footer { background: transparent; color: var(--muted); font-size: 0.82rem; padding: 1.5rem 1rem 2rem; }

.view[hidden] { display: none; }
.view, .card { animation: rise 0.35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.form-foot { margin: 22px 0 0; text-align: center; font-size: 0.9rem; color: var(--muted); }
.r-head { text-align: center; }
.r-head .eyebrow { margin-bottom: 0; }
.r-head h1 { font-size: clamp(2rem, 6vw, 3rem); line-height: 1.1; margin: 12px 0 0; }
.r-head .lede { margin: 14px auto 0; max-width: 440px; color: var(--muted); text-wrap: pretty; }
.r-head .thai-line { font-family: var(--thai); margin-top: 8px; color: var(--link); font-size: 0.95rem; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 4vw, 36px); margin-top: 20px; position: relative; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.card h2 { font-size: 1.5rem; margin: 0; }
.card h2 + p.hint { margin: 6px 0 0; font-size: 0.9rem; }
.card .count { font-size: 0.82rem; color: var(--muted); }
.card .sub { margin: 6px 0 0; font-size: 0.9rem; color: var(--muted); }

.r-head + .card, .r-head + .choice-grid { margin-top: 28px; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
@media (max-width: 480px) { .choice-grid { grid-template-columns: 1fr; } }
.choice { position: relative; margin: 0; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--navy); }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px 12px;
  border: 1px solid var(--input-line); border-radius: 14px; background: var(--white); color: var(--navy);
  font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.choice span small { font-family: var(--sans); font-size: 0.82rem; opacity: 0.75; margin-top: 4px; }
.choice:hover span { border-color: var(--cornflower); }
.choice input:checked + span { background: var(--navy); color: var(--ivory); border-color: var(--navy); }
.choice input:focus-visible + span { outline: 3px solid var(--cornflower); outline-offset: 2px; }

label { display: block; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  font: inherit; font-size: 1rem; width: 100%; padding: 13px 14px; border: 1px solid var(--input-line); border-radius: 10px;
  background: var(--white); color: var(--navy); transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder, textarea::placeholder { color: #9aa3b8; }
input:focus, textarea:focus { outline: none; border-color: var(--cornflower); box-shadow: 0 0 0 3px rgba(106, 143, 224, 0.25); }
textarea { resize: vertical; min-height: 96px; }

.guest-list { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.guest { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--ivory); }
.guest .row1 { display: flex; gap: 10px; align-items: center; }
.guest .row1 input { flex: 1; min-width: 0; }
.guest .remove {
  flex: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--input-line); background: var(--white);
  color: var(--muted); font-size: 1.25rem; line-height: 1; cursor: pointer; font-family: inherit;
}
.guest .remove:hover { border-color: var(--cornflower); color: var(--navy); }
.guest .row2 { display: flex; gap: 12px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.guest .check { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text); min-height: 44px; cursor: pointer; white-space: nowrap; margin: 0; }
.guest .check input { width: 20px; height: 20px; accent-color: var(--navy); margin: 0; }
.guest .row2 input[type="text"] { flex: 1; min-width: 180px; padding: 11px 14px; font-size: 0.95rem; }

.add-guest {
  margin-top: 14px; width: 100%; background: none; border: 1px dashed var(--cornflower); color: var(--link);
  border-radius: 12px; padding: 13px 18px; font-family: inherit; font-weight: 700; font-size: 0.9rem; cursor: pointer;
}
.add-guest:hover { background: rgba(106, 143, 224, 0.08); }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 18px; }
.contact-grid input { min-width: 0; }
.card h2.note-title { margin-top: 28px; }
.card textarea { margin-top: 12px; }

.btn-submit {
  width: 100%; margin-top: 20px; background: var(--navy); color: var(--ivory); border: 0; border-radius: 999px; padding: 18px;
  font-family: inherit; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
}
.btn-submit:hover { background: var(--navy-soft); }
.btn-submit:disabled { opacity: 0.6; cursor: wait; }
.btn-submit.outline { background: var(--white); color: var(--navy); border: 1px solid var(--navy); }
.btn-submit.outline:hover { background: var(--navy); color: var(--ivory); }
.btn-submit.accent { background: var(--cornflower); color: var(--navy); text-decoration: none; display: block; text-align: center; box-sizing: border-box; }
.btn-submit.accent:hover { background: var(--cornflower-light); }
a.btn-submit { display: block; text-align: center; text-decoration: none; box-sizing: border-box; }
.form-error { margin: 12px 0 0; text-align: center; font-size: 0.9rem; color: var(--danger); }

/* Honeypot: hidden from people, visible to naive bots. Not display:none on purpose. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.help { margin: 16px 0 0; text-align: center; font-size: 0.9rem; color: var(--muted); }

.code-input { margin-top: 10px; padding: 16px 18px; border-radius: 12px; font-size: 1.25rem; letter-spacing: 0.14em; text-transform: uppercase; text-align: center; }
.tried { letter-spacing: 0.1em; text-transform: uppercase; }

.summary .row { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.summary .row:first-child { padding-top: 0; }
.summary .row:last-child { border-bottom: 0; padding-bottom: 0; }
.summary .row .k { color: var(--muted); }
.summary .row .v { text-align: right; font-weight: 700; }
.summary .row .v.plain { font-weight: 400; font-size: 0.95rem; }
.summary .block { padding: 14px 0; border-bottom: 1px solid var(--line); }
.summary .block .k { color: var(--muted); }
.summary .guests { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.summary .guests div { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.summary .guests .tag { font-weight: 400; color: var(--link); font-size: 0.82rem; }
.summary .guests .diet { color: var(--muted); font-size: 0.9rem; }
.summary .note { padding: 14px 0 0; }
.summary .note p { margin: 6px 0 0; font-style: italic; }
.summary .note p.thai { font-style: normal; }
.summary .foot { padding: 14px 0 0; font-size: 0.9rem; color: var(--muted); }
.badge { position: absolute; top: 16px; right: 16px; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--muted); background: var(--sand); padding: 5px 10px; border-radius: 999px; }
.summary.has-badge .row:first-child { padding-right: 90px; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.actions .btn-submit { flex: 1; min-width: 180px; margin-top: 0; padding: 16px; }
.footnote { margin: 18px 0 0; text-align: center; font-size: 0.9rem; color: var(--muted); }

.loading { text-align: center; color: var(--muted); padding: 3rem 0; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--cornflower-pale); border-top-color: var(--cornflower); border-radius: 50%; margin: 0 auto 1rem; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 404 */
.page-404 .card { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-flower.spin, .spinner { animation: none; }
  .choice span { transition: none; }
  .view, .card { animation: none; }
  .carousel .track { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
