.top-head {
    display: flex;
    flex-wrap: nowrap;
}

.top-head>div {
    flex: 1;
    height: 12px;
}

.bottom-footer {
    font-weight: 400;
    font-size: 0.937rem;
    color: #FFFFFF;
    line-height: 1.312rem;
    padding: 14px 0;
    text-align: center;
    background-color: #0ABAB5;
}

.main-body {
    background: url('../images/questionnaire/bg.png');
    padding: 20px 0 200px;
    width: 100%;
    height: 100%;
    background-size: 800px auto;
    min-height: 100vh;
}

.main-body > .container {
    max-width: 1100px;
}

.content {
    padding: 30px 70px 110px;
    background: #FFFFFF;
    border-radius: 38px;
}

.content-head {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    margin-bottom: 20px;
}

.content-head .about-decorate {
    /* width: 10%; */
    flex: 1;
}

.content-head .about-decorate hr {
    margin: 10px 0;
    color: #1DABA7;
    background-color: #1DABA7;
}

.content-head .title {
    font-weight: 500;
    font-size: 1.875rem;
    color: #F88E1C;
    line-height: 2.625rem;
    padding: 0 30px;
}

.content .info {
    font-weight: 400;
    font-size: 1.125rem;
    color: #525F6B;
    line-height: 2.5rem;
}


.list-info li {
    font-weight: 400;
    font-size: 1.125rem;
    color: #525F6B;
    line-height: 1.562rem;
}

.list-info li:not(:last-child) {
    margin-bottom: 15px;
}

.list-info li::marker {
    color: #F88E1C;
}

/* Category introduction: show the list in columns without changing its data. */
.category-intro-step .category-list li {
    min-width: 0;
    overflow-wrap: anywhere;
}

.category-intro-step .table.info {
    line-height: 1.45;
}

@media (min-width: 992px) and (max-width: 1599.98px) {
    .category-intro-step .category-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 32px;
    }

    .category-intro-step .category-list li,
    .category-intro-step .category-list li:not(:last-child) {
        margin-bottom: 0;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .category-intro-step .category-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 24px;
    }

    .category-intro-step .category-list li,
    .category-intro-step .category-list li:not(:last-child) {
        margin-bottom: 0;
    }
}

@media (max-width: 767.98px) {
    .category-intro-step .category-list {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        margin-top: 1rem !important;
        padding-inline-start: 1.35rem;
    }

    .category-intro-step .category-list li,
    .category-intro-step .category-list li:not(:last-child) {
        margin-bottom: 0;
    }

    .category-intro-step .table {
        table-layout: fixed;
        font-size: .875rem;
    }

    .category-intro-step .table td {
        padding: .5rem;
        overflow-wrap: anywhere;
    }

    .category-intro-step .table td:first-child {
        width: 28px;
        text-align: center;
    }
}

@media (min-width: 1600px) {
    .category-intro-step .category-list {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px 32px;
    }

    .category-intro-step .category-list li,
    .category-intro-step .category-list li:not(:last-child) {
        margin-bottom: 0;
    }
}

.custom-list li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: #0cbaa4;
    border-radius: 50%;
}

.submit,
.print-button {
    display: flex;
    align-items: center;
    background: #F6AA58;
    border-radius: 6px 19px 6px 19px;
    padding: 13px 50px;
    border: 0;
    font-size: 1.125rem;
    color: #FFFFFF;
    line-height: 1.562rem;
    margin: 40px auto 0;
}
.print-button  {
    margin: 0;
    justify-content: center;
    width: 220px;
    text-align: center;
}

.logo-image {
    /* width: 60%; */
    width: auto;
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F6AA58;
    border-radius: 6px 19px 6px 19px;
    padding: 14px 16px;
    min-width: 220px;
    border: 0;
    font-size: 1.125rem;
    color: #FFFFFF;
    line-height: 1.562rem;
    margin: 40px auto 0;
}

.submit-btn img {
    width: 14px;
}

#student-basic-info label.form-label {
    font-weight: 400;
    font-size: 1rem;
    color: #34414D;
    line-height: 1.375rem;
}

#student-basic-info .form-label > .required {
    color: #dc3545;
}

#student-basic-info input.form-control,
#student-basic-info select.form-select,
#student-basic-info textarea.form-control {
    border-radius: 0;
}

#student-basic-info input.form-control::placeholder {
    color: #8A939B;
}

.date-picker-input .date-picker-trigger {
    min-width: 44px;
    justify-content: center;
    border-radius: 0;
    border-color: #ced4da;
    background-color: #f8fbfc;
    color: #0c83c8;
    cursor: pointer;
}

.date-picker-input .date-picker-trigger:hover,
.date-picker-input .date-picker-trigger:focus-visible {
    background-color: #e8f5fb;
    color: #08699f;
}

.date-picker-input .date-picker-trigger:disabled {
    color: #a8b0b7;
    background-color: #e9ecef;
    cursor: not-allowed;
}

.button-wrapp {
    display: flex;
    justify-content: space-between;
}

.button-wrapp .prev-btn,
.button-wrapp .next-btn {
    border: 0;
    font-size: 1.125rem;
    color: #FFFFFF;
    line-height: 1.562rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 220px;
    padding: 14px 16px;
}

.button-wrapp .prev-btn {
    background: #2599CD;
    border-radius: 6px 19px 6px 19px;
}

.button-wrapp .prev-btn img {
    margin-right: 10px;
}

.button-wrapp .next-btn {
    background: #F6AA58;
    border-radius: 6px 19px 6px 19px;
}

.button-wrapp .next-btn img {
    margin-left: 10px;
}

.progress-container .progress-title {
    text-align: right;
    font-weight: 400;
    font-size: 0.875rem;
    color: #8A939B;
    line-height: 1.25rem;
    margin-bottom: 11px;
}

.progress-container .progress {
    border-radius: 0;
    height: 4px;
    background-color: #E6E6E7;
}

.progress-container .progress .progress-bar {
    background-color: #0ABAB5;
}

.questionnaire-body {
    padding: 20px 0 30px;
}

.questionnaire-body .questionnaire-title {
    font-weight: 500;
    font-size: 1.2rem;
    color: #34414D;
    line-height: 1.6rem;
    margin-bottom: 0;
    width: 48%;
    display: flex;
}
.questionnaire-body .questionnaire-title > span {
    display: inline-block;
}

.questionnaire-body .question-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.questionnaire-body .questionnaire-option {
    flex: 1;
    display: flex;
    justify-content: end;
}

.questionnaire-body .questionnaire-option > .item {
    border: 1px solid #C1CAD9;
    padding: 6px 12px;
    font-weight: 400;
    font-size: .9rem;
    color: #525F6B;
    line-height: 1.2rem;
    cursor: pointer;
    margin-right: 5px;
}

.questionnaire-body .questionnaire-option > .item.active {
    background: #0ABAB5;
    color: #fff;
    border: 1px solid #0ABAB5;
}

.complete-container {
    text-align: center;
    margin: 30px 0 130px;
}

.complete-container .image {
    width: 120px;
}

.complete-container .title {
    font-weight: 500;
    font-size: 1.75rem;
    color: #34414D;
    line-height: 2.375rem;
    margin-top: 28px;
}

.complete-container .info {
    font-weight: 400;
    font-size: 1.125rem;
    color: #525F6B;
    line-height: 1.562rem;
}

.step {
    display: none;
}
.step.active {
    display: block;
}

.fixed-footer {
    padding: 15px 0;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    color: #000;
}
.fixed-footer.form1{
    color: #FFF;
    background-color: #DC783C;
}
.fixed-footer.form2{
    color: #FFF;
    background-color: #0C83C8;
}
.fixed-footer.form3{
    color: #fff;
    background-color: #5B40A5;
}

.question-category-head.form1:before {
    background: #DC783C;
    border-color: #DC783C;
}
.question-category-head.form2:before {
    background: #0C83C8;
    border-color: #0C83C8;
}
.question-category-head.form3:before {
    background: #5B40A5;
    border-color: #5B40A5;
}
.btn-back-home-content {
    margin-top: 15px;
    text-align: center;
}
.question-category-head {
    position: relative;
    margin: 22px 0 8px;
    padding: 20px 24px 20px 28px;
    border-radius: 20px;
    border: 1px solid rgba(12, 131, 200, 0.14);
    background: linear-gradient(135deg, #f2fbff 0%, #ffffff 62%, #f8fdff 100%);
    overflow: hidden;
}
.question-category-head::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 100%;
    background: linear-gradient(180deg, #0C83C8 0%, #3CC9C1 100%);
}
.question-category-name {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: clamp(1.125rem, 1.6vw, 1.5rem);
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0.01em;
    color: #16364A;
}

.footer-title, .form-control, .select2-container, article .row {
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .question-category-head {
        margin-top: 18px;
        padding: 16px 18px 16px 56px;
        border-radius: 16px;
    }
    .question-category-head::before {
        width: 8px;
    }
    .question-category-head::after {
        left: 18px;
        width: 20px;
        height: 20px;
        box-shadow: 0 0 0 6px rgba(12, 131, 200, 0.08);
    }
    .question-category-name {
        font-size: 1.05rem;
        line-height: 1.4;
    }
}

@media(max-width: 1440px) {
    .content {
        padding: 30px 80px 110px;
    }
}

@media(max-width: 1024px) {
    .questionnaire-body {
        padding-left: 0;
        padding-right: 0;
    }
    .questionnaire-body .question-card {
        flex-wrap: wrap;
    }
    .questionnaire-body .questionnaire-option > .item {
        width: 100%;
        text-align: center;
        margin-top: 5px;
        font: 1.2rem;
    }
    .questionnaire-body .questionnaire-title {
        width: 100%;
        font-size: 1.25rem;
        line-height: 1.625rem;
        font-weight: 500;
        margin-bottom: 20px;
    }
}

@media(max-width: 765px) {
    .header-logo {
        padding: 0 40px;
    }

    .content {
        padding: 60px 20px 60px;
    }

    .content .title {
        font-size: 1.375rem;
        line-height: 1.875rem;
    }

    .content .info,
    .content .list-info li {
        font-size: 0.937rem;
        line-height: 1.875rem;
    }

    .list-info li:not(:last-child) {
        margin-bottom: 10px;
    }

    .logo-image {
        width: 100%;
    }

    .main-body {
        padding: 20px 0 100px;
    }

    .button-wrapp {
        flex-wrap: wrap;
    }
    
    .button-wrapp .prev-btn,
    .button-wrapp .next-btn {
        font-size: 0.875rem;
        line-height: 1.25rem;
        padding: 10px 15px;
        width: 100%;
        margin-bottom: 15px;
        justify-content: center;
    }

    .button-wrapp .prve-btn img {
        margin-right: 8px;
    }

    .button-wrapp .next-btn img {
        margin-left: 8px;
    }

    .button-wrapp img {
        width: 14px;
    }

    .questionnaire-body .questionnaire-option>.item {
        font-size: 1rem;
        line-height: 1.375rem;
    }

    .complete-container {
        margin: 30px 0 60px;
    }

    .print-button {
        margin: 30px auto 0;
    }
}

/*
 * Assessment creation page: keep the entire active step visible on a
 * 1920 x 1080 desktop viewport. The layout remains normally scrollable on
 * smaller screens, where preserving readable type and form controls is more
 * important than forcing a fixed-height composition.
 */
@media (min-width: 1600px) and (min-height: 1000px) {
    html:has(.assessment-create-main),
    body:has(.assessment-create-main) {
        height: 100%;
        overflow-x: hidden;
    }

    .assessment-create-top-head > div {
        height: 8px;
    }

    .assessment-create-main {
        height: calc(100vh - 8px);
        min-height: 0;
        padding: 8px 0 52px;
        overflow-x: hidden;
    }

    .assessment-create-main > .container {
        display: flex;
        flex-direction: column;
        height: 100%;
        max-width: 1420px;
    }

    .assessment-create-main .header-logo {
        display: flex;
        flex: 0 0 72px;
        align-items: center;
        justify-content: center;
        height: 72px;
    }

    .assessment-create-main .logo-image {
        width: auto;
        max-width: 100%;
        max-height: 66px;
    }

    .assessment-create-main .header-logo + .mt-4 {
        flex: 0 0 150px;
        height: 150px;
        margin-top: 8px !important;
    }

    .assessment-create-main .header-logo + .mt-4 > img {
        display: block;
        width: 100% !important;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }

    .assessment-create-main #form-container {
        flex: 1 1 auto;
        min-height: 0;
        margin-top: 8px;
    }

    .assessment-create-main .content {
        padding: 18px 48px 20px;
        border-radius: 28px;
    }

    .assessment-create-main .content-head {
        margin-bottom: 10px;
    }

    .assessment-create-main .content-head .about-decorate hr {
        margin: 6px 0;
    }

    .assessment-create-main .content-head .title {
        padding: 0 22px;
        font-size: 1.5rem;
        line-height: 2rem;
    }

    .assessment-create-main .content .info {
        font-size: 1rem;
        line-height: 1.65rem;
    }

    .assessment-create-main .content .mt-4 {
        margin-top: 1rem !important;
    }

    .assessment-create-main .category-intro-step > h4 {
        margin-bottom: .65rem !important;
        font-size: 1.125rem;
        line-height: 1.45;
    }

    .assessment-create-main .category-intro-step .category-list {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px 32px;
        margin-bottom: 0;
        padding-inline-start: 1.5rem;
    }

    .assessment-create-main .category-intro-step .category-list li,
    .assessment-create-main .category-intro-step .category-list li:not(:last-child) {
        margin-bottom: 0;
        font-size: 1rem;
        line-height: 1.45rem;
    }

    .assessment-create-main .category-intro-step .table {
        margin-bottom: 0;
    }

    .assessment-create-main .category-intro-step .table td {
        padding-top: .45rem;
        padding-bottom: .45rem;
    }

    .assessment-create-main .submit-btn {
        margin-top: 20px;
        padding: 10px 42px;
    }

    .assessment-create-main .btn-back-home-content {
        margin-top: 8px;
    }

    .assessment-create-main .button-wrapp {
        margin-top: 1rem !important;
    }

    .assessment-create-main .button-wrapp .prev-btn,
    .assessment-create-main .button-wrapp .next-btn {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .assessment-create-main .questionnaire-body {
        padding: 12px 0 16px;
    }

    .assessment-create-main .questionnaire-body .question-card {
        margin-bottom: 16px;
    }

    .assessment-create-main .complete-container {
        margin: 10px 0 30px;
    }

    .assessment-create-footer {
        padding: 12px 0;
    }
}
