@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&display=swap');

@font-face {
  font-family: 'Thorn and Tale';
  src: url('fonts/ThornAndTale-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Symphony Pro';
  src: url('fonts/SymphonyPro-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --olive: #70734D;
  --olive-dark: #4B4D33;
  --mauve: #9E7382;
  --wine: #592532;
  --ivory: #FAF6F0;
  --cream: #F3ECE2;
  --text: #3A2E30;

  --font-hero: 'Montserrat', sans-serif;
  --font-primary: 'Thorn and Tale', Georgia, 'Times New Roman', serif;
  --font-script: 'Symphony Pro', cursive;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--font-hero);
  font-weight: 300;
  line-height: 1.6;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.hidden { display: none !important; }

/* Hero */
.hero {
  text-align: center;
  margin-bottom: 48px;
}

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

.hero-logo {
  width: 168px;
  height: auto;
  margin: 0 auto 8px;
  display: block;
}

.hero-full-names {
  font-family: var(--font-script);
  font-size: calc(1.5rem + 2pt);
  line-height: 1.3;
  color: var(--wine);
  margin: 0 0 12px;
  padding: 0 12px;
}

.rsvp-notice {
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.rsvp-french {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--olive);
  line-height: 1;
}

.rsvp-deadline {
  font-family: var(--font-hero);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--olive);
}

.hero-date {
  font-family: var(--font-hero);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--wine);
  margin: 0 0 20px;
}

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--cream);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(89, 37, 50, 0.06);
}

.card h2 {
  font-family: var(--font-primary);
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0, "calt" 0;
  color: var(--wine);
  font-size: 1.6rem;
  margin-top: 0;
}

.hint {
  color: var(--olive-dark);
  font-size: 0.95rem;
}

/* Search */
#search-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: var(--font-hero);
  border: 1px solid var(--mauve);
  border-radius: 8px;
  background: var(--ivory);
  color: var(--text);
}

#search-input:focus {
  outline: none;
  border-color: var(--wine);
}

.results-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result-item {
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--cream);
  background: var(--cream);
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-hero);
  font-size: 1rem;
  color: var(--olive-dark);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.result-item:hover {
  background: #fff;
  border-color: var(--mauve);
}

.result-item .member-count {
  display: block;
  font-size: 0.85rem;
  color: var(--mauve);
  margin-top: 2px;
}

.no-results {
  color: var(--mauve);
  font-size: 0.95rem;
  padding: 8px 0;
}

/* Wizard */
.wizard-progress {
  margin: -8px 0 20px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mauve);
}

.wizard-step {
  animation: fade-in 0.2s ease;
}

.wizard-step-title {
  font-family: var(--font-primary);
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0, "calt" 0;
  color: var(--wine);
  font-size: 1.4rem;
  margin: 0 0 16px;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.event-detail {
  background: var(--ivory);
  border-left: 3px solid var(--olive);
  border-radius: 0 8px 8px 0;
  padding: 20px;
  margin-bottom: 24px;
}

.event-description {
  font-size: 0.98rem;
  color: var(--text);
  margin: 0;
}

.event-detail-divider {
  border: none;
  border-top: 1px solid var(--cream);
  margin: 16px 0;
}

.event-detail-when {
  font-family: var(--font-hero);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--olive-dark);
  margin: 0 0 4px;
}

.event-detail-where {
  font-family: var(--font-primary);
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0, "calt" 0;
  font-size: 1.1rem;
  color: var(--wine);
  margin: 0 0 8px;
}

.event-detail-attire {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--wine);
  background: var(--cream);
  border-radius: 100px;
  padding: 3px 12px;
  margin: 0 0 8px;
}

.event-detail-attire-note {
  font-size: 0.85rem;
  color: var(--olive-dark);
  margin: 0 0 8px;
}

.event-detail-note {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--mauve);
  margin: 0;
}

/* Guest rows within an event step */
.event-guest-row {
  border-top: 1px solid var(--cream);
  padding: 20px 0;
}

.event-guest-row:first-of-type {
  border-top: none;
  padding-top: 0;
}

.event-guest-row .guest-name {
  font-family: var(--font-primary);
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0, "calt" 0;
  color: var(--olive-dark);
  font-size: 1.15rem;
  margin: 0 0 10px;
}

.attend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.attend-row select {
  min-width: 220px;
}

.entree-row {
  background: var(--ivory);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 12px 0 0;
}

.entree-row > .entree-label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--wine);
}

.entree-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.entree-option input {
  margin-top: 4px;
}

.entree-text {
  display: flex;
  flex-direction: column;
}

.entree-name {
  font-size: 0.95rem;
}

.entree-ingredients {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--mauve);
  margin-top: 2px;
}

/* Gate step (weekend attendance + plus-one) */
.gate-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 20px;
}

.gate-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--mauve);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.gate-option:hover {
  background: var(--ivory);
}

.gate-option.selected {
  border-color: var(--wine);
  background: var(--ivory);
}

.gate-option input {
  margin: 0;
}

.gate-plusone {
  padding-top: 16px;
  border-top: 1px solid var(--cream);
}

.plusone-field {
  margin-bottom: 16px;
}

.plusone-field label {
  display: block;
  font-size: 0.95rem;
  color: var(--olive-dark);
}

.plusone-field input {
  margin-top: 6px;
}

/* A household declining the whole weekend doesn't need dietary/lodging fields on the last screen */
.wizard-step.declining .dietary-field,
.wizard-step.declining .household-fields {
  display: none;
}

/* About You step */
.guest-contact-card {
  border-top: 1px solid var(--cream);
  padding: 20px 0;
}

.guest-contact-card:first-of-type {
  border-top: none;
  padding-top: 0;
}

.guest-contact-card h3 {
  font-family: var(--font-primary);
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0, "calt" 0;
  color: var(--olive-dark);
  font-size: 1.15rem;
  margin: 0 0 12px;
}

.guest-contact-card label {
  display: block;
  font-size: 0.9rem;
  color: var(--olive-dark);
  margin-bottom: 12px;
}

.guest-contact-card label > input,
.guest-contact-card label > textarea {
  margin-top: 6px;
}

.dietary-field {
  margin-top: 12px;
}

.dietary-field label {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--olive-dark);
}

textarea, select, input[type="email"], input[type="tel"], input[type="text"] {
  font-family: var(--font-hero);
  font-size: 0.95rem;
  padding: 10px 12px;
  border: 1px solid var(--mauve);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  width: 100%;
}

textarea {
  min-height: 64px;
  resize: vertical;
}

/* Household fields */
.household-fields {
  border: none;
  padding: 24px 0 0;
  margin: 16px 0 0;
  border-top: 1px solid var(--cream);
}

.household-fields legend {
  font-family: var(--font-primary);
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0, "calt" 0;
  color: var(--wine);
  font-size: 1.15rem;
  padding: 0;
  margin-bottom: 12px;
}

.household-fields label {
  display: block;
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: var(--olive-dark);
}

.household-fields label > input,
.household-fields label > select {
  margin-top: 6px;
}

/* Buttons */
.wizard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

.primary-btn {
  background: var(--wine);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font-hero);
  font-size: 1rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  margin-left: auto;
  display: inline-block;
  text-align: center;
  text-decoration: none;
}

.primary-btn:hover {
  background: var(--olive-dark);
}

.secondary-btn {
  background: transparent;
  color: var(--olive-dark);
  border: 1px solid var(--mauve);
  padding: 13px 24px;
  border-radius: 8px;
  font-family: var(--font-hero);
  font-size: 1rem;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  text-decoration: none;
}

.secondary-btn:hover {
  border-color: var(--wine);
  color: var(--wine);
}

.confirmation-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.custom-message {
  font-family: var(--font-primary);
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0, "calt" 0;
  font-size: 1.15rem;
  color: var(--wine);
  background: var(--ivory);
  border-left: 3px solid var(--olive);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 16px 0 0;
}

.link-btn {
  background: none;
  border: none;
  color: var(--mauve);
  font-family: var(--font-hero);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 16px;
}

.link-btn:hover {
  color: var(--wine);
}

.error {
  color: var(--wine);
  font-size: 0.9rem;
}

footer {
  text-align: center;
  margin-top: 40px;
  font-size: 0.85rem;
  color: var(--mauve);
}

footer a {
  color: var(--wine);
}
