/* ==========================================================================
   SECTION 10: RSVP & WISHES (BUKU TAMU & DOA RESTU)
   Romantic Pink Edition - Studio 1 Invitation
   ========================================================================== */

.section-rsvp {
    background: linear-gradient(180deg, rgba(254, 236, 244, 0.94) 0%, rgba(255, 245, 248, 0.65) 20%, rgba(255, 240, 246, 0.65) 75%, rgba(254, 236, 244, 0.94) 100%),
                url('../images/bg-jakarta03.webp') center top / cover no-repeat;
    padding: 65px 20px 80px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.rsvp-bg-floral {
    position: absolute;
    bottom: -20px;
    left: -30px;
    width: 150px;
    opacity: 0.22;
    pointer-events: none;
    z-index: 1;
}

.rsvp-bg-floral img {
    width: 100%;
    height: auto;
    display: block;
    transform: rotate(-15deg);
}

.rsvp-container {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.rsvp-container .section-container {
    padding: 0;
}

.rsvp-intro {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: #5c434f;
    margin: -4px auto 28px;
    line-height: 1.6;
    text-align: center;
    max-width: 380px;
}

/* ==========================================================================
   RSVP FORM CARD
   ========================================================================== */

.rsvp-form-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 244, 249, 0.92) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 22px;
    padding: 30px 24px 26px;
    box-shadow: 0 14px 36px rgba(180, 45, 95, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    border: 1.5px solid rgba(232, 62, 140, 0.25);
    border-top: 4px solid #e83e8c;
    border-bottom: 2.5px solid rgba(232, 62, 140, 0.45);
    margin-bottom: 35px;
    position: relative;
    text-align: left;
}

.form-group {
    margin-bottom: 18px;
    text-align: left;
    transition: all 0.3s ease;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 700;
    color: #2b121c;
    margin-bottom: 7px;
}

.form-group label i {
    color: #e83e8c;
    font-size: 0.88rem;
    width: 16px;
    text-align: center;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1.5px solid rgba(232, 62, 140, 0.28);
    background: rgba(255, 255, 255, 0.95);
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: #2b121c;
    transition: all 0.25s ease;
    outline: none;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: #e83e8c;
    box-shadow: 0 0 0 3.5px rgba(232, 62, 140, 0.2);
    background: #ffffff;
}

.form-control::placeholder {
    color: #9c848f;
    font-size: 0.88rem;
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e83e8c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
    line-height: 1.55;
}

.btn-submit-rsvp {
    width: 100%;
    background: linear-gradient(135deg, #ff758c 0%, #e83e8c 48%, #a21253 100%);
    color: #ffffff;
    border: none;
    padding: 14px 24px;
    border-radius: var(--radius-pill, 50px);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.8px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(232, 62, 140, 0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

.btn-submit-rsvp:hover {
    background: linear-gradient(135deg, #ff8ba0 0%, #f04d98 48%, #b91761 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 62, 140, 0.52);
    color: #ffffff;
}

.btn-submit-rsvp:active {
    transform: translateY(0);
}

.btn-submit-rsvp:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================================================
   WISHES / GUESTBOOK CARD & LIST
   ========================================================================== */

.wishes-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 244, 249, 0.92) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 22px;
    padding: 26px 20px 22px;
    box-shadow: 0 14px 36px rgba(180, 45, 95, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    border: 1.5px solid rgba(232, 62, 140, 0.25);
    border-top: 4px solid #e83e8c;
    border-bottom: 2.5px solid rgba(232, 62, 140, 0.45);
    text-align: left;
    position: relative;
}

.wishes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(232, 62, 140, 0.2);
    padding-bottom: 14px;
    margin-bottom: 18px;
}

.wishes-count {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.98rem;
    font-weight: 800;
    color: #a21253;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wishes-header-tag {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #d81b60;
    background: rgba(255, 235, 245, 0.95);
    border: 1px solid rgba(232, 62, 140, 0.3);
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.wishes-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 440px;
    overflow-y: auto;
    padding-right: 6px;
    margin-right: -4px;
}

/* Custom Smooth Scrollbar */
.wishes-list::-webkit-scrollbar {
    width: 6px;
}

.wishes-list::-webkit-scrollbar-track {
    background: rgba(244, 143, 177, 0.15);
    border-radius: 10px;
}

.wishes-list::-webkit-scrollbar-thumb {
    background: #f48fb1;
    border-radius: 10px;
}

.wishes-list::-webkit-scrollbar-thumb:hover {
    background: #e83e8c;
}

/* Wish Item Card */
.wish-item-card,
.wish-item {
    background: linear-gradient(135deg, #ffffff 0%, #fff6fa 100%);
    border-radius: 16px;
    padding: 16px 18px;
    border: 1px solid rgba(232, 62, 140, 0.2);
    border-left: 3.5px solid #e83e8c;
    box-shadow: 0 4px 14px rgba(180, 45, 95, 0.06);
    transition: all 0.25s ease;
}

.wish-item-card:hover,
.wish-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(180, 45, 95, 0.12);
    border-color: rgba(232, 62, 140, 0.45);
}

.wish-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 10px;
}

.wish-item-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.wish-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff758c 0%, #e83e8c 50%, #a21253 100%);
    border: 1.5px solid rgba(255, 235, 245, 0.9);
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(232, 62, 140, 0.3);
}

.wish-name,
.wish-author {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.94rem;
    color: #2b121c;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
}

.wish-time {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.72rem;
    color: #8c737d;
    margin-top: 2px;
}

/* Status Badges */
.wish-status-badge,
.wish-status {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.wish-status-hadir,
.wish-status.hadir {
    background: #edf7ee;
    color: #1e7025;
    border: 1px solid rgba(30, 112, 37, 0.25);
}

.wish-status-hadir::before,
.wish-status.hadir::before {
    content: '●';
    font-size: 0.60rem;
    color: #1e7025;
}

.wish-status-tidak-hadir,
.wish-status.tidak-hadir {
    background: #fff0f3;
    color: #c2185b;
    border: 1px solid rgba(194, 24, 91, 0.25);
}

.wish-status-tidak-hadir::before,
.wish-status.tidak-hadir::before {
    content: '●';
    font-size: 0.60rem;
    color: #c2185b;
}

.wish-status-ragu,
.wish-status.ragu {
    background: #fef7ec;
    color: #b45309;
    border: 1px solid rgba(180, 83, 9, 0.25);
}

.wish-status-ragu::before,
.wish-status.ragu::before {
    content: '●';
    font-size: 0.60rem;
    color: #b45309;
}

.wish-message,
.wish-text {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: #4a3a42;
    line-height: 1.62;
    word-break: break-word;
    margin: 4px 0 0 0;
}

/* ==========================================================================
   MODAL OVERLAY & SUCCESS POPUP (ROMANTIC PINK EDITION)
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(43, 18, 28, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: fadeInModal 0.28s ease forwards;
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #fff4f8 100%);
    border-radius: 24px;
    padding: 35px 26px 28px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    border: 2px solid rgba(232, 62, 140, 0.3);
    box-shadow: 0 20px 48px rgba(162, 18, 83, 0.25);
    position: relative;
    box-sizing: border-box;
    animation: popUpModal 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 117, 140, 0.15) 0%, rgba(232, 62, 140, 0.25) 100%);
    border: 2px solid rgba(232, 62, 140, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    color: #e83e8c;
    font-size: 2rem;
    box-shadow: 0 6px 18px rgba(232, 62, 140, 0.2);
}

.modal-content h2 {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1.55rem;
    color: #a21253;
    font-weight: 700;
    margin: 0 0 10px;
}

.modal-content p {
    font-family: var(--font-body);
    font-size: 0.90rem;
    color: #5c434f;
    line-height: 1.6;
    margin: 0 0 24px;
}

.modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff758c 0%, #e83e8c 48%, #a21253 100%);
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(232, 62, 140, 0.35);
    transition: all 0.25s ease;
}

.modal-close:hover {
    background: linear-gradient(135deg, #ff8ba0 0%, #f04d98 48%, #b91761 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(232, 62, 140, 0.5);
    color: #ffffff;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popUpModal {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}
