:root {
  --primary-color: #333;
  --text-color: #333;
  --light-text: #666;
  --bg-cream: white;
  --bg-gold: rgb(244, 192, 120);
  --bg-light: rgba(255, 255, 255, 0.8);
  --gold: #d4af37;
  --gold-light: #ffd700;
  --poppy-size: 350px; }

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

body {
  font-family: 'Quattrocento', Georgia, serif;
  line-height: 1.6;
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-cream);
  overflow-x: hidden; }
  body.home main p, body.home main strong {
    text-align: center; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px; }

.header {
  background: var(--bg-cream);
  padding: 20px 0;
  text-align: center; }
  .header h1 {
    font-weight: 400; }

.nav {
  background: var(--bg-cream);
  padding: 10px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); }
  .nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px; }
    @media (max-width: 768px) {
      .nav ul li:last-child {
        order: 1;
        width: 100%;
        text-align: center;
        margin-top: 10px; } }
    @media (max-width: 768px) {
      .nav ul {
        flex-wrap: wrap;
        gap: 15px; } }
  .nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    font-size: 1.1rem; }
    .nav a.active {
      text-decoration: underline;
      text-decoration-thickness: 3px;
      text-underline-offset: 8px; }

.main {
  padding: 0;
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative; }

.footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 30px 0; }

.lang-switcher {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center; }

.navbar-icon {
  width: 24px;
  height: 16px;
  vertical-align: middle;
  opacity: 0.6;
  transition: opacity 0.3s; }
  .navbar-icon:hover, .navbar-icon.active-lang {
    opacity: 1; }

.active-lang {
  border: 2px solid var(--primary-color);
  border-radius: 3px; }

.details-layout {
  max-width: 1000px;
  margin: 0 auto; }

main h1 {
  text-align: center;
  margin-top: 50px; }
  main h1 + h2 {
    margin-top: 10px; }

main h2 {
  text-align: center;
  margin-top: 35px; }

main img {
  display: block;
  margin: 0 auto; }

main p, main ul, main li, main strong {
  text-align: left; }

.MainImage {
  width: clamp(280px, 90%, 500px);
  height: auto;
  display: block;
  margin: 0 auto;
  max-width: 100%; }

.home-content {
  text-align: center;
  padding: 0 0 60px 0; }

.home-title {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-weight: 400; }

.home-names {
  display: flex;
  align-items: center;
  justify-content: center; }
  @media (max-width: 768px) {
    .home-names {
      flex-direction: column; } }
  .home-names-person {
    display: inline-block;
    text-align: center; }
    .home-names-person:first-child {
      margin-right: 40px; }
      @media (max-width: 768px) {
        .home-names-person:first-child {
          margin-right: 0; } }
    .home-names-person:last-child {
      margin-left: 20px; }
      @media (max-width: 768px) {
        .home-names-person:last-child {
          margin-left: 0; } }
    @media (max-width: 768px) {
      .home-names-person {
        margin: 10px 0; } }
  .home-names-surname {
    font-size: 0.7em;
    margin-top: -10px; }
  .home-names-amp {
    margin: 0 20px; }

.home-date {
  font-size: 1.2rem;
  margin: 30px 0; }

.home-countdown-wrapper {
  margin: 40px 0; }

.home-image-wrapper {
  font-size: 1.2rem;
  margin: 30px 0; }
  .home-image-wrapper > div {
    margin-top: 20px; }

.home-cta {
  margin-top: 50px; }

.countdown {
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 400; }
  .countdown-container {
    display: flex;
    justify-content: center;
    gap: clamp(10px, 5vw, 30px);
    flex-wrap: nowrap; }
  .countdown-item {
    text-align: center; }
  .countdown-number {
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-weight: 700; }
  .countdown-label {
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    color: #666; }
  .countdown-complete {
    font-size: 2rem;
    color: var(--primary-color); }

.btn {
  background: var(--primary-color);
  color: white;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1rem;
  display: inline-block;
  transition: opacity 0.3s; }
  .btn:hover {
    opacity: 0.9; }

.poppy-decoration {
  position: absolute;
  z-index: 1;
  opacity: 0.4;
  pointer-events: none; }
  .poppy-decoration-left {
    left: 0px;
    bottom: -10px; }
  .poppy-decoration-right {
    right: 0px;
    top: 0px; }
  .poppy-decoration img {
    width: var(--poppy-size);
    height: auto;
    display: block;
    max-width: none; }

.content-wrapper {
  position: relative;
  z-index: 2;
  backdrop-filter: blur(2px);
  background-color: var(--bg-light);
  border-radius: 10px;
  padding: 60px 0 20px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 85%;
  max-width: 900px;
  margin: 20px auto 0 auto; }

@media (min-width: 1024px) {
  :root {
    --poppy-size: 600px; } }

@media (min-width: 1440px) {
  :root {
    --poppy-size: 720px; } }

.RsvpArticle {
  min-width: clamp(320px, 80vw, 800px);
  margin: 0 auto;
  padding: 20px; }

#rsvp-form {
  max-width: 500px;
  margin: 2rem auto; }
  #rsvp-form .form-group {
    margin-bottom: 1.5rem; }
    #rsvp-form .form-group label {
      display: block;
      margin-bottom: 0.5rem;
      font-weight: 600; }
    #rsvp-form .form-group input,
    #rsvp-form .form-group select,
    #rsvp-form .form-group textarea {
      width: 100%;
      padding: 0.75rem;
      border: 2px solid var(--gold);
      border-radius: 4px;
      font-size: 1rem;
      background: #f5f5f5;
      color: #333;
      font-family: 'Quattrocento', serif; }
      #rsvp-form .form-group input:focus,
      #rsvp-form .form-group select:focus,
      #rsvp-form .form-group textarea:focus {
        outline: none;
        border-color: var(--gold-light); }
    #rsvp-form .form-group textarea {
      resize: vertical;
      min-height: 80px; }
  #rsvp-form button {
    background: var(--gold);
    color: #1a1a1a;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Quattrocento', serif;
    transition: background 0.3s;
    display: block;
    margin: 0 auto; }
    #rsvp-form button:hover {
      background: var(--gold-light); }
    #rsvp-form button:disabled {
      background: #666;
      cursor: not-allowed; }
  #rsvp-form .rsvp-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem; }
    #rsvp-form .rsvp-buttons button {
      flex: 1;
      max-width: 200px; }
  #rsvp-form .btn-accept {
    background: #4caf50;
    color: white; }
    #rsvp-form .btn-accept:hover:not(:disabled) {
      background: #45a049; }
  #rsvp-form .btn-decline {
    background: #f44336;
    color: white; }
    #rsvp-form .btn-decline:hover:not(:disabled) {
      background: #da190b; }
  #rsvp-form #existing-rsvp-message {
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border: 2px solid var(--gold);
    border-radius: 4px; }
  #rsvp-form .rsvp-response-message {
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600; }
    #rsvp-form .rsvp-response-message p {
      margin: 0; }
  #rsvp-form #not-found-message,
  #rsvp-form #success-message,
  #rsvp-form #error-message {
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    background: var(--bg-light); }
  #rsvp-form #not-found-message {
    border: 2px solid var(--gold); }
  #rsvp-form #success-message {
    border: 2px solid #4caf50; }
  #rsvp-form #error-message {
    border: 2px solid #f44336; }

.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  top: -10px;
  z-index: 9999;
  pointer-events: none;
  animation: confetti-fall linear forwards; }

@keyframes confetti-fall {
  to {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0; } }

.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999; }
