@import "_variables.css";

.self-assessment-page {
    .main-container {
        margin: 0;
    }
}

.quiz-component {
    background-image: url("/site/assets/images/contact-bg.png");
    background-size: cover;
    width: 100%;
    height: 100vh;
    padding: 3.846rem 0;
    overflow-y: auto;

    .quiz-component__content {
        min-width: 55rem;
        max-width: 71.385rem;
        border-radius: 1.231rem;
        background: rgba(0, 0, 0, 0.4);
        border: 0.231rem solid rgba(255, 255, 255, 0.3);
        backdrop-filter: blur(6.662rem);

        .uk-card-header,
        .uk-card-footer {
            padding: 1.538rem;
        }

        .uk-card-body {
            gap: 1.538rem;
            padding: 4.923rem;
        }

        &.quiz-result-content {
            .uk-card-body {
                padding: 4.923rem 7.231rem;
            }
        }
    }

    .quiz-component__content-image {
        width: 17.231rem;
        height: 14.846rem;

        .quiz-logo {
            width: 8.154rem;
            margin-top: 0.769rem;
            margin-left: 4.231rem;
            position: absolute;
        }
    }

    .quiz-component__content-description {
        padding: 0 2.385rem;
    }

    .quiz-component__content-icon-title {
        gap: 1.538rem;
    }

    .quiz-component__content-sub-title {
        font-weight: 500;
        font-size: 1.538rem;
        line-height: 2.154rem;
        text-align: center;
        vertical-align: middle;
        color: rgba(255, 255, 255, 1);
    }

    .button-rounded {
        padding: 0.262rem 1.538rem;
    }

    .step-progress {
        border-radius: 0.769rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .steps {
        display: flex;
        gap: 0.308rem;
        flex-grow: 1;
    }

    .step {
        width: 100%;
        height: 0.308rem;
        border-radius: 0.923rem;
        background-color: #e0e0e0;
    }

    .step.completed {
        background-color: rgba(239, 68, 68, 1);
    }

    .step-count {
        font-size: 1.077rem;
        color: rgba(107, 114, 128, 1);
        margin-left: 0.769rem;
        white-space: nowrap;
    }


    .quiz-choice-content {
        margin-top: 2.923rem;
        background: #ffffff;
        width: auto;

        .uk-card-body {
            padding: 2.154rem 4.923rem;
            min-width: 500px;
            min-height: 200px;
        }

        .uk-card-footer {
            .button-rounded {
                display: flex;
                padding: 0.385rem 1.538rem;

                &:not(.uk-disabled) {
                    background: var(--primary-color);
                    color: var(--text-white);
                }

                &:first-child {
                    flex-direction: row-reverse;
                }
            }
        }

        .quiz-choice-body {
            &.--active {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                gap: 1.916rem;
            }

            .quiz-choice-hint {
                font-weight: 500;
                font-size: 1.077rem;
                line-height: 1.538rem;
                vertical-align: middle;
                color: rgba(107, 114, 128, 1);
            }

            .quiz-choice-question {
                font-weight: 500;
                font-size: 2.308rem;
                line-height: 2.769rem;
                vertical-align: middle;
                color: rgba(0, 0, 0, 1);
            }

            .quiz-choice-body__answer {
                /*min-width: 400px;*/
                padding: 0 2.308rem;
                gap: 1.231rem
            }

            .answer-button {
                padding: 0.769rem 2.462rem;
                background: rgba(254, 242, 242, 1);
                color: rgba(31, 41, 55, 1);
                line-height: 1.5;
                gap: 10.385rem;

                .answer-button__content {
                    flex: 1 20.385rem;
                }

                .uk-checkbox {
                    width: 1.231rem;
                    height: 1.231rem;
                    border-radius: 0.308rem;
                    border-width: 0.077rem;

                }

                &.active {
                    border: 0.154rem solid rgba(220, 38, 38, 1);
                    color: rgba(220, 38, 38, 1);

                    .uk-checkbox:checked {
                        color: #ffffff;
                        border: 0.077rem solid rgba(239, 68, 68, 1);
                        background-color: rgba(239, 68, 68, 1);
                    }
                }
            }

            .answer-text {
                border-radius: 0.615rem;
                padding: 1.154rem 0.923rem;
                resize: none;
                font-size: 1.077rem;
            }
        }
    }

    .input-send-result {
        border-radius: 0.923rem;
        padding: 1.385rem 0.923rem;
        backdrop-filter: blur(2.462rem);
        background-color: rgba(255, 255, 255, 0.1);
        gap: 0.615rem;
        height: 4.385rem;
        color: rgba(156, 163, 175, 1);

        &:not(.uk-form-danger) {
            color: rgba(156, 163, 175, 1);
            border: 0.077rem solid rgba(255, 255, 255, 0.2);
        }
    }

    .uk-form-icon {
        color: rgba(156, 163, 175, 1);

        svg, path {
            fill: rgba(156, 163, 175, 1) !important;
        }
    }

    .custome-completed {
        display: none !important;
    }
    .positionLbl {
        text-align: left !important;
        display: block;
        width: 100%;
        align-self: flex-start !important;
        font-weight: 500;
        font-size: 1rem;
        line-height: 1.4286rem;
        letter-spacing: 0%;
        color: #374151;
    }
    #position-input.uk-input {
        height: 2.5rem;
        border-radius: 0.75rem;
        border: 1px solid #D1D5DB;
        background: #fff;
        font-size: 1rem;
        color: #374151;
        padding: 0 1rem;
        margin-bottom: 1rem;
        box-sizing: border-box;
        outline: none;
        transition: border-color 0.2s;
    }
    #position-input.uk-input:focus {
        border-color: #6366F1;
        background: #fff;
    }
    #position-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem; /* khoảng cách giữa các tag, có thể điều chỉnh (1rem = 16px) */
        margin-top: 1.142rem;
        align-items: flex-start;
        justify-content: flex-start;
        margin-top: 0.25rem;
    }

    .position-tag {
        /* Xóa width và height cố định */
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 9999px;
        padding: 0.5rem 1.25rem; /* top/bottom: 8px, left/right: 20px */
        background: var(--Default-red-50, #FEF2F2);
        border: none;
        font-family: 'DM Sans', sans-serif;
        font-weight: 500;
        font-size: 1rem;
        line-height: 1.4286rem;
        letter-spacing: 0%;
        color: #374151;
        cursor: pointer;
        transition: background 0.2s, color 0.2s;
        margin: 0; /* Để khoảng cách do gap của flexbox quản lý */
        white-space: nowrap; /* Không xuống dòng trong tag */
    }

    .position-tag:hover,
    .position-tag:focus {
        background: #fde4e4;
        color: #b91c1c;
    }
    .position-tag.disabled {
        opacity: 0.5;
        pointer-events: none;
    }
    .clear-input {
        position: absolute;
        top: 35%;
        right: 0.5rem;
        transform: translateY(-50%);
        display: none;
        background: none;
        border: none;
        font-size: 1rem;
        color: #374151;
        line-height: 1;
        padding: 0;
        margin: 0;
        width: 1.5rem;
        height: 1.5rem;
        cursor: pointer;
    }
}