* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
  font-family: 'Lato', sans-serif;
  color: #fdf6ec;
  background-color: #1a1410;
  overflow-x: hidden;
}

/* Frame defines the visible window (4:3, bottom half of a 2:3 portrait photo) */
.photo-frame {
  position: fixed;
  top: 44%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(90vh, 95vw);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  z-index: 0;
  opacity: 0.7;
  /* Soft-edge mask — photo fades to transparent at the edges so text overlapping the edges reads cleanly */
  -webkit-mask-image: radial-gradient(ellipse at center, black 25%, rgba(0,0,0,0.55) 60%, transparent 88%);
          mask-image: radial-gradient(ellipse at center, black 25%, rgba(0,0,0,0.55) 60%, transparent 88%);
  animation: float 30s ease-in-out infinite alternate;
}

@keyframes float {
  0%   { transform: translate(-50%, -50%) scale(1); }
  100% { transform: translate(-50%, -50%) scale(1.02); }
}

/* Image is its natural 2:3 — bottom-aligned so only the bottom half peeks through the 4:3 frame */
.bg-photo {
  display: block;
  width: 100%;
  height: auto;
  position: absolute;
  bottom: 0;
  left: 0;
}

.overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.55));
  z-index: 1;
  pointer-events: none;
}

main {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.screen {
  display: none;
  width: 100%;
  max-width: 620px;
  animation: fadeIn 0.7s ease;
}
.screen.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Landing */
#landing { text-align: center; }

.names {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 22px;
  text-shadow:
    0 2px 12px rgba(0,0,0,0.85),
    0 4px 28px rgba(0,0,0,0.7);
}
.amp {
  font-style: italic;
  color: #d4af6f;
  font-weight: 300;
  margin: 0 0.1em;
}

.subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.2rem, 2.9vw, 1.75rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 56px;
  opacity: 0.96;
  text-shadow:
    0 1px 8px rgba(0,0,0,0.85),
    0 2px 18px rgba(0,0,0,0.65);
}

/* Button */
.btn-primary {
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  background: transparent;
  color: #fdf6ec;
  border: 1px solid #d4af6f;
  padding: 16px 52px;
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease, opacity 0.2s ease;
  border-radius: 0;
}
.btn-primary:hover:not(:disabled) {
  background: #d4af6f;
  color: #1a1410;
}
.btn-primary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Card */
.card {
  background: rgba(20, 16, 14, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 111, 0.28);
  padding: 44px 44px 40px;
}

.card-header {
  text-align: center;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(212, 175, 111, 0.18);
}
.card-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 2.4rem;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.event-meta {
  font-size: 0.85rem;
  line-height: 1.8;
  opacity: 0.85;
  letter-spacing: 0.04em;
}

/* Fields */
.field { margin-bottom: 26px; }
.field label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  opacity: 0.92;
  line-height: 1.5;
}
.req { color: #d4af6f; margin-left: 2px; }

.field input[type="text"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(253, 246, 236, 0.28);
  color: #fdf6ec;
  font-family: inherit;
  font-size: 1rem;
  padding: 8px 0;
  resize: vertical;
  transition: border-color 0.25s ease;
}
.field textarea { min-height: 70px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: #d4af6f;
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(253, 246, 236, 0.35);
}

/* Radio */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}
.radio {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 0.95rem;
  opacity: 0.92;
  letter-spacing: 0.02em;
  margin-bottom: 0;
}
.radio input { accent-color: #d4af6f; width: 16px; height: 16px; }

#submit-btn {
  display: block;
  margin: 36px auto 0;
}

/* Thanks */
.thanks {
  text-align: center;
  padding: 16px 0 8px;
}
.thanks h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: 16px;
  color: #d4af6f;
  letter-spacing: 0.02em;
}
.thanks p {
  line-height: 1.7;
  opacity: 0.9;
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .card { padding: 30px 22px 28px; }
  .btn-primary { padding: 14px 40px; }
}
