/* ================================================
   WEDDING WEBSITE - RSVP & LOGIN PAGE STYLES
   Styles specific to the RSVP and login pages
   ================================================ */

/* Login page styling */
#background-container {
  background-position: center center;
  background-size: cover;
  filter: brightness(0.9);
}

.login-container {
  z-index: 1;
}

.login-container .card {
  backdrop-filter: blur(5px);
  background-color: rgba(255, 255, 255, 0.92);
  border: none;
  border-radius: 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.login-container .card-body {
  padding: 3rem;
}

.login-container .title-decorative {
  color: var(--dark-blue);
  margin-bottom: 0.5rem;
}

.login-container p {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--dark-gray);
}

/* Monogram overlay styling for hero */
.monogram-overlay {
  position: absolute;
  left: 50%;
  top: 38%; /* adjust to sit over names */
  transform: translate(-50%, -50%);
  z-index: 2; /* below the RSVP overlay */
  pointer-events: none;
}

.monogram-overlay img {
  width: clamp(120px, 22vw, 300px);
  opacity: 0.85; /* transparent look */
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}

/* Ensure RSVP overlay sits above monogram */
.rsvp-hero-overlay {
  z-index: 3;
}

/* Transparent background box for hero content */
.hero-content-box {
  background: rgba(92, 131, 158, 0.7); /* var(--primary-blue) with opacity */
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 0;
  padding: 2rem 1.5rem;
  display: inline-block;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 90vw;
}

@media (min-width: 576px) {
  .hero-content-box {
    padding: 2.5rem 2rem;
    max-width: 80vw;
  }
}

@media (min-width: 768px) {
  .hero-content-box {
    padding: 3rem 2.5rem;
    max-width: 70vw;
  }
}

@media (min-width: 992px) {
  .hero-content-box {
    padding: 3.5rem 3rem;
    max-width: 60vw;
  }
}

@media (min-width: 1200px) {
  .hero-content-box {
    padding: 4rem 3.5rem;
    max-width: 50vw;
  }
}

/* Scroll down arrow styling */
.scroll-down-arrow {
  margin-top: 2rem;
  text-align: center;
}

.scroll-text {
  font-size: 0.9rem;
  opacity: 0.9;
  font-weight: 300;
}

.arrow-animation {
  animation: bounce 2s infinite;
  font-size: 1.5rem;
}

.arrow-animation i {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.scroll-down-arrow:hover .arrow-animation i {
  color: rgba(255, 255, 255, 1);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@media (max-width: 767.98px) {
  .scroll-down-arrow {
    margin-top: 1.5rem;
  }
  
  .scroll-text {
    font-size: 0.8rem;
  }
  
  .arrow-animation {
    font-size: 1.2rem;
  }
}

@media (max-width: 767.98px) {
  .monogram-overlay { top: 34%; }
  .monogram-overlay img { width: clamp(100px, 40vw, 200px); }
}

/* Handwriting script for hero names */
.hero-script-title {
  font-family: var(--fancy-font);
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1.1;
  position: relative;
  z-index: 2;
  margin-top: -60px; /* Pull the title up towards monogram */
}

/* Fix mobile hero title spacing to prevent overlap */
@media (max-width: 991px) {
  .hero-script-title {
    margin-top: -20px; /* Reduce negative margin on mobile */
  }
}

/* Slightly larger for a graceful look on md+ */
@media (min-width: 768px) {
  .hero-script-title {
  font-size: 3.25rem; /* base fallback for other contexts */
  }
}

/* Monogram image above the hero names */
.hero-monogram {
  --monogram-spacing: -120px; /* Negative value to pull closer to text */
  width: clamp(130px, 20vw, 350px);
  height: auto;
  display: inline-block;
  margin-bottom: var(--monogram-spacing);
  position: relative;
  z-index: 1;
  filter: brightness(0) invert(1) drop-shadow(0 2px 6px rgba(0,0,0,0.25));
  /* Anti-aliasing for smooth edges */
  image-rendering: auto;
  image-rendering: smooth;
  image-rendering: high-quality;
  image-rendering: -webkit-optimize-contrast;
  /* Hardware acceleration for smoother rendering */
  transform: translateZ(0);
  will-change: transform;
  /* Shape rendering for SVG smoothness */
  shape-rendering: geometricPrecision;
  /* Additional smoothing */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Mobile spacing fix - prevent text overlap */
@media (max-width: 991px) {
  .hero-monogram {
    --monogram-spacing: -30px; /* Same spacing as desktop to prevent overlap */
    margin-bottom: var(--monogram-spacing);
  }
}

@media (min-width: 992px) {
  .hero-monogram {
    --monogram-spacing: -30px; /* Negative spacing to pull text up */
    margin-bottom: var(--monogram-spacing);
  }
}

/* Larger sizes for the login hero title */
.rsvp-hero-overlay .hero-script-title {
  font-size: 2.75rem;
}

@media (min-width: 576px) {
  .rsvp-hero-overlay .hero-script-title {
    font-size: 3.5rem;
  }
}

@media (min-width: 768px) {
  .rsvp-hero-overlay .hero-script-title {
    font-size: 4.25rem;
  }
}

@media (min-width: 992px) {
  .rsvp-hero-overlay .hero-script-title {
    font-size: 5rem;
  }
}

@media (min-width: 1200px) {
  .rsvp-hero-overlay .hero-script-title {
    font-size: 5.5rem;
  }
}

/* Hero section */
.hero-section {
  margin-bottom: 4rem;
  padding: 3rem 0;
}

.hero-section .date {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--dark-gray);
  margin-bottom: 1rem;
}

.hero-section .invitation-text {
  font-family: var(--font-decorative);
  font-size: 2.2rem;
  color: var(--dark-blue);
  font-weight: 500;
  margin-top: 1.5rem;
}

/* Main content styling */
.wedding-content {
  padding: 2rem 0;
}

/* Peacock RSVP Styling */
.peacock-rsvp-container {
  background: #f3f2f0;
  padding: 3rem 0;
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.rsvp-header {
  margin-bottom: 2rem;
  text-align: center;
}

/* RSVP Pink Ribbon with text overlay */
.rsvp-header .ribbon-header-simple {
  position: relative;
  margin: 0 0 2rem 0;
}

.rsvp-header .ribbon-header-simple.pink-theme .ribbon-image {
  max-width: 1500px; /* 150% of 1000px */
}

.rsvp-banner-text {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 800px;
  text-align: center;
  z-index: 10;
}

.rsvp-banner-text .celebrate-title {
  font-family: var(--font-decorative);
  font-size: 2.5rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.rsvp-banner-text .excited-text {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 400;
  color: #000000;
  margin: 0;
}

/* Responsive text sizing */
@media (max-width: 992px) {
  .rsvp-banner-text .celebrate-title {
    font-size: 2rem;
  }
  
  .rsvp-banner-text .excited-text {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .rsvp-banner-text .celebrate-title {
    font-size: 1.5rem;
    letter-spacing: 1px;
  }
  
  .rsvp-banner-text .excited-text {
    font-size: 0.9rem;
  }
  
  .rsvp-banner-text {
    width: 95%;
  }
}

@media (max-width: 576px) {
  .rsvp-banner-text .celebrate-title {
    font-size: 1.2rem;
  }
  
  .rsvp-banner-text .excited-text {
    font-size: 0.8rem;
  }
}

.pink-ribbon-banner {
  background-image: url('../img/pink_ribbon.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 1.2rem 3rem;
  margin: 0 auto 2rem;
  display: flex;
  position: relative;
  width: 70%;
  min-height: 240px;
  align-items: center;
  justify-content: center;
}

/* 
 * Ribbon Text Base Styling
 * - Same font (fancy-font variable) for all ribbon headings
 * - Same color (black) for consistency across all ribbons  
 * - Same size and text shadow for uniform appearance
 * - Y-axis positioning is ribbon-color specific (defined separately)
 */
.ribbon-text-base,
.ribbon-text,
.peach-ribbon-text,
.blue-ribbon-text {
  font-family: var(--fancy-font);
  font-size: 3.5rem;
  color: black;
  font-weight: 400;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9), 0 1px 2px rgba(0, 0, 0, 0.1);
  z-index: 2;
  position: relative;
}

/* Legacy ribbon - Y-axis positioning specific to this ribbon */
.ribbon-text {
  top: 32px;
  left: -10px;
}

.celebrate-title {
  font-family: var(--font-decorative, 'Cormorant Garamond'), serif;
  font-size: 3.5rem;
  font-weight: 400;
  color: black;
  letter-spacing: 2px;
  margin: 2rem 0 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: inline-block;
  font-style: italic;
}

.invitation-names {
  margin: 2rem 0;
}

.names-title {
  font-family: var(--font-decorative, 'Cormorant Garamond'), serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: black;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.invitation-description {
  font-family: var(--font-decorative, 'Cormorant Garamond'), serif;
  font-size: 1.3rem;
  color: black;
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 0;
  line-height: 1.5;
}

.rsvp-form-section {
  background: transparent;
  padding: 3rem 2rem;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  max-width: 1300px;
  margin: 0 auto;
}

.rsvp-instructions {
  padding: 2rem;
}

.invitation-code-text {
  font-family: var(--font-decorative, 'Cormorant Garamond'), serif;
  font-size: 1.2rem;
  color: black;
  font-weight: 400;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.invitation-code-text span {
  font-weight: 600;
}

.rsvp-request {
  font-family: var(--font-decorative, 'Cormorant Garamond'), serif;
  font-size: 1.2rem;
  color: black;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.rsvp-request strong {
  font-weight: 600;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rsvp-form-card {
  background: transparent;
  padding: 2.5rem;
  border: 1px solid var(--primary-blue);
  border-radius: 12px;
  box-shadow: none;
}

.invitation-card {
  background: transparent;
  padding: 2rem;
  border: none;
  box-shadow: none;
}

/* Contact Section Styling */
.contact-section {
  border-bottom: 2px solid var(--primary-blue);
  padding-bottom: 1.5rem;
}

.contact-section h4 {
  font-family: var(--font-decorative, 'Cormorant Garamond'), serif;
  color: var(--black);
  font-weight: 600;
  letter-spacing: 1px;
}

/* Guest List Styling */
.guest-name-row {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(92, 131, 158, 0.2) !important;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(92, 131, 158, 0.1);
}

.guest-name-row:hover {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--primary-blue) !important;
  box-shadow: 0 4px 12px rgba(92, 131, 158, 0.15);
  transform: translateY(-2px);
}

.guest-name-row.attending {
  border: 1px solid rgba(40, 167, 69, 0.3) !important;
  background: rgba(212, 237, 218, 0.3);
}

.guest-name-row.not-attending {
  border: 1px solid rgba(220, 53, 69, 0.3) !important;
  background: rgba(248, 215, 218, 0.3);
}

.guest-name {
  font-family: var(--font-decorative, 'Cormorant Garamond'), serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

/* Decorative Peacock Elements */
.peacock-left,
.peacock-right {
  position: absolute;
  width: 280px;
  height: 400px;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 1;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.peacock-left {
  top: 2%;
  left: -20px;
  background-image: url('../img/peacock_left.webp');
  background-position: center;
}

.peacock-right {
  top: 2%;
  right: -20px;
  background-image: url('../img/peacock_right.webp');
  background-position: center;
}

/* Enhanced Form Styling */
.guest-form-area .form-control,
.contact-section .form-control {
  border: 2px solid var(--primary-blue);
  border-radius: 10px;
  padding: 14px 18px;
  font-family: var(--font-body, 'Montserrat'), sans-serif;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.95);
  transition: all 0.3s ease;
}

.guest-form-area .form-control:focus,
.contact-section .form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(92, 131, 158, 0.2);
  background: rgba(255, 255, 255, 1);
  outline: none;
}

.guest-form-area .btn-primary {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #4a6b80 100%);
  border: none;
  border-radius: 12px;
  padding: 16px 40px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.guest-form-area .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(92, 131, 158, 0.4);
  background: linear-gradient(135deg, #4a6b80 0%, var(--primary-blue) 100%);
}

.guest-form-area .form-check-input {
  border: 2px solid var(--primary-blue);
  border-radius: 10px;
  width: 1.4em;
  height: 1.4em;
  margin-top: 0;
  margin-bottom: 0;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.guest-form-area .form-check-input:checked {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(92, 131, 158, 0.2);
}

/* Ensure radio buttons also appear as square boxes */
.guest-form-area .form-check-input[type="radio"] {
  border: 2px solid var(--primary-blue);
  border-radius: 10px;
  width: 1.2em;
  height: 1.2em;
}

.guest-form-area .form-check-input[type="radio"]:checked {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.guest-form-area label,
.contact-section label {
  font-family: var(--font-body, 'Montserrat'), sans-serif;
  font-weight: 600;
  color: var(--dark-gray);
  margin-bottom: 0.8rem;
  letter-spacing: 0.5px;
  font-size: 0.95rem;
}

.guest-form-area .form-check-label {
  font-weight: 500;
  color: var(--black);
  margin-left: 0.5rem;
  font-size: 1rem;
  line-height: 1.4em;
  margin-top: 0;
  margin-bottom: 0;
}

/* Attendance options styling */
.attendance-options {
  display: flex;
  gap: 2rem;
  margin-top: 0.5rem;
}

.attendance-options .form-check {
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

/* Section Headers */
.dietary-section h5,
.comments-section h5 {
  font-family: var(--font-decorative, 'Cormorant Garamond'), serif;
  color: var(--black);
  font-weight: 600;
  letter-spacing: 1px;
}

/* Section Dividers */
.guest-form-area {
  border-bottom: 2px solid var(--primary-blue);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Dietary Section Checkboxes */
.dietary-section .form-check-input {
  border: 2px solid var(--primary-blue);
  border-radius: 8px;
  width: 1.2em;
  height: 1.2em;
}

.dietary-section .form-check-input:checked {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
}

/* Success Message */
#rsvp-success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border: 2px solid #28a745;
  border-radius: 12px;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 992px) {
  .rsvp-form-section .row > .col-lg-6:first-child {
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  /* Hero section background for mobile */
  .container-fluid.min-vh-100 {
    background-image: url('../img/right.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  
  /* RSVP section background for mobile */
  #rsvp-view {
    background-image: url('../img/right.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
  }
  
  #rsvp-view::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.4);
    z-index: 0;
  }
  
  .peacock-rsvp-container {
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
  }
  
  .rsvp-form-section {
    padding: 2rem 1.5rem;
  }
  
  .celebrate-title {
    font-size: 2.8rem;
    letter-spacing: 2px;
    padding: 1rem 1.8rem;
  }
  
  .rsvp-title {
    font-size: 2.5rem;
  }
  
  .peacock-left,
  .peacock-right {
    width: 150px;
    height: 200px;
    opacity: 0.6;
  }
  
  .peacock-left {
    left: -60px;
  }
  
  .peacock-right {
    right: -60px;
  }
  
  .pink-ribbon-banner {
    padding: 0.6rem 2rem;
    width: 70%;
    min-height: 100px;
  }
  
  .ribbon-text {
    font-size: 1.6rem;
    top: 47px;
  }
  
  .guest-name-row {
    flex-direction: column;
    align-items: flex-start !important;
  }
  
  .guest-name-row .col-md-8 {
    margin-top: 0.8rem;
  }
}

/* Original Responsive adjustments */
@media (max-width: 768px) {
  .hero-section .invitation-text {
    font-size: 1.8rem;
  }
}