/* Reset basic defaults */
body, h1, p, label, input, select, textarea, button {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  box-sizing: border-box;
}

/* Page background */
body {
  background-color: #f8f9f4; /* very light off-white */
  color: #333;
  line-height: 1.6;
  padding: 20px;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 2rem;
}
header h1 {
  color: #4a5d23; /* darker green */
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
header p {
  color: #555;
  font-size: 1.1rem;
}

/* New class to match the width and centering of the RSVP form */
.form-width-container {
  max-width: 600px;      /* Exactly the same as .rsvp-form */
  margin: 0 auto 2rem;   /* Centered horizontally with space below */
  padding: 0 1rem;       /* Prevents text from touching screen edges on mobile */
  text-align: left;      /* Usually looks better for long text, but you can use 'center' */
}

/* Adjusting headings inside this container for better spacing */
.form-width-container h2 {
  margin-top: 2rem;
  color: #4a5d23;
  border-bottom: 2px solid #B0C775;
  display: inline-block;
}

.form-width-container p {
  margin-bottom: 1rem;
  text-align: justify;
}

/* Form container */
.rsvp-form {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Form fields */
.rsvp-form label {
  display: block;
  margin-bottom: 1rem;
  font-weight: 500;
  color: #333;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.3rem;
  border: 1px solid #ccd5a3;
  border-radius: 8px;
  font-size: 1rem;
  background: #fafcf7;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  outline: none;
  border-color: #B0C775;
  box-shadow: 0 0 0 3px rgba(176, 199, 117, 0.3);
}

/* Submit button */
.rsvp-form button {
  background-color: #B0C775;
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.1s;
  display: block;
  margin: 1rem auto 0;
}

.rsvp-form button:hover {
  background-color: #9bb65f;
}

.rsvp-form button:active {
  transform: scale(0.97);
}

/* Textarea */
textarea {
  min-height: 80px;
  resize: vertical;
}

/* Smooth show/hide */
#groupCountField,
#accomodationCountField,
#carSpacesField,
#needSpacesField,
#needSpacesCountField,
#dietDetailsField {
  transition: all 0.3s ease;
}

/* Hero section */
.hero {
  max-width: 800px;          /* same width as .content */
  margin: 0 auto 1rem;       /* center it, small space below */
  text-align: center;
  border-radius: 8px;
  overflow: hidden;          /* keep rounded corners on the image */
  background: url("header_picture.jpg") center/cover no-repeat;
  color: #fff;               /* make text white on top of image */
  position: relative;
}

.hero .overlay {
  background: rgba(0, 0, 0, 0.25); /* darken image slightly for readability */
  padding: 2rem 1rem;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 0.3rem;
  color: #fff;
}

.hero p {
  font-size: 1.1rem;
  margin: 0;
  color: #fff;
}

.hero-button {
  display: inline-block;
  margin-top: 0.8rem;
  background: #B0C775;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
}
.hero-button:hover {
  background: #9bb65f;
}

/* Content */
.content {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.content h2 {
  color: #4a5d23;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid #B0C775;
  display: inline-block;
}

.content p, .content li {
  margin-bottom: 0.8rem;
}

/* CTA button */
.cta-button {
  display: inline-block;
  margin: 2rem 0;
  background-color: #B0C775;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 30px;
  font-size: 1.2rem;
  text-decoration: none;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background-color: #9bb65f;
}

.center {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}


/* Footer */
footer {
  background-color: #B0C775;
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: 3rem;
}

/*Location*/

.location {
  margin: 0 0 1.5rem 1.5rem;  /* shift whole block right */
  padding-left: 0.5rem;       /* small inner padding for balance */
  border-left: 3px solid #B0C77520; /* optional subtle accent line */
}

.location h3 {
  margin-bottom: 0.3rem;
  color: #4a5d23;
}

.location p {
  margin: 0.2rem 0;
}

.location .address {
  font-style: italic;
  color: #666;
  font-size: 0.95rem;
}

.location a {
  color: #B0C775;
  font-weight: 600;
  text-decoration: none;
}

.location a:hover {
  text-decoration: underline;
}

/*Admin*/

/* Szélesebb konténer az adminnak */
.admin-content {
  max-width: 95%;      /* Majdnem a teljes képernyő */
  margin: 2rem auto;
  padding: 0 1rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1rem;
}

.filter-bar label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  font-size: 0.9rem;
}

.filter-bar select,
.filter-bar input[type="text"] {
  padding: 0.3rem 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  min-width: 150px;
}

.filter-bar button {
  padding: 0.5rem 1rem;
  background: #B0C775;
  color: #fff;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
}

.filter-bar button:hover {
  background: #9bb65f;
}

.form-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.save-button,
.cancel-button {
  flex: 1; /* make them equal width */
  text-align: center;
  padding: 0.7rem 1rem;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.save-button {
  background: #B0C775;
  color: #fff;
}

.save-button:hover {
  background: #9bb65f;
}

.cancel-button {
  background: #f8d7da;
  color: #721c24;
}

.cancel-button:hover {
  background: #f1b0b7;
}
