/* Reset Core 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: 10px;
    overflow-x: hidden;
}

/* Master Visual Shell Canvas 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;
}

/* Traditional Inset Border Frame overlay */
.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;
}

/* MODAL INTERACTION OVERLAY (image_6.png modifications) */
#revealModal {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 2, 4, 0.97);
    backdrop-filter: blur(10px);
    z-index: 99;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.modal-card {
    background: linear-gradient(135deg, #2b0206 0%, #170002 100%);
    border: 2px solid #d4af37;
    border-radius: 15px;
    padding: 40px 25px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    width: 100%;
    max-width: 380px;
    position: relative;
}

/* Pure Geometric CSS Line-Diamond Divider Replacing Emojis */
.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: 60px;
}

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

.modal-card h2 {
    font-family: 'Cinzel', serif;
    font-size: 17px;
    color: #fff1cc;
    margin-bottom: 25px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.input-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #baa068;
    border-radius: 30px;
    padding: 2px;
    margin-bottom: 25px;
}

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

.input-container input::placeholder {
    color: #8f7959;
}

.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: 14px;
    border-radius: 30px;
    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: 0.3s ease;
}

.btn-gold-submit:hover {
    filter: brightness(1.1);
}

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

/* Sacred Text Block Presentation (Clean layout without old logo box from image_7.png) */
.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);
}

/* Traditional Decorative Calligraphy Ceremony Title */
.main-ceremony-title {
    font-family: 'Great Vibes', cursive;
    font-size: 58px;
    color: #ffd700;
    font-weight: 400;
    margin: 5px 0 15px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8), 0 0 10px rgba(212,175,55,0.4);
}

.guest-salutation {
    font-family: 'Cinzel', serif;
    font-size: 15px;
    letter-spacing: 1.5px;
    color: #ffffff;
    margin-bottom: 25px;
}

.guest-salutation span {
    color: #ffd700;
    font-weight: 700;
}

.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;
}

/* Dynamic Structured Informational Block Grid */
.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: 12px;
    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 Footer 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: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    margin-top: 5px;
}

/* Action Hub 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);
    box-shadow: 0 6px 20px rgba(0,0,0,0.6);
    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 ENGINE ANIMATIONS */
.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: fall 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 fall {
    0% { transform: translateY(-20px) rotate(0deg); opacity: 0; }
    10% { opacity: 0.4; }
    90% { opacity: 0.4; }
    100% { transform: translateY(700px) rotate(360deg); opacity: 0; }
}
