/* =========================================================
   PERUSAHAAN - ASSESSMENT QUESTIONS
   ========================================================= */


/* =========================================================
   PAGE WRAPPER
   ========================================================= */

.assessment-question-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}


/* =========================================================
   PAGE HEADER
   ========================================================= */

.aq-page-header {
    width: 100%;
    margin-bottom: 22px;
}


/* =========================================================
   BACK BUTTON
   POJOK KIRI ATAS
   ========================================================= */

.aq-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-bottom: 13px;

    padding: 8px 13px;

    border: 1px solid #d8e0eb;
    border-radius: 8px;

    background: #ffffff;
    color: #475569;

    font-size: 11px;
    font-weight: 750;

    text-decoration: none;

    box-shadow:
        0 2px 7px rgba(15, 32, 66, .035);

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;
}


.aq-back-button:hover {
    background: #f4f7fb;
    border-color: #b9c7d8;
    color: #0f1f3d;
}


.aq-back-button:active {
    transform: translateY(1px);
}


.aq-back-arrow {
    font-size: 13px;
    line-height: 1;
}


/* =========================================================
   NAVY HEADER CARD
   ========================================================= */

.aq-header-card {
    position: relative;

    width: 100%;
    min-height: 150px;

    box-sizing: border-box;

    padding: 28px 32px;

    overflow: hidden;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #0b1d3a 0%,
            #102d56 55%,
            #174b91 100%
        );

    color: #ffffff;

    box-shadow:
        0 12px 30px rgba(15, 32, 66, .14);
}


/* =========================================================
   HEADER CONTENT
   ========================================================= */

.aq-header-content {
    position: relative;
    z-index: 3;

    max-width: 760px;
}


.aq-eyebrow {
    display: block;

    margin-bottom: 7px;

    color: #7bbcff;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.2px;
    text-transform: uppercase;
}


.aq-header-card h2 {
    margin: 0;

    color: #ffffff;

    font-size: 27px;
    font-weight: 800;

    line-height: 1.25;
    letter-spacing: -.6px;
}


.aq-header-card p {
    margin: 7px 0 0;

    color: #d5e2f4;

    font-size: 12px;
    line-height: 1.55;
}


/* =========================================================
   DECORATIVE CIRCLES
   ========================================================= */

.aq-header-circle {
    position: absolute;

    z-index: 1;

    border-radius: 50%;

    pointer-events: none;
}


.aq-header-circle-one {
    width: 190px;
    height: 190px;

    top: -92px;
    right: 55px;

    border: 1px solid rgba(255,255,255,.08);

    background:
        radial-gradient(
            circle,
            rgba(59,130,246,.23) 0%,
            rgba(59,130,246,.06) 55%,
            transparent 72%
        );
}


.aq-header-circle-two {
    width: 125px;
    height: 125px;

    right: -38px;
    bottom: -55px;

    border: 1px solid rgba(96,165,250,.16);

    background:
        rgba(37,99,235,.13);
}


/* =========================================================
   SECTION LABEL
   ========================================================= */

.aq-section-label {
    margin-bottom: 7px;

    color: #2563eb;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1px;
    text-transform: uppercase;
}


/* =========================================================
   ASSESSMENT INFO CARD
   ========================================================= */

.aq-info-card {
    width: 100%;
    box-sizing: border-box;

    margin-bottom: 20px;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e5eaf1;
    border-radius: 16px;

    box-shadow:
        0 8px 24px rgba(15, 32, 66, .055);
}


/* =========================================================
   INFO TOP
   ========================================================= */

.aq-info-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 24px;

    padding: 24px 26px;

    border-bottom: 1px solid #edf1f5;
}


.aq-info-top > div {
    min-width: 0;
}


.aq-info-top h3 {
    margin: 0;

    color: #172033;

    font-size: 18px;
    font-weight: 800;

    line-height: 1.35;
}


.aq-info-top p {
    max-width: 760px;

    margin: 6px 0 0;

    color: #7b8798;

    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   STATUS
   ========================================================= */

.aq-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    min-width: 62px;

    padding: 6px 11px;

    border-radius: 999px;

    font-size: 10px;
    font-weight: 800;

    white-space: nowrap;
}


.aq-status-draft {
    background: #fff7e8;
    color: #b7791f;
}


.aq-status-active {
    background: #eaf8ef;
    color: #16834b;
}


.aq-status-completed {
    background: #edf5ff;
    color: #2563eb;
}


.aq-status-cancelled {
    background: #fff0f0;
    color: #dc2626;
}


.aq-status-default {
    background: #f1f4f8;
    color: #64748b;
}


/* =========================================================
   META GRID
   ========================================================= */

.aq-meta-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));
}


.aq-meta-item {
    min-width: 0;

    padding: 19px 22px;

    border-right: 1px solid #edf1f5;
}


.aq-meta-item:last-child {
    border-right: none;
}


.aq-meta-item > span {
    display: block;

    margin-bottom: 7px;

    color: #8995a7;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .8px;
    text-transform: uppercase;
}


.aq-meta-item strong {
    display: block;

    color: #253047;

    font-size: 12px;
    font-weight: 750;

    line-height: 1.5;

    overflow-wrap: anywhere;
}


.aq-date-separator {
    display: inline !important;

    margin: 0 3px !important;

    color: #8995a7 !important;

    font-size: 12px !important;
}


.aq-total-number {
    color: #2563eb !important;
}


.aq-total-number small {
    color: #8995a7;

    font-size: 10px;
    font-weight: 650;
}


/* =========================================================
   MAIN QUESTION CARD
   ========================================================= */

.aq-main-card {
    width: 100%;
    box-sizing: border-box;

    margin-bottom: 20px;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e5eaf1;
    border-radius: 16px;

    box-shadow:
        0 8px 24px rgba(15, 32, 66, .055);
}


/* =========================================================
   CARD HEADER
   ========================================================= */

.aq-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;

    padding: 23px 26px;

    border-bottom: 1px solid #edf1f5;
}


.aq-card-header > div:first-child {
    min-width: 0;
}


.aq-card-header h3 {
    margin: 0;

    color: #172033;

    font-size: 18px;
    font-weight: 800;

    line-height: 1.35;
}


.aq-card-header p {
    margin: 5px 0 0;

    color: #7b8798;

    font-size: 12px;
    line-height: 1.55;
}


/* =========================================================
   ACTION BUTTONS
   ========================================================= */

.aq-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 9px;

    flex-shrink: 0;
}


.aq-primary-button,
.aq-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    min-height: 36px;

    padding: 9px 13px;

    border-radius: 9px;

    font-size: 11px;
    font-weight: 750;

    text-decoration: none;

    white-space: nowrap;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}


.aq-primary-button {
    border: 1px solid #2563eb;

    background: #2563eb;
    color: #ffffff;

    box-shadow:
        0 4px 12px rgba(37, 99, 235, .14);
}


.aq-primary-button:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;

    box-shadow:
        0 6px 16px rgba(37, 99, 235, .2);
}


.aq-secondary-button {
    border: 1px solid #d8e0eb;

    background: #ffffff;
    color: #334155;
}


.aq-secondary-button:hover {
    background: #f4f7fb;
    border-color: #b9c7d8;
    color: #0f1f3d;
}


.aq-primary-button:active,
.aq-secondary-button:active {
    transform: translateY(1px);
}


.aq-primary-button span,
.aq-secondary-button span {
    font-size: 13px;
    line-height: 1;
}


/* =========================================================
   QUESTION SECTION
   ========================================================= */

.aq-question-section {
    width: 100%;
    box-sizing: border-box;
}


.aq-question-section + .aq-question-section {
    border-top: 1px solid #edf1f5;
}


.aq-custom-section {
    background: #fcfdff;
}


/* =========================================================
   QUESTION SECTION HEADER
   ========================================================= */

.aq-question-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    padding: 20px 26px;

    background: #ffffff;

    border-bottom: 1px solid #edf1f5;
}


.aq-custom-section .aq-question-section-header {
    background: #fbfcfe;
}


.aq-question-title {
    display: flex;
    align-items: center;

    gap: 11px;

    min-width: 0;
}


.aq-title-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 34px;
    height: 34px;

    border-radius: 50%;

    background: #eaf2ff;
    color: #2563eb;

    font-size: 13px;
    font-weight: 800;
}


.aq-title-icon.custom {
    background: #f3efff;
    color: #6d4aff;
}


.aq-question-title strong {
    display: block;

    color: #253047;

    font-size: 13px;
    font-weight: 800;

    line-height: 1.35;
}


.aq-question-title p {
    margin: 3px 0 0;

    color: #8995a7;

    font-size: 10px;
    line-height: 1.45;
}


.aq-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    padding: 5px 9px;

    border-radius: 999px;

    background: #eef5ff;
    color: #2563eb;

    font-size: 10px;
    font-weight: 800;

    white-space: nowrap;
}


.aq-count-badge.custom {
    background: #f3efff;
    color: #6d4aff;
}


/* =========================================================
   QUESTION LIST
   ========================================================= */

.aq-question-list {
    width: 100%;
}


/* =========================================================
   QUESTION ITEM
   ========================================================= */

.aq-question-item {
    display: grid;

    grid-template-columns:
        38px minmax(0, 1fr) auto;

    align-items: center;

    gap: 14px;

    padding: 17px 26px;

    border-bottom: 1px solid #edf1f5;

    background: #ffffff;

    transition:
        background .2s ease;
}


.aq-question-item:last-child {
    border-bottom: none;
}


.aq-question-item:hover {
    background: #fafcff;
}


/* =========================================================
   QUESTION NUMBER
   ========================================================= */

.aq-question-number {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    border-radius: 50%;

    background: #eef5ff;
    color: #2563eb;

    font-size: 11px;
    font-weight: 800;
}


.aq-question-number.custom {
    background: #f3efff;
    color: #6d4aff;
}


/* =========================================================
   QUESTION BODY
   ========================================================= */

.aq-question-body {
    min-width: 0;
}


.aq-question-body p {
    margin: 0;

    color: #253047;

    font-size: 12px;
    font-weight: 600;

    line-height: 1.6;

    overflow-wrap: anywhere;
}


.aq-question-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 7px;

    margin-top: 7px;
}


.aq-question-info span {
    display: inline-flex;
    align-items: center;

    padding: 4px 7px;

    border-radius: 6px;

    background: #f3f6fa;
    color: #718096;

    font-size: 9px;
    font-weight: 700;
}


/* =========================================================
   QUESTION ACTION
   ========================================================= */

.aq-question-action {
    flex-shrink: 0;
}


.aq-disabled-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 55px;

    padding: 7px 10px;

    border: 1px solid #e3e8ef;
    border-radius: 7px;

    background: #f7f8fa;
    color: #a0a8b4;

    font-family: inherit;
    font-size: 10px;
    font-weight: 700;

    cursor: not-allowed;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.aq-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 230px;

    padding: 35px 24px;

    text-align: center;

    background: #ffffff;
}


.aq-empty-state.custom {
    background: #fcfdff;
}


.aq-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    margin-bottom: 13px;

    border-radius: 50%;

    background: #eef5ff;
    color: #2563eb;

    font-size: 17px;
    font-weight: 800;
}


.aq-empty-icon.custom {
    background: #f3efff;
    color: #6d4aff;
}


.aq-empty-state h4 {
    margin: 0 0 7px;

    color: #253047;

    font-size: 14px;
    font-weight: 800;
}


.aq-empty-state p {
    max-width: 500px;

    margin: 0 0 17px;

    color: #8995a7;

    font-size: 11px;
    line-height: 1.65;
}


.aq-empty-state p strong {
    color: #475569;
    font-weight: 750;
}


.aq-empty-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 35px;

    padding: 8px 13px;

    border: 1px solid #2563eb;
    border-radius: 8px;

    background: #2563eb;
    color: #ffffff;

    font-size: 10px;
    font-weight: 750;

    text-decoration: none;

    transition:
        background .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}


.aq-empty-button:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;

    box-shadow:
        0 5px 14px rgba(37, 99, 235, .18);
}


.aq-empty-button.custom {
    border-color: #6d4aff;
    background: #6d4aff;
}


.aq-empty-button.custom:hover {
    border-color: #5b3fe0;
    background: #5b3fe0;
}


/* =========================================================
   SUMMARY CARD
   ========================================================= */

.aq-summary-card {
    width: 100%;
    box-sizing: border-box;

    margin-bottom: 20px;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e5eaf1;
    border-radius: 16px;

    box-shadow:
        0 8px 24px rgba(15, 32, 66, .055);
}


.aq-summary-header {
    padding: 21px 26px;

    border-bottom: 1px solid #edf1f5;
}


.aq-summary-header h3 {
    margin: 0;

    color: #172033;

    font-size: 16px;
    font-weight: 800;
}


/* =========================================================
   SUMMARY GRID
   ========================================================= */

.aq-summary-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));
}


.aq-summary-item {
    display: flex;
    align-items: center;

    gap: 11px;

    min-width: 0;

    padding: 18px 21px;

    border-right: 1px solid #edf1f5;
}


.aq-summary-item:last-child {
    border-right: none;
}


.aq-summary-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 34px;
    height: 34px;

    border-radius: 50%;

    background: #eef5ff;
    color: #2563eb;

    font-size: 12px;
    font-weight: 800;
}


.aq-summary-icon.custom {
    background: #f3efff;
    color: #6d4aff;
}


.aq-summary-icon.total {
    background: #eef8f4;
    color: #16834b;
}


.aq-summary-icon.status {
    background: #fff7e8;
    color: #b7791f;
}


.aq-summary-item span {
    display: block;

    margin-bottom: 3px;

    color: #8995a7;

    font-size: 9px;
    font-weight: 700;

    line-height: 1.3;
}


.aq-summary-item strong {
    display: block;

    color: #253047;

    font-size: 15px;
    font-weight: 800;

    line-height: 1.3;
}


/* =========================================================
   ERROR
   ========================================================= */

.assessment-alert.error {
    margin-bottom: 20px;

    padding: 13px 16px;

    border: 1px solid #fecdd3;
    border-radius: 10px;

    background: #fff1f2;
    color: #be123c;

    font-size: 12px;
    line-height: 1.5;
}


/* =========================================================
   RESPONSIVE - 1000PX
   ========================================================= */

@media (max-width: 1000px) {

    .aq-meta-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .aq-meta-item:nth-child(2) {
        border-right: none;
    }


    .aq-meta-item:nth-child(-n + 2) {
        border-bottom: 1px solid #edf1f5;
    }


    .aq-summary-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .aq-summary-item:nth-child(2) {
        border-right: none;
    }


    .aq-summary-item:nth-child(-n + 2) {
        border-bottom: 1px solid #edf1f5;
    }

}


/* =========================================================
   RESPONSIVE - 800PX
   ========================================================= */

@media (max-width: 800px) {

    .aq-header-card {
        padding: 25px 26px;
    }


    .aq-header-card h2 {
        font-size: 24px;
    }


    .aq-card-header {
        align-items: flex-start;
        flex-direction: column;
    }


    .aq-actions {
        width: 100%;

        justify-content: flex-start;
    }


    .aq-primary-button,
    .aq-secondary-button {
        flex: 0 0 auto;
    }

}


/* =========================================================
   RESPONSIVE - 650PX
   ========================================================= */

@media (max-width: 650px) {

    .assessment-question-page {
        max-width: 100%;
    }


    .aq-page-header {
        margin-bottom: 18px;
    }


    .aq-header-card {
        min-height: 135px;

        padding: 22px 20px;

        border-radius: 14px;
    }


    .aq-header-card h2 {
        font-size: 22px;
    }


    .aq-header-card p {
        font-size: 11px;
    }


    .aq-header-circle-one {
        width: 145px;
        height: 145px;

        right: 20px;
        top: -75px;
    }


    .aq-header-circle-two {
        width: 95px;
        height: 95px;

        right: -30px;
        bottom: -42px;
    }


    .aq-info-top {
        align-items: flex-start;
        flex-direction: column;

        padding: 20px;
    }


    .aq-meta-grid {
        grid-template-columns: 1fr;
    }


    .aq-meta-item,
    .aq-meta-item:nth-child(2) {
        border-right: none;
        border-bottom: 1px solid #edf1f5;
    }


    .aq-meta-item:last-child {
        border-bottom: none;
    }


    .aq-card-header {
        padding: 19px 20px;
    }


    .aq-actions {
        align-items: stretch;
        flex-direction: column;
    }


    .aq-primary-button,
    .aq-secondary-button {
        width: 100%;
        box-sizing: border-box;
    }


    .aq-question-section-header {
        align-items: flex-start;
        flex-direction: column;

        padding: 17px 20px;
    }


    .aq-question-item {
        grid-template-columns:
            34px minmax(0, 1fr);

        gap: 11px;

        padding: 16px 20px;
    }


    .aq-question-action {
        grid-column: 2;
    }


    .aq-disabled-button {
        display: none;
    }


    .aq-summary-grid {
        grid-template-columns: 1fr;
    }


    .aq-summary-item,
    .aq-summary-item:nth-child(2) {
        border-right: none;
        border-bottom: 1px solid #edf1f5;
    }


    .aq-summary-item:last-child {
        border-bottom: none;
    }

}


/* =========================================================
   RESPONSIVE - 420PX
   ========================================================= */

@media (max-width: 420px) {

    .aq-back-button {
        padding: 8px 11px;

        font-size: 10px;
    }


    .aq-header-card {
        padding: 20px 17px;
    }


    .aq-header-card h2 {
        font-size: 20px;
    }


    .aq-header-card p {
        font-size: 11px;
    }


    .aq-info-top {
        padding: 17px;
    }


    .aq-info-top h3 {
        font-size: 16px;
    }


    .aq-meta-item {
        padding: 16px 17px;
    }


    .aq-card-header {
        padding: 17px;
    }


    .aq-card-header h3 {
        font-size: 16px;
    }


    .aq-question-section-header {
        padding: 16px 17px;
    }


    .aq-question-item {
        padding: 15px 17px;
    }


    .aq-question-number {
        width: 32px;
        height: 32px;
    }


    .aq-question-body p {
        font-size: 11px;
    }


    .aq-summary-header {
        padding: 18px 17px;
    }


    .aq-summary-item {
        padding: 16px 17px;
    }

}