/* =====================================================================
   mental-health.css
   Styling khusus: Kuesioner Skrining Awal Kesehatan Mental
   Mengikuti token warna & komponen yang sama dengan assessment.css / p3ai.css
   ===================================================================== */

.mh-page { padding-top: 10px; }

.mh-title { text-align: center; margin: 10px 0 4px; }

.mh-title h1 {
    font-size: 22px;
    color: var(--usk-green-dark);
    margin: 0 0 4px;
    letter-spacing: .3px;
}

.mh-title h2 {
    font-size: 14px;
    color: var(--usk-green-mid);
    font-weight: 700;
    margin: 0 0 2px;
}

.mh-title h3 {
    font-size: 12.5px;
    color: var(--usk-muted);
    font-weight: 600;
    margin: 0 0 18px;
}

.mh-intro {
    font-size: 13px;
    color: var(--usk-text);
    background: var(--usk-green-light);
    border-left: 3px solid var(--usk-green-mid);
    padding: 12px 14px;
    border-radius: 6px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.mh-intro strong { color: var(--usk-green-dark); }

.mh-confidential {
    font-size: 12.5px;
    font-weight: 700;
    color: #8a5a00;
    background: #fffbea;
    border-left: 3px solid var(--usk-gold);
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* ---- Data Diri ---- */

.mh-identity .field input,
.mh-identity .field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--usk-border);
    border-radius: 8px;
    font-size: 14px;
    background: var(--usk-white);
    font-family: inherit;
    color: var(--usk-text);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;...panah bawah...");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.mh-identity .field select {
    padding-right: 36px;   /* beri ruang untuk ikon panah */
    cursor: pointer;
}

.mh-identity .field input:focus,
.mh-identity .field select:focus {
    outline: none;
    border-color: var(--usk-green-mid);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12);
}
.mh-identity {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    background: var(--usk-green-light);
    border: 1px solid var(--usk-border);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 20px;
}

@media (min-width: 640px) {
    .mh-identity { grid-template-columns: 1fr 1fr; }
}

.mh-identity .field label {
    display: block;
    font-weight: 700;
    font-size: 13px;
    color: var(--usk-text);
    margin-bottom: 6px;
}

.mh-identity .field label .req { color: #b3261e; }

.mh-identity .field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--usk-border);
    border-radius: 8px;
    font-size: 14px;
    background: var(--usk-white);
    font-family: inherit;
    color: var(--usk-text);
}

/* ---- Petunjuk pengisian ---- */
.mh-guide {
    font-size: 13px;
    color: var(--usk-text);
    line-height: 1.6;
    margin: 0 0 18px;
}

.mh-guide h4 {
    color: var(--usk-green-dark);
    font-size: 15px;
    margin: 0 0 6px;
}

/* ---- Bagian header + legenda skala ---- */
.mh-section-heading {
    font-size: 16px;
    font-weight: 800;
    color: var(--usk-green-dark);
    margin: 26px 0 6px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--usk-gold);
}

.mh-scale-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 12px;
    font-style: italic;
    color: var(--usk-muted);
    margin-bottom: 14px;
}

.mh-scale-legend b { font-style: normal; color: var(--usk-green-dark); }


/* ---- Kotak Petunjuk Skoring (informasional, di akhir form) ---- */
.mh-scoring-box {
    background: #fffbea;
    border-left: 3px solid var(--usk-gold);
    border-radius: 6px;
    padding: 14px 16px;
    margin: 24px 0;
    font-size: 13px;
    color: var(--usk-text);
    line-height: 1.6;
}

.mh-scoring-box strong { color: var(--usk-green-dark); }

/* ---- Kartu pertanyaan skala 1-5 ---- */
.mh-question {
    background: var(--usk-white);
    border: 1px solid var(--usk-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 14px 16px;
    margin-bottom: 12px;
}

.mh-question .q-head {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.mh-question .q-num {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--usk-green-light);
    color: var(--usk-green-dark);
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mh-question .q-text {
    font-size: 14px;
    color: var(--usk-text);
    line-height: 1.5;
    padding-top: 3px;
}

/* Skala 1-5 horizontal (mirip kolom tabel pada kuesioner asli) */
.mh-scale {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    padding-left: 36px;
}

.mh-scale label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    border: 1px solid var(--usk-border);
    border-radius: 8px;
    font-size: 11px;
    color: var(--usk-muted);
    cursor: pointer;
    text-align: center;
    transition: all .15s ease;
}

.mh-scale label .scale-num {
    font-size: 14px;
    font-weight: 800;
    color: var(--usk-text);
}

.mh-scale input[type="radio"] {
    accent-color: var(--usk-green-mid);
    width: 15px;
    height: 15px;
}

.mh-scale label.checked {
    background: var(--usk-green-light);
    border-color: var(--usk-green-mid);
}

.mh-scale label.checked .scale-num,
.mh-scale label.checked { color: var(--usk-green-dark); font-weight: 700; }

@media (max-width: 460px) {
    .mh-scale { padding-left: 0; }
    .mh-scale label { font-size: 9.5px; padding: 6px 2px; }
}

.mh-submit-row { text-align: center; margin: 26px 0 30px; }

/* ---- Hasil sukses ---- */
.mh-result {
    text-align: center;
    background: var(--usk-green-light);
    border-radius: var(--radius-lg);
    padding: 40px 20px;
    margin: 20px 0 20px;
}

.mh-result .result-icon { font-size: 40px; margin-bottom: 10px; }
.mh-result h2 { color: var(--usk-green-dark); margin: 0 0 8px; }
.mh-result p { color: var(--usk-muted); margin: 0 0 18px; }

.mh-contact-box {
    background: var(--usk-white);
    border: 1px solid var(--usk-border);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin: 0 0 30px;
    font-size: 13px;
    color: var(--usk-text);
    line-height: 1.7;
}

.mh-contact-box strong { color: var(--usk-green-dark); }