/* ==============================
   BASE STYLES
   ============================== */

.custom-progress-bar-wrapper {
  width: 100%;
  height: 20px;
  background-color: #eee;
  border-radius: 10px;
  overflow: hidden;
  margin: 10px 0;
}

.custom-progress-bar-fill {
  height: 100%;
  width: 0%;
  background-color: #4caf50; /* Change this to your desired color */
  border-radius: 10px;
  transition: width 0.3s ease-in-out;
}



#mock-progress-bar-container {
    width: 50%;
    height: 0.625rem; /* 10px */
    background-color: #ddd;
    margin: 0 0.625rem; /* 0 10px */
    flex-grow: 1;
    border-radius: 0.3125rem; /* 5px */
    overflow: hidden;
    align-self: center;
}

#mock-progress-bar {
    height: 100%;
    background-color: #F2B94A;
    width: 0%;
    transition: width 0.3s ease;
}

#exam-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem; /* 10px */
    margin-top: 1.25rem; /* 20px */
}

.fullscreen-notice {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 7.5rem; /* 120px */
    z-index: 9999;
    background-color: #511B4D;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 1.875rem; /* 30px */
}

.doc-exam-cnt-fule-sec-img img {
    width: 19.6875rem; /* 315px */
    height: auto;
    
}

.doc-exam-cnt-fule-sec-content h2 {
    font-family: Manrope;
    font-weight: 500;
    font-size: 1.875rem; 
    line-height: 1.25rem; 
    color: #FFFFFF;
}

.exam-header-end{
    display: flex;
    align-items: center;
    gap: 2rem;
}

.get-help-exam a{
    font-family: IBM Plex Sans;
    font-weight: 400;
    font-style: Regular;
    font-size: 0.875rem;
    line-height:1.25rem;
    background: #DCDCDC;
    color: #4D4D4D;
    padding: 0.625rem 1rem;
    border-radius:1.875rem;
    text-decoration: none;
}

.fullscreen-notice{
    height: 100vh;
}

.fullscreen-notice.failure .doc-exam-cnt-fule-sec-content h2 {
    color: #000000;
}

.doc-exam-cnt-fule-sec {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.doc-exam-cnt-fule-sec-content h3{
    font-size: 1.325rem;
    font-family: Poppins;
    font-weight: 400;
    line-height: 150%;
    color: #FFF;
    margin: 0.875rem 0 1.5rem; 
}

.fullscreen-notice.failure .doc-exam-cnt-fule-sec-content p{
    color: #0000008A;
    font-family: Poppins;
    font-weight: 400;
    font-size: 0.875rem; /* 14px */
    line-height: 150%;
    max-width: 54.625rem; /* 874px */
}

.doc-exam-cnt-fule-sec-content p{
    font-family: Poppins;
    font-weight: 400;
    font-size: 0.875rem; /* 14px */
    line-height: 150%;
    color: #FFFFFF8A;
    margin: 0.875rem 0 1.5rem; /* 14px 0 24px */
}

.doc-exam-cnt-fule-sec-btn a {
    padding: 0.875rem 2.1875rem; /* 14px 35px */
    border-radius: 1.6875rem; /* 27px */
    border: none;
    background: #F2B94A;
    text-decoration: none;
}

.fullscreen-notice.failure {
    background-color: #E8E8E8;
    color: #000;
}

.fullscreen-notice .wrap {
    max-width: 37.5rem; /* 600px */
}

.success-head {
    margin-bottom: 1.25rem; /* 20px */
}

.desk-logo.logo img {
    width: 9.375rem;
    height: auto;
    object-fit: cover;
    background: #511b4d;
    border-radius: 2.1875rem; /* 35px */
    padding: 0 1.25rem; /* 0 20px */
}

.head-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.029rem 0;
}

/* page style - jis */
.mock-exam-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 4.375rem 0; /* 70px 0 */
}

.mock-exam-head-sec h2 {
    font-family: Manrope;
    font-weight: 500;
    font-size: 1.875rem; /* 30px */
    line-height: 1.25rem; /* 20px */
    text-align: center;
}

.mock-exam-head-sec p {
    font-family: Poppins;
    font-weight: 400;
    font-size: 0.875rem; /* 14px */
    line-height: 150%;
    text-align: center;
}

.doc-exam-sec-container {
    display: flex;
    gap: 15.625rem; /* 250px */
    justify-content: space-between;
    flex-direction: row;
    border: 1px solid;
    background: #FFFFFF;
    padding: 1.25rem; /* 20px */
    border-radius: 1.125rem; /* 18px */
    color: #000000;
    cursor: pointer;
    margin-top: 2rem; /* 32px */
}

.doc-exam-sec-container.active{
    background-color: #511B4D;
    color: #fff;
}

.doc-exam-sec-container.active p{
    color: #fff;
}

.doc-exam-sec-container:hover {
    background-color: #511B4D;
    color: #fff;
}
.doc-exam-sec-container:hover p{
        color: #fff;
}

.mock-test-btn {
    text-align: center;
}

.mock-test-btn input[type="submit"] {
    background: #F2B94A;
    padding: 1rem 4.25rem; /* 16px 68px */
    border-radius: 6.125rem; /* 98px */
    cursor: pointer;
    border: none;
    font-family: Manrope;
    font-weight: 700;
    font-size: 1rem; /* 16px */
    line-height: 1.25rem; /* 20px */
}

.doc-exam-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 9.375rem 0 6.875rem; /* 150px 0 110px */
}

.doc-exam-timer-grp {
    width: 10.9375rem; /* 175px */
    height: 6.6875rem; /* 107px */
    gap: 1.875rem; /* 30px */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    background: #511b4d;
    color: #fff;
    border-radius: 1rem; /* 16px */
}

.doc-exam-timer-min span,
.doc-exam-timer-grp-seconds span {
    font-size: 2.1875rem; /* 35px */
}

.doc-exam-timer-min div,
.doc-exam-timer-grp-seconds div {
    font-size: 0.8125rem; /* 13px */
}

.doc-exam-sec-right img {
    width: 7.188rem; /* 115px */
    height: 7.188rem; /* 115px */
}

.doc-exam-qus-opt-page {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scholarship-question ol li,
.scholarship-question p,
.mock-question-text p,
.mock-question-text ol li{
    margin: 1.5rem 0 3.75rem; /* 24px 0 60px */
    list-style: none;
    font-family: Manrope;
    font-weight: 500;
    font-size: 1.875rem; /* 30px */
    line-height: 1.25rem; /* 20px */
}

.option-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 0.9375rem; /* 15px */
    row-gap: 1.25rem; /* 20px */
    column-gap: 1.25rem; /* 20px */
    margin-bottom:2.25rem;
}

/* Hide default browser radio */
.option-box input[type="radio"] {
    display: none;
}

/* Custom radio circle */
.custom-radio {
    height: 1.25rem; /* 20px */
    width: 1.25rem; /* 20px */
    border: 0.125rem solid #262626; /* 2px */
    border-radius: 0.25rem; /* 4px */
    display: inline-block;
    margin-right: 0.75rem; /* 12px */
    position: relative;
    transition: all 0.3s ease;
}

/* Normal state */
.option-box {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.125rem; /* 14px 18px */
    background: #f5f5f5;
    border-radius: 0.5rem; /* 8px */
    border: 0.125rem solid transparent; /* 2px */
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem; /* 16px */
    font-weight: 500;
    color: #333;
}

/* Hover effect */
.option-box:hover {
    background: #ececec;
}

/* Selected state */
.option-box input[type="radio"]:checked + .custom-radio {
    border-color: #FFFFFF;
}

/* Tick mark when checked */
.option-box input[type="radio"]:checked + .custom-radio::after {
    content: "✔";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -53%);
    font-size: 0.875rem; /* 14px */
    color: #FFFFFF;
}

/* Change entire option styling when selected */
.option-box input[type="radio"]:checked ~ .option-text {
    color: #FFFFFF;
}

.option-box input[type="radio"]:checked ~ .custom-radio,
.option-box:has(input[type="radio"]:checked) {
    background: #511B4D !important;
    border-color: #FFFFFF;
}

/* Navigation */
#scholarship-exam-navigation,#exam-navigation {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    background: #F7F8F9;
    padding: 0.625rem; /* 10px */
    border-radius: 6.125rem; /* 98px */
    gap: 0.75rem; /* 12px */
}

#scholarship-previous-question-btn,
#scholarship-next-question-btn,
#mock-previous-question-butn,
#mock-next-question-butn {
    display: inline-block;
    background: #F2B94A;
    border: none;
    border-radius: 6.125rem; /* 98px */
    padding: 1rem 1.5625rem; /* 16px 25px */
    font-family: Manrope;
    font-weight: 700;
    font-size: 1rem; /* 16px */
}

.progress-bar-wrapper {
    width: 100%;
}

#scholarship-progress,#mock-progress {
    width: 100%;
}

.exit-navigation a {
    font-family: IBM Plex Sans;
    font-weight: 400;
    font-size: 1.25rem; /* 20px */
    color: #8C8C8C;
    text-decoration: none;
}

.submit-answers-btn-sec {
    text-align: end;
}

#scholarship-submit-answers-btn,#mock-submit-answers-btn {
    margin-left: auto;
    background: #F2B94A;
    border: none;
    border-radius: 6.125rem; /* 98px */
    padding: 1rem 1.5625rem; /* 16px 25px */
    font-family: Manrope;
    font-weight: 700;
    font-size: 1rem; /* 16px */
    cursor: pointer;
}

.question-warning {
    color: red;
    margin-top: 0.625rem;
    font-weight: bold;
    font-size: 0.9rem;
}

.doc-exam-sec-left label{
    font-family: Poppins;
    font-weight: 500;
    font-style: Medium;
    font-size: 24px;
    line-height: 100%;
    margin-bottom: 30px;
}

.doc-exam-sec-left p{
    font-family: Manrope;
    font-weight: 500;
    font-style: Medium;
    font-size: 16px;
    line-height: 140%;
    color: #4D5F7A8A;
}

.doc-exam-sec-left > div{
    display: flex;
    align-items: baseline;
    gap: 5px;
    padding-left:1.25rem;
    padding-top: 7px;
}

.doc-exam-sec-left > div > img{
    width: 1rem;
    height: 1rem;
}


/* Hide default radio */
.doc-exam-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Create custom circle */
.doc-exam-radio {
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 16px;
    user-select: none;
    display: inline-block;
}

/* Outer circle */
.doc-exam-radio .checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #f1f1f1;
    border-radius:0.25rem;
    border: 2px solid #ccc;
    transition: all 0.3s ease;
}

/* Tick mark */
.doc-exam-radio .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #000000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* When checked */
.doc-exam-radio input:checked ~ .checkmark {
    background-color: #fff;
    border-color: #fff;
}

.doc-exam-radio input:checked ~ .checkmark:after {
    display: block; /* Show tick */
}


.doc-exam-cmplt-sec{
    margin-top: 6.25rem;
}




/* ==============================
   RESPONSIVE DESIGN
   ============================== */

/* Tablets (≤1024px) */
@media (max-width: 1024px) {
    .doc-exam-sec-container {
        flex-direction: column;
        gap: 2rem; /* 32px */
        text-align: center;
    }

    .option-container {
        grid-template-columns: 1fr;
        margin-bottom: 3.125rem; /* 50px */
    }

    .scholarship-question p {
        font-size: 1.5rem; /* 24px */
        line-height: 1.75rem; /* 28px */
    }

    #scholarship-exam-navigation,#exam-navigation {
        gap: 0.625rem; /* 10px */
    }

    .doc-exam-timer-grp {
        width: 9.375rem; /* 150px */
        height: auto;
        padding: 0.625rem; /* 10px */
    }
}

/* Mobiles (≤768px) */
@media (max-width: 768px) {
    .head-wrap {
        gap: 0.625rem; /* 10px */
        text-align: center;
    }

    .desk-logo.logo img {
        width: 7.5rem; 
        padding: 0.3125rem 0.625rem; 
    }

    .mock-exam-head-sec h2 {
        font-size: 1.5rem; /* 24px */
    }

    .doc-exam-container {
        margin: 5rem 0; /* 80px */
        padding: 0 0.9375rem; /* 15px */
    }

    .option-box {
        font-size: 0.875rem; /* 14px */
        padding: 0.625rem 0.875rem; /* 10px 14px */
    }

    .option-container {
        grid-template-columns: 1fr;
        row-gap: 0.9375rem; /* 15px */
    }

    #scholarship-previous-question-btn,
    #scholarship-next-question-btn,
    #scholarship-submit-answers-btn,
    #mock-previous-question-butn,
    #mock-next-question-butn {
        width: 100%;
        padding: 0.875rem 0; /* 14px 0 */
        font-size: 0.9rem;
    }

    .doc-exam-timer-grp {
        width: auto;
        gap: 0.625rem; /* 10px */
    }

    .doc-exam-timer-min span,
    .doc-exam-timer-grp-seconds span {
        font-size: 1.75rem; /* 28px */
    }

    .doc-exam-timer-min div,
    .doc-exam-timer-grp-seconds div {
        font-size: 0.75rem; /* 12px */
    }

    .scholarship-question ol li,
    .scholarship-question p {
        margin: 1.5rem 0; /* 24px */
        font-size: 1.25rem; /* 20px */
    }

    .doc-exam-cnt-fule-sec-content h2{
        font-size: 1.25rem;
    }

    .doc-exam-cnt-fule-sec-img img{
        width: auto;
    }

    .scholarship-question ol li, .scholarship-question p, .mock-question-text p, .mock-question-text ol li{
        font-size: 1.25rem;
    }
}

/* Extra small phones (≤480px) */
@media (max-width: 480px) {
    .mock-exam-head-sec p {
        font-size: 0.8rem;
    }

    .scholarship-question p {
        font-size: 1.125rem; /* 18px */
        line-height: 1.5rem; /* 24px */
    }

    .option-box {
        font-size: 0.8125rem; /* 13px */
        padding: 0.5rem 0.625rem; /* 8px 10px */
    }

    .custom-radio {
        width: 1.125rem; /* 18px */
        height: 1.125rem; /* 18px */
        margin-right: 0.5rem; /* 8px */
    }

    .doc-exam-timer-grp {
        padding: 0.5rem; /* 8px */
    }

    .fullscreen-notice {
        padding: 1.25rem; /* 20px */
        font-size: 0.9rem;
    }
}
