/* Modern Minimalist Reset & Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-image: url('prenup\ photo.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 0;
    min-height: 100vh;
    box-sizing: border-box;
} 

.top_monogram{
    filter: drop-shadow(0px 0px 4px rgba(255, 255, 255, 1)) 
           drop-shadow(2px 2px 0px rgba(255, 255, 255, 0.8)) !important;
}

.principal_title {
    display: block;
    margin: 25px auto 10px auto !important; /* Top margin provides spacing below maps container */
    width: 240px;
    height: auto;
}

/* Ito ang magpapares sa dalawang panel para maging dalawang kolum */
.principal-sponsors-container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    gap: 40px;          /* Distansya o espasyo sa pagitan ng kaliwa at kanang listahan */
    margin-top: 15px;   /* Margin sa ilalim ng "Principal Sponsors" na imahe */
    width: 100%;
}

/* Tinatanggal ang default bullets at sinesentro ang text */
.principal-sponsors-container ul {
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center;
}

/* Nilalagyan ng tamang vertical margin o awang ang bawat pangalan */
.principal-sponsors-container li {
    font-size: 15px;
    color: #ffffff;
    line-height: 1.8; /* Mas malaking line-height para hindi magkadikit-dikit ang mga pangalan */
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.5);
}
/* Main section wrapping the entire entourage components together */
.entourage-section {
    width: 100%;
    max-width: 500px;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Elegant Cursive Stylized Subheader Element */
.entourage-title {
    font-family: 'Georgia', serif; /* Or insert your cursive title picture reference asset here */
    font-size: 26px;
    font-style: italic;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0px 1px 4px rgba(0, 0, 0, 0.4);
}

.rsvp-title {
    font-family: 'Georgia', serif; /* Or insert your cursive title picture reference asset here */
    font-size: 26px;
    font-style: italic;
    color: #3b3b3b;
    margin-bottom: 20px;
    text-shadow: 0px 1px 4px rgba(0, 0, 0, 0.4);
}

.right-panel-title {
    font-family: 'Georgia', serif; /* Or insert your cursive title picture reference asset here */
    font-size: 20px;
    font-style: italic;
    color: #070707;
    margin-bottom: 20px;
    text-shadow: 0px 1px 4px rgba(0, 0, 0, 0.4);
    text-align: center;
    /* -webkit-text-stroke: 1px #54a385; */
}

/* Two-column master grid setup matching your sponsor styles */
.entourage-grid {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
}

/* Forces left and right splits to balance identically width-wise */
.entourage-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Individual wrapper housing specific roles and assigned titles */
/* Container holding the title and name */
.role-group {
    display: flex !important;
    flex-direction: row !important;   /* Forces title and name onto the same horizontal line */
    justify-content: space-between;  /* Spreads the title to the left and name to the right */
    align-items: baseline;            /* Aligns the text cleanly along their bottom text baseline */
    width: 100%;
    margin-bottom: 12px;              /* Spacing between different couples/roles */
    gap: 15px;                        /* Prevents text from touching if they get too close */
}

/* Style for the Role Titles (e.g., Groom's Parents) */
.role-group h3 {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-align: left;
    white-space: nowrap;              /* Prevents the title from wrapping to a new line */
}

/* Style for the Guest Names */
.role-group p {
    font-size: 14px;
    color: #e6e6e6;
    margin: 0;
    text-align: right;                /* Aligns all guest names cleanly to the right side */
}


/* Distinct gap splitting the top sponsors from bottom attendants */
.spacer-top {
    margin-top: 25px;
}

/* Officiant Bottom Anchor Styles */
.officiant-footer {
    margin-top: 25px;
    text-align: center;
    width: 100%;
}

.officiant-footer p {
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   MOBILE VIEW ADJUSTMENT: Prevents squeezing on tiny display boundaries
   ========================================================================== */
@media (max-width: 600px) {
    .entourage-grid {
        flex-direction: column !important; /* Stacks column cards comfortably on phones */
        gap: 15px;
    }
    .spacer-top {
        margin-top: 10px; /* Reduces excessive empty blocks on smartphones */
    }
}


.left-panel h1 {
    font-family: 'Elms Sans', sans-serif;
    font-size: 32px;
    margin-top: 5px;
    margin-bottom: 5px;
    text-align: center;
}

/* Container that splits the desktop view into two halves */
.main-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 100vh;
}

/* Left panel configuration */
.left-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 40px;
    color: #ffffff; /* White text looks best on dark photo backdrops */
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
    background-color: rgba(0, 0, 0, 0.4); /* Soft dark layer to make text pop */
}

/* Container holding both columns side-by-side */
.venues-container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-around;
    gap: 40px;                      /* Creates a generous horizontal gap between the two locations */
    margin: 30px auto 15px auto;    /* Adds vertical breathing room above and below the text */
    width: 100%;
    max-width: 450px;
}

/* Individual venue columns */
.venue-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Icons inside the columns */
.venue-column img {
    width: 32px;
    height: auto;
    margin-bottom: 10px;            /* Pushes the title down away from the icon graphic */
}

/* Venue title formatting */
.venue-column h3 {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px 0;              /* Small gap before the address subtitle lines */
    line-height: 1.3;
}

/* Address details formatting */
.venue-column p {
    font-size: 13px;
    color: #d1d1d1;
    margin: 0;
    line-height: 1.4;
}

/* Centered container wrapper for the button link */
.map-button-wrapper { 
    width: 60%;
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 35px;
} /* <-- This bracket was missing! */

/* Map button visual presentation upgrade */
.view-map-btn {
    display: inline-block !important;
    width: auto !important;           /* Keeps it perfectly sized to the text */
    padding: 8px 24px !important;    /* Maintains your precise pill padding */
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.12);
    border: none;
    
    /* Luxury Gold Gradient Background */
    background: linear-gradient(45deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    background-size: 200% auto;
    
    /* Your Requested Custom Accent Text Color */
    color: #954535 !important;
    text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.5); /* Helps text look ultra-crisp against the light gold */
    
    /* Smooth movement transitions */
    transition: background-position 0.4s ease, filter 0.2s ease;
}

/* Elegant Shimmer Hover State */
.view-map-btn:hover {
    background-position: right center; /* Moves the metallic light reflection */
    filter: brightness(0.95);          /* Gives elegant, subtle depth when hovered */
    cursor: pointer;
}


/* ==========================================================================
   MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 500px) {
    .venues-container {
        flex-direction: column !important; /* Stacks columns cleanly on narrow phone boundaries */
        gap: 25px;
    }
}


/* Creates a horizontal row container for the icon and description */
.info-row {
    display: flex;
    flex-direction: row;
    align-items: center;    /* Centers icon and text symmetrically along the horizontal center line */
    gap: 12px;              /* Spacing between the graphic icon and the text characters */
    margin-bottom: 14px;    /* Separate rows nicely from each other */
    width: 100%;
    max-width: 380px;       /* Keeps lines tight and clean on larger displays */
}

/* Forces the church icon to scale down precisely */
.church-icon {
    width: 66px !important;  /* Sets pixel bounding box size */
    height: auto !important; /* Keeps proper scaling aspect ratios intact */
    margin: 0 !important;    /* Overrides generic global image margins */
        filter: drop-shadow(0px 0px 4px rgba(255, 255, 255, 1)) 
           drop-shadow(2px 2px 0px rgba(255, 255, 255, 0.8)) !important;
}

/* Forces the reception icon to scale down precisely */
.reception-icon {
    width: 66px !important;  
    height: auto !important; 
    margin: 0 !important;    
        filter: drop-shadow(0px 0px 4px rgba(255, 255, 255, 1)) 
           drop-shadow(2px 2px 0px rgba(255, 255, 255, 0.8)) !important;
}

.rsvp-main p {
    text-align: center;
}

/* Adjusts the paragraph styling inside these rows */
.info-row p {
    font-size: 15px;
    color: #ffffff;
    margin: 0;               /* Eliminates standard browser paragraph margins */
}

/* Container adjusting spacing between sections */
.info-row-container {
    display: flex;
    flex-direction: column;
    align-items: center; 
    margin-bottom: 24px;
    width: 100%;
    max-width: 320px; /* Constrains it to the same sleek width as your countdown boxes */
}

/* Copies the exact attributes of your green form submit button */
#rsvp-submit-btn {
    display: block;
    width: 100%;
    color: #954535 !important;
    text-decoration: none;
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    margin-top: 10px;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.15);
    border: none;
    
    /* Moving Gold Gradient */
    background: linear-gradient(90deg, #bf953f, #fcf6ba, #b38728, #fcf6ba, #bf953f);
    background-size: 200% auto;
    animation: goldShimmer 4s linear infinite;
    transition: filter 0.2s ease;
}

/* Reuses the same keyframe animation from the container */
@keyframes goldShimmer {
  to { background-position: 200% center; }
}



/* Right panel configuration */
.right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.top_monogram {
    width: 180px;                 
    height: auto;
}

img {
    display: block;
    margin: 0px auto 10px auto; 
    width: 280px;                 
    height: auto;
}

.rsvp-container {
    background-color: rgba(255, 255, 255, 0.85); /* 0.85 means 85% opacity */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
}

/* Container holding countdown boxes */
.countdown-container {
    display: flex !important;       
    flex-direction: row !important; 
    justify-content: center;        
    align-items: center;
    gap: 10px;                      
    margin: 25px auto;              
    width: 100%;
    max-width: 320px;               
}

/* Disenyo ng bawat indibidwal na kahon */
.countdown-box { 
  display: flex !important; 
  flex-direction: column !important; 
  align-items: center; 
  justify-content: center; 
  width: 80px !important; 
  height: 110px !important; 
  border-radius: 4px; 
  background-color: #c2b496; 
  
  /* Gold Gradient Border Logic */
  border: 3px solid transparent; /* Set size and make it transparent */
  background-image: linear-gradient(#c2b496, #c2b496), 
                    linear-gradient(45deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* Big numbers */
.countdown-number {
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: 28px;
    font-weight: bold;
    color: #222222;
    line-height: 1;
}

/* Labels below the numbers */
.countdown-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #777777;
    margin-top: 5px;
    letter-spacing: 1px;
}

h2 {
    font-family: 'Elms Sans', sans-serif;
    color: #333333;
    margin-bottom: 20px;
    text-align: center;
    font-size: 20px;
}


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

label {
    display: block;
    margin-bottom: 6px;
    color: #555555;
    font-size: 14px;
    font-weight: 600;
}

/* Input styling */
input[type="text"],
input[type="tel"] {
    width: 100%;
    padding: 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    color: #333;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="tel"]:focus {
    outline: none;
    border-color: #007bff;
}

/* Phone Input Layout */
.phone-input-container {
    display: flex;
    gap: 10px;
}

.country-code {
    background-color: #f0f2f5;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px;
    font-size: 15px;
    color: #666;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 75px;
}

.phone-field {
    flex: 1;
}

/* Poll / Radio Options Layout */
.poll-options {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.poll-label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-weight: normal;
    transition: all 0.2s;
}

.poll-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #007bff;
}

.poll-label:hover {
    background-color: #f8fafc;
    border-color: #b4c6ef;
}

/* Submit Button */
button[type="submit"] {
    width: 100%;
    background-color: #69ad91;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 10px;
}


.other-details {
    text-align: center
}

#check-name-btn {
    display: block;
    width: 100%; 
    padding: 12px; 
    border: none; 
    border-radius: 4px; 
    font-weight: bold; 
    cursor: pointer; 
    margin-top: 5px;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.15);
    
    /* Option 1: Luxury Gold Gradient Background */
    background: linear-gradient(45deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    background-size: 200% auto;
    
    /* High-Contrast Deep Emerald Green Text */
    color: #954535 !important; 
    text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.4);
    
    /* Smooth transition for interaction */
    transition: background-position 0.4s ease, filter 0.2s ease, transform 0.2s ease;
}

/* Shimmery Hover & Interactive States */
#check-name-btn:hover {
    background-position: right center; /* Shifts the metallic sheen */
    filter: brightness(0.95); /* Subtle depth feedback */
    transform: translateY(-1px); /* Gentle lift effect */
}

#check-name-btn:active {
    transform: translateY(1px); /* Button depresses slightly when clicked */
}



/* ==========================================================================
   MOBILE & TABLET RESPONSIVE STYLING (CRUCIAL FIX FOR PHONES)
   ========================================================================== */
@media (max-width: 992px) {
    .main-wrapper {
        flex-direction: column !important; /* Changes layout from side-by-side to vertical list */
    }

    .left-panel {
        padding: 60px 20px 20px 20px;
        text-align: center;
        min-height: auto; /* Lets the text take up normal spacing without extending full screen */
    }

    .right-panel {
        padding: 10px 15px 40px 15px; /* Adds comfortable padding on phone screens */
        width: 100%;
    }

    .rsvp-container {
        max-width: 100%; /* Ensures the white form scales properly to fill the phone width cleanly */
        padding: 20px;
    }

    .countdown-container {
        gap: 6px; /* Tightens space between countdown boxes so they fit without breaking lines */
    }

    .countdown-box {
        width: 22% !important; /* Forces boxes to scale down evenly with phone dimensions */
        height: 85px !important;
        padding: 5px;
    }

    .countdown-number {
        font-size: 22px; /* Makes numbers slightly smaller so they don't wrap inside boxes */
    }

    .countdown-label {
        font-size: 9px;
    }

    .poll-options {
        flex-direction: column; /* Stacks 'Accept' and 'Decline' buttons vertically on mobile for easier tapping */
        gap: 10px;
    }
}

/* Force absolute full-screen coverage */
#curtain-container {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 999999 !important; /* Ensure it floats above any existing header/images */
  display: flex !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* Base Curtain Setup */
.curtain {
  width: 50% !important; /* Forces exactly half-screen */
  height: 100% !important;
  background: #954535;
  background-image: linear-gradient(90deg, rgba(0,0,0,0.15) 0%, rgba(255,255,255,0.05) 50%, rgba(0,0,0,0.15) 100%);
  background-size: 40px 100%;
  position: relative;
  transition: transform 1.5s cubic-bezier(0.25, 1, 0.5, 1);
  box-sizing: border-box !important;
}

/* Action states when triggered */
#curtain-container.open .left-curtain {
  transform: translateX(-100%);
}
#curtain-container.open .right-curtain {
  transform: translateX(100%);
}

/* The Fixed Prompt Box Placement */
#curtain-prompt {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 1000000 !important;
  color: #ffffff !important;
  font-family: 'Playfair Display', serif, sans-serif;
  font-size: .8rem;
  letter-spacing: 2px;
  background: rgba(0, 0, 0, 0.6) !important;
  padding: 16px 32px !important;
  border-radius: 50px !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  white-space: nowrap !important;
  pointer-events: none; /* Allows the click to register on the container behind it */
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Full viewport overlay container */
.petals-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none; /* Crucial: allows guests to tap through the petals to click buttons */
  z-index: 999;        /* Keeps them above the invitation elements, but behind the curtains */
  overflow: hidden;
}

/* Individual organic pink petal base shapes */
/* Full viewport overlay container */
.petals-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none; /* Allows guests to tap through to click buttons */
  z-index: 999;        /* Above invitation elements, behind the curtains */
  overflow: hidden;
}

/* Individual organic pink petal base shapes */
.petal {
  position: absolute;
  width: 12px;
  height: 16px;
  background: linear-gradient(to bottom, #ffb7c5, #ffa0b4); /* Gentle romantic pink */
  border-radius: 15% 85% 15% 85%;
  opacity: 0.8;
  transform-origin: left top;
  animation: fallDown 8s infinite linear;
}

/* 
   FIX: We mix negative animation delays! 
   A negative delay (like -4s) forces the browser to render the petal 
   as if it has already been falling for 4 seconds when the page loads.
*/
.petal:nth-child(1)  { left: 10%;  top: -20px;  animation-delay: 0s;    animation-duration: 6s; }
.petal:nth-child(2)  { left: 25%;  top: 20vh;   animation-delay: -2s;   animation-duration: 8s; }
.petal:nth-child(3)  { left: 40%;  top: 50vh;   animation-delay: -4s;   animation-duration: 7s; }
.petal:nth-child(4)  { left: 55%;  top: 10vh;   animation-delay: -1.5s; animation-duration: 9s; }
.petal:nth-child(5)  { left: 70%;  top: 70vh;   animation-delay: -5s;   animation-duration: 8s; }
.petal:nth-child(6)  { left: 85%;  top: -20px;  animation-delay: -0.5s; animation-duration: 5s; }
.petal:nth-child(7)  { left: 15%;  top: 40vh;   animation-delay: -3s;   animation-duration: 9s; }
.petal:nth-child(8)  { left: 45%;  top: 80vh;   animation-delay: -6s;   animation-duration: 7s; }
.petal:nth-child(9)  { left: 65%;  top: 30vh;   animation-delay: -2.5s; animation-duration: 8s; }
.petal:nth-child(10) { left: 90%;  top: 60vh;   animation-delay: -4.5s; animation-duration: 6s; }

/* Re-calculated fluid falling animation loop */
@keyframes fallDown {
  0% {
    top: -5vh;
    transform: translateX(0) rotate(0deg);
    opacity: 0;
  }
  5% {
    opacity: 0.8;
  }
  95% {
    opacity: 0.8;
  }
  100% {
    top: 105vh;
    transform: translateX(60px) rotate(360deg);
    opacity: 0;
  }
}

/* Smooth opening states handled natively by the CSS engine */
.curtain-opened .left-curtain {
  transform: translateX(-100%) !important;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.curtain-opened .right-curtain {
  transform: translateX(100%) !important;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.curtain-opened #curtain-prompt {
  opacity: 0 !important;
  transition: opacity 0.4s ease !important;
}
