/* ── Reset & Base ─────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  color: #3a3a3a;
  background: linear-gradient(135deg, #fdf6f0 0%, #fce4ec 40%, #f3e5f5 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Page Wrapper ─────────────────────────────────── */
.page-wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

/* ── Invitation Header ────────────────────────────── */
.invitation-header {
  text-align: center;
  padding: 50px 30px 40px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.invitation-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #f48fb1, #ce93d8, #90caf9, #a5d6a7, #fff59d, #ffab91);
}

.header-ornament {
  font-size: 2.5rem;
  margin-bottom: 8px;
  opacity: 0.7;
}

.event-title {
  font-family: 'Comfortaa', cursive;
  font-size: 2.4rem;
  font-weight: 700;
  color: #ad1457;
  line-height: 1.2;
  margin-bottom: 6px;
}

.event-subtitle {
  font-family: 'Comfortaa', cursive;
  font-size: 1.1rem;
  font-weight: 400;
  color: #6a1b9a;
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}

.event-details-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  color: #4a4a4a;
}

.detail-icon {
  font-size: 1.15rem;
}

.detail-divider {
  width: 1px;
  height: 20px;
  background: #d1c4e9;
}

.event-address {
  font-size: 0.85rem;
  color: #888;
  margin-top: 4px;
}

/* ── Status Message ───────────────────────────────── */
.status {
  padding: 14px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  animation: slideDown 0.3s ease;
}

.status.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.status.error {
  background: #fce4ec;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

.status.info {
  background: #e8eaf6;
  color: #283593;
  border: 1px solid #9fa8da;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Tab Navigation ───────────────────────────────── */
.tab-nav {
  display: flex;
  gap: 0;
  margin-bottom: 0;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
}

.tab-btn {
  flex: 1;
  padding: 14px 20px;
  border: none;
  background: transparent;
  font-family: 'Comfortaa', cursive;
  font-size: 0.9rem;
  font-weight: 700;
  color: #8e8e8e;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.06em;
  position: relative;
}

.tab-btn:hover {
  color: #6a1b9a;
  background: rgba(255, 255, 255, 0.7);
}

.tab-btn.active {
  color: #ad1457;
  background: rgba(255, 255, 255, 0.95);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background: linear-gradient(90deg, #f48fb1, #ce93d8);
  border-radius: 3px 3px 0 0;
}

/* ── Card ─────────────────────────────────────────── */
.card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 0 0 24px 24px;
  padding: 36px 32px 40px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
  margin-bottom: 30px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.card-title {
  font-family: 'Comfortaa', cursive;
  font-size: 1.65rem;
  font-weight: 700;
  color: #ad1457;
  margin-bottom: 6px;
  text-align: center;
}

.card-subtitle {
  font-family: 'Comfortaa', cursive;
  font-size: 1.2rem;
  color: #ad1457;
  margin-bottom: 18px;
  text-align: center;
}

.card-description {
  font-size: 0.95rem;
  color: #777;
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* ── Form Elements ────────────────────────────────── */
.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 0;
}

.form-group {
  flex: 1;
  margin-bottom: 18px;
}

.form-group.full-width {
  flex-basis: 100%;
}

label {
  display: block;
  font-family: 'Comfortaa', cursive;
  font-size: 0.8rem;
  font-weight: 700;
  color: #555;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.required {
  color: #e91e63;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e0d6eb;
  border-radius: 12px;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  color: #3a3a3a;
  background: #fdfbff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  -webkit-appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #ce93d8;
  box-shadow: 0 0 0 3px rgba(206, 147, 216, 0.15);
}

input::placeholder,
textarea::placeholder {
  color: #bbb;
  font-weight: 300;
}

select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

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

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 13px 32px;
  border: none;
  border-radius: 50px;
  font-family: 'Comfortaa', cursive;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.04em;
  text-transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, #ec407a, #ab47bc);
  color: #fff;
  box-shadow: 0 4px 20px rgba(236, 64, 122, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(236, 64, 122, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: linear-gradient(135deg, #ec407a, #ab47bc);
  color: #fff;
  box-shadow: 0 4px 20px rgba(236, 64, 122, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(236, 64, 122, 0.4);
}

.btn-danger {
  background: transparent;
  color: #e53935;
  border: 2px solid #e53935;
}

.btn-danger:hover {
  background: #e53935;
  color: #fff;
}

.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Center the submit button */
#rsvp-form .btn-primary {
  display: block;
  margin: 8px auto 0;
}

/* ── Lookup Row ───────────────────────────────────── */
.lookup-row {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.lookup-row input {
  flex: 1;
}

/* ── Divider ──────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid #ede7f6;
  margin: 28px 0;
}

/* ── Footer ───────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
  color: #aaa;
  font-family: 'Comfortaa', cursive;
}

/* ── Floating RSVP Button ────────────────────────── */
.fab-rsvp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  padding: 12px 24px;
  background: linear-gradient(135deg, #ec407a, #ab47bc);
  color: #fff;
  font-family: 'Comfortaa', cursive;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(236, 64, 122, 0.4);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.25s ease;
  letter-spacing: 0.04em;
}

.fab-rsvp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(236, 64, 122, 0.5);
}

.fab-rsvp.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 600px) {
  .page-wrapper {
    padding: 20px 12px 40px;
  }

  .invitation-header {
    padding: 36px 20px 30px;
  }

  .event-title {
    font-size: 1.8rem;
  }

  .event-details-bar {
    flex-direction: column;
    gap: 8px;
  }

  .detail-divider {
    display: none;
  }

  .card {
    padding: 24px 18px 30px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .lookup-row {
    flex-direction: column;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

/* ── Hamburger Navigation Menu ───────────────────── */
.hamburger-btn {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1100;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.hamburger-btn:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: #ad1457;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.nav-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1060;
  width: 280px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding: 80px 0 40px;
  overflow-y: auto;
}

.nav-panel.active {
  transform: translateX(0);
}

.nav-panel-title {
  font-family: 'Comfortaa', cursive;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ad1457;
  padding: 0 24px 16px;
  margin-bottom: 8px;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, #ec407a, #ab47bc) 1;
}

.nav-link {
  display: block;
  padding: 14px 24px;
  font-family: 'Comfortaa', cursive;
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  background: rgba(206, 147, 216, 0.08);
  color: #ad1457;
}

/* Scroll offset for navigable sections */
#section-invitation,
#section-schedule,
#section-location,
#section-gifts,
#tab-rsvp,
#section-guests,
#photo-upload-section {
  scroll-margin-top: 60px;
}
