/* RESET + BASE */
body {
  font-family: Arial, sans-serif;
  position: relative;
  min-height: 100vh;
  margin: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
}

/* BACKGROUND */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../static/images/wedding-bg.jpg");
  background-size: cover;
  background-position: center 32%;
  background-repeat: no-repeat;
  filter: blur(2px) brightness(0.9);
  z-index: -1;
}

/* FORM CONTAINER */
form {
  background: rgba(255, 255, 255, 0.9);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);

  width: 90%;
  max-width: 420px;
}

/* INPUTS + SELECT + BUTTON */
input,
select,
button {
  display: block;
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  font-size: 16px;
  border-radius: 6px;
  box-sizing: border-box;
}

/* INPUT + SELECT STYLE */
input,
select {
  border: 1px solid #ccc;
}

/* BUTTON */
button {
  border: none;
  background: #b88b4a;
  color: white;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: #9f7538;
}

/* FLASH MESSAGES */
.flash {
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
  text-align: center;
}

.flash.error {
  background: #ffdddd;
}

.flash.info {
  background: #ddffdd;
}

/* THANK YOU PAGE */
.thank-you-page {
  position: relative;
  margin: 0;
  height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;

  overflow: hidden;
}

/* THANK YOU BACKGROUND */
.thank-you-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/static/images/thankyou-bg.jpg");
  background-size: 80%;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(8px);
  z-index: -1;
}

/* THANK YOU TEXT */
.thank-you-page h2 {
  background: rgba(255, 255, 255, 0.85);
  padding: 20px 30px;
  border-radius: 12px;
  color: #333;
  text-align: center;
}

/* CARD CONTAINER */
.card-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  padding: 20px;
}

.card-container img {
  width: 95%;
  margin-top: flex-start;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
}

/* MOBILE OPTIMIZATION */
@media (max-width: 600px) {
  body {
    padding: 10px;
    align-items: flex-start;
  }

  form {
    padding: 20px;
    width: 95%;
  }

  input,
  select,
  button {
    font-size: 18px;
    padding: 14px;
  }
}
