/* Fonts */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/cormorant-garamond-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/cormorant-garamond-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/cormorant-garamond-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/cormorant-garamond-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/lato-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/lato-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/fonts/lato-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/fonts/lato-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* RSVP Page */
.rsvp-page {
  background-color: #faf8f2;
  min-height: 100vh;
  font-family: 'Lato', sans-serif;
  color: #4a3728;
}

.rsvp-page .container {
  max-width: 620px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

/* Logo */
.rsvp-logo {
  display: block;
  width: 140px;
  height: auto;
  margin: 0 auto 1.5rem;
}

/* Headings */
.rsvp-page h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 2rem;
  color: #3d5535;
  text-align: center;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.rsvp-page .page-header {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0.5rem;
  justify-content: center;
}

/* Body text */
.rsvp-page p {
  font-size: 1.05rem;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 0.5rem;
}

/* Wizard steps */
.rsvp-page .wizard-step {
  margin-top: 2rem;
  animation: rsvp-fade-in 0.4s ease;
}

@keyframes rsvp-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Wizard buttons */
.rsvp-page .wizard-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  justify-content: center;
}

.rsvp-page .wizard-btn {
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  height: auto;
  line-height: 1.4;
  padding: 0.6rem 1.5rem;
  border: 2px solid #c49a2c;
  border-radius: 6px;
  background: transparent;
  color: #4a3728;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  min-width: 0;
}

.rsvp-page .wizard-btn:hover:not(:disabled) {
  background-color: #c49a2c;
  color: #fff;
}

.rsvp-page .wizard-btn:focus {
  box-shadow: 0 0 0 3px rgba(196, 154, 44, 0.3);
}

.rsvp-page .wizard-btn.btn-primary {
  background-color: #c49a2c;
  border-color: #c49a2c;
  color: #fff;
}

.rsvp-page .wizard-btn.btn-primary:hover:not(:disabled) {
  background-color: #a88325;
  border-color: #a88325;
}

.rsvp-page .wizard-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.rsvp-page .wizard-btn.btn-primary:disabled {
  opacity: 1;
  background-color: #5a7652;
  border-color: #5a7652;
  color: #fff;
}

/* Confirm button */
.rsvp-page #btn-confirm {
  background-color: #5a7652;
  border-color: #5a7652;
  color: #fff;
  padding: 0.6rem 2rem;
}

.rsvp-page #btn-confirm:hover:not(:disabled) {
  background-color: #4a6343;
  border-color: #4a6343;
}

/* Reset / "Changer d'avis" link */
.rsvp-page .btn-reset {
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  padding: 0;
  border: none;
  background: transparent;
  color: #4a3728;
  cursor: pointer;
  text-decoration: underline;
  display: inline-block;
  margin-top: 0.75rem;
}

.rsvp-page .btn-reset:hover {
  color: #c49a2c;
}

/* Textarea */
.rsvp-page .form-input {
  font-family: 'Lato', sans-serif;
  border: 2px solid #d6cdb8;
  border-radius: 6px;
  padding: 0.6rem;
  font-size: 1rem;
  color: #4a3728;
  background: #fff;
  width: 100%;
  resize: vertical;
  transition: border-color 0.2s;
}

.rsvp-page .form-input:focus {
  border-color: #c49a2c;
  outline: none;
  box-shadow: 0 0 0 3px rgba(196, 154, 44, 0.2);
}

/* Sub-text */
.rsvp-page .rsvp-subtext {
  font-size: 0.9rem;
  color: #8a7a6a;
  margin-top: -0.25rem;
}

/* Divider */
.rsvp-divider {
  border: none;
  border-top: 1px solid #d6cdb8;
  margin: 1.5rem 0;
}

/* Confirmed / declined emoji text */
.rsvp-page .wizard-step p:first-child {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: #5a7652;
}

/* Return visit (already answered) */
.rsvp-return {
  text-align: center;
}

/* Home page - centered logo */
.home-logo {
  width: 100%;
  margin-top: calc(50vh - 25vw - 2rem);
}

/* Reset confirmation modal */
.rsvp-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.rsvp-modal.d-none {
  display: none;
}

.rsvp-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

.rsvp-modal-box {
  position: relative;
  background: #faf8f2;
  border-radius: 8px;
  padding: 2rem 1.5rem;
  max-width: 360px;
  width: 90%;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .rsvp-page .container {
    padding: 1.5rem 1rem 2.5rem;
  }

  .rsvp-page h1 {
    font-size: 1.75rem;
  }

  .rsvp-logo {
    width: 110px;
  }

  .rsvp-page .wizard-buttons {
    flex-direction: column;
  }

  .rsvp-page .wizard-btn {
    width: 100%;
    text-align: center;
  }
}
