/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --accent: #e85d4a;
  --card-bg: #ffffff;
  --radius: 12px;
  --font: 'Caveat', cursive;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow-x: hidden;
}

/* ── DVD Bouncing Container ── */
#dvd-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

#dvd-img {
  position: absolute;
  width: 440px;
  height: 440px;
  object-fit: contain;
}

/* ── Main Content ── */
main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 24px 100px;
  gap: 0;
  max-width: 640px;
  margin: 0 auto;
}

/* ── Header Image ── */
.header-img {
  width: 100%;
  max-width: 480px;
  object-fit: contain;
  margin-bottom: 24px;
}

/* ── Let's Celebrate ── */
.lets-celebrate {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text);
  margin-bottom: 6px;
}

.event-date {
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text);
  margin-bottom: 56px;
}

.event-date sup {
  font-size: 0.65em;
}

/* ── The Details ── */
.divider-section {
  width: 100%;
  text-align: center;
  margin-bottom: 32px;
}

.details-heading {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.divider {
  width: 200px;
  border: none;
  border-top: 1px solid #ccc;
  margin: 0 auto;
}

/* ── Body Text ── */
.body-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
  max-width: 520px;
  margin-bottom: 56px;
}

.body-text p {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  line-height: 1.6;
  color: var(--text);
}

.body-text strong {
  font-weight: 700;
}

.underline {
  text-decoration: underline;
}

.hope {
  margin-top: 12px;
  font-size: clamp(1.4rem, 3vw, 1.8rem) !important;
  font-weight: 600;
}

/* ── RSVP Card ── */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 36px 32px;
  width: 100%;
  max-width: 480px;
  border: 1px solid #e8e8e8;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rsvp-heading {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ── Form ── */
#signup-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-size: 1.2rem;
  color: #555;
  margin-top: 10px;
}

#name-input,
#phone-input {
  width: 100%;
  padding: 14px 18px;
  font-size: 1.2rem;
  font-family: var(--font);
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f5f5f5;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

#name-input:focus,
#phone-input:focus {
  border-color: var(--text);
  background: #fff;
}

#submit-btn {
  margin-top: 16px;
  padding: 14px;
  font-size: 1.2rem;
  font-family: var(--font);
  font-weight: 700;
  background: #e0e0e0;
  color: var(--text);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

#submit-btn:hover {
  background: #d0d0d0;
}

#submit-btn.ready {
  background: #1a1a1a;
  color: white;
}

#submit-btn.ready:hover {
  background: #333;
}

#submit-btn:active {
  transform: scale(0.98);
}

#submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Form Message ── */
.form-message {
  text-align: center;
  font-size: 1.1rem;
  min-height: 1.4em;
  margin-top: 8px;
}

.form-message.success {
  color: #2a9d5c;
}

.form-message.error {
  color: var(--accent);
}

/* ── Mobile ── */
@media (max-width: 480px) {
  .card {
    padding: 24px 20px;
  }
  #dvd-img {
    width: 200px;
    height: 200px;
  }
}
