/* ==========================================
   1. FONTS & GLOBAL RESET
   ========================================== */


.inter-300 {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}


:root {
  --sage-green: rgb(154, 172, 196);
  --sage-light: rgba(154, 172, 196, 0.1);
  --gallery-black: #111111;
  --gallery-gray: #666666;
  --border-light: rgba(0, 0, 0, 0.12);
  --bg-cream: #faf9f6;
  --header-height: 70px;
}

body {
  margin: 0;
  color: var(--gallery-black);
  background-color: var(--bg-cream);
  font-family: 'Inria Serif', 'Beverly', Georgia, serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Typography Hierarchy */
h1, h2, h3 {
  font-family: 'Inria Serif', 'Beverly', Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
  color: var(--gallery-black);
  letter-spacing: 0.05em;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }

#navbar {
  /* Floats the logo over the full-screen image without taking up vertical space */
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  justify-content: flex-start; /* Aligns logo to the left */
  align-items: center;
  width: 100%;
  height: 90px;
  padding: 0 50px;
  padding-top: 50px; /* Adds a bit of breathing room from the top */
  box-sizing: border-box; /* Prevents padding from causing horizontal scrollbars */
}

.navbar .logo {
  max-height: 60px; /* Slightly refined size for a minimalist escape hatch */
  width: auto;
}

/* ==========================================
   2. ART MUSEUM RSVP PORTAL (STEP 0)
   ========================================== */
.rsvp-page-body {
  background-color: #000; /* Fallback for full-screen image */
}

.rsvp-app-section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 80px;
  box-sizing: border-box;
}

.rsvp-backdrop-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(18, 18, 18, 0.2);
  z-index: 1;
}

.rsvp-portal-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 540px;
  background: rgba(255, 255, 255, 0.96);
  padding: 60px 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.rsvp-kicker {
  font-family: 'Inter', Helvetica, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gallery-gray);
  display: block;
  margin: 0px 0px 12px 0px;
  font-weight: 400;
}

.rsvp-title {
  font-family: 'Inria Serif', 'Beverly', Georgia, serif;
  font-size: 2.5rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-style: italic;
}

.rsvp-instructions {
  font-family: 'Inter', Helvetica, sans-serif;
  font-size: 0.8rem;
  color: #555;
  margin: 12px 0px 30px 0px;
  font-weight: 300;
}

.rsvp-or-divider {
  margin-bottom: 20px;
}

/* Sleek Single-Line Input */
.rsvp-form { margin-bottom: 20px; }

.rsvp-input-wrapper {
  display: flex;
  position: relative;
  transition: border-color 0.3s ease;
}

.rsvp-input-wrapper:focus-within {
  border-bottom: 2px solid var(--sage-green);
}

.rsvp-minimal-input {
  width: 100%;
  background: transparent;
  border: none;
  padding: 14px 40px 14px 8px;
  font-family: 'Inria Serif', serif;
  font-size: 1.25rem;
  color: var(--gallery-black);
  outline: none;
}

.rsvp-minimal-input::placeholder {
  color: #999;
  font-style: italic;
}

.rsvp-submit-btn {
  background: none;
  border: none;
  position: absolute;
  right: 8px;
  top: 67%;
  transform: translateY(-70%);
  font-size: 1.3rem;
  color: var(--gallery-black);
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.rsvp-submit-btn:hover {
  transform: translate(-5px, -70%);
  color: var(--sage-green);
}

/* Modify Link Styling */
.rsvp-card-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rsvp-divider {
  width: 40px;
  height: 1px;
  background: var(--border-light);
  margin: 10px 0px 24px 0px;
}

.rsvp-modify-link {
  text-decoration: none;
  font-size: 0.85rem;
  color: #444;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modify-label { 
  color: #777; 
  font-weight: 300;
  font-family: 'Inter', Helvetica, sans-serif;
}

.modify-action {
  font-family: 'Inter', Helvetica, sans-serif;
  background: none;
  border: none;
  color: #777;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}
.rsvp-modify-link:hover .modify-action { color: var(--gallery-black); }

/* ==========================================
   3. MULTI-STEP FORM CONTAINER & STEPS
   ========================================== */
form#multi-step-form {
  max-width: 640px;
  margin: calc(var(--header-height) + 40px) auto 80px;
  padding: 40px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.form-step {
  display: none;
  flex-direction: column;
  align-items: center;
  width: 100%;
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-step.active {
  display: flex;
}

.form-step h1 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

/* ==========================================
   4. PROGRESS INDICATOR (EDITORIAL STYLE)
   ========================================== */
.progress-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 400px;
  margin: 0 auto 36px;
  padding: 0;
}

.progress-line {
  height: 1px;
  background-color: #e0e0e0;
  flex-grow: 1;
  margin: 0 8px;
  transition: background-color 0.4s ease;
}

.progress-step {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: transparent;
  border: 1px solid #ccc;
  flex-shrink: 0;
  transition: all 0.4s ease;
}

.progress-step.active {
  border-color: var(--sage-green);
  background-color: var(--sage-green);
  transform: scale(1.3);
}

.progress-step.completed {
  background-color: var(--sage-green);
  border-color: var(--sage-green);
}

.progress-step.completed + .progress-line {
  background-color: var(--sage-green);
}

/* ==========================================
   5. GUEST ROWS & TACTILE BUTTONS
   ========================================== */
.party-member {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}

.party-member span {
  font-size: 1.1rem;
  font-family: 'Inria Serif', serif;
  color: var(--gallery-black);
  flex-grow: 1;
}

.party-member button {
  width: auto;
  min-width: 90px;
  margin-left: 10px;
  padding: 8px 16px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background-color: transparent;
  color: var(--gallery-gray);
  border: 1px solid #ddd;
  cursor: pointer;
  transition: all 0.2s ease;
}

.party-member button:hover {
  border-color: var(--gallery-black);
  color: var(--gallery-black);
}

/* Add an active/selected class in your JS (e.g., .btn-selected) */
.party-member button.btn-selected,
.party-member button:active {
  background-color: var(--sage-green);
  border-color: var(--sage-green);
  color: #ffffff;
}

/* Standard Form Inputs (Dietary notes, etc.) */
input[type="text"],
textarea {
  font-family: 'Inter', Helvetica, sans-serif;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ccc;
  font-size: 0.8rem;
  background: #fafafa;
  box-sizing: border-box;
  transition: all 0.2s;
}

input[type="text"]:focus,
textarea:focus {
  background: #fff;
  border-color: var(--sage-green);
  outline: none;
  box-shadow: 0 0 0 3px var(--sage-light);
}

/* Navigation & Action Buttons */
.step-actions {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

button.next-btn, 
button.submit-btn {
  padding: 12px 28px;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background-color: var(--gallery-black);
  color: #ffffff;
  border: 1px solid var(--gallery-black);
  cursor: pointer;
  transition: all 0.3s ease;
}

button.next-btn:hover, 
button.submit-btn:hover {
  background-color: var(--sage-green);
  border-color: var(--sage-green);
}

button.back-button {
  background-color: transparent;
  color: var(--gallery-gray);
  border: 1px solid transparent;
  padding: 12px 20px;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}

button.back-button:hover {
  color: var(--gallery-black);
}

/* ==========================================
   6. CONFIRMATION & RECAP STEP
   ========================================== */
#confirmation-recap {
  width: 100%;
  margin: 20px 0;
}

#confirmation-recap .recap-section {
  background: #fdfdfc;
  border: 1px solid #eaeAEA;
  padding: 20px;
  margin-bottom: 16px;
}

#confirmation-recap .recap-section h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage-green);
  margin-bottom: 12px;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

#confirmation-recap ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

#confirmation-recap li {
  display: flex;
  align-items: center;
  padding: 6px 0;
  font-size: 0.8rem;
}

#confirmation-recap .recap-icon {
  margin-right: 12px;
  font-size: 1.1rem;
}
.recap-icon.accept { color: #4a7c59; }
.recap-icon.decline { color: #c94c4c; }

/* ==========================================
   7. ANIMATIONS & MEDIA QUERIES
   ========================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .rsvp-portal-card,
  form#multi-step-form {
    padding: 30px 20px;
    margin-top: calc(var(--header-height) + 16px);
  }
  
  .party-member {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .party-member div {
    display: flex;
    width: 100%;
    gap: 8px;
  }
  
  .party-member button {
    flex: 1;
    margin: 0;
  }
}

input {
  font-family: 'Inter', sans-serif !important;
  font-style: normal !important;
}

input::placeholder {
  font-family: 'Inter', sans-serif !important;
  font-style: normal !important;
}

#navbar {
  /* Floats the logo over the full-screen image without taking up vertical space */
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between; /* Pushes logo left, exit button right */
  align-items: center;
  width: 100%;
  height: 90px;
  padding: 0 50px;
  padding-top: 50px; /* Adds a bit of breathing room from the top */
  box-sizing: border-box; /* Prevents padding from causing horizontal scrollbars */
}

.navbar .logo {
  max-height: 60px; /* Slightly refined size for a minimalist escape hatch */
  width: auto;
}

/* White Exit / Go Home Button */
.rsvp-home-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #ffffff; /* White icon */
  font-size: 2rem;
  transition: all 0.4s ease;
}

.rsvp-home-btn:hover {
  color: #ffffff;
  transform: scale(1.07); /* Subtle nudge left to echo going back */
}