/* ============================================================
   Wedding Invitation Plugin - wedding-invitation.css
   ============================================================ */

/* Base RSVP Section */
.wi-rsvp-section {
    padding: 60px 20px;
    border-top: 1px solid #e5e7eb;
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

.wi-rsvp-inner {
    max-width: 640px;
    margin: 0 auto;
}

.wi-rsvp-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px;
    font-style: italic;
    font-weight: 700;
    text-align: center;
    margin-bottom: 6px;
}

.wi-rsvp-sub {
    font-size: 9px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    opacity: 0.5;
    margin-bottom: 40px;
}

/* Form */
.wi-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.wi-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wi-field label {
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    opacity: 0.5;
    margin-bottom: 4px;
}

.wi-field input,
.wi-field select,
.wi-field textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #d1d5db;
    padding: 8px 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    outline: none;
    background: transparent;
    transition: border-color 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}

.wi-field input:focus,
.wi-field select:focus,
.wi-field textarea:focus {
    border-bottom-color: #111;
}

.wi-field textarea {
    height: 80px;
    resize: vertical;
}

.wi-form button[type="submit"] {
    width: 100%;
    background: #111;
    color: #fff;
    border: none;
    padding: 16px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.wi-form button[type="submit"]:hover { background: #333; }
.wi-form button[type="submit"]:disabled { background: #999; cursor: not-allowed; }

/* Stats Bar */
.wi-stats {
    display: flex;
    justify-content: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.wi-stats span {
    font-weight: 700;
    font-size: 13px;
}

/* Message List */
.wi-msg-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 8px;
    scroll-behavior: smooth;
}

/* Custom scrollbar */
.wi-msg-list::-webkit-scrollbar { width: 4px; }
.wi-msg-list::-webkit-scrollbar-track { background: #f3f4f6; }
.wi-msg-list::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 2px; }

.wi-msg-item {
    border-left: 2px solid #111;
    padding-left: 16px;
    animation: wi-fade-in 0.4s ease;
}

@keyframes wi-fade-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wi-msg-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.wi-msg-header strong {
    font-size: 9px;
    letter-spacing: 0.2em;
    font-weight: 700;
}

.wi-msg-header small {
    font-size: 9px;
    color: #9ca3af;
    margin-left: auto;
}

/* Badge */
.wi-badge {
    font-size: 7px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.wi-badge-hadir  { background: #dcfce7; color: #166534; }
.wi-badge-tidak  { background: #fee2e2; color: #991b1b; }

.wi-msg-text {
    font-size: 11px;
    line-height: 1.7;
    color: #6b7280;
    font-style: italic;
    margin: 0 0 6px 0;
}

.wi-msg-time {
    font-size: 9px;
    color: #9ca3af;
    letter-spacing: 0.05em;
}

/* Reply Box */
.wi-reply-box {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    padding: 10px 14px;
    margin: 8px 0;
    font-size: 11px;
    color: #0369a1;
}

.wi-reply-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
    color: #0284c7;
}

.wi-reply-box p {
    margin: 0;
    font-style: italic;
    line-height: 1.6;
}

.wi-no-msg {
    text-align: center;
    color: #9ca3af;
    font-size: 11px;
    padding: 30px;
    font-style: italic;
}

/* Toast */
.wi-toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    color: #fff;
    padding: 12px 32px;
    border-radius: 40px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 99999;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    white-space: nowrap;
}

.wi-toast.wi-toast-show { opacity: 1; }

/* Responsive */
@media (max-width: 600px) {
    .wi-rsvp-section { padding: 40px 16px; }
    .wi-rsvp-title { font-size: 22px; }
    .wi-msg-list { max-height: 360px; }
}
