/* =========================================================
   SURVEY IKM - JDIH KOTA MAKASSAR
   ========================================================= */

.ikm-page {
    background: #f6f8fb;
    min-height: 100vh;
    padding: 40px 0 60px;
}

/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */

.ikm-header {
    text-align: center;
    margin-bottom: 30px;
}

.ikm-header h2 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 8px;
}

.ikm-header .ikm-subtitle {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 4px;
}

.ikm-header .ikm-period {
    font-size: 14px;
    color: #6c757d;
}

/* ---------------------------------------------------------
   CARD UTAMA
   --------------------------------------------------------- */

.ikm-card {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
}

.ikm-card .card-body {
    padding: 32px;
}

/* ---------------------------------------------------------
   INFORMASI SURVEY
   --------------------------------------------------------- */

.ikm-info {
    border: 0;
    border-radius: 10px;
    padding: 15px 18px;
    margin-bottom: 30px;
}

.ikm-info i {
    margin-right: 8px;
}

/* ---------------------------------------------------------
   JUDUL BAGIAN
   --------------------------------------------------------- */

.ikm-section-title {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.ikm-section-title i {
    margin-right: 10px;
}

/* ---------------------------------------------------------
   FORM
   --------------------------------------------------------- */

.ikm-page .form-group {
    margin-bottom: 20px;
}

.ikm-page label {
    font-weight: 500;
    margin-bottom: 7px;
}

.ikm-page .form-control {
    border-radius: 8px;
    min-height: 42px;
    border: 1px solid #dfe3e8;
    transition: border-color .2s ease,
                box-shadow .2s ease;
}

.ikm-page .form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 .15rem rgba(0, 123, 255, .10);
}

/* ---------------------------------------------------------
   BLOK PERTANYAAN
   --------------------------------------------------------- */

.ikm-question {
    border: 1px solid #e5e9ef;
    border-radius: 12px;
    margin-bottom: 18px;
    background: #fff;
    transition: box-shadow .2s ease,
                transform .2s ease;
}

.ikm-question:hover {
    box-shadow: 0 5px 18px rgba(0, 0, 0, .05);
}

.ikm-question .card-body {
    padding: 22px;
}

.ikm-question-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 10px;
}

.ikm-question-text {
    color: #495057;
    line-height: 1.3;
    padding: 5px 20px;
}

/* ---------------------------------------------------------
   PILIHAN NILAI
   --------------------------------------------------------- */

.ikm-rating {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.ikm-rating-option {
    position: relative;
    padding: 15px;
}

.ikm-rating-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ikm-rating-option label {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    min-height: 48px;
    padding: 10px;

    border: 1px solid #dfe3e8;
    border-radius: 8px;

    background: #fff;
    color: #495057;

    cursor: pointer;

    font-size: 14px;
    font-weight: 500;

    transition: all .2s ease;
}

.ikm-rating-option label:hover {
    border-color: #80bdff;
    background: #f5f9ff;
}

/* Radio aktif */

.ikm-rating-option input:checked + label {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
    box-shadow: 0 3px 10px rgba(0, 123, 255, .20);
}

/* ---------------------------------------------------------
   NOMOR INDIKATOR
   --------------------------------------------------------- */

.ikm-indicator-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 38px;
    height: 30px;

    margin-right: 8px;

    border-radius: 6px;

    background: #eaf3ff;
    color: #007bff;

    font-size: 13px;
    font-weight: 700;
}

/* ---------------------------------------------------------
   SARAN
   --------------------------------------------------------- */

.ikm-suggestion {
    min-height: 130px;
    resize: vertical;
}

/* ---------------------------------------------------------
   PERNYATAAN PRIVASI
   --------------------------------------------------------- */

.ikm-privacy {
    border: 1px solid #e5e9ef;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 14px 16px;

    font-size: 13px;
    line-height: 1.6;

    color: #6c757d;
}

/* ---------------------------------------------------------
   TOMBOL SUBMIT
   --------------------------------------------------------- */

.ikm-submit {
    margin-top: 25px;
}

.ikm-submit .btn {
    min-width: 220px;
    min-height: 48px;

    border-radius: 9px;

    font-weight: 600;

    transition: transform .2s ease,
                box-shadow .2s ease;
}

.ikm-submit .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, .20);
}

/* ---------------------------------------------------------
   HALAMAN SUCCESS
   --------------------------------------------------------- */

.ikm-success {
    text-align: center;
    padding: 50px 30px;
}

.ikm-success-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.ikm-success h3 {
    font-weight: 700;
    margin-bottom: 12px;
}

.ikm-success p {
    color: #6c757d;
    line-height: 1.7;
}

/* ---------------------------------------------------------
   HALAMAN TIDAK TERSEDIA
   --------------------------------------------------------- */

.ikm-unavailable {
    text-align: center;
    padding: 50px 30px;
}

.ikm-unavailable-icon {
    font-size: 60px;
    color: #adb5bd;
    margin-bottom: 20px;
}

.ikm-unavailable h3 {
    font-weight: 700;
}

/* ---------------------------------------------------------
   RESPONSIVE TABLET
   --------------------------------------------------------- */

@media (max-width: 767.98px) {

    .ikm-page {
        padding: 25px 0 40px;
    }

    .ikm-header h2 {
        font-size: 24px;
    }

    .ikm-card .card-body {
        padding: 20px;
    }

    .ikm-rating {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* ---------------------------------------------------------
   RESPONSIVE MOBILE
   --------------------------------------------------------- */

@media (max-width: 575.98px) {

    .ikm-page {
        padding: 20px 0 30px;
    }

    .ikm-header {
        margin-bottom: 20px;
    }

    .ikm-header h2 {
        font-size: 21px;
    }

    .ikm-header .ikm-subtitle {
        font-size: 14px;
    }

    .ikm-card .card-body {
        padding: 16px;
    }

    .ikm-question .card-body {
        padding: 17px;
    }

    .ikm-question-text {
        font-size: 14px;
    }

    .ikm-rating {
        grid-template-columns: 1fr;
    }

    .ikm-rating-option label {
        justify-content: flex-start;
        padding-left: 16px;
    }

    .ikm-submit .btn {
        width: 100%;
    }

}

.ikm-question-description {
    margin-top: 8px;
    /*margin-bottom: 18px;*/
    padding: 10px 14px;
    border-left: 3px solid #dee2e6;
    background-color: #f8f9fa;
    border-radius: 0 6px 6px 0;
    font-size: 0.88rem;
    line-height: 1.3;
    color: #6c757d;
}

.ikm-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 35px;
    padding: 10px 0;
}

.ikm-stepper-item {
    position: relative;
    min-width: 120px;
    text-align: center;
    color: #adb5bd;
}

.ikm-stepper-circle {
    width: 38px;
    height: 38px;
    margin: 0 auto 8px;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    background: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 600;
    font-size: 14px;
}

.ikm-stepper-label {
    font-size: 13px;
    line-height: 1.3;
}

.ikm-stepper-line {
    flex: 1;
    height: 2px;
    max-width: 100px;
    margin-top: 19px;
    background: #dee2e6;
}

.ikm-stepper-item.active {
    color: #007bff;
}

.ikm-stepper-item.active .ikm-stepper-circle {
    border-color: #007bff;
    background: #007bff;
    color: #fff;
}

.ikm-stepper-item.completed {
    color: #28a745;
}

.ikm-stepper-item.completed .ikm-stepper-circle {
    border-color: #28a745;
    background: #28a745;
    color: #fff;
}

.ikm-step {
    display: none;
}

.ikm-step.active {
    display: block;
}

.ikm-step-header {
    margin-bottom: 25px;
}

.ikm-step-header h4 {
    margin-bottom: 8px;
    font-weight: 600;
}

.ikm-step-header p {
    margin-bottom: 0;
    color: #6c757d;
    line-height: 1.6;
}

.ikm-step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

@media (max-width: 576px) {

    .ikm-stepper {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .ikm-stepper-item {
        min-width: 90px;
    }

    .ikm-stepper-label {
        font-size: 11px;
    }

    .ikm-stepper-circle {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .ikm-stepper-line {
        min-width: 25px;
        margin-top: 17px;
    }

    .ikm-step-actions {
        gap: 10px;
    }

    .ikm-step-actions button {
        flex: 1;
    }
}

.ikm-rating-progress {
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6c757d;
}

.ikm-rating-step {
    display: none;
}

.ikm-rating-step.active {
    display: block;
}

.ikm-question-number {
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0d6efd;
    letter-spacing: 0.2px;
}

.ikm-success-card {
    max-width: 640px;
    margin: 30px auto;
    padding: 50px 40px;
    background: #ffffff;
    border: 1px solid #e3e7eb;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.ikm-success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: #eaf8ef;
    color: #28a745;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 32px;
}

.ikm-success-title {
    margin-bottom: 12px;
    color: #003b7a;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.3;
}

.ikm-success-message {
    max-width: 500px;
    margin: 0 auto 30px;
    color: #5f6368;
    font-size: 16px;
    line-height: 1.65;
}

.ikm-success-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 20px;
    border-radius: 6px;

    background: #0d6efd;
    border: 1px solid #0d6efd;

    color: #ffffff;
    font-size: 15px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.ikm-success-button:hover {
    background: #0b5ed7;
    border-color: #0a58ca;
    color: #ffffff;
    text-decoration: none;

    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.20);
}

@media (max-width: 576px) {

    .ikm-success-card {
        margin: 20px 10px;
        padding: 40px 22px;
        border-radius: 10px;
    }

    
    .ikm-success-icon {
        width: 72px;
        height: 72px;
        margin: 0 auto 22px;
        border-radius: 50%;
    
        background: #eaf8ef;
        color: #28a745;
    
        display: flex;
        align-items: center;
        justify-content: center;
    
        font-size: 34px;
        font-weight: 600;
    }

    .ikm-success-title {
        font-size: 26px;
    }

    .ikm-success-message {
        font-size: 15px;
        line-height: 1.6;
    }

    .ikm-success-button {
        width: 100%;
    }
}

.ikm-success-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
    background: #f8fafc;
}

.ikm-popup-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #eef4ff;
    color: #0d6efd;
}

.ikm-popup-icon svg {
    width: 30px;
    height: 30px;
    display: block;
}

.ikm-popup-survey-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.ikm-popup-close {
    position: absolute;
    top: 12px;
    right: 14px;

    width: 34px;
    height: 34px;

    border: 2px solid #212529;
    border-radius: 50%;

    background: #fff;

    opacity: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
}

.ikm-popup-close:hover {
    background: #f1f3f5;
    opacity: 1;
}

/* =========================================================
   HASIL SURVEY IKM
   Homepage JDIH Kota Makassar
   ========================================================= */

.hasil-ikm-section {
    position: relative;
    padding: 70px 0;
    background: linear-gradient(
        180deg,
        #f8fafc 0%,
        #ffffff 100%
    );
}


/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */

.hasil-ikm-section .text-primary {
    letter-spacing: 1.8px;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.hasil-ikm-section h2 {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.hasil-ikm-section .section-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
}


/* ---------------------------------------------------------
   ALERT STATUS
   --------------------------------------------------------- */

.hasil-ikm-section .alert {
    max-width: 820px;
    margin: 0 auto 35px;
    border: 0;
    border-radius: 14px;
    padding: 16px 22px;
    box-shadow: 0 5px 20px rgba(15, 23, 42, 0.05);
}

.hasil-ikm-section .alert strong {
    font-weight: 700;
}


/* ---------------------------------------------------------
   CARD NILAI UTAMA
   --------------------------------------------------------- */

.hasil-ikm-section .card {
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    box-shadow:
        0 12px 35px rgba(15, 23, 42, 0.08),
        0 2px 8px rgba(15, 23, 42, 0.03);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.hasil-ikm-section .card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.11),
        0 4px 12px rgba(15, 23, 42, 0.04);
}


/* ---------------------------------------------------------
   ICON NILAI
   --------------------------------------------------------- */

.hasil-ikm-section .fa-chart-line {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(13, 110, 253, 0.08);
}


/* ---------------------------------------------------------
   LABEL NILAI
   --------------------------------------------------------- */

.hasil-ikm-section .text-muted {
    color: #6b7280 !important;
}

.hasil-ikm-section .display-3 {
    margin: 8px 0 5px;

    font-size: 4.2rem;
    line-height: 1;

    font-weight: 800;
    letter-spacing: -2px;

    color: #111827;
}


/* ---------------------------------------------------------
   MUTU
   --------------------------------------------------------- */

.hasil-ikm-section .badge-success {
    border-radius: 30px;
    padding: 8px 18px;

    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;

    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.12);
}

.hasil-ikm-section h5 {
    margin-top: 12px;

    font-weight: 700;
    color: #1f2937;
}


/* ---------------------------------------------------------
   STATISTIK
   --------------------------------------------------------- */

.hasil-ikm-section .ikm-stat {
    position: relative;
    padding: 15px 20px;
}

.hasil-ikm-section .ikm-stat:not(:last-child)::after {
    content: "";

    position: absolute;

    top: 15%;
    right: 0;

    width: 1px;
    height: 70%;

    background: #e5e7eb;
}

.hasil-ikm-section .ikm-stat-value {
    font-size: 1.55rem;
    font-weight: 750;
    color: #1f2937;
}

.hasil-ikm-section .ikm-stat-label {
    display: block;

    margin-top: 3px;

    font-size: 0.78rem;
    color: #6b7280;

    text-transform: uppercase;
    letter-spacing: 0.7px;
}


/* ---------------------------------------------------------
   BUTTON
   --------------------------------------------------------- */

.hasil-ikm-section .btn-primary {
    border: 0;
    border-radius: 10px;

    padding: 11px 22px;

    font-size: 0.9rem;
    font-weight: 600;

    box-shadow:
        0 6px 16px rgba(13, 110, 253, 0.18);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.hasil-ikm-section .btn-primary:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 22px rgba(13, 110, 253, 0.24);
}


/* ---------------------------------------------------------
   RESPONSIVE TABLET
   --------------------------------------------------------- */

@media (max-width: 991.98px) {

    .hasil-ikm-section {
        padding: 55px 0;
    }

    .hasil-ikm-section .display-3 {
        font-size: 3.6rem;
    }

}


/* ---------------------------------------------------------
   RESPONSIVE MOBILE
   --------------------------------------------------------- */

@media (max-width: 767.98px) {

    .hasil-ikm-section {
        padding: 45px 0;
    }

    .hasil-ikm-section h2 {
        font-size: 1.65rem;
    }

    .hasil-ikm-section .display-3 {
        font-size: 3.1rem;
        letter-spacing: -1px;
    }

    .hasil-ikm-section .card-body {
        padding: 28px 20px;
    }

    .hasil-ikm-section .alert {
        font-size: 0.88rem;
        padding: 14px 16px;
    }

    .hasil-ikm-section .ikm-stat {
        padding: 12px 8px;
    }

    .hasil-ikm-section .ikm-stat:not(:last-child)::after {
        display: none;
    }

    .hasil-ikm-section .ikm-stat-value {
        font-size: 1.25rem;
    }

    .hasil-ikm-section .ikm-stat-label {
        font-size: 0.68rem;
    }

    .hasil-ikm-section .btn-primary {
        width: 100%;
        max-width: 320px;
    }

}

/* =========================================================
   NILAI IKM BERDASARKAN JENIS LAYANAN
   ========================================================= */

.ikm-layanan-section {
    padding: 25px 0 70px;
    background: #ffffff;
}


/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */

.ikm-section-label {
    display: inline-block;

    margin-bottom: 8px;

    color: #0d6efd;

    font-size: 0.76rem;
    font-weight: 700;

    letter-spacing: 1.6px;
}

.ikm-layanan-title {
    margin-bottom: 8px;

    color: #1f2937;

    font-size: 1.65rem;
    font-weight: 700;
}


/* ---------------------------------------------------------
   CARD
   --------------------------------------------------------- */

.ikm-layanan-card {
    height: 100%;

    border: 1px solid #edf0f4;
    border-radius: 16px;

    background: #ffffff;

    box-shadow:
        0 8px 25px rgba(15, 23, 42, 0.055);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.ikm-layanan-card:hover {
    transform: translateY(-5px);

    border-color: #dbe5f2;

    box-shadow:
        0 15px 35px rgba(15, 23, 42, 0.09);
}


.ikm-layanan-card-body {
    display: flex;

    padding: 24px;
}


/* ---------------------------------------------------------
   ICON
   --------------------------------------------------------- */

.ikm-layanan-icon {
    flex: 0 0 46px;

    width: 46px;
    height: 46px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-right: 16px;

    border-radius: 12px;

    background: rgba(13, 110, 253, 0.08);

    color: #0d6efd;

    font-size: 1.1rem;
}


/* ---------------------------------------------------------
   CONTENT
   --------------------------------------------------------- */

.ikm-layanan-content {
    flex: 1;
    min-width: 0;
}

.ikm-layanan-name {
    margin: 0 0 8px;

    color: #374151;

    font-size: 0.96rem;
    line-height: 1.45;
    font-weight: 650;
}


.ikm-layanan-score {
    margin-top: 4px;

    color: #111827;

    font-size: 2rem;
    line-height: 1.1;

    font-weight: 800;
    letter-spacing: -0.8px;
}


/* ---------------------------------------------------------
   META
   --------------------------------------------------------- */

.ikm-layanan-meta {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-top: 8px;

    color: #9ca3af;

    font-size: 0.76rem;
}


.ikm-layanan-badge {
    padding: 5px 10px;
    border-radius: 20px;

    background: rgba(25, 135, 84, 0.08);
    color: #198754;

    font-size: 0.7rem;
    font-weight: 700;

    white-space: nowrap;
}

.ikm-layanan-quality {
    margin-top: 6px;

    color: #198754;

    font-size: 0.82rem;
    font-weight: 700;
}


.ikm-layanan-responden {
    margin-top: 13px;

    color: #9ca3af;

    font-size: 0.72rem;
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 767.98px) {

    .ikm-layanan-section {
        padding: 15px 0 50px;
    }

    .ikm-layanan-title {
        font-size: 1.4rem;
    }

    .ikm-layanan-card-body {
        padding: 20px;
    }

    .ikm-layanan-score {
        font-size: 1.8rem;
    }

}


