html, body {
    touch-action: pan-x pan-y;
    -webkit-text-size-adjust: 100%;
}
.captcha-code {
    background-image: url(../images/captcha-bg-image.jpeg);
    position: relative;
    float: left;
}

.captcha-btn{
    margin-left: 7px;
    float: right;
    width: 50px;
}

.app-status{
    font-size: 13px !important;
    border-radius: 5px !important;
}

.toast-tiny-new {
    width: auto !important;
    line-height: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
}

@media (max-width: 625px){
    .toast-tiny-new {
        width: 85% !important;
    }
}

.mh-95vh{
    min-height: 95vh;
}

.mh-scanner{
    max-height: 450px !important;
}

.card-logo{
    max-width: 120px;
}
.overlay-logo{
    max-width: 70px;
}

/* PREMIUM FULL SCREEN PROCESSING */
#preloader.premium-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(10, 14, 30, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: opacity .4s ease, visibility .4s ease;
}

.premium-loader-card {
    width: 100%;
    max-width: 200px;
    padding: 35px 24px 32px;
    text-align: center;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e8edf5;
    box-shadow: 0 15px 50px rgba(35, 50, 90, 0.10);
    color: #1e293b;
}

.premium-orbit {
    width: 120px;
    height: 120px;
    margin: auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #8b7cff;
    border-right-color: #42cfff;
    animation: premiumSpin 1.5s linear infinite;
    filter: drop-shadow(0 0 5px rgba(112, 101, 255, 0.25));
}

.orbit-ring-two {
    inset: 10px;
    border-width: 2px;
    border-top-color: #42cfff;
    border-bottom-color: #8b7cff;
    animation: premiumSpinReverse 2s linear infinite;
}

.orbit-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    color: #ffffff;
    animation: premiumPulse 1.8s ease-in-out infinite;
}

.orbit-dot {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #42cfff;
    box-shadow: 0 0 10px rgba(66, 207, 255, 0.45);
}

.dot-one {
    top: 5px;
    left: 28px;
}

.dot-two {
    right: 0;
    bottom: 30px;
}

.dot-three {
    left: 15px;
    bottom: 12px;
}

.premium-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes premiumSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes premiumSpinReverse {
    to {
        transform: rotate(-360deg);
    }
}

@keyframes premiumPulse {
    50% {
        transform: scale(1.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    .orbit-ring,
    .orbit-icon {
        animation-duration: 4s;
    }
}
.in-right{
    right: 0px;
}
.d-none{
    display: none;
}
.photo-upload-section {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: #ffffff;
}

.photo-upload-section:last-child {
    margin-bottom: 20px;
}

.photo-upload-section label {
    display: block;
    margin-bottom: 10px;
    line-height: 1.4;
}

.photo-upload-section .btn {
    min-width: 125px;
}

.photo-upload-section .error-message {
    margin-top: 5px;
}


/* ==========================================
 * Gallery
 * ========================================== */

.photo-upload-section [id$="_photos_gallery"] {
    width: 100%;
    margin: 0 auto 5px auto;
    padding: 0 5px 5px 5px;
    box-sizing: border-box;
}

.photo-upload-section [id$="_photos_gallery"] .row {
    margin-left: -5px;
    margin-right: -5px;
}


/* ==========================================
 * Thumbnail Item
 * ========================================== */

.vehicle-photo-item {
    margin-bottom: 8px;
    padding-left: 5px;
    padding-right: 5px;
}


/* ==========================================
 * Thumbnail Container
 * ========================================== */

.vehicle-photo-thumbnail {
    position: relative;
    width: 100%;
    height: 100px;
    overflow: hidden;
    border-radius: 6px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
}


/* ==========================================
 * Thumbnail Image
 * ========================================== */

.vehicle-screening-photo {
    width: 100%;
    height: 110px;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
    cursor: pointer;
}


/* ==========================================
 * Small Cross Remove Button
 * ========================================== */

.vehicle-photo-delete-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #dc3545;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.vehicle-photo-delete-btn:hover {
    background: #b02a37;
    color: #ffffff;
}

.vehicle-photo-delete-btn i {
    margin: 0;
}


/* ==========================================
 * Zoom Modal
 * ========================================== */

.vehicle-photo-zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.vehicle-photo-zoom-modal.d-none {
    display: none !important;
}


/* ==========================================
 * Zoom Content
 * ========================================== */

.vehicle-photo-zoom-content {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


/* ==========================================
 * Big Image
 * ========================================== */

.vehicle-photo-zoom-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 6px;
}


/* ==========================================
 * Zoom Close
 * ========================================== */

.vehicle-photo-zoom-close {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 45px;
    height: 45px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 40px;
    line-height: 40px;
    cursor: pointer;
    z-index: 10000;
}


/* ==========================================
 * Zoom Details
 * ========================================== */

.vehicle-photo-zoom-details {
    width: 100%;
    max-width: 700px;
    margin-top: 12px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    font-size: 13px;
}

.vehicle-photo-zoom-details > div {
    margin-bottom: 4px;
}

.vehicle-photo-zoom-details > div:last-child {
    margin-bottom: 0;
}


/* ==========================================
 * Upload Button
 * ========================================== */

.btn-nic-blue {
    background-color: #0E4D92;
    border-color: #0E4D92;
    color: #ffffff !important;
}

.btn-nic-blue:hover,
.btn-nic-blue:active,
.btn-nic-blue.hover {
    background-color: #367fa9;
    color: #ffffff;
}


/* ==========================================
 * Mobile
 * ========================================== */

@media (max-width: 767px) {
    .photo-upload-section {
        padding: 12px;
    }
    .vehicle-photo-thumbnail {
        height: 90px;
    }
    .vehicle-screening-photo {
        height: 90px;
    }
    .vehicle-photo-delete-btn {
        width: 22px;
        height: 22px;
        top: 3px;
        right: 3px;
        font-size: 10px;
    }
    .vehicle-photo-zoom-image {
        max-width: 95vw;
        max-height: 70vh;
    }
    .vehicle-photo-zoom-details {
        font-size: 12px;
    }
}

.header .checkpost-name {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 5px;
    max-width: 40%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vehicle-photo-button-spinner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
}

.vehicle-photo-button-spinner i {
    font-size: 14px;
}

.vehicle-photo-upload-btn-reset,
.vehicle-photo-upload-btn-reset:hover,
.vehicle-photo-upload-btn-reset:focus,
.vehicle-photo-upload-btn-reset:active {
    transform: none !important;
    background-color: #0E4D92 !important; 
    color: #fff !important;
    box-shadow: none !important;
}

.vehicle-photo-card {
    padding: 8px;
    background: var(--card-bg, #f5f6f8);
    border-radius: 10px;
    height: 100%;
}

.vehicle-photo-preview {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #e9ecef;
}

.vehicle-photo-thumbnail {
    display: block;
    width: 100%;
    height: 130px;
    object-fit: cover;
}

.vehicle-photo-zoom {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 50%;
}

.vehicle-photo-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    padding: 50px 15px 20px;
}

.vehicle-photo-modal.show {
    display: flex;
}

.vehicle-photo-modal img {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 5px;
}

.vehicle-photo-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: #333;
    font-size: 18px;
}

@media (max-width: 380px) {
    .vehicle-photo-thumbnail {
        height: 105px;
    }

    .vehicle-photo-card {
        padding: 6px;
    }
}


.view-vehicle-screening-photo {
    width: 100%;
    max-width: 350px;
    height: auto;
    max-height: 350px;
    object-fit: contain;
    display: block;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
}

.ml-18px{
    margin-left: 18px;
}

.home-page-content {
    padding-top: 170px !important;
}
.padding-top-5 {
    padding-top: 4rem !important;
}

.vehicle-photo-location {
    color: #fff;
    text-align: center;
    padding: 12px;
    font-size: 14px;
    line-height: 1.8;
}

.vehicle-photo-location div {
    margin: 2px 0;
}

.vehicle-photo-location i {
    margin-right: 5px;
}

.vehicle-photos-page {
    min-height: auto;
    padding-bottom: 100px !important;
}

.vehicle-photos-page .card-style {
    margin-bottom: 10px !important;
}

.vehicle-photos-page .content {
    padding-bottom: 10px !important;
}

.vehicle-photos-page .vehicle-photo-title {
    margin-bottom: 5px;
}

.vehicle-photos-page .vehicle-photo-divider {
    margin: 5px 0 10px;
}

.vehicle-photos-page .view-vehicle-screening-photo {
    display: block;
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
}

.vehicle-photos-page .vehicle-photo-card {
    margin-bottom: 0;
}

.vehicle-photos-page .row {
    margin-bottom: 0;
}

.vehicle-photos-page .col-6.mb-1 {
    padding-bottom: 5px;
}

.vehicle-photos-page > .row {
    padding-bottom: 0;
}

.vehicle-photos-page .btn {
    margin-bottom: 0 !important;
}

.vehicle-back-button {
    display: inline-block;
    margin-top: 15px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

#footer-bar {
    height: calc(50px + env(safe-area-inset-bottom) * 1.1);
    min-height: 10px;
    padding: 2px 15px 4px 15px;
}


