/* =======================================
   RSVP - PREMIUM CLEAN STYLE (NEUTRAL)
======================================= */

/* =====================
   1. FORM CONTAINER
===================== */
#rsvp form {
    max-width: 520px;
    margin: 0 auto;
    padding: 24px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.02);
    text-align: left;
    font-family: 'Inter', 'Poppins', sans-serif;
}

/* =====================
   2. INPUT & FIELD
===================== */
#rsvp form input[type="text"],
#rsvp form textarea,
#rsvp form select {
    width: 100%;
    padding: 13px 14px;
    margin-bottom: 16px;

    border: 1px solid #e5e5e5;
    border-radius: 10px;

    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #333;

    background: #fafafa;
    transition: all 0.25s ease;
}

#rsvp form input::placeholder,
#rsvp form textarea::placeholder {
    color: #aaa;
}

#rsvp form input:focus,
#rsvp form textarea:focus,
#rsvp form select:focus {
    border-color: #999;
    background: #fff;
    outline: none;
}

/* TEXTAREA */
#rsvp form textarea {
    resize: vertical;
    min-height: 110px;
}

/* =====================
   3. BUTTON
===================== */
#rsvp form button[type="submit"] {
    display: inline-block;
    padding: 12px 28px;

    background: linear-gradient(135deg, #2d6a4f, #1b4332); /* tombol kirim RSVP */
    color: #fff;

    border: none;
    border-radius: 8px;

    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;

    cursor: pointer;
    box-shadow: 0 4px 14px rgba(27, 67, 50, 0.25);
    transition: all 0.25s ease;
}

#rsvp form button[type="submit"]:hover {
    background: linear-gradient(135deg, #1b4332, #12372a);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(27, 67, 50, 0.35);
}

#rsvp form button[type="submit"]:active {
    transform: scale(0.98);
}

#rsvp form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =====================
   4. STATUS MESSAGE
===================== */
.status-message {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    text-align: center;
    font-weight: 500;
}

.status-message.success {
    background: #e9f7ef;
    color: #1e7e34;
    border: 1px solid #c3e6cb;
}

.status-message.error {
    background: #fdecea;
    color: #b02a37;
    border: 1px solid #f5c6cb;
}

/* =====================
   5. TOTAL UCAPAN
===================== */
#totalUcapanCount {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    max-width: 520px;
    margin: 0 auto 18px;

    font-size: 14px;
    font-weight: 500;
    color: #444;
}

#totalUcapanCount i {
    margin-right: 8px;
    font-size: 16px;
    color: #777;
}

/* =====================
   6. LIST CONTAINER
===================== */
#rsvpListContainer {
    max-width: 700px;
    margin: 20px auto 0;
}

#rsvpList {
    max-height: 420px;
    overflow-y: auto;
    padding-right: 8px;
}

/* Scrollbar halus */
#rsvpList::-webkit-scrollbar {
    width: 6px;
}

#rsvpList::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

/* =====================
   7. CARD UCAPAN
===================== */
.ucapan-card {
    background: #ffffff;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 12px;

    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);

    transition: all 0.2s ease;
}

.ucapan-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

/* HEADER */
.ucapan-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 6px;
}

/* NAMA */
.ucapan-card strong {
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

/* UCAPAN */
.ucapan-card .ucapan-text {
    margin: 10px 0 6px;
    padding-top: 8px;
    border-top: 1px solid rgba(0,0,0,0.06); /* garis tipis samar */
    
    line-height: 1.6;
    font-size: 14px;
    color: #555;
    text-align: left;
}

/* WAKTU */
.ucapan-card small {
    display: block;
    text-align: right;
    font-size: 11px;
    color: #999;
    font-style: italic;
}

/* =====================
   8. BADGE KEHADIRAN
===================== */
.kehadiran-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 4px 10px;
    border-radius: 999px;

    font-size: 11px;
    font-weight: 600;

    white-space: nowrap;
}

/* Hadir */
.status-Hadir {
    background: #e6f4ea;
    color: #2e7d32;
}

/* Tidak Hadir */
.status-TidakHadir {
    background: #fdecea;
    color: #c62828;
}

/* Ragu */
.status-MasihRagu {
    background: #fff8e1;
    color: #f57c00;
}

/* =====================
   9. JUMLAH TAMU WRAP
===================== */
#jumlahTamuWrap {
    transition: all 0.25s ease;
}

/* ============================================================
   RSVP - UCAPAN & DOA
   ============================================================ */

.comments-section {
    width: 100%;
    max-width: 720px;
    margin: 40px auto 0;
    padding: 0 16px 40px;
}

.comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 22px;
    padding: 0 4px;
}

.comments-title {
    margin: 0;

    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 700;

    letter-spacing: .02em;
}

.comments-count {
    min-width: 34px;
    height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 10px;

    border-radius: 50px;

    background: rgba(255,255,255,.75);

    border: 1px solid rgba(180,150,100,.25);

    font-size: .85rem;
    font-weight: 700;
}

.comments-list {
    display: flex;
    flex-direction: column;

    gap: 18px;
}

.comment-card {

    position: relative;

    padding: 18px;

    border-radius: 20px;

    background:
        rgba(255,255,255,.76);

    border: 1px solid rgba(255,255,255,.85);

    box-shadow:
        0 10px 30px rgba(80,60,30,.08);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    overflow: hidden;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.comment-card::before {

    content: "";

    position: absolute;

    left: 0;
    top: 0;
    bottom: 0;

    width: 4px;

    background: linear-gradient(
        to bottom,
        #52b788,
        #d4af37
    );

    border-radius: 4px 0 0 4px;
}

.comment-card:hover {

    transform: translateY(-2px);

    box-shadow:
        0 14px 35px rgba(18,55,42,.12);
}

.comment-card-top {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 14px;
}

.comment-avatar {

    flex: 0 0 auto;

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #d8f3dc,
            #edfbf1
        );

    border: 2px solid rgba(255,255,255,.9);

    color: #1b4332;

    font-size: .95rem;
    font-weight: 700;

    box-shadow:
        0 4px 12px rgba(18,55,42,.10);
}

.comment-author {

    min-width: 0;

    flex: 1;
}

.comment-author h4 {

    margin: 0 0 3px;

    font-size: .98rem;

    font-weight: 700;

    color: #3d342b;

    line-height: 1.3;
}

.comment-author time {

    display: block;

    font-size: .72rem;

    color: #8c8175;
}

.comment-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform .2s ease;
}

.status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    font-size: 0.68rem;
    font-weight: 800;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* HADIR - Modern Emerald/Forest Green Badge */
.comment-status-badge.hadir {
    background: linear-gradient(135deg, rgba(232, 245, 233, 0.95), rgba(200, 230, 201, 0.85));
    border: 1px solid rgba(46, 125, 50, 0.35);
    color: #1b5e20;
}

.comment-status-badge.hadir .status-icon {
    background: #2e7d32;
    color: #ffffff;
}

/* TIDAK HADIR - Modern Soft Rose/Crimson Badge */
.comment-status-badge.tidak-hadir {
    background: linear-gradient(135deg, rgba(255, 235, 238, 0.95), rgba(255, 205, 210, 0.85));
    border: 1px solid rgba(198, 40, 40, 0.3);
    color: #b71c1c;
}

.comment-status-badge.tidak-hadir .status-icon {
    background: #c62828;
    color: #ffffff;
}

/* MASIH RAGU - Modern Warm Amber/Gold Badge */
.comment-status-badge.masih-ragu {
    background: linear-gradient(135deg, rgba(255, 248, 225, 0.95), rgba(255, 236, 179, 0.85));
    border: 1px solid rgba(245, 127, 23, 0.35);
    color: #b26a00;
}

.comment-status-badge.masih-ragu .status-icon {
    background: #f57f17;
    color: #ffffff;
}

.comment-message {

    position: relative;

    margin: 0;

    padding: 14px 18px;

    border-radius: 14px;

    background:
        rgba(250,247,241,.9);

    border: 1px solid rgba(190,165,125,.13);
}

.comment-message p {

    margin: 0;

    color: #51483f;

    font-size: clamp(0.8rem, 2.2vw, 1rem);

    line-height: 1.75;

    text-align: left;
}

.quote-mark {

    position: absolute;

    left: 8px;
    top: 2px;

    font-family: Georgia, serif;

    font-size: 30px;

    line-height: 1;

    color: rgba(180,145,95,.30);
}

.quote-end {

    left: auto;

    right: 8px;

    top: auto;

    bottom: -5px;
}

.comment-no-message {

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 12px 14px;

    border-radius: 12px;

    background: rgba(248,245,239,.75);

    color: #8b8176;

    font-size: .78rem;
}

.comment-no-message i {

    color: #c29d69;
}

.comment-card-footer {

    margin-top: 12px;

    padding-top: 10px;

    border-top: 1px solid rgba(150,130,100,.10);

    color: #9a8d7e;

    font-size: .68rem;
}

.comment-card-footer i {

    margin-right: 4px;

    color: #c49b69;
}

.comment-empty {

    padding: 40px 24px;

    text-align: center;

    border-radius: 22px;

    background: rgba(255,255,255,.68);

    border: 1px solid rgba(255,255,255,.8);

    box-shadow:
        0 10px 30px rgba(80,60,30,.06);
}

.empty-icon {

    width: 60px;
    height: 60px;

    margin: 0 auto 14px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(220,195,160,.20);

    font-size: 25px;
}

.comment-empty h4 {

    margin: 0 0 7px;

    font-size: 1rem;
}

.comment-empty p {

    max-width: 350px;

    margin: 0 auto;

    font-size: .8rem;

    line-height: 1.6;

    color: #82776c;
}

@media (max-width: 480px) {

    .comments-section {

        padding-left: 12px;
        padding-right: 12px;

    }

    .comment-card {

        padding: 15px;

        border-radius: 18px;

    }

    .comment-card-top {

        align-items: flex-start;

    }

    .comment-avatar {

        width: 40px;
        height: 40px;

        font-size: .85rem;

    }

    .comment-author h4 {

        font-size: .9rem;

    }

    .comment-status-badge {
        padding: 5px 10px;
        font-size: 0.68rem;
    }

    .comment-message p {

        font-size: .82rem;

        line-height: 1.7;

    }

    .comment-card-footer {

        font-size: .62rem;

    }

    #rsvp form {
        padding: 20px;
    }
    #rsvp form input[type="text"],
    #rsvp form textarea,
    #rsvp form select {
        font-size: 13px;
        padding: 11px 12px;
    }
    #rsvp form button[type="submit"] {
        padding: 10px 20px;
        font-size: 13px;
    }
}