/* ===================================================
   CONTAINER FORM KOMENTAR
   =================================================== */
#respond {
    background: #ffffff !important;
    border: 1px solid #e1e8ed !important;
    border-radius: 8px !important;
    padding: 20px 24px !important;
    margin: 30px 0 20px 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
    text-align: left !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

#reply-title, 
#respond h3#reply-title {
    font-family: Georgia, "Times New Roman", Times, serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1e5631 !important;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    display: block !important;
    border: none !important;
    padding: 0 !important;
}

.comment-notes, 
#respond .logged-in-as {
    font-size: 12.5px !important;
    line-height: 1.6 !important;
    color: #4a5568 !important;
    margin-bottom: 18px !important;
}

/* ===================================================
   GAYA FLOATING LABEL FORM KOMENTAR (MIRIP SEARCH BOX)
   =================================================== */

/* Grouping Paragraf Form (Sebagai Container Relative) */
#commentform p.comment-form-author,
#commentform p.comment-form-email,
#commentform p.comment-form-url,
#commentform p.comment-form-comment {
    position: relative !important;
    margin-bottom: 20px !important;
    width: 100% !important;
}

/* Style dasar Input dan Textarea */
#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#commentform textarea {
    width: 100% !important;
    padding: 12px 14px !important;
    border: 1px solid #ccc !important;
    border-radius: 8px !important;
    outline: none !important;
    font-size: 14px !important;
    font-family: inherit !important;
    color: #2c3e50 !important;
    background-color: #ffffff !important;
    transition: border-color 0.2s ease !important;
    box-sizing: border-box !important;
}

#commentform textarea {
    min-height: 130px !important;
    padding-top: 14px !important;
    resize: vertical !important;
}

/* Style Label posisi awal (Tengah untuk Input, Atas untuk Textarea) */
#commentform p.comment-form-author label,
#commentform p.comment-form-email label,
#commentform p.comment-form-url label {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background-color: #fff !important;
    padding: 0 4px !important;
    color: #888 !important;
    font-size: 14px !important;
    font-weight: normal !important;
    pointer-events: none !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
}

#commentform p.comment-form-comment label {
    position: absolute !important;
    left: 12px !important;
    top: 20px !important;
    transform: translateY(-50%) !important;
    background-color: #fff !important;
    padding: 0 4px !important;
    color: #888 !important;
    font-size: 14px !important;
    font-weight: normal !important;
    pointer-events: none !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
}

/* ANIMASI FLOATING: Saat Diklik (:focus) ATAU Terisi Teks (:not(:placeholder-shown)) */
#commentform input:focus ~ label,
#commentform input:not(:placeholder-shown) ~ label,
#commentform textarea:focus ~ label,
#commentform textarea:not(:placeholder-shown) ~ label {
    top: 0 !important;
    font-size: 11px !important;
    color: #1e5631 !important;
    font-weight: 700 !important;
}

#commentform input:focus,
#commentform textarea:focus {
    border-color: #1e5631 !important;
    box-shadow: 0 0 0 3px rgba(30, 86, 49, 0.12) !important;
}

/* Checkbox Simpan Nama/Email */
#commentform .comment-form-cookies-consent {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 12px !important;
    color: #4a5568 !important;
    margin-top: 10px !important;
}

#commentform .comment-form-cookies-consent input[type="checkbox"] {
    accent-color: #1e5631 !important;
    cursor: pointer !important;
    margin: 0 !important;
}

/* Tombol Kirim Komentar / Pesan */
#respond #commentform input#submit,
.form-submit input#submit {
    background-color: #1e5631 !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 10px 22px !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    display: inline-block !important;
    margin-top: 10px !important;
    transition: background-color 0.2s ease !important;
}

#respond #commentform input#submit:hover,
.form-submit input#submit:hover {
    background-color: #143e23 !important;
}

/* Notifikasi Sukses dari Plugin */
#riyanto-notif-container {
    width: 100% !important;
    margin-bottom: 15px !important;
}

.notif-sukses {
    background: #d4edda !important;
    color: #155724 !important;
    padding: 12px 45px 12px 15px !important;
    border-radius: 6px !important;
    border: 1px solid #c3e6cb !important;
    font-size: 13px !important;
    position: relative !important;
    box-sizing: border-box !important;
}

.notif-sukses .close-btn {
    position: absolute !important;
    top: 50% !important;
    right: 15px !important;
    transform: translateY(-50%) !important;
    cursor: pointer !important;
    font-weight: bold !important;
    font-size: 20px !important;
    line-height: 1 !important;
    color: #155724 !important;
    opacity: 0.7 !important;
    transition: opacity 0.2s ease !important;
    user-select: none !important;
}

.notif-sukses .close-btn:hover {
    opacity: 1 !important;
}


/* ===================================================
   DARK MODE
   Mengikuti pengaturan dark mode sistem/peramban
   =================================================== */

@media (prefers-color-scheme: dark) {
    #respond {
        background: #111827 !important;
        border-color: #374151 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
    }
    #reply-title,
    #respond h3#reply-title {
        color: #6ee7b7 !important;
    }
    .comment-notes,
    #respond .logged-in-as {
        color: #9ca3af !important;
    }
    #commentform input[type="text"],
    #commentform input[type="email"],
    #commentform input[type="url"],
    #commentform textarea {
        background-color: #1f2937 !important;
        color: #f3f4f6 !important;
        border-color: #4b5563 !important;
    }
    #commentform input::placeholder,
    #commentform textarea::placeholder {
        color: #9ca3af !important;
    }
    #commentform p.comment-form-author label,
    #commentform p.comment-form-email label,
    #commentform p.comment-form-url label,
    #commentform p.comment-form-comment label {
        background-color: #1f2937 !important;
        color: #9ca3af !important;
    }
    #commentform input:focus ~ label,
    #commentform input:not(:placeholder-shown) ~ label,
    #commentform textarea:focus ~ label,
    #commentform textarea:not(:placeholder-shown) ~ label {
        color: #6ee7b7 !important;
        background-color: #1f2937 !important;
    }
    #commentform input:focus,
    #commentform textarea:focus {
        border-color: #6ee7b7 !important;
        box-shadow: 0 0 0 3px rgba(110, 231, 183, 0.12) !important;
    }
    #commentform .comment-form-cookies-consent {
        color: #9ca3af !important;
    }
    #commentform .comment-form-cookies-consent input[type="checkbox"] {
        accent-color: #6ee7b7 !important;
    }
    #respond #commentform input#submit,
    .form-submit input#submit {
        background-color: #1e5631 !important;
        color: #ffffff !important;
    }
    #respond #commentform input#submit:hover,
    .form-submit input#submit:hover {
        background-color: #2a7543 !important;
    }
    .notif-sukses {
        background: #123b23 !important;
        color: #a7f3b8 !important;
        border-color: #246b3b !important;
    }
    .notif-sukses .close-btn {
        color: #a7f3b8 !important;
    }
}