/* Reset Core Base System Parameters */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #0d0202 url('https://www.transparenttextures.com/patterns/black-linen-2.png');
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Marcellus', serif;
    color: #ffd899;
    padding: 15px;
    overflow-x: hidden;
    position: relative;
}

/* Master Visual Shell Card Outer Wrapper */
.page-wrapper {
    position: relative;
    width: 100%;
    max-width: 520px;
    border-radius: 20px;
    background: linear-gradient(180deg, #44040a 0%, #220104 40%, #3a0207 75%, #1c0002 100%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 
                inset 0 0 40px rgba(0, 0, 0, 0.8),
                0 0 30px rgba(186, 12, 29, 0.2);
    border: 3px solid #d4af37;
    overflow: hidden;
    padding: 40px 20px;
    animation: cardBreathingGlow 4s ease-in-out infinite alternate;
    z-index: 2;
}

@keyframes cardBreathingGlow {
    0% { border-color: #d4af37; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 15px rgba(212,175,55,0.2); }
    100% { border-color: #fff1cc; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(212,175,55,0.5); }
}

/* Traditional Inset Border Decorative Overlay Frame */
.page-wrapper::before {
    content: '';
    position: absolute;
    top: 8px; left: 8px; right: 8px; bottom: 8px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 14px;
    pointer-events: none;
    z-index: 1;
}

/* Side Designs Corner Ornaments */
.corner-ornament {
    position: absolute;
    width: 25px;
    height: 25px;
    border: 2px solid #d4af37;
    z-index: 5;
    pointer-events: none;
    opacity: 0.7;
}
.top-left { top: 14px; left: 14px; border-right: none; border-bottom: none; }
.top-right { top: 14px; right: 14px; border-left: none; border-bottom: none; }
.bottom-left { bottom: 14px; left: 14px; border-right: none; border-top: none; }
.bottom-right { bottom: 14px; right: 14px; border-left: none; border-top: none; }

/* REDESIGNED ROYAL MODAL CONTAINER */
#revealModal {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 2, 4, 0.96);
    backdrop-filter: blur(12px);
    z-index: 99;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.modal-card {
    background: linear-gradient(135deg, #310307 0%, #170002 100%);
    border: 3px double #d4af37;
    border-radius: 18px;
    padding: 8px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.85), inset 0 0 30px rgba(0,0,0,0.6);
    width: 100%;
    max-width: 410px;
    position: relative;
}

.modal-inner-border {
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 12px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-decoration-top {
    color: #ffd700;
    font-size: 16px;
    margin-bottom: 5px;
    letter-spacing: 4px;
}

.modal-divider-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    width: 100%;
}

.modal-divider-decoration .left-line,
.modal-divider-decoration .right-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    max-width: 80px;
}

.modal-divider-decoration .center-diamond {
    width: 8px;
    height: 8px;
    background: #d4af37;
    transform: rotate(45deg);
    margin: 0 12px;
    box-shadow: 0 0 8px #ffd700;
}

.modal-card h2 {
    font-family: 'Cinzel', serif;
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: 2px;
    text-align: center;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.modal-instruction {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #f5e1c4;
    margin-bottom: 25px;
    line-height: 1.6;
    opacity: 0.85;
}

.input-container {
    background: rgba(13, 2, 4, 0.6);
    border: 1px solid #d4af37;
    border-radius: 8px;
    padding: 2px;
    margin-bottom: 25px;
    width: 100%;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.5);
}

.input-container input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 14px 15px;
    font-size: 16px;
    font-family: 'Marcellus', serif;
    color: #ffffff;
    text-align: center;
    letter-spacing: 1px;
}

.input-container input::placeholder {
    color: #8f7959;
    letter-spacing: 0px;
}

.btn-gold-submit {
    background: linear-gradient(180deg, #ffe596 0%, #c49733 50%, #916919 100%);
    border: 1px solid #ffe596;
    color: #1a0104;
    font-family: 'Cinzel', serif;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    text-shadow: 0 1px 1px rgba(255,255,255,0.2);
    box-shadow: 0 4px 15px rgba(196, 151, 51, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-gold-submit:hover {
    filter: brightness(1.15);
    box-shadow: 0 6px 20px rgba(196, 151, 51, 0.5);
}

/* PRINCIPAL INVITATION LAYOUT WRAPPER */
.invitation-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sacred-emblem-zone {
    margin-top: 10px;
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.divine-grace-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    letter-spacing: 2.5px;
    color: #ffca7a;
    font-weight: 500;
}

.deity-name {
    font-family: 'Cinzel', serif;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1.5px;
    margin-top: 6px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.main-ceremony-title {
    font-family: 'Great Vibes', cursive;
    font-size: 62px;
    color: #ffd700;
    font-weight: 400;
    margin: 5px 0 15px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8), 0 0 12px rgba(212,175,55,0.5);
}

/* Split Salutation Display */
.guest-salutation {
    margin-bottom: 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.salutation-dear {
    font-family: 'Cinzel', serif;
    font-size: 14px;
    letter-spacing: 3px;
    color: #ffca7a;
    opacity: 0.9;
}

.salutation-name {
    font-family: 'Cinzel', serif;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 0 10px #ffd700, 
                 0 0 20px #ffca7a, 
                 0 0 30px rgba(255, 215, 0, 0.5), 
                 0 2px 5px rgba(0,0,0,0.9);
}

.invitation-message {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: #f5e1c4;
    max-width: 420px;
    margin-bottom: 30px;
    font-weight: 400;
}

/* Grid Structural Information Cards */
.info-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    width: 100%;
    margin: 15px 0 35px 0;
    border-top: 1px dashed rgba(212, 175, 55, 0.3);
    border-bottom: 1px dashed rgba(212, 175, 55, 0.3);
    padding: 20px 0;
}

.info-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-icon {
    font-size: 22px;
    margin-bottom: 6px;
}

.info-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #ffba54;
    margin-bottom: 6px;
}

.info-value {
    font-size: 11px;
    font-weight: bold;
    color: #ffffff;
    line-height: 1.4;
}

.blessing-note {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-style: italic;
    color: #f7e6cc;
    max-width: 340px;
    margin-bottom: 30px;
}

/* Family Signature Modules */
.hosts-section {
    margin-bottom: 40px;
}

.with-love-tag {
    font-family: 'Great Vibes', cursive;
    font-size: 28px;
    color: #ffba54;
}

.hosts-names {
    font-family: 'Cinzel', serif;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    margin-top: 5px;
    text-shadow: 0 0 8px #ffd700, 
                 0 0 18px rgba(255, 202, 122, 0.6), 
                 0 2px 4px rgba(0,0,0,0.8);
}

/* Navigation & Utility Action Link Target Buttons */
.action-buttons-hub {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 440px;
}

.premium-btn {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 40px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.btn-maroon-directions {
    background: linear-gradient(180deg, #941320 0%, #57040d 100%);
    border: 1px solid #df4153;
}

.btn-green-share {
    background: linear-gradient(180deg, #137739 0%, #06421d 100%);
    border: 1px solid #33b865;
}

.premium-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-icon {
    font-size: 20px;
}

.btn-text-wrapper {
    display: flex;
    flex-direction: column;
}

.btn-main-txt {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.btn-sub-txt {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    color: #dddddd;
}

/* Floating Rose Petal Particle Keyframe Engines */
.petals-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
}

.petal {
    position: absolute;
    background: radial-gradient(circle, #ff6b8b 0%, #b51c3d 100%);
    border-radius: 0 100% 0 100%;
    opacity: 0.3;
    animation: petalFall linear infinite;
}

.petal:nth-child(1) { width: 10px; height: 14px; left: 10%; animation-duration: 7s; animation-delay: 0s; }
.petal:nth-child(2) { width: 14px; height: 18px; left: 40%; animation-duration: 9s; animation-delay: 2s; }
.petal:nth-child(3) { width: 8px;  height: 12px; left: 70%; animation-duration: 6s; animation-delay: 1s; }
.petal:nth-child(4) { width: 12px; height: 16px; left: 85%; animation-duration: 8s; animation-delay: 3s; }
.petal:nth-child(5) { width: 10px; height: 14px; left: 25%; animation-duration: 10s; animation-delay: 5s; }

@keyframes petalFall {
    0% { transform: translateY(-20px) rotate(0deg); opacity: 0; }
    10% { opacity: 0.4; }
    90% { opacity: 0.4; }
    100% { transform: translateY(800px) rotate(360deg); opacity: 0; }
}
