﻿/* Background */
.modalBackground {
    background-color: rgba(0, 0, 0, 0.60);
    opacity: 1 !important;
    z-index: 9998 !important;
}


/* Main Modal */
.preview-modal {
    position: fixed !important;
    width: 700px;
    max-width: 94vw;
    max-height: 90vh;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.35);
    overflow: hidden;
    z-index: 9999 !important;
    box-sizing: border-box;
}


/* Header */
.preview-modal-header {
    background: #0379BD;
    color: #ffffff;
    padding: 14px 18px;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    position: relative;
}


/* Modal body */
.preview-modal-body {
    max-height: calc(90vh - 55px);
    overflow-x: auto;
    overflow-y: auto;
    padding: 15px;
    box-sizing: border-box;
}


/* Table wrapper */
.preview-table-wrapper {
    width: 100%;
    min-width: 0;
}


/* Table */
.preview-table {
    width: 100% !important;
    margin: 0 !important;
    table-layout: fixed;
    border-collapse: collapse;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}


    /* Cells */
    .preview-table td {
        padding: 10px 8px;
        vertical-align: top;
        border-bottom: 1px solid #e5e5e5;
        word-break: break-word;
        overflow-wrap: anywhere;
        box-sizing: border-box;
    }


        /* First column */
        .preview-table td.preview-label {
            width: 35%;
            font-weight: 600;
            color: #333;
            white-space: normal;
        }


        /* Second column */
        .preview-table td.preview-value {
            width: 65%;
            color: #555;
            word-break: break-word;
            overflow-wrap: anywhere;
        }


/* Inputs */
.preview-input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}


/* Captcha */
.captcha-image {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    margin-top: 8px;
}


/* Resend OTP */
.resend-otp {
    display: inline-block;
    margin-top: 5px;
}


/* Buttons */
.preview-buttons {
    text-align: right !important;
    padding-top: 15px !important;
    white-space: normal;
}


    .preview-buttons .btn {
        margin-left: 5px;
        margin-bottom: 5px;
    }


/* =========================
       TABLET
    ========================= */
@media screen and (max-width: 768px) {

    .preview-modal {
        width: 92vw;
        max-width: 92vw;
        max-height: 88vh;
    }

    .preview-modal-header {
        font-size: 18px;
        padding: 12px;
    }

    .preview-modal-body {
        max-height: calc(88vh - 50px);
        padding: 10px;
    }

    .preview-table td {
        padding: 8px 6px;
        font-size: 14px;
    }

        .preview-table td.preview-label {
            width: 38%;
        }

        .preview-table td.preview-value {
            width: 62%;
        }
}


/* =========================
       MOBILE
    ========================= */
@media screen and (max-width: 480px) {

    .preview-modal {
        width: 96vw;
        max-width: 96vw;
        max-height: 92vh;
        border-radius: 6px;
    }


    .preview-modal-header {
        font-size: 17px;
        padding: 11px;
    }


    .preview-modal-body {
        max-height: calc(92vh - 48px);
        padding: 8px;
    }


    .preview-table {
        font-size: 13px;
    }


        .preview-table td {
            padding: 8px 5px;
        }


            .preview-table td.preview-label {
                width: 40%;
            }


            .preview-table td.preview-value {
                width: 60%;
            }


    .preview-buttons {
        text-align: center !important;
    }


        .preview-buttons .btn {
            display: inline-block;
            margin: 3px;
            min-width: 100px;
        }


    .captcha-image {
        max-width: 120px;
    }
}


/* =========================
       VERY SMALL MOBILE
    ========================= */
@media screen and (max-width: 360px) {

    .preview-modal {
        width: 98vw;
        max-width: 98vw;
    }


    .preview-table {
        font-size: 12px;
    }


        .preview-table td.preview-label {
            width: 42%;
        }


        .preview-table td.preview-value {
            width: 58%;
        }


    .preview-buttons .btn {
        width: 100%;
        margin: 4px 0;
    }
}
.or-text {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--ink-soft);
    margin: 0 4px;
    display: inline-flex;
    align-items: center;
}

.submit-row {
    grid-column: 2;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .submit-row {
        grid-column: 1;
    }
}

.fadePanel {
    background-color: rgba(0, 0, 0, 0.6);
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 10px;
  /*  overflow-y: auto;
    overflow-x: hidden;*/
}

.InnerPopup {
    margin-top: 1px;
    min-width: 80px;
    min-height: 20px;
    background-color: #ffffff;
    padding: 7px;
    border-radius: 25px;
    border: 1px solid #000000;
}

.modal-content {
    max-width: 100%;
    box-sizing: border-box;
}

.jk-modal-container {
    width: 95%;
    max-width: 1100px;
    margin: 20px auto;
    background: #ffffff;
    border-radius: 8px;
    box-sizing: border-box;
    overflow: hidden;
}

.jk-modal-body {
    padding: 15px;
}

.jk-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.jk-field-group {
    min-width: 0;
}



.jk-input-box .form-control {
    width: 100%;
    box-sizing: border-box;
}

.jk-btn-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.jk-captcha-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.jk-captcha-input {
    min-width: 250px;
}

.jk-captcha-badge img {
    max-width: 180px;
    height: auto;
}

.modal-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

    .modal-table td {
        padding: 8px;
        vertical-align: middle;
        word-break: break-word;
    }

        .modal-table td:first-child {
            width: 35%;
            font-weight: bold;
        }

        .modal-table td:nth-child(2) {
            width: 55%;
        }

        .modal-table td:last-child {
            width: 10%;
        }

@media (max-width: 768px) {
    .jk-grid-3 {
        grid-template-columns: 1fr;
    }

    .jk-captcha-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .jk-captcha-input {
        width: 100%;
        min-width: 0;
    }

    .jk-modal-container {
        width: 98%;
        margin: 10px auto;
    }

    .modal-table {
        table-layout: auto;
    }

        .modal-table td {
            display: block;
            width: 100% !important;
            box-sizing: border-box;
        }
}

/* =========================================================
   FORGET PASSWORD
   ========================================================= */
.forgot-password-wrapper {
    width: 100%;
    padding: 30px 15px 50px;
    background: #f5f9fc;
}

.forgot-password-container {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
}


/* =========================================================
   CARD
   ========================================================= */

.forgot-password-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid #d5dfe8;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,.08);
}


/* =========================================================
   HEADER
   ========================================================= */

.forgot-password-header {
    background: #087bbd;
    color: #fff;
    padding: 15px 20px;
    text-align: center;
}

    .forgot-password-header h4 {
        margin: 0;
        color: #fff;
        font-size: 21px;
        font-weight: 600;
    }


/* =========================================================
   LANGUAGE BUTTONS
   ========================================================= */

.language-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
    margin-bottom: 15px;
}

.language-button {
    min-width: 70px;
    padding: 6px 12px;
    background: #087bbd;
    color: #fff;
    border: 1px solid #087bbd;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

    .language-button:hover {
        background: #066da8;
    }

    .language-button.active {
        background: #ffffff;
        color: #087bbd;
    }


/* =========================================================
   BODY
   ========================================================= */

.forgot-password-body {
    padding: 25px 40px 35px;
}


/* =========================================================
   MANDATORY
   ========================================================= */

.mandatory-text {
    text-align: center;
    margin-bottom: 25px;
}

    .mandatory-text span {
        color: red;
        font-family: Verdana, Arial, sans-serif;
        font-size: 11px;
        font-weight: bold;
    }


/* =========================================================
   FORM ROW
   LABEL + INPUT SAME ROW
   ========================================================= */

.forgot-form-group {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 18px;
}


/* =========================================================
   LABEL
   ========================================================= */

.forgot-form-label {
    width: 190px;
    min-width: 190px;
    padding-right: 20px;
    line-height: 20px;
    font-weight: 700;
    font-size: 0.88rem;
    color: #1b1d1f;
}


/* =========================================================
   INPUT AREA
   ========================================================= */

.forgot-input-group {
    display: flex;
    flex: 1;
    width: calc(100% - 190px);
    min-width: 0;
}


/* =========================================================
   ICON
   ========================================================= */

.forgot-input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    min-width: 48px;
    height: 44px;
    background: #f1f5f9;
    border: 1px solid #ced7e0;
    border-right: 0;
    border-radius: 5px 0 0 5px;
    color: #087bbd;
    font-size: 16px;
}


/* =========================================================
   TEXTBOX / DROPDOWN
   ========================================================= */

.forgot-input-group .form-control {
    width: 100%;
    height: 38px;
    padding: 8px 12px;
    border: 1px solid #d0d8e0;
    border-radius: 0 5px 5px 0;
    background: #fff;
    color: #333;
    font-size: 0.88rem;
    outline: none;
    box-shadow: none;
}

    .forgot-input-group .form-control:focus {
        border-color: #087bbd;
        box-shadow: 0 0 0 2px rgba(8,123,189,.12);
    }


/* =========================================================
   CAPTCHA
   IMAGE + INPUT SAME ROW
   ========================================================= */

.captcha-control {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    width: calc(100% - 190px);
    min-width: 0;
}


/* CAPTCHA IMAGE */

.captcha-image-box {
    background: #0072bc;
    color: #fff;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 1rem;
    height: 38px;
    display: flex;
    align-items: center;
    cursor: pointer;
    letter-spacing: 2px;
}

    .captcha-image-box img {
        display: block;
        max-width: 100%;
        max-height: 38px;
        width: auto;
        height: auto;
    }


/* CAPTCHA TEXTBOX */

.captcha-input {
    flex: 1;
    height: 44px;
    min-width: 0;
    padding: 8px 13px;
    border: 1px solid #ced7e0;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
}

    .captcha-input:focus {
        border-color: #087bbd;
        box-shadow: 0 0 0 2px rgba(8,123,189,.12);
    }


/* =========================================================
   VALIDATOR
   ========================================================= */

.forgot-validator {
    display: block;
    margin-left: 190px;
    margin-top: -10px;
    margin-bottom: 12px;
    color: #d00000 !important;
    font-size: 12px !important;
}


/* =========================================================
   HELP BUTTON
   ========================================================= */

.forgot-help {
    display: inline-block;
    margin-left: 190px;
    margin-top: -5px;
    margin-bottom: 15px;
    padding: 5px 12px;
    background: #28a745;
    color: #fff !important;
    border-radius: 4px;
    text-decoration: none;
    font-size: 11px !important;
}


/* =========================================================
   ALL BUTTONS
   CENTERED + SAME ROW
   ========================================================= */

.forgot-button-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    width: 100%;
    margin: 25px auto 5px;
}


/* =========================================================
   BUTTON
   ========================================================= */

.forgot-button {
    min-width: 110px;
    min-height: 42px;
    padding: 9px 20px;
    background: #28a745;
    border: 1px solid #28a745;
    border-radius: 5px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
}

    .forgot-button:hover {
        background: #218838;
        border-color: #218838;
    }


/* =========================================================
   OTP BUTTON ROW
   ========================================================= */

.otp-button-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    width: 100%;
    margin: 25px auto 5px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media(max-width:768px) {

    .forgot-password-wrapper {
        padding: 15px 10px 30px;
    }

    .forgot-password-body {
        padding: 25px 20px 30px;
    }

    .forgot-form-label {
        width: 150px;
        min-width: 150px;
    }

    .forgot-input-group {
        width: calc(100% - 150px);
    }

    .captcha-control {
        width: calc(100% - 150px);
    }

    .forgot-validator {
        margin-left: 150px;
    }

    .forgot-help {
        margin-left: 150px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media(max-width:600px) {

    .forgot-password-body {
        padding: 20px 12px 25px;
    }

    .forgot-password-header h4 {
        font-size: 18px;
    }

    .language-buttons {
        justify-content: center;
    }


    /* KEEP LABEL + INPUT SAME ROW */

    .forgot-form-label {
        width: 105px;
        min-width: 105px;
        padding-right: 8px;
        font-size: 12px;
        line-height: 16px;
    }


    .forgot-input-group {
        width: calc(100% - 105px);
    }


    .forgot-input-icon {
        width: 38px;
        min-width: 38px;
        height: 40px;
        font-size: 14px;
    }


    .forgot-input-group .form-control {
        height: 38px;
        padding: 8px 12px;
        font-size: 0.88rem;
    }


    /* CAPTCHA */

    .captcha-control {
        width: calc(100% - 105px);
        gap: 5px;
    }

    .captcha-image-box {
        min-width: 100px;
        height: 40px;
        padding: 3px 5px;
    }

        .captcha-image-box img {
            max-height: 34px;
        }

    .captcha-input {
        height: 40px;
        padding: 7px 8px;
        font-size: 12px;
    }


    /* Validators */

    .forgot-validator {
        margin-left: 105px;
    }


    /* Help */

    .forgot-help {
        margin-left: 105px;
    }


    /* BUTTONS */

    .forgot-button-row,
    .otp-button-row {
        justify-content: center;
        flex-wrap: nowrap;
        gap: 6px;
        margin-top: 20px;
    }

    .forgot-button {
        min-width: 90px;
        padding: 8px 10px;
        font-size: 12px;
    }
}


/* =========================================================
   VERY SMALL PHONE
   ========================================================= */

@media(max-width:380px) {

    .forgot-password-body {
        padding: 15px 8px 20px;
    }

    .forgot-form-label {
        width: 90px;
        min-width: 90px;
        font-size: 11px;
    }

    .forgot-input-group {
        width: calc(100% - 90px);
    }

    .captcha-control {
        width: calc(100% - 90px);
    }

    .forgot-validator {
        margin-left: 90px;
    }

    .forgot-help {
        margin-left: 90px;
    }

    .forgot-button {
        min-width: 80px;
        padding: 7px 7px;
        font-size: 11px;
    }

    .captcha-image-box {
        min-width: 85px;
    }
}



.notice-box-top {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.notice-item {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
}

    .notice-item a {
        color: var(--blue);
        text-decoration: underline;
        font-weight: 700;
    }

.submit-row {
    grid-column: 2;
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .submit-row {
        grid-column: 1;
    }
}


/* Modal */
.message-modal {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* Blue Header */
.message-header {
    background-color: #007bff;
    color: #fff;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 50px;
    border: none;
}

/* Message title */
.message-title {
    font-size: 18px;
    font-weight: 600;
}

/* Close button */
.message-close {
    color: #fff !important;
    background: transparent;
    border: none;
    text-decoration: none !important;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    padding: 0 5px;
    cursor: pointer;
}

    .message-close:hover {
        color: #e6e6e6 !important;
        text-decoration: none !important;
    }

/* Body */
.message-body {
    padding: 20px;
    background-color: #fff;
}

.message-text {
    font-size: 15px;
    color: #333;
    word-wrap: break-word;
}

/* Mobile responsive */
@media (max-width: 576px) {

    .message-modal {
        width: calc(100% - 20px);
        max-width: none;
        margin: 10px;
    }

    .message-header {
        padding: 10px 12px;
        min-height: 45px;
    }

    .message-title {
        font-size: 16px;
    }

    .message-close {
        font-size: 22px;
    }

    .message-body {
        padding: 15px;
    }

    .message-text {
        font-size: 14px;
    }
}


