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

body {
  font-family: "Cinzel", "Georgia", serif;
  background: linear-gradient(to bottom, #f5f1e8 0%, #e8dcc4 100%);
  color: #4a4035;
  overflow-x: hidden;
}

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

.elvish-ornament {
  text-align: center;
  font-size: 28px;
  color: #8b7355;
  margin: 20px 0;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
  letter-spacing: 8px;
}

.elvish-ornament.visible {
  opacity: 1;
  transform: translateY(0);
}

.header {
  text-align: center;
  padding: 60px 0 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.leaf-border-top {
  width: 200px;
  height: 40px;
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeIn 1.2s ease forwards 0.2s;
  position: relative;
}

.leaf-border-top::before,
.leaf-border-top::after {
  content: "❦";
  position: absolute;
  font-size: 32px;
  color: #8b7355;
}

.leaf-border-top::before {
  left: 0;
}

.leaf-border-top::after {
  right: 0;
}

.leaf-border-top span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  color: #8b7355;
}

.header h1 {
  font-size: 56px;
  font-weight: 400;
  letter-spacing: 12px;
  color: #5a4a3a;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeInDown 1.2s ease forwards;
  text-shadow: 2px 2px 4px rgba(139, 115, 85, 0.1);
}

.header h1:first-of-type {
  animation-delay: 0.4s;
}

.header h1:last-of-type {
  animation-delay: 1s;
}

.header .ampersand {
  font-size: 48px;
  font-style: italic;
  color: #8b7355;
  margin: 20px 0;
  opacity: 0;
  animation: fadeIn 1s ease forwards 0.7s;
}

.header .subtitle {
  font-size: 16px;
  letter-spacing: 4px;
  color: #7a6a5a;
  margin-top: 40px;
  opacity: 0;
  animation: fadeIn 1s ease forwards 1.6s;
  font-weight: 300;
}

.scroll-hint {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeInBounce 2s ease forwards 2.2s;
}

.scroll-hint::before {
  content: "⟡";
  display: block;
  font-size: 28px;
  color: #8b7355;
  animation: bounce 2s infinite 3.2s;
  margin-bottom: 5px;
}

.scroll-hint p {
  font-size: 12px;
  color: #8b7355;
  letter-spacing: 3px;
  margin-top: 5px;
}

@keyframes fadeInDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes fadeInBounce {
  to {
    opacity: 0.7;
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.section {
  text-align: center;
  padding: 60px 20px;
  margin: 0;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section h2 {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 6px;
  color: #5a4a3a;
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
}

.section h2::before,
.section h2::after {
  content: "✦";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #8b7355;
}

.section h2::before {
  left: -35px;
}

.section h2::after {
  right: -35px;
}

.section p {
  font-size: 18px;
  line-height: 1.9;
  color: #6b5d52;
  margin: 10px 0;
}

.date {
  font-size: 24px;
  font-weight: 500;
  color: #8b7355;
  margin: 20px 0;
  font-style: italic;
}

.location {
  font-style: italic;
  font-size: 22px;
  color: #7a6a5a;
}

.quote {
  text-align: center;
  padding: 80px 40px;
  font-style: italic;
  font-size: 22px;
  line-height: 1.7;
  color: #6b5d52;
  opacity: 0;
  transform: translateX(-30px);
  transition: all 1s ease;
}

.quote.visible {
  opacity: 1;
  transform: translateX(0);
}

.quote::before,
.quote::after {
  content: "❧";
  display: block;
  font-size: 28px;
  color: #8b7355;
  margin: 20px 0;
  letter-spacing: 10px;
}

.footer {
  text-align: center;
  padding: 60px 20px 80px;
  opacity: 0;
  transition: all 0.8s ease;
}

.footer.visible {
  opacity: 1;
}

.footer p {
  font-size: 16px;
  color: #7a6a5a;
  margin: 10px 0;
  letter-spacing: 1px;
}

.vine-decoration {
  width: 120px;
  height: 30px;
  margin: 40px auto;
  opacity: 0;
  transition: all 0.8s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vine-decoration::before {
  content: "⟐⟐⟐";
  color: #8b7355;
  font-size: 20px;
  letter-spacing: 15px;
}

.vine-decoration.visible {
  opacity: 0.5;
}

.closing-ornament {
  text-align: center;
  margin-top: 40px;
  font-size: 36px;
  color: #8b7355;
  opacity: 0;
  transition: all 0.8s ease;
}

.closing-ornament.visible {
  opacity: 0.6;
}

.form-section {
  text-align: center;
  padding: 60px 20px;
  margin: 0;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.form-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.form-section h2 {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 6px;
  color: #5a4a3a;
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
}

.form-section h2::before,
.form-section h2::after {
  content: "✦";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #8b7355;
}

.form-section h2::before {
  left: -35px;
}

.form-section h2::after {
  right: -35px;
}

.form-container {
  max-width: 500px;
  margin: 30px auto 0;
  text-align: left;
}

.form-group {
  margin-bottom: 25px;
}

label {
  display: block;
  font-size: 16px;
  color: #5a4a3a;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 12px 15px;
  font-family: "Georgia", serif;
  font-size: 16px;
  color: #4a4035;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(139, 115, 85, 0.3);
  border-radius: 2px;
  transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #8b7355;
  background: rgba(255, 255, 255, 0.7);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.radio-group {
  display: flex;
  gap: 25px;
  margin-top: 10px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

input[type="radio"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #8b7355;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
}

input[type="radio"]:checked::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: #8b7355;
  border-radius: 50%;
}

input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #8b7355;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

input[type="checkbox"]:checked::before {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #8b7355;
  font-size: 14px;
  font-weight: bold;
}

input:disabled,
textarea:disabled,
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn {
  padding: 15px 30px;
  font-family: "Cinzel", "Georgia", serif;
  font-size: 16px;
  letter-spacing: 3px;
  color: #f5f1e8;
  background: #8b7355;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.submit-btn {
  display: block;
  width: 100%;
  padding: 15px 30px;
  margin-top: 35px;
  font-family: "Cinzel", "Georgia", serif;
  font-size: 16px;
  letter-spacing: 3px;
  color: #f5f1e8;
  background: #8b7355;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover,
.btn:hover {
  background: #6b5d52;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.member-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  margin-bottom: 1rem;
}

.signout-btn {
  margin-top: 1rem;
  display: block;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 2px;
  color: #5a4a3a;
  font-size: 14px;

  &:hover {
    color: #6b5d52;
  }
}

.response-container {
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(139, 115, 85, 0.2);
  border-radius: 2px;
  padding: 1rem;
}

.deadline-container {
  margin-bottom: 1rem;
}

.response-container.htmx-added {
  opacity: 0;
}
.response-container {
  opacity: 1;
  transition: opacity 1s ease-out;
}

.success {
  background: rgb(221, 228, 177);
}

.error {
  background: rgb(228, 191, 177);
}

a {
  color: rgb(104, 86, 64);
}

.door-img {
  width: 8rem;
  opacity: 0.2;
  margin: 2rem 0;
}
