/* =========================================================
   Modern Acknowledgement Dialog
   ========================================================= */

.modern-ack-dialog {
    width: min(92vw, 560px) !important;
    max-width: 560px !important;
}

.modern-ack-dialog .ui-dialog-content {
   padding: 0 !important;

    max-height: 85vh !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    box-sizing: border-box;

    -webkit-overflow-scrolling: touch;
}
 

 


/* =========================================================
   Main container
   ========================================================= */

.ack-dialog-content {
    width: 100%;
    box-sizing: border-box;
    background: #ffffff;
}


/* =========================================================
   Header
   ========================================================= */

.ack-dialog-header {
    display: flex;
    align-items: center;
    gap: 15px;

    padding: 22px 24px;

    background: linear-gradient(
        135deg,
        #f5f8ff 0%,
        #ffffff 100%
    );

    border-bottom: 1px solid #e8ecf3;
}

.ack-dialog-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: #eef3ff;
    color: #1d4ed8;

    font-size: 21px;
}

.ack-dialog-header h2 {
    margin: 0;

    font-size: clamp(18px, 2vw, 22px);
    font-weight: 700;

    line-height: 1.3;

    color: #172033;
}

.ack-dialog-header p {
    margin: 5px 0 0;

    font-size: clamp(12px, 1.5vw, 14px);

    line-height: 1.5;

    color: #687386;
}


/* =========================================================
   Body
   ========================================================= */

.ack-dialog-body {
    padding: 24px;
}

.ack-field {
    margin-bottom: 10px;
}

.ack-label {
    display: block;
    margin-bottom: 8px;
    font-size: clamp(11px, 1.5vw, 12px);
    font-weight: 600;
    line-height: 1.5;
    color: #344054;
}


/* =========================================================
   Input
   ========================================================= */

.ack-input {
    width: 100% !important;

    height: 46px;

    box-sizing: border-box;

    padding: 6px 9px !important;

    border: 1px solid #d0d5dd !important;

    border-radius: 10px !important;

    background: #ffffff !important;

    font-size: 16px !important;

    font-weight: 600;

    letter-spacing: 1px;

    text-transform: uppercase;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.ack-input:focus {
    border-color: #2563eb !important;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.12) !important;

    outline: none;
}


/* =========================================================
   Help section
   ========================================================= */

.ack-help-section {
    margin-top: 8px;

    padding: 16px;

    border: 1px solid #e6eaf0;

    border-radius: 12px;

    background: #f8fafc;
}

.ack-help-title {
    display: flex;

    align-items: flex-start;

    gap: 8px;

    margin-bottom: 14px;

    color: #475467;
}

.ack-help-title i {
    margin-top: 2px;

    color: #2563eb;

    font-size: 15px;
}

.ack-help-label {
    font-size: clamp(12px, 1.5vw, 14px);

    font-weight: 600;

    line-height: 1.5;

    color: #475467;
}


/* =========================================================
   Instruction image
   ========================================================= */

.ack-image-container {
    display: flex;

    justify-content: center;

    width: 100%;

    overflow: hidden;

    border-radius: 8px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
}

.ack-image {
    display: block;

    width: 100% !important;

    max-width: 100%;

    height: auto;

    object-fit: contain;
}


/* =========================================================
   Footer
   ========================================================= */

.ack-dialog-footer {
    padding: 0 12px 12px;
}


/* =========================================================
   Validate button
   ========================================================= */

.ack-validate-btn {
    width: 100% !important;

    height: 46px;

    border: none !important;

    border-radius: 10px !important;

    background: #1d4ed8 !important;

    background-image: none !important;

    color: #ffffff !important;

    font-size: 15px !important;

    font-weight: 600 !important;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.ack-validate-btn:hover {
    background: #1e40af !important;

    transform: translateY(-1px);

    box-shadow:
        0 5px 15px rgba(29, 78, 216, 0.25);
}

.ack-validate-btn:active {
    transform: translateY(0);
}


/* =========================================================
   Error message
   ========================================================= */

.ack-error-message {
    display: block;

    margin-top: 12px;

    padding: 9px 12px;

    border-radius: 8px;

    background: #fef2f2;

    color: #dc2626 !important;

    font-size: 13px;

    line-height: 1.4;
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 600px) {

    .modern-ack-dialog {
        width: 94vw !important;
        max-width: 94vw !important;
    }

    .ack-dialog-header {
        padding: 18px;
        gap: 12px;
    }

    .ack-dialog-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;

        border-radius: 11px;

        font-size: 18px;
    }

    .ack-dialog-body {
        padding: 20px 18px;
    }

    .ack-dialog-footer {
        padding: 0 18px 20px;
    }

    .ack-input {
        height: 44px;
    }

    .ack-validate-btn {
        height: 44px;
    }

    .ack-help-section {
        padding: 13px;
    }
}


/* =========================================================
   Small mobile
   ========================================================= */

@media (max-width: 360px) {

    .modern-ack-dialog {
        width: 96vw !important;
        max-width: 96vw !important;
    }

    .ack-dialog-header {
        padding: 16px;
    }

    .ack-dialog-body {
        padding: 16px;
    }

    .ack-dialog-footer {
        padding: 0 16px 16px;
    }

    .ack-dialog-header h2 {
        font-size: 17px;
    }

    .ack-dialog-header p {
        font-size: 12px;
    }

    .ack-input {
        height: 42px;

        font-size: 15px !important;
    }

    .ack-help-section {
        padding: 11px;
    }
}