/*
Theme Name: Tema 71 Wedding Invitation Theme
Theme URI: https://example.com/tema71-wedding-theme
Author: Antigravity
Author URI: https://example.com/
Description: Custom WordPress digital invitation theme based on the Elegant Green & Gold Tema 71 layout, with full-screen cover animation, background music controller, functional countdown, and responsive styles.
Version: 1.0.0
Text Domain: tema71-wedding
*/

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Lora:ital,wght@0,400..700;1,400..700&family=Pinyon+Script&family=Roboto:wght@300;400;500;700&display=swap');

/* --- Theme Variables & Root Settings --- */
:root {
    --primary-color: #1b382b; /* Deep green accent */
    --secondary-color: #d4af37; /* Elegant gold accent */
    --accent-color: #9e7a28; /* Gold dark */
    --light-bg: #f9f6f0; /* Soft warm cream */
    --white: #ffffff;
    --text-dark: #2c3531;
    --text-muted: #5c6762;
    --border-color: rgba(212, 175, 55, 0.25);
    --font-script: 'Pinyon Script', cursive;
    --font-title: 'Cinzel', serif;
    --font-body: 'Lora', serif;
    --font-sans: 'Roboto', sans-serif;
    --shadow: 0 10px 40px rgba(27, 56, 43, 0.08);
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    background-color: var(--primary-color);
    color: var(--text-dark);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--primary-color);
}
::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 3px;
}

/* Cover / Splash Screen */
.modalx {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 99999;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 1.2s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.8s ease;
    overflow: hidden;
}

.modalx .overlayy {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* Soft dark overlay on the photo */
    z-index: 1;
}

.modalx-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 2;
    pointer-events: none;
}

.modalx.removeModals {
    transform: translateY(-100vh);
    opacity: 0;
    pointer-events: none;
}

.content-modalx {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #4F3858;
    max-width: 600px;
    width: 90%;
    padding: 30px 20px;
    border: none;
    border-radius: 0;
    background: transparent;
    margin: 0 20px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.info_modalx {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    justify-content: space-between;
}

/* Top group: Wedding Invitation, name, date */
.info_modalx .wdp-top-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding-top: 10px;
}

/* Bottom group: Dear, name tamu, tombol */
.info_modalx .wdp-bottom-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding-bottom: 20px;
}

.info_modalx .wdp-txt-the-wedding {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #4F3858;
    margin-bottom: 10px;
}

.info_modalx .wdp-mempelai {
    font-family: var(--font-title);
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 700;
    margin: 15px 0;
    color: #4F3858;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.info_modalx .wdp-tgl {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    letter-spacing: 2px;
    color: #2c3531;
    font-weight: 500;
    margin-bottom: 0;
}

.info_modalx .wdp-dear {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: #4F3858;
}

.info_modalx .wdp-name {
    font-family: var(--font-title);
    font-size: 1.4rem;
    font-weight: 700;
    color: #4F3858;
    margin-bottom: 0;
    text-transform: capitalize;
}

/* Mouse Scroll Animation */
.scroll-indicator {
    margin: 20px auto 0;
}

.mouse-wheel {
    width: 24px;
    height: 42px;
    border: 2px solid #4a2c53;
    border-radius: 15px;
    margin: 0 auto;
    position: relative;
}

.wheel-dot {
    width: 4px;
    height: 8px;
    background-color: #4a2c53;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollMouse 1.5s infinite;
}

@keyframes scrollMouse {
    0% { opacity: 1; top: 6px; }
    50% { opacity: 0.3; top: 16px; }
    100% { opacity: 0; top: 22px; }
}


.wdp-button-wrapper button {
    background-color: #1F111E;
    color: #ffffff;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 1px;
    padding: 10px 24px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    margin-top: 15px;
    text-transform: uppercase;
}

.wdp-button-wrapper button:hover {
    background-color: #4a2c53;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(74, 44, 83, 0.3);
}

.wdp-button-wrapper button svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* --- Main Layout --- */
.invitation-wrapper {
    max-width: 480px; /* Smartphone focused width like the example */
    margin: 0 auto;
    background-color: var(--light-bg);
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

/* Sections */
section {
    padding: 60px 25px;
    text-align: center;
    position: relative;
}

.section-title {
    font-family: var(--font-title);
    color: var(--primary-color);
    font-size: 1.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 25px;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 40px;
    height: 1px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
}

/* Hero / Opening Motion Section */
.hero-wrapper {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 20px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-wrapper::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(27, 56, 43, 0.7);
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-logo img {
    max-width: 120px;
    margin-bottom: 20px;
    filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.3));
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.hero-mempelai {
    font-family: var(--font-script);
    font-size: 3.5rem;
    margin: 15px 0;
    line-height: 1.2;
}

.hero-date {
    font-family: var(--font-title);
    font-size: 1rem;
    letter-spacing: 2px;
    color: var(--white);
    opacity: 0.9;
}

/* We Found Love (Quote) */
.quote-section {
    background-color: var(--light-bg);
}

.quote-image-wrapper {
    width: 100%;
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px double var(--secondary-color);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.quote-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quote-title {
    font-family: var(--font-title);
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.quote-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-style: italic;
}

/* Bride & Groom Section */
.couple-section {
    background-color: var(--white);
}

.couple-bismillah {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.couple-intro {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

.profile-card {
    margin-bottom: 50px;
}

.profile-img-holder {
    width: 220px;
    height: 300px;
    margin: 0 auto 20px;
    border-radius: 120px 120px 0 0;
    overflow: hidden;
    border: 4px double var(--secondary-color);
    box-shadow: var(--shadow);
}

.profile-img-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-callname {
    font-family: var(--font-script);
    font-size: 3rem;
    color: var(--primary-color);
    line-height: 1.1;
    margin-bottom: 5px;
}

.profile-fullname {
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.profile-parents {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.profile-instagram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    margin-top: 15px;
    text-decoration: none;
    transition: var(--transition);
}

.profile-instagram:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: scale(1.15);
}

/* Event Details & Countdown */
.event-section {
    background-color: var(--light-bg);
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.countdown-card {
    flex: 1;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.countdown-val {
    display: block;
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.countdown-unit {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.event-box {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.event-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(27, 56, 43, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.event-name {
    font-family: var(--font-title);
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.event-time-info, .event-loc-info {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin: 8px 0;
    line-height: 1.6;
}

.event-btn {
    display: inline-block;
    padding: 10px 24px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 25px;
    margin-top: 15px;
    transition: var(--transition);
}

.event-btn:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Digital Envelope (Kado Digital) */
.gift-section {
    background-color: var(--white);
}

.gift-card {
    background-color: var(--light-bg);
    border: 1px dashed var(--secondary-color);
    border-radius: 12px;
    padding: 25px 20px;
    margin: 25px 0;
    text-align: center;
}

.gift-bank-name {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.gift-acc-number {
    font-family: var(--font-sans);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-dark);
    margin: 10px 0;
}

.gift-acc-holder {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.gift-copy-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 8px 20px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.gift-copy-btn:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* RSVP and Wishes Section */
.rsvp-section {
    background-color: var(--light-bg);
}

.rsvp-box {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #fafafa;
    color: var(--text-dark);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
}

textarea.form-control {
    resize: none;
    height: 100px;
}

.rsvp-submit-btn {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.rsvp-submit-btn:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Comments kit list */
.comments-list-wrapper {
    margin-top: 30px;
    text-align: left;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 5px;
}

.comment-item {
    background: var(--white);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 3px solid var(--secondary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.comment-author {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary-color);
}

.comment-badge {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
}

.comment-badge.hadir {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.comment-badge.absen {
    background-color: #ffebee;
    color: #c62828;
}

.comment-body {
    font-size: 0.85rem;
    color: var(--text-dark);
    line-height: 1.5;
}

/* Audio Player Floating Button */
.audio-floating-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--white);
    border: 1px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    z-index: 9999;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.audio-floating-btn:hover {
    transform: scale(1.1);
}

.audio-floating-btn svg {
    width: 18px;
    height: 18px;
    fill: var(--primary-color);
}

.audio-floating-btn.playing svg {
    animation: rotateDisc 3s linear infinite;
}

@keyframes rotateDisc {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Font Adjustment */
@media (max-width: 360px) {
    .info_modalx .wdp-mempelai {
        font-size: 3rem;
    }
}

/* ===== Wedding Gift Section - Compact Spacing ===== */
/* Reduce gap between Bank 1, Bank 2, and Kirim Kado */
#amplop .elementor-element-75b1371,
#amplop .elementor-element-2788930b,
#amplop .elementor-element-2831a3cc {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

#amplop .elementor-element-75b1371 .elementor-column,
#amplop .elementor-element-2788930b .elementor-column,
#amplop .elementor-element-2831a3cc .elementor-column {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

#amplop .elementor-element-75b1371 .elementor-widget-wrap,
#amplop .elementor-element-2788930b .elementor-widget-wrap,
#amplop .elementor-element-2831a3cc .elementor-widget-wrap {
    padding: 4px 10px !important;
}

/* Compact the divider between bank items */
#amplop .elementor-element-568f3082,
#amplop .elementor-element-3f8b32bf {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Reduce section-level min-height on #amplop child sections */
#amplop > .elementor-container > .elementor-column > .elementor-widget-wrap > section {
    min-height: unset !important;
}

