@keyframes scanAnim {
    0% { top: 0; }
    50% { top: calc(100% - 2px); }
    100% { top: 0; }
}

.order-query-form {
    margin-bottom: 30px;
}

.order-query-form h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #000055;
}


.order-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.order-input-wrap .form-control {
    padding-right: 38px;
}

.scan-btn {
    position: absolute;
    right: 8px;
    width: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #555;
    line-height: 1;
}

.scan-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.88);
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.scan-modal-dialog {
    position: relative;
    width: min(92vw, 420px);
}

.scan-video {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.scan-frame {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 80px;
    pointer-events: none;
}

.scan-corner {
    position: absolute;
    width: 20px;
    height: 20px;
}

.scan-corner.top-left {
    top: 0;
    left: 0;
    border-top: 3px solid #4ade80;
    border-left: 3px solid #4ade80;
}

.scan-corner.top-right {
    top: 0;
    right: 0;
    border-top: 3px solid #4ade80;
    border-right: 3px solid #4ade80;
}

.scan-corner.bottom-left {
    bottom: 0;
    left: 0;
    border-bottom: 3px solid #4ade80;
    border-left: 3px solid #4ade80;
}

.scan-corner.bottom-right {
    bottom: 0;
    right: 0;
    border-bottom: 3px solid #4ade80;
    border-right: 3px solid #4ade80;
}

.scan-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(74, 222, 128, 0.8);
    box-shadow: 0 0 6px #4ade80;
    animation: scanAnim 1.8s linear infinite;
}

.scan-tip {
    color: #fff;
    margin-top: 20px;
    font-size: 14px;
}

.scan-close {
    margin-top: 12px;
    padding: 8px 28px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: none;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
}

.order-phone-group {
    margin-top: 12px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 35%;
    width: 30%;
    height: 100%;
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
}

.modal .success {
    color: green;
}

.modal .error {
    color: red;
}

.order-query-form .form-group {
    border: 1px solid #333;
}

.order-query-footer {
    padding-top: 50px;
}

.btn_search{
    width:50%;
    margin:0 25%;
}
@media (max-width: 767px) {
    .modal {
        left: 10%;
        width: 80%;
    }
}
