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

body {
  font-family: 'Georgia', serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f7f4;
}

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

header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ddd;
}

h1 {
  font-size: 2.5rem;
  color: #8b6b43;
  margin-bottom: 10px;
  letter-spacing: 0.5px; /* Enhanced typography */
}

.subtitle {
  font-style: italic;
  color: #666;
}

h2 {
  color: #8b6b43;
  margin-bottom: 15px;
  font-size: 1.8rem;
  letter-spacing: 0.3px; /* Enhanced typography */
}

section {
  margin-bottom: 40px;
  background: white;
  padding: 30px; /* Increased padding for better white space */
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease; /* Added transition for hover effect */
}

section:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.15); /* Subtle hover effect on sections */
}

.event-details p {
  margin-bottom: 15px; /* Slightly increased for better readability */
}

.form-group {
  margin-bottom: 25px; /* Increased for better spacing */
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 12px; /* Slightly increased padding */
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease; /* Smooth transition for focus effect */
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
  border-color: #8b6b43;
  outline: none;
  box-shadow: 0 0 5px rgba(139, 107, 67, 0.3); /* Subtle focus effect */
}

.radio-group {
  display: flex;
  gap: 20px;
  margin-top: 5px;
}

.radio-group label {
  font-weight: normal;
  margin-bottom: 0;
}

a {
  color: #8b6b43;
  text-decoration: none;
  transition: color 0.2s ease, border-bottom 0.2s ease; /* Smooth transition */
  border-bottom: 1px solid transparent;
}

a:hover {
  color: #a68158;
  border-bottom: 1px solid #a68158; /* Subtle underline effect on hover */
}

button {
  background-color: #8b6b43;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease; /* Changed to include transform and shadow */
}

button:hover {
  background-color: #a68158;
  transform: translateY(-2px); /* Button rises slightly */
  box-shadow: 0 4px 8px rgba(139, 107, 67, 0.3); /* Matching shadow color */
}

footer {
  text-align: center;
  margin-top: 30px; /* Increased spacing */
  padding-top: 20px;
  border-top: 1px solid #ddd;
  color: #666;
  font-style: italic;
}

.success-message {
  background-color: #dff0d8;
  color: #3c763d;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
  text-align: center;
  transition: opacity 0.5s ease; /* Fade in effect can be triggered with JS */
}

.error-message {
  background-color: #f2dede;
  color: #a94442;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
  text-align: center;
  transition: opacity 0.5s ease; /* Fade in effect can be triggered with JS */
}

/* New - Subtle fade-in animation for sections (requires JS to add class) */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  .container {
    padding: 10px;
  }
  section {
    padding: 15px;
  }
  /* Animation for form submission */
.submitting {
  position: relative;
  pointer-events: none;
  opacity: 0.8;
}

.submitting::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
/* Loading indicator styles that work with custom themes */
.is-loading {
  position: relative;
  min-height: 50px;
}

.loading-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top-color: currentColor; /* Uses the current text color */
  animation: spin 1s infinite linear;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

}