/* lxwdk-rsvp-wa-form.css
 * Styling khusus untuk widget RSVP WA Form (Redesign)
 */

.lxwdk-rsvp-wa-only label {
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
}

/* Base input styling for text and textarea */
.lxwdk-rsvp-wa-only input[type="text"],
.lxwdk-rsvp-wa-only textarea {
    width: 100%;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    color: #1e293b;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.lxwdk-rsvp-wa-only input[type="text"]::placeholder,
.lxwdk-rsvp-wa-only textarea::placeholder {
    opacity: 1 !important;
}

.lxwdk-rsvp-wa-only input[type="text"]:focus,
.lxwdk-rsvp-wa-only textarea:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    background-color: #ffffff;
}

/* ──────────────────────────────────────────────
 * Custom Select: Konfirmasi Kehadiran
 * ────────────────────────────────────────────── */
.lxwdk-wa-attendance-custom-select {
    position: relative;
    user-select: none;
    cursor: pointer;
    font-size: 14px;
    outline: none;
}

.lxwdk-wa-attendance-selected {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background-color: #ffffff;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    padding: 12px 16px;
    color: #2563eb;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(59, 130, 246, 0.1);
    gap: 8px;
}

.lxwdk-wa-attendance-selected .lxwdk-wa-attendance-label-text {
    flex: 1;
    text-align: center;
}

.lxwdk-wa-attendance-selected.is-not-hadir {
    border-color: #e5e7eb;
    color: #64748b;
    box-shadow: none;
}

.lxwdk-wa-attendance-selected.is-empty {
    border: 1px solid #e2e8f0;
    color: #94a3b8;
    font-weight: 400;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    background-color: #f8fafc;
}

.lxwdk-wa-attendance-caret {
    transition: transform 0.2s;
    color: inherit;
    font-size: 12px;
    flex-shrink: 0;
}

.lxwdk-wa-attendance-custom-select.is-open .lxwdk-wa-attendance-caret {
    transform: rotate(180deg);
}

.lxwdk-wa-attendance-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 6px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    z-index: 50;
    display: none;
    overflow: hidden;
}

.lxwdk-wa-attendance-custom-select.is-open .lxwdk-wa-attendance-options {
    display: block;
    animation: lxwdkFadeInUp 0.15s ease-out;
}

@keyframes lxwdkFadeInUp {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lxwdk-wa-attendance-option {
    padding: 12px 16px;
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    transition: background 0.15s;
    color: #475569;
    font-weight: 500;
    cursor: pointer;
}

.lxwdk-wa-attendance-option:hover {
    background: #f8fafc;
    color: #1e293b;
}

.lxwdk-wa-attendance-option[data-value="Hadir"] i {
    color: #3b82f6;
}

.lxwdk-wa-attendance-option[data-value="Tidak Hadir"] i {
    color: #94a3b8;
}

/* ──────────────────────────────────────────────
 * Sesi Acara Wrapper
 * ────────────────────────────────────────────── */
.lxwdk-wa-sesi-wrapper {
    padding-left: 20px;
    margin-left: 10px;
    border-left: 2px solid #e2e8f0;
    margin-top: -8px;
    margin-bottom: 24px;
    padding-top: 20px;
    padding-bottom: 4px;
}

.lxwdk-wa-sesi-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px;
}

/* ──────────────────────────────────────────────
 * Card: hidden radio / checkbox
 * ────────────────────────────────────────────── */
.lxwdk-wa-sesi-item input[type="radio"],
.lxwdk-wa-sesi-item input[type="checkbox"] {
    display: none !important;
}

/* ──────────────────────────────────────────────
 * Card: HORIZONTAL LAYOUT (icon | content | circle)
 * ────────────────────────────────────────────── */
label.lxwdk-wa-sesi-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 16px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    gap: 16px !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    font-weight: normal !important;
    color: inherit !important;
}

label.lxwdk-wa-sesi-card:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

/* ── Icon ── */
.lxwdk-wa-sesi-icon {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    background: #f1f5f9 !important;
    color: #64748b !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease;
}

/* ── Content (title + desc) ── */
.lxwdk-wa-sesi-content {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    min-width: 0;
}

.lxwdk-wa-sesi-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
    line-height: 1.4;
    display: block !important;
    margin: 0 !important;
}

.lxwdk-wa-sesi-desc {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 3px !important;
    line-height: 1.3;
    display: block !important;
}

/* ── Radio / Checkbox circle (rightmost) ── */
.lxwdk-wa-sesi-radio-circle {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    border-radius: 50% !important;
    border: 2px solid #cbd5e1 !important;
    position: relative !important;
    flex-shrink: 0 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc !important;
    margin-left: auto !important;
    margin-top: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Checkbox Multiple mark */
.lxwdk-wa-sesi-radio-circle .checkbox-mark {
    color: white;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s;
}

/* ── Checked State ── */
.lxwdk-wa-sesi-item input[type="radio"]:checked+label.lxwdk-wa-sesi-card,
.lxwdk-wa-sesi-item input[type="checkbox"]:checked+label.lxwdk-wa-sesi-card {
    border-color: #3b82f6 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 1px #3b82f6, 0 4px 6px -1px rgba(59, 130, 246, 0.05) !important;
}

.lxwdk-wa-sesi-item input[type="radio"]:checked+label.lxwdk-wa-sesi-card .lxwdk-wa-sesi-icon,
.lxwdk-wa-sesi-item input[type="checkbox"]:checked+label.lxwdk-wa-sesi-card .lxwdk-wa-sesi-icon {
    background: #eff6ff !important;
    color: #3b82f6 !important;
}

.lxwdk-wa-sesi-item input[type="radio"]:checked+label.lxwdk-wa-sesi-card .lxwdk-wa-sesi-radio-circle,
.lxwdk-wa-sesi-item input[type="checkbox"]:checked+label.lxwdk-wa-sesi-card .lxwdk-wa-sesi-radio-circle {
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
}

.lxwdk-wa-sesi-item input[type="checkbox"]:checked+label.lxwdk-wa-sesi-card .lxwdk-wa-sesi-radio-circle {
    border-radius: 6px !important;
    /* Make it look more like a checkbox */
}

/* The inner checkmark tick for radio (animated pseudo-element) */
.lxwdk-wa-sesi-item input[type="radio"]:checked+label.lxwdk-wa-sesi-card .lxwdk-wa-sesi-radio-circle::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    top: 3px;
    left: 6px;
    animation: lxwdkCheckPop 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* The inner checkmark icon for checkbox (FontAwesome) */
.lxwdk-wa-sesi-item input[type="checkbox"]:checked+label.lxwdk-wa-sesi-card .lxwdk-wa-sesi-radio-circle .checkbox-mark {
    opacity: 1;
    animation: lxwdkCheckPop 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes lxwdkCheckPop {
    0% {
        transform: scale(0) rotate(45deg);
        opacity: 0;
    }

    100% {
        transform: scale(1) rotate(45deg);
        opacity: 1;
    }
}

/* ──────────────────────────────────────────────
 * Submit Button
 * ────────────────────────────────────────────── */
.lxwdk-rsvp-wa-only .lxwdk-rsvp-submit-btn {
    width: 100%;
    background-color: #3b82f6;
    color: white;
    font-weight: 600;
    padding: 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.2s;
}

.lxwdk-rsvp-wa-only .lxwdk-rsvp-submit-btn:hover {
    background-color: #2563eb;
}