/* Color variables for easy theme management */
:root {
  --background: #F9F9F9;
  --primary-text: #333333;
  --accent-color: #FF914D;
  --secondary: #5E503F;
  --highlight: #FDEEDC;
  --border-color: #E0E0E0;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  margin: 0;
  background: var(--background);
  color: var(--primary-text);
  background-image: linear-gradient(rgba(249,249,249,0.92), rgba(249,249,249,0.92)), url('site-bg.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
}
header {
  background: var(--secondary);
  color: #fff;
  padding: 1rem 0;
  text-align: center;
}
header h1 {
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
}
nav {
  margin-top: 1rem;
}
nav button {
  background: var(--highlight);
  color: var(--secondary);
  border: none;
  padding: 0.5rem 1.5rem;
  margin: 0 0.5rem;
  border-radius: 4px 4px 0 0;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
}
nav button.active {
  background-color: var(--accent-color);
  color: white;
}
nav button:hover {
  background-color: #e07c30;
  color: #fff;
  box-shadow: 0 2px 8px rgba(255,145,77,0.10);
}
nav button.active::after {
  content: '';
  display: block;
  height: 3px;
  background: var(--accent-color);
  border-radius: 2px 2px 0 0;
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  animation: slideIn 0.4s;
}
@keyframes slideIn {
  from { width: 0; }
  to { width: 100%; }
}
main {
  max-width: 800px;
  margin: 2rem auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(94,80,63,0.10);
  padding: 2rem;
  font-family: 'Roboto', Arial, sans-serif;
}
/* Hero Section */
.hero-section {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}
.hero-bg {
  background-image: url('hero.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 220px;
  height: 32vw;
  max-height: 320px;
  width: 100%;
  border-radius: 14px;
  position: relative;
  box-shadow: 0 2px 12px rgba(94,80,63,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(51, 51, 51, 0.35);
  backdrop-filter: blur(2px);
  z-index: 2;
}
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  z-index: 3;
  width: 90%;
  text-shadow: 0 2px 8px rgba(51,51,51,0.18);
}
.hero-text h1 {
  font-family: 'Poppins', Arial, sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: #fff;
}
.hero-text p {
  font-size: 1.1rem;
  font-family: 'Roboto', Arial, sans-serif;
  margin: 0;
  color: #fff;
}
.event-description {
  background: var(--highlight);
  color: var(--secondary);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 6px rgba(94,80,63,0.08);
}
.event-description h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.3rem;
  font-weight: 600;
  font-family: 'Poppins', Arial, sans-serif;
  color: var(--secondary);
}
.event-description p {
  margin: 0;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
}
/* Form Design */
#guest-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(94,80,63,0.06);
  padding: 2rem 1.5rem;
}
#guest-form label {
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 1rem;
  color: var(--secondary);
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.3em;
}
.form-icon {
  font-size: 1.1em;
  vertical-align: middle;
}
#guest-form input, #guest-form textarea {
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  font-size: 1rem;
  background: var(--background);
  color: var(--primary-text);
  font-family: 'Roboto', Arial, sans-serif;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: border 0.3s, box-shadow 0.3s;
}
#guest-form input:focus, #guest-form textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 5px rgba(255, 145, 77, 0.3);
  outline: none;
}
#guest-form button {
  background: var(--accent-color);
  color: #fff;
  border: none;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  font-weight: 600;
  letter-spacing: 1px;
  font-family: 'Poppins', Arial, sans-serif;
  box-shadow: 0 1px 4px rgba(255,145,77,0.10);
  display: flex;
  align-items: center;
  gap: 0.5em;
  min-width: 120px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
#guest-form button:hover {
  background: #e07c30;
  transform: scale(1.04);
}
#form-success {
  margin-top: 1rem;
  text-align: center;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 1.05rem;
  background: #D4EDDA;
  color: #155724;
  border-radius: 8px;
  border: 1.5px solid #B7E4C7;
  padding: 0.5rem 1.2rem;
  box-shadow: 0 2px 8px rgba(87, 187, 138, 0.10);
  display: block;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s, transform 0.3s;
  position: static;
  width: fit-content;
  min-width: 120px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
#form-success.popIn {
  opacity: 1;
  transform: scale(1.05);
  animation: popInAnim 0.3s cubic-bezier(.4,2,.6,1);
}
#form-success.fadeOut {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.4s, transform 0.4s;
}
@keyframes popInAnim {
  0% { opacity: 0; transform: scale(0.95); }
  80% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1.05); }
}
.hidden {
  display: none;
}
/* Table UI */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  font-family: 'Roboto', Arial, sans-serif;
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 8px rgba(94,80,63,0.06);
}
thead {
  background: var(--highlight);
  color: var(--secondary);
  font-family: 'Poppins', Arial, sans-serif;
}
th, td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}
th {
  font-weight: 600;
}
tr:nth-child(even) {
  background-color: #f9f9f9;
}
tr:hover {
  background: #fdeedc80;
  transition: background 0.2s;
}
tr:last-child td {
  border-bottom: none;
}
.table-icon {
  font-size: 1.1em;
  vertical-align: middle;
}
/* Fade-in animation for page load */
.fade-in {
  opacity: 0;
  animation: fadeIn ease 1s forwards;
}
@keyframes fadeIn {
  to { opacity: 1; }
}
/* Responsive Typography and Layout */
h1 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}
@media (max-width: 900px) {
  main {
    max-width: 98vw;
    padding: 1rem;
  }
  .hero-section {
    gap: 0.7rem;
  }
  .hero-bg {
    min-height: 140px;
    height: 32vw;
    max-height: 180px;
  }
}
@media (max-width: 600px) {
  th, td {
    padding: 0.5rem;
    font-size: 0.95rem;
  }
  .event-description {
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
  }
  .hero-bg {
    min-height: 90px;
    height: 32vw;
    max-height: 120px;
  }
  .hero-text h1 {
    font-size: 1.5rem;
  }
  #guest-form {
    padding: 1rem;
  }
  /* Responsive table: make table scrollable and stack rows as cards */
  #view-section table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-radius: 8px;
  }
  #view-section thead {
    display: none;
  }
  #view-section tbody, #view-section tr {
    display: block;
    width: 100%;
  }
  #view-section tr {
    margin-bottom: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(94,80,63,0.07);
    padding: 0.5rem 0.7rem;
  }
  #view-section td {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.4rem 0;
    font-size: 1rem;
    border: none;
    position: relative;
  }
  #view-section td:before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--secondary);
    min-width: 80px;
    margin-right: 0.5em;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 0.98em;
    flex-shrink: 0;
  }
} 