
/* ========== Base & Reset ========== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
:root {
  --bg-dark: #0e0e10;
  --text: #1d1d1f;
  --text-light: #555;
  --primary: #9f7a43;
  --primary-dark: #7e5f34;
  --white: #ffffff;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background: #fafafa;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2 { margin: 0 0 8px; }
p { margin: 0 0 16px; }
.muted { color: var(--text-light); }
.required { color: #e11d48; }

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: transform .1s ease, opacity .2s ease;
}
.btn-primary:hover { transform: translateY(-1px); opacity: 0.95; }
.btn-primary:active { transform: translateY(0); }

.btn-primary:focus-visible {
  outline: 3px solid rgba(159, 122, 67, 0.35);
  outline-offset: 2px;
}

/* ========== RSVP Page Background (faded image) ========== */
.rsvp-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8efe8 0%, #fdf6ef 100%);
}

.event-timeline {
  max-width: 560px;
  margin: 0 auto 24px;
  color: #596343;
}

.colour-theme {
  max-width: 560px;
  margin: 0 auto 24px;
  color: #596343;
}

.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline-item {
  display: flex;
  gap: 18px;
  position: relative;
  padding-bottom: 26px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: 4px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid #596343;
  position: relative;
  z-index: 1;
}

.timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 0;
  left: 6px;
  width: 2px;
  background: #596343;
}

.timeline-content {
  padding-top: 1px;
}

.timeline-title {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-detail {
  margin: 0 0 8px;
  font-size: 0.9rem;
}

.timeline-content .pill-map-links {
  margin-bottom: 4px;
}

.timeline-content .pill-map-btn {
  background: rgba(89, 99, 67, 0.14);
  border-color: rgba(104, 113, 76, 0.4);
  color: #596343;
}

.timeline-content .pill-map-btn:hover {
  background: rgba(89, 99, 67, 0.28);
}

.pill-map-links {
  display: inline-flex;
  gap: 6px;
}

.pill-map-btn {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}

.pill-map-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}

.pill-map-btn img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.swatch {
  width: 28.296px;
  height: 28.296px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: inline-block;
  padding: 0;
  cursor: pointer;
  position: relative;
  appearance: none;
  -webkit-appearance: none;
}

.swatch::after {
  content: attr(data-color-name);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.85);
  background: #333;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.swatch.is-active::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.info-tooltip {
  display: inline-block;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  font-size: 0.85em;
  line-height: 1;
  cursor: help;
  position: relative;
}

.info-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.85);
  background: #333;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.info-tooltip:hover::after,
.info-tooltip.is-active::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.swatch--light-yellow { background: #FFE87C; }
.swatch--sage { background: #6AA121; }
.swatch--khaki { background: #F5DEB3; }
.swatch--dusty-pink { background: #E5788F; }
.swatch--nude { background: #D4A276; }
form {
  background: #f6d9d6;
  border-radius: 14px;
  padding: 28px 26px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

label,
legend {
  display: block;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea {
  width: 100%;
  padding: 8px 2px;
  margin: 0 0 22px;
  border: none;
  border-bottom: 1px solid rgba(104, 113, 76, 0.35);
  border-radius: 0;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.95rem;
  background: transparent;
  color: #222;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
textarea:focus {
  outline: none;
  border-bottom-color: #596343;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.fieldset {
  border: none;
  margin: 0 0 22px;
  padding: 0;
}

.radio {
  display: inline-flex;
  align-items: center;
  margin-right: 24px;
  gap: 6px;
  background: none;
  padding: 0;
  border: none;
  font-weight: 500;
}

.radio input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: #596343;
}

.btn-primary {
  width: 100%;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 14px;
  border-radius: 8px;
  margin-top: 6px;
  background: var(--primary);
  color: #fff;
}

.status {
  margin-top: 12px;
  min-height: 24px;
  font-weight: 600;
  color: #fce1c8;
}

/* ========== Responsive Tweaks ========== */
@media (max-width: 640px) {
  .radio { margin-bottom: 8px; }
  input[type="text"],
  input[type="email"],
  input[type="number"],
  textarea {
    font-size: 16px;
  }
}

/* ========== RSVP Redesign (matches main page style) ========== */
.rsvp-page {
  background: #f0f0f0;
  color: #596343;
  font-family: "Trebuchet MS", Arial, sans-serif;
}

.rsvp-layout {
  max-width: 1220px;
  margin: 28px auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
}

.hero-panel-rsvp {
  background: #efefe4;
  text-align: center;
  padding: 24px 28px 44px;
}

.top-actions-rsvp {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 56px;
}

.dot-emblem-rsvp {
  font-size: 1.5rem;
  color: #f8e1ae;
}

.mini-home {
  text-decoration: none;
  background: #68714c;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 9px 13px;
}

.hero-panel-rsvp h1 {
  margin: 0;
  color: #68714c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5.4vw, 4.7rem);
  line-height: 1;
  letter-spacing: 0.01em;
}

.intro-copy-rsvp {
  margin: 30px auto 0;
  max-width: 620px;
}

.intro-copy-rsvp p {
  margin: 0 0 10px;
  font-size: clamp(0.84rem, 1.5vw, 1.05rem);
  line-height: 1.42;
  color: #636d4d;
}

.center-flourish-rsvp {
  margin-top: 18px;
  font-size: 2rem;
  color: #68714c;
}

.details-band-rsvp {
  background:
    radial-gradient(circle at 12px 12px, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
    radial-gradient(circle at 22px 22px, rgba(255, 255, 255, 0.08) 2px, transparent 2px),
    #f1b39e;
  background-size: 40px 40px;
  padding: 28px;
}

.details-band-rsvp .pill-map-btn {
  background: rgba(89, 99, 67, 0.14);
  border-color: rgba(104, 113, 76, 0.4);
  color: #596343;
}

.details-band-rsvp .pill-map-btn:hover {
  background: rgba(89, 99, 67, 0.28);
}

.details-band-rsvp .swatch {
  border-color: rgba(104, 113, 76, 0.4);
}

.details-band-rsvp form {
  max-width: 760px;
  margin: 0 auto;
}

.details-band-rsvp label,
.details-band-rsvp legend {
  color: #596343;
  font-weight: 700;
}

.details-band-rsvp input[type="text"],
.details-band-rsvp input[type="email"],
.details-band-rsvp input[type="number"],
.details-band-rsvp textarea {
  border-bottom: 1px solid rgba(104, 113, 76, 0.35);
  background: transparent;
  color: #3f4634;
}

.details-band-rsvp .radio {
  color: #596343;
}

.details-band-rsvp .btn-primary {
  background: #68714c;
  color: #fff;
  border-radius: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.details-band-rsvp .btn-primary:hover {
  background: #596343;
}

.details-band-rsvp .status {
  color: #596343;
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .rsvp-layout {
    margin: 0;
    border-radius: 0;
    min-height: 100vh;
  }

  .hero-panel-rsvp {
    padding: 18px 14px 30px;
  }

  .top-actions-rsvp {
    margin-bottom: 36px;
  }

  .details-band-rsvp {
    padding: 18px 14px;
  }

  .details-band-rsvp form {
    padding: 14px;
  }

}

.hidden { display: none !important; }
