:root {
  --green: #b8d64a;
  --orange: #d84f24;
  --cream: #efe5d2;
  --cream-light: #fff4de;
  --ink: #202018;
  --muted: #6d634f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100svh;
  color: var(--ink);
  background: var(--cream);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

main {
  margin: 0;
  padding: 0;
}

.video-section {
  margin: 0;
  padding: 0;
  background: var(--cream);
  text-align: center;
}

.video-shell {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  background: #000;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
}

mux-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

/* .calendar-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 22px max(20px, env(safe-area-inset-right)) max(34px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  background: var(--cream);
} */

.calendar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  min-width: 180px;
  padding: 15px 24px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff8e8;
  box-shadow: 0 12px 28px rgba(31, 26, 15, 0.18);
  font: inherit;
  font-size: 1rem;
  font-weight: 900;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.calendar-button:active {
  transform: translateY(1px);
}

.calendar-button:focus-visible {
  outline: 3px solid rgba(216, 79, 36, 0.35);
  outline-offset: 4px;
}

.calendar-button-overlay {
  position: absolute;
  left: 50%;
  bottom: clamp(16px, 3vw, 28px);
  transform: translateX(-50%);
  z-index: 10;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 52px;
  padding: 14px 22px;
  border-radius: 999px;

  background: rgba(216, 79, 36, 0.92);
  color: #fff8e8;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);

  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;

  opacity: 1;
  pointer-events: auto;
  transition:
    opacity 300ms ease,
    transform 300ms ease;
}

.calendar-button-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(10px);
}

/* Use this for a vertical phone-first video. */
@media (max-width: 900px) {
  mux-player {
    aspect-ratio: 9 / 16;
  }
}

/* If your final video is horizontal, delete the media query above. */

.guest-form-section {
  padding: clamp(36px, 7vw, 90px) clamp(20px, 6vw, 96px);
  background: var(--cream);
}

.guest-form-card {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 54px);
  border-radius: var(--radius);
  background: var(--cream-light);
  box-shadow: var(--shadow);
}

.guest-form-card h2 {
  margin-bottom: 18px;
}

.guest-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.guest-form label {
  display: grid;
  gap: 8px;
  color: rgba(32, 32, 24, 0.74);
  font-size: 0.95rem;
  font-weight: 900;
}

.guest-form input,
.guest-form textarea {
  width: 100%;
  border: 0;
  border-radius: 18px;
  padding: 16px 18px;
  background: #fffaf0;
  color: var(--ink);
  font: inherit;
  box-shadow: inset 0 0 0 1px rgba(32, 32, 24, 0.08);
}

.guest-form textarea {
  min-height: 110px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.guest-form button {
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  padding: 16px 22px;
  background: var(--orange);
  color: #fff8e8;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(216, 79, 36, 0.22);
}

.form-status {
  margin: 0;
  min-height: 24px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

@media (max-width: 700px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}