/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html {
  background: #f0f0f0;
}

body {
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-shadow: 0 0 40px rgba(0,0,0,0.1);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

/* === CONTAINER === */
.container {
  max-width: 440px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === FADE-IN ANIMATION === */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === WHATSAPP CTA BUTTON === */
.wa-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 50px;
  transition: background 0.2s ease, transform 0.15s ease;
  text-align: center;
  line-height: 1.3;
}

.wa-cta:hover {
  background: #1ebe5b;
}

.wa-cta:active {
  transform: scale(0.97);
}

.wa-cta svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: #fff;
}

/* === RSVP FORM === */
.rsvp-section {
  text-align: center;
  padding: 48px 0 56px;
}

.rsvp-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
}

.rsvp-form {
  text-align: left;
  max-width: 360px;
  margin: 0 auto;
}

.rsvp-radio-group {
  margin-bottom: 20px;
}

.rsvp-radio {
  display: none;
}

.rsvp-radio-label {
  display: block;
  padding: 12px 16px;
  margin-bottom: 8px;
  border: 1.5px solid var(--accent-light, #E8D5C0);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
  padding-left: 40px;
}

.rsvp-radio-label::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-light, #E8D5C0);
  transition: border-color 0.2s, background 0.2s;
}

.rsvp-radio:checked + .rsvp-radio-label {
  border-color: var(--accent, #C8956C);
  background: var(--bg-alt, #FFF1EB);
}

.rsvp-radio:checked + .rsvp-radio-label::before {
  border-color: var(--accent, #C8956C);
  background: var(--accent, #C8956C);
  box-shadow: inset 0 0 0 3px var(--bg, #FFF9F5);
}

.rsvp-field-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-muted, #8B7272);
}

.rsvp-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--accent-light, #E8D5C0);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  color: var(--text, #3D2C2C);
  background: var(--white, #fff);
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 16px;
}

.rsvp-input:focus {
  border-color: var(--accent, #C8956C);
}

.rsvp-input::placeholder {
  color: var(--text-muted, #8B7272);
  opacity: 0.6;
}

.rsvp-submit {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 50px;
  background: var(--accent, #C8956C);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.rsvp-submit.loading {
  pointer-events: none;
  opacity: 0.8;
}

.rsvp-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: rsvp-spin 0.6s linear infinite;
}

.rsvp-submit.loading .rsvp-spinner {
  display: block;
}

@keyframes rsvp-spin {
  to { transform: rotate(360deg); }
}

.rsvp-submit:hover {
  background: var(--accent-dark, #A97B55);
}

.rsvp-submit:active {
  transform: scale(0.97);
}

.rsvp-success {
  display: none;
  text-align: center;
  padding: 24px 0;
}

.rsvp-success.show {
  display: block;
}

.rsvp-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent, #C8956C);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.rsvp-success-icon svg {
  width: 28px;
  height: 28px;
  stroke: #fff;
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rsvp-success-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--heading, #5C3D2E);
}

/* === MUSIC PLAYER === */
.music-btn {
  position: fixed;
  bottom: 24px;
  right: max(24px, calc(50% - 240px + 24px));
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent, #C8956C);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  z-index: 9999;
  transition: transform 0.2s;
}

.music-btn:active {
  transform: scale(0.9);
}

.music-btn svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.music-btn.playing {
  animation: music-pulse 1.2s ease-in-out infinite;
}

@keyframes music-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(200,149,108,0.6); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 12px rgba(200,149,108,0); }
}

.music-icon-off,
.music-btn.playing .music-icon-on {
  display: block;
}

.music-icon-on,
.music-btn.playing .music-icon-off {
  display: none;
}

/* Music prompt overlay */
.music-prompt {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  animation: music-prompt-in 0.3s ease forwards;
}

@keyframes music-prompt-in {
  to { opacity: 1; }
}

.music-prompt-card {
  background: var(--bg, #fff);
  border-radius: 20px;
  padding: 32px 28px;
  text-align: center;
  max-width: 300px;
  width: 90%;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
}

.music-prompt-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.music-prompt-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--heading, #333);
  margin-bottom: 20px;
  line-height: 1.4;
}

.music-prompt-actions {
  display: flex;
  gap: 10px;
}

.music-prompt-btn {
  flex: 1;
  padding: 12px;
  border-radius: 50px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  border: none;
}

.music-prompt-btn:active {
  opacity: 0.8;
}

.music-prompt-yes {
  background: var(--accent, #C8956C);
  color: #fff;
}

.music-prompt-no {
  background: transparent;
  border: 1.5px solid var(--accent-light, #ddd);
  color: var(--text-muted, #888);
}

/* === UTILITIES === */
.text-center { text-align: center; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
