:root {
  --burgundy: #6f1835;
  --deep-burgundy: #501025;
  --blush: #f5dce3;
  --soft-blush: #fff7f9;
  --gold: #b68a4c;
  --ink: #33282c;
  --white: #ffffff;
  --shadow: 0 20px 55px rgba(91, 24, 50, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(
      circle at top left,
      rgba(245, 220, 227, 0.85),
      transparent 34%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(111, 24, 53, 0.10),
      transparent 35%
    ),
    #fbf4f6;
  font-family: "Montserrat", sans-serif;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.card {
  position: relative;
  width: min(720px, 100%);
  overflow: hidden;
  padding: 52px 46px 38px;
  text-align: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(182, 138, 76, 0.45);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.card::before {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  border: 1px solid rgba(111, 24, 53, 0.13);
  border-radius: 20px;
}

.wedding-header,
.search-content,
.seat-result-content,
footer,
.search-again-link {
  position: relative;
  z-index: 1;
}

.eyebrow,
.date {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--burgundy);
}

h1 {
  margin: 12px 0 4px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 9vw, 5.3rem);
  line-height: 0.95;
  color: var(--deep-burgundy);
}

.monogram {
  margin: 12px 0 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--gold);
}

.monogram span {
  margin: 0 5px;
  font-weight: 500;
}

.intro {
  max-width: 500px;
  margin: 30px auto 22px;
  line-height: 1.65;
}

.search-content {
  max-width: 560px;
  margin: 34px auto 0;
}

.search-card .intro {
  max-width: 520px;
  margin: 0 auto 26px;
  font-size: 1rem;
  line-height: 1.7;
}

form {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}

label {
  display: inline-block;
  margin: 0 0 8px 3px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--deep-burgundy);
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

input,
button {
  min-height: 52px;
  border-radius: 12px;
  font: inherit;
}

input {
  width: 100%;
  padding: 0 16px;
  color: var(--ink);
  background: var(--soft-blush);
  border: 1px solid rgba(111, 24, 53, 0.28);
  outline: none;
}

input::placeholder {
  color: #8f7d84;
}

input:focus {
  border-color: var(--burgundy);
  box-shadow: 0 0 0 4px rgba(111, 24, 53, 0.10);
}

button {
  padding: 0 22px;
  cursor: pointer;
  color: var(--white);
  background: var(--burgundy);
  border: 0;
  font-weight: 600;
  transition:
    transform 0.15s ease,
    background 0.15s ease;
}

button:hover {
  background: var(--deep-burgundy);
  transform: translateY(-1px);
}

button:focus-visible,
.search-again-link:focus-visible {
  outline: 3px solid rgba(182, 138, 76, 0.45);
  outline-offset: 3px;
}

.help-text {
  margin: 9px 3px 0;
  font-size: 0.78rem;
  color: #76666c;
}

.result {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 22px auto 0;
  padding: 22px;
  border-radius: 16px;
}

.result.success {
  color: var(--deep-burgundy);
  background: linear-gradient(135deg, #fff8fa, #f7e5ea);
  border: 1px solid rgba(111, 24, 53, 0.22);
}

.result.error {
  color: #6d2538;
  background: #fff2f5;
  border: 1px solid #e8bdc9;
}

.result h2 {
  margin: 0 0 5px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
}

.match-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.match-list li + li {
  margin-top: 8px;
}

.match-button {
  min-height: auto;
  width: 100%;
  padding: 10px 14px;
  color: var(--burgundy);
  background: var(--white);
  border: 1px solid rgba(111, 24, 53, 0.22);
}

.match-button:hover {
  color: var(--white);
  background: var(--burgundy);
}

footer {
  margin-top: 34px;
  color: #76666c;
  font-size: 0.84rem;
}

footer p {
  margin: 5px 0;
}

footer .couple {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  color: var(--burgundy);
}

/* Separate result page */

.result-page-card {
  min-height: 650px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.result-monogram {
  margin: 16px 0 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}

.result-monogram span {
  margin: 0 6px;
}

.seat-result-content {
  max-width: 560px;
  width: 100%;
  margin: 45px auto 28px;
  padding: 44px 28px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 248, 250, 0.98),
      rgba(247, 229, 234, 0.96)
    );
  border: 1px solid rgba(111, 24, 53, 0.22);
  border-radius: 24px;
  box-shadow: 0 16px 35px rgba(111, 24, 53, 0.08);
}

.guest-result-name {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.5rem, 7vw, 4rem);
  line-height: 1.05;
  color: var(--deep-burgundy);
}

.seat-message {
  margin: 24px 0 18px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.large-table-number {
  display: inline-block;
  padding: 15px 30px;
  color: var(--white);
  background: var(--burgundy);
  border-radius: 999px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 700;
  box-shadow: 0 12px 25px rgba(111, 24, 53, 0.18);
}

.celebration-message {
  margin: 24px 0 0;
  color: var(--deep-burgundy);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-weight: 600;
}

.search-again-link {
  display: inline-block;
  margin: 0 auto;
  color: var(--burgundy);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(111, 24, 53, 0.35);
}

.search-again-link:hover {
  color: var(--deep-burgundy);
  border-color: var(--deep-burgundy);
}

@media (max-width: 620px) {
  .page-shell {
    padding: 14px 10px;
  }

  .card {
    padding: 46px 22px 30px;
    border-radius: 20px;
  }

  .card::before {
    inset: 8px;
    border-radius: 15px;
  }

  h1 {
    font-size: clamp(2.7rem, 15vw, 4.2rem);
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
  }

  .result-page-card {
    min-height: auto;
  }

  .seat-result-content {
    margin-top: 35px;
    padding: 36px 20px;
  }

  .guest-result-name {
    font-size: clamp(2.25rem, 12vw, 3.3rem);
  }

  .large-table-number {
    padding: 13px 25px;
    font-size: 1.75rem;
  }
}
