/* CJ & Rain — Find Your Seat
   Palette: dusty blue / beige / white / soft gray
*/
:root {
  --dusty-blue: #7894ad;
  --dusty-blue-dark: #536f88;
  --dusty-blue-soft: #dce6ee;
  --beige: #e9dfd2;
  --beige-light: #f6f1ea;
  --white: #ffffff;
  --ink: #36424c;
  --muted: #6f7b84;
  --soft-gray: #eef0f1;
  --shadow: 0 24px 70px rgba(63, 80, 94, 0.16);
  --radius-xl: 30px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 14%, rgba(120,148,173,.22) 0 80px, transparent 82px),
    radial-gradient(circle at 92% 86%, rgba(233,223,210,.8) 0 110px, transparent 112px),
    linear-gradient(145deg, #f8fbfd 0%, #f6f1ea 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(120,148,173,.22);
  border-radius: 50%;
}

body::before { top: -125px; right: -85px; }
body::after { bottom: -125px; left: -85px; }

.page-shell {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 28px 18px 42px;
}

.wedding-card {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(120,148,173,.18);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.wedding-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--dusty-blue), var(--beige), var(--dusty-blue));
}

.hero {
  text-align: center;
  padding: 54px 28px 28px;
  background:
    linear-gradient(rgba(255,255,255,.87), rgba(255,255,255,.96)),
    repeating-linear-gradient(135deg, transparent 0 16px, rgba(120,148,173,.06) 16px 17px);
}

.eyebrow,
.mini-label {
  margin: 0 0 14px;
  font-size: .72rem;
  letter-spacing: .2em;
  font-weight: 700;
  color: var(--dusty-blue-dark);
}

.hero h1 {
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 13px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3.4rem, 11vw, 5.9rem);
  line-height: .95;
  font-weight: 600;
  color: var(--dusty-blue-dark);
}

.hero h1 i {
  font-size: .48em;
  font-weight: 500;
  color: #b7a58d;
}

.date {
  margin: 22px 0 0;
  font-size: .98rem;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-weight: 600;
  color: var(--muted);
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin: 20px auto 14px;
  color: #b7a58d;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  width: 70px;
  background: linear-gradient(90deg, transparent, #c9bca9);
}

.divider::after {
  background: linear-gradient(90deg, #c9bca9, transparent);
}

.venue {
  max-width: 560px;
  margin: 0 auto;
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.6;
}

.passport-stamp {
  position: absolute;
  top: 28px;
  right: 27px;
  width: 66px;
  height: 66px;
  border: 1.5px solid rgba(120,148,173,.46);
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  transform: rotate(8deg);
  color: rgba(83,111,136,.72);
  font-size: .72rem;
  line-height: 1;
  z-index: 2;
}

.passport-stamp small {
  font-size: .53rem;
  letter-spacing: .16em;
  margin: 3px 0;
}

.finder {
  padding: 32px clamp(20px, 7vw, 64px) 38px;
  border-top: 1px dashed rgba(120,148,173,.32);
  background: linear-gradient(180deg, #fff 0%, #fbfcfd 100%);
}

.section-heading {
  text-align: center;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0 0 8px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 7vw, 3rem);
  color: var(--ink);
}

.section-heading p:not(.mini-label) {
  margin: 0 auto;
  max-width: 490px;
  color: var(--muted);
  line-height: 1.6;
}

.search-form {
  max-width: 600px;
  margin: 0 auto;
}

.search-wrap {
  position: relative;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 17px;
  transform: translateY(-50%);
  color: var(--dusty-blue-dark);
  pointer-events: none;
}

#guestSearch {
  width: 100%;
  min-height: 58px;
  padding: 0 50px 0 50px;
  border: 1.5px solid #ced9e1;
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

#guestSearch:focus {
  border-color: var(--dusty-blue);
  box-shadow: 0 0 0 4px rgba(120,148,173,.14);
}

#guestSearch::placeholder { color: #9aa4ab; }

.clear-btn {
  position: absolute;
  top: 50%;
  right: 13px;
  transform: translateY(-50%);
  width: 33px;
  height: 33px;
  border: 0;
  border-radius: 50%;
  background: var(--soft-gray);
  color: var(--muted);
  font-size: 1.3rem;
  cursor: pointer;
}

.search-button {
  width: 100%;
  min-height: 55px;
  margin-top: 12px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--dusty-blue-dark);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  letter-spacing: .025em;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(83,111,136,.2);
  transition: transform .15s ease, background .15s ease;
}

.search-button:hover { background: #47647e; }
.search-button:active { transform: translateY(1px); }

.search-help {
  margin: 10px 4px 0;
  text-align: center;
  font-size: .8rem;
  color: #89939a;
}

.results {
  max-width: 600px;
  margin: 25px auto 0;
}

.result-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 27px 22px;
  border: 1px solid rgba(120,148,173,.24);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #f8fbfd, #f7f2ec);
  animation: rise .25s ease both;
}

.result-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--dusty-blue);
}

.sparkle {
  display: block;
  margin-bottom: 8px;
  color: #b7a58d;
  font-size: 1.5rem;
}

.welcome {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.75rem;
  color: var(--ink);
}

.seated {
  margin: 10px 0 4px;
  color: var(--muted);
}

.table-number {
  margin: 0;
  font-size: clamp(2.15rem, 8vw, 3.35rem);
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--dusty-blue-dark);
}

.table-name {
  margin: 5px 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 1.12rem;
  color: #8c7962;
}

.result-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: .92rem;
}

.option-title,
.not-found-title {
  margin: 0 0 7px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
}

.option-copy,
.not-found-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.options {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.guest-option {
  width: 100%;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  border: 1px solid #d7e0e6;
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.guest-option:hover {
  border-color: var(--dusty-blue);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(63,80,94,.08);
}

.guest-option strong { display: block; }

.guest-option small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.guest-option .arrow {
  color: var(--dusty-blue-dark);
  font-size: 1.3rem;
}

.not-found {
  padding: 22px;
  border: 1px dashed #cbd7df;
  border-radius: var(--radius-lg);
  text-align: center;
  background: #fbfcfd;
}

.footer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 26px 27px;
  color: #849099;
  text-align: center;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: .9rem;
}

.footer p { margin: 0; white-space: nowrap; }

.footer .line {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(120,148,173,.32), transparent);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 560px) {
  .page-shell { padding: 12px 10px 24px; }
  .wedding-card { border-radius: 23px; }
  .hero { padding: 48px 17px 24px; }
  .passport-stamp {
    width: 55px;
    height: 55px;
    top: 19px;
    right: 18px;
    opacity: .72;
  }
  .finder { padding: 28px 16px 32px; }
  .footer { padding-inline: 14px; gap: 8px; }
  .footer p { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
