/* Pengaduan Widget - Floating Button di Kanan (Sejajar dengan Chatbot) */
.pengaduan-widget {
    position: fixed;
    bottom: 24px;
    right: 100px;
    z-index: 9998;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Toggle Button - Di Kanan */
.pengaduan-toggle {
    min-width: 64px;
    height: 64px;
    border-radius: 32px;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    border: none;
    color: white;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.35), 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    z-index: 10000;
}

.pengaduan-toggle:hover {
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.45), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pengaduan-toggle i {
    font-size: 28px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    flex-shrink: 0;
}

.pengaduan-toggle-text {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Chat Window - Muncul dari Kanan */
.pengaduan-window {
    position: absolute;
    bottom: 88px;
    right: 0;
    width: 420px;
    max-width: calc(100vw - 32px);
    height: 600px;
    max-height: calc(100vh - 120px);
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.pengaduan-window.active {
    display: flex;
}

.pengaduan-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.pengaduan-close:hover {
    opacity: 1;
}

/* Pengaduan Chat Interface - Similar to Chatbot */
.pengaduan-section {
    margin-top: 80px;
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.pengaduan-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.pengaduan-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.pengaduan-header p {
    font-size: 1rem;
    color: var(--text-light);
}

/* ========== Halaman Form Pengaduan (layout form penuh) ========== */
.pengaduan-section.pengaduan-page {
    margin-top: 1.5rem;
    padding: 1.5rem 0 3rem;
    min-height: 0;
}

.pengaduan-page-header {
    margin-bottom: 2rem;
}

.pengaduan-page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
}

.pengaduan-page-desc {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.pengaduan-form-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.pengaduan-form-inner {
    padding: 2rem 2rem 2.25rem;
}

.pengaduan-form-block {
    margin-bottom: 2rem;
}

.pengaduan-form-block:last-of-type {
    margin-bottom: 0;
}

.pengaduan-form-block-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 1.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pengaduan-form-block-title i {
    color: var(--pub-primary, #0c5440);
    font-size: 1.125rem;
}

.pengaduan-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1.5rem;
}

.pengaduan-form-file {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: inherit;
    background: #fff;
    color: #374151;
}

.pengaduan-form-file:focus {
    outline: none;
    border-color: var(--pub-primary, #0c5440);
    box-shadow: 0 0 0 3px rgba(12, 84, 64, 0.1);
}

/* Submit button: pakai warna tema situs (hijau) */
.pengaduan-page .pengaduan-submit-btn {
    background: linear-gradient(135deg, var(--pub-primary, #0c5440) 0%, var(--pub-primary-light, #0d6b54) 100%);
    box-shadow: 0 2px 8px rgba(12, 84, 64, 0.25);
}

.pengaduan-page .pengaduan-submit-btn:hover {
    box-shadow: 0 4px 12px rgba(12, 84, 64, 0.35);
}

.pengaduan-page .pengaduan-form-input:focus,
.pengaduan-page .pengaduan-form-select:focus,
.pengaduan-page .pengaduan-form-textarea:focus {
    border-color: var(--pub-primary, #0c5440);
    box-shadow: 0 0 0 3px rgba(12, 84, 64, 0.1);
}

/* Chat Container */
.pengaduan-chat-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.pengaduan-chat-window {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 600px;
    max-height: calc(100vh - 200px);
}

/* Chat Header */
.pengaduan-chat-header {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pengaduan-chat-header-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pengaduan-chat-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.pengaduan-chat-header-info h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.pengaduan-chat-status {
    font-size: 12px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.pengaduan-chat-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    background: #10b981;
}

/* Chat Body */
.pengaduan-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    background: #ffffff;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Modal widget: compact desktop panel, fullscreen only on small phones */
@media (min-width: 993px) {
    .pengaduan-modal-window {
        box-sizing: border-box;
        position: fixed;
        bottom: 96px;
        right: 24px;
        width: 420px;
        max-width: calc(100vw - 32px);
        max-height: min(680px, calc(100vh - 128px));
    }
}
.pengaduan-modal-window {
    box-sizing: border-box;
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18), 0 4px 14px rgba(15, 23, 42, 0.08);
    color: #0f172a;
}
.pengaduan-modal-header {
    padding: 0.875rem 1rem;
}
.pengaduan-modal-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}
.pengaduan-modal-icon i {
    font-size: 0.95rem;
}
.pengaduan-modal-close {
    width: 34px;
    height: 34px;
    border-radius: 9px;
}
.pengaduan-modal-body {
    min-width: 0;
    padding: 1rem;
    -webkit-overflow-scrolling: touch;
}
.pengaduan-modal-form {
    min-width: 0;
    width: 100%;
    display: grid;
    gap: 0.75rem;
    box-sizing: border-box;
}
.pengaduan-modal-form > :not([hidden]) ~ :not([hidden]) {
    margin-top: 0 !important;
}
.pengaduan-modal-form .pengaduan-modal-field {
    min-width: 0;
}
.pengaduan-modal-form label {
    margin-bottom: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}
.pengaduan-modal-form input,
.pengaduan-modal-form select,
.pengaduan-modal-form textarea {
    box-sizing: border-box;
    max-width: 100%;
    min-height: 40px;
    padding: 0.625rem 0.75rem;
    border-radius: 10px;
    line-height: 1.35;
}
.pengaduan-modal-form textarea {
    min-height: 88px;
}
.pengaduan-modal-form input[type="file"] {
    min-height: 42px;
    padding: 0.5rem 0.625rem;
}
.pengaduan-modal-form p {
    margin-top: 0.35rem;
}
.pengaduan-modal-actions {
    padding-top: 0.25rem;
}
.pengaduan-modal-actions .pengaduan-submit-btn {
    min-height: 42px;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(12, 84, 64, 0.18);
}

/* Form Styles - Clean & Professional */
.pengaduan-form-group {
    margin-bottom: 1.5rem;
}

.pengaduan-form-group:last-of-type {
    margin-bottom: 0;
}

.pengaduan-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1f2937;
    font-size: 0.875rem;
    line-height: 1.5;
}

.pengaduan-form-input,
.pengaduan-form-select,
.pengaduan-form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #1f2937;
    box-sizing: border-box;
    line-height: 1.5;
}

.pengaduan-form-input:hover,
.pengaduan-form-select:hover,
.pengaduan-form-textarea:hover {
    border-color: #d1d5db;
}

.pengaduan-form-input:focus,
.pengaduan-form-select:focus,
.pengaduan-form-textarea:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    background: #ffffff;
}

.pengaduan-form-input::placeholder {
    color: #9ca3af;
}

.pengaduan-form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px 12px;
    padding-right: 2.5rem;
}

.pengaduan-form-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.pengaduan-form-help {
    display: block;
    margin-top: 0.5rem;
    color: #6b7280;
    font-size: 0.75rem;
    line-height: 1.4;
}

.pengaduan-form-actions {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e5e7eb;
}

.pengaduan-submit-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
    letter-spacing: 0.01em;
}

.pengaduan-submit-btn:hover {
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
    transform: translateY(-1px);
}

.pengaduan-submit-btn:active {
    transform: translateY(0);
}

.pengaduan-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.pengaduan-submit-btn i {
    font-size: 0.875rem;
}

#pengaduan-messages {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: stretch;
}

.pengaduan-message {
    margin-bottom: 12px;
    display: flex !important;
    width: 100% !important;
    box-sizing: border-box;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.pengaduan-message-content {
    max-width: 75% !important;
    min-width: 120px;
    padding: 12px 16px !important;
    word-wrap: break-word;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    display: block !important;
    flex-shrink: 0;
    line-height: 1.5;
}

/* System Message (Questions) - Left */
.pengaduan-message-system {
    justify-content: flex-start !important;
    align-items: flex-start !important;
    flex-direction: row !important;
    width: 100% !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.pengaduan-message-system .pengaduan-message-content {
    background: #f8f9fa !important;
    color: #1f2937 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 18px 18px 18px 4px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    margin-left: 0 !important;
    margin-right: auto !important;
    float: none !important;
    padding: 12px 16px !important;
    line-height: 1.5;
    align-self: flex-start !important;
    text-align: left !important;
}

.pengaduan-message-system .pengaduan-message-content > div:first-child {
    color: #dc2626 !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    margin-top: 0 !important;
    font-size: 11px !important;
    text-transform: none !important;
    letter-spacing: 0.3px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.pengaduan-message-system .pengaduan-message-content > div:first-child i {
    font-size: 10px !important;
    opacity: 0.8;
}

/* User Message (Answers) - Right */
.pengaduan-message-user {
    justify-content: flex-end !important;
    align-items: flex-end !important;
    flex-direction: row !important;
    width: 100% !important;
}

.pengaduan-message-user .pengaduan-message-content {
    background: #dc2626 !important;
    color: white !important;
    border-radius: 18px 18px 4px 18px !important;
    box-shadow: 0 1px 2px rgba(220, 38, 38, 0.3);
    font-weight: 400;
    margin-left: auto !important;
    margin-right: 0 !important;
    float: none !important;
}

.pengaduan-message-content p {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.6 !important;
    font-size: 14px !important;
    letter-spacing: 0 !important;
    word-wrap: break-word !important;
    text-align: left !important;
}

.pengaduan-message-user .pengaduan-message-content p {
    color: white;
}

.pengaduan-message-system .pengaduan-message-content p {
    color: #1f2937 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.6 !important;
    font-size: 14px !important;
    word-wrap: break-word !important;
    text-align: left !important;
}

/* File Upload Button */
.pengaduan-file-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    margin-top: 8px;
}

.pengaduan-file-btn:hover {
    background: #ef4444;
}

.pengaduan-file-btn i {
    font-size: 14px;
}

/* Chat Footer */
.pengaduan-chat-footer {
    padding: 20px 24px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
}

.pengaduan-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: 0;
}

.pengaduan-input {
    flex: 1;
    min-width: 0;
    padding: 14px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 28px;
    font-size: 14.5px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f9fafb;
    color: #1f2937;
    font-family: inherit;
}

.pengaduan-input:focus {
    border-color: #dc2626;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.pengaduan-input::placeholder {
    color: #9ca3af;
}

.pengaduan-send {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    font-size: 16px;
}

.pengaduan-send:hover {
    box-shadow: 0 6px 16px rgba(23, 107, 77, 0.4);
}

.pengaduan-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading State */
.pengaduan-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== Mobile: halaman pengaduan form rapi ========== */
@media (max-width: 1023px) {
    .pengaduan-section {
        margin-top: 0;
        padding: 1.25rem 0 2rem;
        min-height: 0;
    }

    .pengaduan-section.pengaduan-page {
        margin-top: 1rem;
        padding: 1rem 0 2rem;
    }

    .pengaduan-breadcrumb {
        margin-bottom: 1rem;
    }

    .pengaduan-breadcrumb ol {
        font-size: 0.8125rem;
    }

    .pengaduan-header {
        margin-bottom: 1.5rem;
    }

    .pengaduan-header h2 {
        font-size: 1.35rem;
        margin-bottom: 0.25rem;
    }

    .pengaduan-header p {
        font-size: 0.875rem;
    }

    /* Form page: mobile */
    .pengaduan-page-header {
        margin-bottom: 1.5rem;
    }

    .pengaduan-page-title {
        font-size: 1.375rem;
    }

    .pengaduan-page-desc {
        font-size: 0.875rem;
    }

    .pengaduan-form-inner {
        padding: 1.25rem 1rem 1.5rem;
    }

    .pengaduan-form-block {
        margin-bottom: 1.5rem;
    }

    .pengaduan-form-block-title {
        font-size: 0.9375rem;
        margin-bottom: 1rem;
    }

    .pengaduan-form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .pengaduan-form-actions {
        margin-top: 1.5rem;
        padding-top: 1.25rem;
    }

    .pengaduan-submit-btn {
        min-height: 48px;
        font-size: 0.9375rem;
    }

    .pengaduan-chat-container {
        padding: 0;
        max-width: 100%;
    }

    .pengaduan-chat-window {
        height: 65vh;
        min-height: 380px;
        max-height: calc(100vh - 140px);
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }

    .pengaduan-chat-header {
        padding: 0.875rem 1rem;
    }

    .pengaduan-chat-header-info {
        gap: 0.75rem;
    }

    .pengaduan-chat-logo {
        width: 36px;
        height: 36px;
    }

    .pengaduan-chat-header-info h4 {
        font-size: 0.9375rem;
    }

    .pengaduan-chat-status {
        font-size: 0.6875rem;
    }

    .pengaduan-chat-body {
        padding: 1rem;
        -webkit-overflow-scrolling: touch;
    }

    .pengaduan-message-content {
        max-width: 88%;
        min-width: 0;
        padding: 0.625rem 0.875rem !important;
        font-size: 0.8125rem !important;
    }

    .pengaduan-message-content p {
        font-size: 0.8125rem !important;
    }

    .pengaduan-chat-footer {
        padding: 0.75rem 1rem;
        border-top-width: 1px;
    }

    .pengaduan-input-group {
        gap: 0.5rem;
    }

    .pengaduan-input {
        padding: 0.75rem 1rem;
        font-size: 16px;
        border-radius: 24px;
        min-height: 44px;
    }

    .pengaduan-send {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        font-size: 0.875rem;
    }
}

/* Responsive: ponsel kecil memakai ruang layar penuh agar form tetap nyaman */
@media (max-width: 640px) {
    #pengaduan-window,
    .pengaduan-modal-window {
        position: fixed !important;
        left: 10px !important;
        right: 10px !important;
        bottom: 10px !important;
        top: 10px !important;
        width: calc(100vw - 20px) !important;
        max-width: none !important;
        height: calc(100vh - 20px) !important;
        max-height: none !important;
        transform: none !important;
        border-radius: 14px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        z-index: 10001;
    }
    .pengaduan-modal-body {
        padding: 1rem 1rem 1.5rem !important;
        overflow-y: auto;
        overflow-x: hidden;
    }
    .pengaduan-modal-form input,
    .pengaduan-modal-form select,
    .pengaduan-modal-form textarea {
        font-size: 16px;
        min-height: 44px;
    }
    .pengaduan-modal-form textarea {
        min-height: 100px;
    }
}

@media (max-width: 768px) {
    .pengaduan-widget {
        bottom: 20px;
        right: 20px;
        left: auto;
    }
    .pengaduan-modal-body {
        padding: 1rem 1rem 1.5rem !important;
        overflow-y: auto;
        overflow-x: hidden;
    }
    .pengaduan-modal-form .pengaduan-modal-field {
        margin-bottom: 1rem;
    }
    .pengaduan-modal-form input,
    .pengaduan-modal-form select,
    .pengaduan-modal-form textarea {
        font-size: 16px;
        min-height: 44px;
    }
    .pengaduan-modal-form textarea {
        min-height: 100px;
    }

    .pengaduan-toggle {
        min-width: 56px;
        height: 56px;
        font-size: 22px;
        padding: 0 14px;
        gap: 6px;
    }

    .pengaduan-toggle-text {
        font-size: 0.8125rem;
    }

    .pengaduan-toggle i {
        font-size: 1.25rem;
    }

    .pengaduan-chat-header {
        padding: 0.75rem 1rem;
    }

    .pengaduan-chat-body {
        padding: 0.875rem 1rem;
    }

    .pengaduan-form-group {
        margin-bottom: 1rem;
    }

    .pengaduan-form-input,
    .pengaduan-form-select,
    .pengaduan-form-textarea {
        font-size: 16px;
        padding: 0.625rem 0.875rem;
        min-height: 44px;
    }

    .pengaduan-form-label {
        font-size: 0.8125rem;
    }

    .pengaduan-submit-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
        min-height: 44px;
    }

    .pengaduan-message-content {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .pengaduan-toggle {
        min-width: 56px;
        width: 56px;
        height: 56px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
        gap: 0;
    }
    
    .pengaduan-toggle-text {
        display: none;
    }
    
    .pengaduan-toggle i {
        font-size: 22px;
    }
    
    .pengaduan-header h2 {
        font-size: 1.5rem;
    }

    .pengaduan-header p {
        font-size: 0.9rem;
    }

    .pengaduan-chat-container {
        padding: 0 0.5rem;
    }

    .pengaduan-chat-window {
        height: calc(100vh - 120px);
    }
}

@media (max-width: 360px) {
    .pengaduan-toggle-text {
        display: none;
    }
    
    .pengaduan-toggle {
        width: 56px;
        min-width: 56px;
        padding: 0;
        border-radius: 50%;
    }
}

/* Scrollbar */
.pengaduan-chat-body::-webkit-scrollbar {
    width: 6px;
}

.pengaduan-chat-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.pengaduan-chat-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.pengaduan-chat-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
