/* --- RSVP SECTION --- */
.rsvp-section {
  width: 100vw;
  min-height: 100vh;
  background: #962E51; /* Premium Burgundy */
  color: var(--color-white);
  padding: 150px 5vw;
  display: flex;
  align-items: center;
}

.rsvp-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  gap: 80px;
  width: 100%;
}

/* --- LEFT SIDE: TYPOGRAPHY & ACTIONS --- */
.rsvp-left {
  flex: 1;
  position: sticky;
  top: 150px;
  height: fit-content;
}

.rsvp-title {
  font-family: var(--primary-font);
  font-size: 5.5rem;
  line-height: 1;
  margin: 20px 0 30px;
  font-weight: 600;
  letter-spacing: -2px;
}
.rsvp-title span.accent-text {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

.rsvp-left .story-overline {
  color: #fff;
}

.rsvp-desc {
  font-family: var(--secondary-font);
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.7;
  max-width: 90%;
}

.rsvp-desc strong {
  color: var(--color-white);
  font-weight: 600;
}

/* --- NEW: RSVP ACTIONS (Map & Socials) --- */
.rsvp-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.direction-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  font-family: var(--secondary-font);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.direction-btn svg { width: 16px; height: 16px; }

.direction-btn:hover {
  background: #fff;
  color: #962E51;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: all 0.3s ease;
}

.social-links a svg { width: 18px; height: 18px; opacity: 0.8; transition: opacity 0.3s ease; }

.social-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}
.social-links a:hover svg { opacity: 1; }

/* --- RIGHT SIDE: THE FORM --- */
.rsvp-right {
  flex: 1.2;
}

.tc-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.form-row { width: 100%; }
.form-row.split { display: flex; gap: 30px; }

.form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
}

.form-group label {
  font-family: var(--secondary-font);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.6;
  margin-bottom: 10px;
}

/* Base Input Styles */
.tc-form input,
.tc-form select,
.tc-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 0 15px 0;
  color: var(--color-white);
  font-family: var(--secondary-font);
  font-size: 1.1rem;
  outline: none;
  transition: border-color 0.3s ease;
  border-radius: 0;
}

/* --- UPDATED: Focus State is now PURE WHITE --- */
.tc-form input:focus,
.tc-form select:focus,
.tc-form textarea:focus {
  border-bottom-color: #ffffff;
}

.tc-form .btn-primary {
  display: inline-block;
  padding: 16px 40px;
  border-radius: 50px;
  background: linear-gradient(to right, #ffffff, #fefefe);
  color: #000000;
  text-decoration: none;
  font-family: var(--secondary-font);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 0 10px 20px rgba(255, 107, 74, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 10px;
}

/* Placeholders */
.tc-form input::placeholder,
.tc-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
  font-weight: 300;
}

/* Custom Select Dropdown Styling */
.tc-form select {
  appearance: none; 
  cursor: pointer;
}

.tc-form select option {
  background: #1a1a1a;
  color: #fff;
  padding: 10px;
}

/* Custom dropdown arrow */
.form-group:has(select)::after {
  content: '▼';
  position: absolute;
  right: 0;
  bottom: 20px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

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

.form-submit {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

#rsvp-submit-btn {
  cursor: pointer;
  border: none;
}

.form-message {
  font-family: var(--secondary-font);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
}

/* --- FOOTER --- */
.site-footer {
  background: #fde5e5;
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.site-footer p {
  font-family: var(--secondary-font);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  opacity: 0.4;
  color: #000;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 900px) {
  .rsvp-container { flex-direction: column; gap: 50px; }
  .rsvp-left { position: relative; top: 0; text-align: center; }
  .rsvp-title { font-size: 4rem; }
  .rsvp-desc { max-width: 100%; margin: 0 auto; }
  
  /* Center actions on mobile */
  .rsvp-actions { justify-content: center; }
  
  .form-row.split { flex-direction: column; gap: 30px; }
  .form-submit { align-items: center; }
  #rsvp-submit-btn { width: 100%; }
}

/* --- OVERRIDE BROWSER AUTOFILL BACKGROUND --- */
.tc-form input:-webkit-autofill,
.tc-form input:-webkit-autofill:hover, 
.tc-form input:-webkit-autofill:focus, 
.tc-form input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0px 1000px #962E51 inset !important; /* Forces the burgundy background */
    -webkit-text-fill-color: #ffffff !important; /* Forces the text to stay white */
    caret-color: #ffffff; /* Keeps the typing cursor white */
    transition: background-color 5000s ease-in-out 0s;
}