/* ============================================================
   Celebrate Michael - 50th Birthday - Styles
   Add this as a <style> block in an HTML/CSS stack, or drop it
   into a CSS stack if your RapidWeaver setup supports it.
   Update the background-image url() path below to match where
   you upload Beach_With_Boat.png in your site's resources.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Lato:wght@400;700&display=swap');

:root {
  --navy: #1f3a4d;
  --coastal-blue: #3a6f8f;
  --sand: #f4ecdf;
  --cream: #fffdf8;
  --gold: #c9a24b;
}

#cm-hero, #cm-details, #cm-reply {
  font-family: 'Lato', sans-serif;
  color: var(--navy);
  box-sizing: border-box;
}

#cm-hero *, #cm-details *, #cm-reply * {
  box-sizing: border-box;
}

h1, h2 {
  font-family: 'Playfair Display', serif;
}

/* ---------- Floating RSVP button ---------- */
.cm-rsvp-float {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999;
  background: var(--gold);
  color: var(--navy);
  padding: 10px 22px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* ---------- Hero ---------- */
.cm-hero {
  position: relative;
  min-height: 90vh;
  background-image: url('/includes/images/Beach_With_Boat.png');
  background-size: cover;
  background-position: center 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cm-hero-overlay {
  background: rgba(255,255,255,0.78);
  padding: 40px 30px;
  border-radius: 6px;
  max-width: 700px;
  margin: 20px;
}

.cm-hero-title {
  font-size: 2.4rem;
  margin: 0 0 10px;
  color: var(--navy);
}

.cm-hero-subtitle {
  font-size: 1.3rem;
  color: var(--coastal-blue);
  margin: 0 0 20px;
  font-style: italic;
}

.cm-hero-intro {
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

/* ---------- Details ---------- */
.cm-details {
  background: var(--sand);
  padding: 60px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.cm-event-card {
  background: var(--cream);
  border: 1px solid var(--gold);
  border-radius: 6px;
  padding: 30px 35px;
  max-width: 340px;
  text-align: center;
}

.cm-event-card h2 {
  color: var(--coastal-blue);
  margin-top: 0;
}

.cm-event-line {
  margin: 4px 0;
}

.cm-event-subheading {
  margin: 0 0 10px;
  font-style: italic;
  color: var(--coastal-blue);
}

.cm-event-attire {
  margin-top: 14px;
  font-style: italic;
  color: var(--gold);
}

.cm-shuttle-note {
  width: 100%;
  text-align: center;
  margin-top: 10px;
}

.cm-shuttle-note h3 {
  font-family: 'Playfair Display', serif;
  color: var(--coastal-blue);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.cm-shuttle-note p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  color: var(--coastal-blue);
}

/* ---------- Reply ---------- */
.cm-reply {
  background: var(--cream);
  padding: 60px 20px;
  max-width: 600px;
  margin: 0 auto;
}

.cm-reply h2 {
  text-align: center;
  color: var(--navy);
}

.cm-form-row {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

.cm-form-row label {
  margin-bottom: 6px;
  font-weight: 700;
}

.cm-req {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--coastal-blue);
}

.cm-form-row input[type="text"],
.cm-form-row input[type="email"],
.cm-form-row input[type="number"] {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.cm-form-group {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 15px 20px;
  margin-bottom: 20px;
}

.cm-form-group legend {
  font-weight: 700;
  color: var(--coastal-blue);
  padding: 0 6px;
}

.cm-radio-label {
  display: block;
  margin: 8px 0;
  font-weight: 400;
}

.cm-form-row[hidden] {
  display: none;
}

.cm-conditional-row {
  margin-top: 12px;
}

.cm-submit-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}

.cm-submit-btn:hover {
  background: var(--coastal-blue);
}

.cm-rsvp-success {
  background: #e6f4ea;
  border: 1px solid #3a8f5a;
  color: #245c37;
  padding: 20px;
  border-radius: 6px;
  text-align: center;
  margin-bottom: 20px;
}

/* Honeypot field - hidden from real visitors, visible to bots that
   auto-fill every input on the page */
.cm-hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

@media (max-width: 600px) {
  .cm-hero-title { font-size: 1.8rem; }
  .cm-hero-subtitle { font-size: 1.1rem; }
}