/* styles.css */

body {
  font-family: 'Georgia', serif;
  background-color: #f9f5f0;
  color: #5a3e36;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background-color: #fffaf6;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}

h1 {
  text-align: center;
  color: #a0522d;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.image-container {
  text-align: center;
  margin: 1.5rem 0;
}

.image-container img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.names {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  margin: 0.5rem 0;
  color: #8b4513;
}

.date {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.invitation {
  text-align: center;
  font-style: italic;
  margin-bottom: 2rem;
  color: #a0522d;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

label {
  font-weight: bold;
  margin-top: 0.5rem;
}

input[type="text"],
input[type="number"],
select,
textarea {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
}

.button {
  padding: 0.75rem;
  background-color: #a0522d;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: #8b4513;
}

.conditional {
  display: none;
  padding-top: 1rem;
}


input:invalid, select:invalid, textarea:invalid {
    border-color: #ff6b6b;
}

.error-message {
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

/* Add these to your existing styles.css */
.guest-fieldset {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.guest-fieldset legend {
    font-weight: bold;
    color: #a0522d;
    padding: 0 0.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Style for the dropdown */
#num-guests {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
  margin-bottom: 1rem;
  background-color: white;
}

/* Guest entry styling */
.guest-entry {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #eee;
}

.guest-entry label {
  display: block;
  margin: 0.5rem 0 0.3rem 0;
  font-weight: normal;
}

.guest-entry input,
.guest-entry select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}


/* Guest entry styling */
.guest-entry {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #eee;
  position: relative;
}

.guest-entry label {
  display: block;
  margin: 0.5rem 0 0.3rem 0;
  font-weight: normal;
}

.guest-entry input,
.guest-entry select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}


/* Style guest type differently */
.guest-type {
  border: 2px solid #a0522d;
  font-weight: bold;
}

/* Style infants differently */
.guest-entry select[value="infant"] {
  background-color: #fff0f0;
}

/* Style for decline section */
#decline-section {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  background-color: #fff9f9;
  border-radius: 8px;
  border: 1px solid #ffebeb;
}

#decline-section label {
  color: #a0522d;
  font-weight: bold;
}

#decline-names {
  background-color: #fff5f5;
}

.autumn-leaves-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.08;
  background-image: url('Gemini_Generated_Image_5ojucd5ojucd5oju.jpeg');
  background-size: 400px;
}


/* Transport section styling */
#transport-section {
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 8px;
}

#transport-section h3 {
  color: #a0522d;
  margin-top: 0;
}

#transport-section label {
  display: block;
  margin: 0.5rem 0;
  font-weight: normal;
}

#transport-section input[type="checkbox"] {
  margin-right: 0.5rem;
}

/* RSVP Form Styles */
.error-message {
    color: #dc3545;
    background: #f8d7da;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: none;
}

.guest-entry {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    background: #f9f9f9;
}

.conditional {
    display: none;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

input[type="text"],
select,
textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}