/* ============================================
   SKM - Survey Kepuasan Masyarakat v2.1
   ============================================ */

.skm-wrap h1 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1e293b;
}

.skm-wrap h1 .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: #3b82f6;
}

/* ============ CARD ============ */
.skm-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px 24px;
    margin: 16px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.skm-card h2 {
    margin-top: 0;
    font-size: 16px;
    color: #1e293b;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
    margin-bottom: 16px;
}

/* ============ FORM ROW ============ */
.skm-form-row { margin-bottom: 14px; }

.skm-form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #475569;
    font-size: 13px;
}

.skm-form-row input[type="text"],
.skm-form-row select,
.skm-form-row textarea {
    width: 100%;
    max-width: 700px;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.skm-form-row input[type="text"]:focus,
.skm-form-row select:focus,
.skm-form-row textarea:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ============ CHECKBOX GROUP ============ */
.skm-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    margin-top: 6px;
    max-width: 900px;
}

.skm-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    margin: 0;
}

.skm-checkbox-item:hover {
    border-color: #93c5fd;
    background: #f0f9ff;
}

.skm-checkbox-item input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
    accent-color: #3b82f6;
}

.skm-checkbox-item:has(input:checked) {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1e40af;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* ============ BADGE ============ */
.skm-badge {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 2px 2px 2px 0;
}

/* ============ FRONTEND ============ */
.skm-frontend {
    max-width: 900px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
}

.skm-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.skm-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    margin: 0 0 16px;
    color: #0f172a;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
}

.skm-section h2 .dashicons {
    color: #3b82f6;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* ============ REGULASI ============ */
.skm-regulasi-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.skm-regulasi-list li { margin: 0; }

.skm-regulasi-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #1e293b;
    font-weight: 500;
    transition: all 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.skm-regulasi-link:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1d4ed8;
    text-decoration: none;
}

.skm-regulasi-link .dashicons-pdf {
    color: #dc2626;
    font-size: 22px;
    width: 22px;
    height: 22px;
}

.skm-view-label {
    margin-left: auto;
    font-size: 12px;
    color: #64748b;
    font-weight: normal;
}

/* ============ FORM SURVEY ============ */
.skm-desc {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    padding: 10px 14px;
    border-radius: 6px;
    color: #1e40af;
    font-size: 13px;
    margin-bottom: 20px;
}

.skm-question {
    padding: 18px 0;
    border-bottom: 1px solid #f1f5f9;
}

.skm-question:last-of-type { border-bottom: none; }

.skm-q-text {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 14px;
    line-height: 1.5;
}

.skm-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.skm-option {
    cursor: pointer;
    display: block;
}

.skm-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.skm-radio-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px 14px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    text-align: center;
}

.skm-option:hover .skm-radio-box {
    border-color: #93c5fd;
    background: #f0f9ff;
}

.skm-option input[type="radio"]:checked + .skm-radio-box {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1e40af;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    font-weight: 600;
}

/* ============ SUBMIT BUTTON ============ */
.skm-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border: none;
    padding: 13px 36px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.skm-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(59, 130, 246, 0.4);
}

.skm-submit-btn:disabled { opacity: 0.7; cursor: not-allowed; }

/* ============ MESSAGES ============ */
.skm-form-message {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
    display: none;
}

.skm-form-message.skm-success,
.skm-form-message.skm-error { display: block; }

.skm-success {
    background: #dcfce7;
    color: #166534;
    border-left: 4px solid #22c55e;
}

.skm-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

/* ============ HASIL / CHART ============ */
.skm-charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
    margin-top: 16px;
}

.skm-charts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skm-chart-card {
    text-align: left;
    transition: transform 0.2s, box-shadow 0.2s;
}

.skm-chart-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.skm-chart-card h3 {
    font-size: 14px;
    color: #334155;
    margin: 0 0 4px;
    line-height: 1.4;
}

.skm-chart-card h4 {
    font-size: 15px;
    color: #0f172a;
    margin: 0 0 4px;
    line-height: 1.5;
    font-weight: 600;
}

.skm-chart-container {
    position: relative;
    height: 260px;
    margin: 12px 0 0;
}

.skm-chart-container.skm-chart-pie { height: 320px; }

.skm-chart-total {
    font-size: 12px;
    color: #64748b;
    margin: 4px 0 0;
}

.skm-chart-wide {
    padding: 20px 24px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 600px) {
    .skm-section { padding: 18px 16px; }
    .skm-section h2 { font-size: 17px; }
    .skm-options { grid-template-columns: 1fr; }
    .skm-charts-grid { grid-template-columns: 1fr; }
    .skm-submit-btn { width: 100%; }
    .skm-checkbox-group { grid-template-columns: 1fr; }
    .skm-chart-container { height: 220px; }
    .skm-chart-container.skm-chart-pie { height: 260px; }
}