/* =========================================================
   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;
}