/* ============================================================
   PUSPA ASRI ART 01 - RSVP & WISHES STYLES
   Aesthetic Soft Sage & Floral Wedding Theme
   ============================================================ */

:root {
    --rsvp-primary: #9CAF9B;
    --rsvp-primary-dark: #6E846D;
    --rsvp-primary-light: #EBF1EA;
    --rsvp-text-dark: #2F3E35;
    --rsvp-text-muted: #6E7F74;
    --rsvp-border: rgba(156, 175, 155, 0.35);
    --rsvp-card-bg: #FFFFFF;
    --rsvp-shadow: 0 10px 30px rgba(47, 62, 53, 0.07);
    --rsvp-radius: 16px;
}

/* ============================================================
   1. SECTION & WRAPPER
   ============================================================ */
.section-rsvp {
    padding: 60px 20px;
    position: relative;
}

.rsvp-card-wrapper {
    max-width: 580px;
    margin: 25px auto 40px auto;
    background: var(--rsvp-card-bg);
    border-radius: var(--rsvp-radius);
    padding: 28px 24px;
    border: 1px solid var(--rsvp-border);
    box-shadow: var(--rsvp-shadow);
    text-align: left;
    backdrop-filter: blur(8px);
}

@media (min-width: 600px) {
    .rsvp-card-wrapper {
        padding: 35px 32px;
    }
}

/* TOTAL UCAPAN BADGE */
.total-ucapan-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--rsvp-primary-light);
    color: var(--rsvp-primary-dark);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 22px;
    border: 1px solid rgba(156, 175, 155, 0.3);
}

.total-ucapan-badge i {
    font-size: 14px;
    color: var(--rsvp-primary-dark);
}

/* ============================================================
   2. FORM CONTROLS & LABELS
   ============================================================ */
.rsvp-form .form-group {
    margin-bottom: 20px;
}

.rsvp-form .form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--rsvp-text-dark);
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

.rsvp-form .form-label i {
    color: var(--rsvp-primary-dark);
    font-size: 14px;
}

.rsvp-form .form-label small {
    font-weight: 400;
    color: var(--rsvp-text-muted);
}

.rsvp-form .form-control {
    width: 100%;
    padding: 12px 16px;
    background: #FAFCFA;
    border: 1.5px solid #DCE5DB;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    color: var(--rsvp-text-dark);
    transition: all 0.25s ease;
    box-sizing: border-box;
    display: block;
}

.rsvp-form .form-control:focus {
    background: #FFFFFF;
    border-color: var(--rsvp-primary);
    box-shadow: 0 0 0 4px rgba(156, 175, 155, 0.2);
    outline: none;
}

.rsvp-form .form-control::placeholder {
    color: #A3B2A5;
    font-size: 13.5px;
}

.rsvp-form textarea.form-control {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

/* ============================================================
   3. INTERACTIVE ATTENDANCE RADIO CARDS
   ============================================================ */
.rsvp-attendance-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 6px;
}

@media (max-width: 420px) {
    .rsvp-attendance-options {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.attendance-radio-option {
    position: relative;
    cursor: pointer;
    margin: 0;
    display: block;
}

.attendance-radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.attendance-radio-option .radio-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    background: #F7FAF6;
    border: 1.5px solid #DCE5DB;
    border-radius: 12px;
    color: var(--rsvp-text-muted);
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.attendance-radio-option .radio-card i {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.attendance-radio-option:hover .radio-card {
    border-color: var(--rsvp-primary);
    background: #FFFFFF;
    transform: translateY(-2px);
}

/* Selected Radio States */
.attendance-radio-option input[type="radio"]:checked + .radio-card {
    background: #FFFFFF;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(47, 62, 53, 0.08);
    transform: translateY(-2px);
}

.attendance-radio-option input[type="radio"]:checked + .radio-hadir {
    border-color: #388E3C;
    color: #2E7D32;
}
.attendance-radio-option input[type="radio"]:checked + .radio-hadir i {
    color: #388E3C;
}

.attendance-radio-option input[type="radio"]:checked + .radio-tidakhadir {
    border-color: #D32F2F;
    color: #C62828;
}
.attendance-radio-option input[type="radio"]:checked + .radio-tidakhadir i {
    color: #D32F2F;
}

.attendance-radio-option input[type="radio"]:checked + .radio-ragu {
    border-color: #F57C00;
    color: #E65100;
}
.attendance-radio-option input[type="radio"]:checked + .radio-ragu i {
    color: #F57C00;
}

/* ============================================================
   4. SUBMIT BUTTON
   ============================================================ */
.btn-rsvp-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #9CAF9B 0%, #7E927D 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(126, 146, 125, 0.35);
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-rsvp-submit:hover {
    background: linear-gradient(135deg, #8DA08C 0%, #6E846D 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(126, 146, 125, 0.45);
}

.btn-rsvp-submit:active {
    transform: translateY(0);
}

.btn-rsvp-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* ============================================================
   5. STATUS MESSAGES
   ============================================================ */
.status-message {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 18px;
    animation: fadeInStatus 0.3s ease;
}

@keyframes fadeInStatus {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.status-message.success {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #C8E6C9;
}

.status-message.error {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #FFCDD2;
}

/* ============================================================
   6. WISHES / UCAPAN STREAM LIST
   ============================================================ */
.rsvp-list-container {
    max-width: 650px;
    margin: 40px auto 0 auto;
    text-align: left;
}

.wishes-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--rsvp-text-dark);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wishes-title i {
    color: var(--rsvp-primary-dark);
    font-size: 16px;
}

.rsvp-comments-wrapper {
    max-height: 480px;
    overflow-y: auto;
    padding-right: 6px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Custom Soft Scrollbar */
.rsvp-comments-wrapper::-webkit-scrollbar {
    width: 5px;
}

.rsvp-comments-wrapper::-webkit-scrollbar-track {
    background: rgba(156, 175, 155, 0.1);
    border-radius: 10px;
}

.rsvp-comments-wrapper::-webkit-scrollbar-thumb {
    background: #C4D3C3;
    border-radius: 10px;
}

.rsvp-comments-wrapper::-webkit-scrollbar-thumb:hover {
    background: #9CAF9B;
}

/* ============================================================
   7. WISH CARD ITEM
   ============================================================ */
.wish-card-item {
    background: #FFFFFF;
    border: 1px solid rgba(156, 175, 155, 0.25);
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 4px 16px rgba(47, 62, 53, 0.04);
    transition: all 0.25s ease;
}

.wish-card-item:hover {
    box-shadow: 0 6px 20px rgba(47, 62, 53, 0.08);
    border-color: rgba(156, 175, 155, 0.45);
}

.wish-meta-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.wish-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wish-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9CAF9B 0%, #7E927D 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(126, 146, 125, 0.3);
}

.wish-user-name {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--rsvp-text-dark);
}

/* Wish Status Badges */
.wish-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
    white-space: nowrap;
}

.wish-status-hadir {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #C8E6C9;
}

.wish-status-tidak_hadir {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #FFCDD2;
}

.wish-status-ragu {
    background: #FFF8E1;
    color: #E65100;
    border: 1px solid #FFE082;
}

/* Wish Message Body */
.wish-msg-body {
    font-size: 13.5px;
    line-height: 1.6;
    color: #44534A;
    margin: 8px 0 10px 0;
    padding: 10px 14px;
    background: #F8FAF7;
    border-radius: 10px;
    border-left: 3px solid var(--rsvp-primary);
    word-break: break-word;
}

.wish-time-ago {
    font-size: 11px;
    color: #8C9E91;
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-end;
}

/* Empty State */
.wish-empty-notice {
    text-align: center;
    padding: 30px 20px;
    background: #FFFFFF;
    border-radius: 14px;
    border: 1px dashed rgba(156, 175, 155, 0.4);
    color: var(--rsvp-text-muted);
    font-size: 13.5px;
    line-height: 1.6;
    margin: 10px 0;
}