.devvn_loading:after {
    -webkit-animation: devvn_spin_pro 500ms infinite linear;
    animation: devvn_spin_pro 500ms infinite linear;
    border: 2px solid #9E9E9E;
    border-radius: 32px;
    border-right-color: transparent !important;
    border-top-color: transparent !important;
    content: "";
    display: block;
    height: 16px;
    top: 50%;
    margin-top: -8px;
    left: 50%;
    margin-left: -8px;
    position: absolute;
    width: 16px;
}

.devvn_loading {
    position: relative;
    opacity: 0.5;
    pointer-events: none;
}

.devvn_loading:before {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    display: inherit !important;
    z-index: 2;
}

@-webkit-keyframes devvn_spin_pro {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg)
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg)
    }
}

@keyframes devvn_spin_pro {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg)
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg)
    }
}


.devvn-flex-row {
    -js-display: flex;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-flow: row nowrap;
    flex-flow: row nowrap;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: flex-start;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    width: 100%;
}
.viettel_tracking .g-recaptcha {
    margin-top: 10px;
}
.devvn-flex-col {
    max-height: 100%;
}
.devvn-flex-grow {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    -ms-flex-negative: 1;
    -ms-flex-preferred-size: auto !important;
}
.devvn-form-flat .devvn-flex-row .devvn-flex-col, .devvn-flex-row.devvn-form-flat .devvn-flex-col {
    padding-right: 4px;
}
.devvn-flex-col button, .devvn-flex-col .button, .devvn-flex-col input {
    margin-bottom: 0;
}
.devvn-ml-half {
    margin-left: 15px;
}
.form_vtp_tracking input[type=text]{
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    border: 1px solid #ddd;
    padding: 0 .75em;
    height: 2.507em;
    font-size: 16px;
    border-radius: 0;
    max-width: 100%;
    width: 100%;
    vertical-align: middle;
    background-color: #fff;
    color: #333;
    -webkit-transition: color .3s,border .3s,background .3s,opacity .3s;
    -o-transition: color .3s,border .3s,background .3s,opacity .3s;
    transition: color .3s,border .3s,background .3s,opacity .3s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    border-color: rgba(0,0,0,.09);
}
.form_vtp_tracking button.button {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    font-size: .97em;
    letter-spacing: .03em;
    cursor: pointer;
    font-weight: bolder;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    margin-top: 0;
    margin-right: 0;
    text-shadow: none;
    line-height: 2.4em;
    min-height: 2.5em;
    padding: 0 1.2em;
    max-width: 100%;
    -webkit-transition: border .3s,background .3s,opacity .3s,color .3s,-webkit-transform .3s,-webkit-box-shadow .3s;
    transition: border .3s,background .3s,opacity .3s,color .3s,-webkit-transform .3s,-webkit-box-shadow .3s;
    -o-transition: transform .3s,border .3s,background .3s,box-shadow .3s,opacity .3s,color .3s;
    transition: transform .3s,border .3s,background .3s,box-shadow .3s,opacity .3s,color .3s;
    transition: transform .3s,border .3s,background .3s,box-shadow .3s,opacity .3s,color .3s,-webkit-transform .3s,-webkit-box-shadow .3s;
    text-rendering: optimizeLegibility;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    color: #fff;
    background-color: var(--primary-color, #446084);
    border-color: rgba(0,0,0,.05);
    -webkit-appearance: button;
}
.vtp_top {
    background: #f7f7f7;
    padding: 20px 20px 10px 20px;
    margin: 0 0 20px 0;
}
.vtp_top ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    align-content: flex-start;
}
.vtp_top ul li {
    float: left;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
}
.vtp_bottom > strong {
    padding: 5px 0;
    border-bottom: 2px dotted #e03;
    color: #e03;
    display: block;
    width: 100%;
    font-size: 18px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.vtp_captcha_img {
    width: 160px;
    float: left;
    display: inline-block;
    margin-right: 10px;
}
input#vtp_captcha_text {
    width: calc(100% - 180px);
    float: left;
    display: inline-block;
    height: 40px;
    font-size: 16px;
}
.vtp_captcha_img img {
    box-shadow: none;
    margin: 0;
    padding: 0;
    border: 0;
}
form.form_vtp_tracking .devvn-form-flat {
    max-width: 500px;
}
.vtp_bottom {
    margin-bottom: 20px;
}
.vtp_results_box {
    border: 1px solid #f7f7f7;
    margin-bottom: 20px;
}
.vtp_bottom {
    padding: 0 20px;
}

@media (max-width: 767px){
    .vtp_top ul {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-flow: row wrap;
        flex-flow: row wrap;
    }
    .vtp_top ul li {
        width: 50%;
    }
    .vtp_bottom {
        padding: 0 10px;
    }
}
@media (max-width: 500px){
    form.form_vtp_tracking .devvn-form-flat {
        display: block;
    }
    form.form_vtp_tracking .devvn-form-flat > div {
        display: block;
        clear: both;
        float: none;
        margin: 0 0 10px 0;
        overflow: hidden;
        text-align: center;
    }
}

/* New Tracking Layout */
.viettel_tracking_new {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.viettel_tracking_search_box {
    background: #fff;
    padding: 40px 30px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
}

.viettel_tracking_search_box h3 {
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: bold;
    color: #000;
    text-align: center;
}

.viettel_tracking_search_box p {
    margin: 0 0 30px 0;
    color: #666;
    font-size: 15px;
    text-align: center;
    line-height: 1.6;
}

.form_vtp_tracking_search {
    max-width: 600px;
    margin: 0 auto;
}

.form_vtp_tracking_search input[type="text"] {
    flex: 1;
    padding: 0 18px;
    border: 1px solid #ddd;
    font-size: 16px;
    border-radius: 6px;
    background: #fff;
    color: #333;
    min-width: 0;
    text-align: center;
}

.form_vtp_tracking_search input[type="text"]::placeholder {
    color: #999;
}

.form_vtp_tracking_search .button {
    padding: 0 35px;
    background: #FFD700;
    color: #000;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
    font-size: 15px;
    transition: background-color 0.3s ease;
}

.form_vtp_tracking_search .button:hover {
    background: #FFC700;
}

.vtp_loading_results {
    text-align: center;
    padding: 40px;
    color: #666;
}

.vtp_tracking_result_item {
    background: #fff;
    border: 1px solid #e0e0e0;
    margin-bottom: 30px;
    border-radius: 4px;
    overflow: hidden;
}

.vtp_tracking_info {
    padding: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.vtp_tracking_title {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    color: #333;
}

.vtp_tracking_info_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.vtp_info_row {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.vtp_info_label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.vtp_info_value {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.vtp_info_link {
    color: #446084;
    text-decoration: none;
}

.vtp_info_link:hover {
    text-decoration: underline;
}

.vtp_info_icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    background: #446084;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    margin-left: 5px;
    cursor: help;
}

.vtp_status_text {
    color: #c62828;
}

.vtp_tracking_timeline {
    padding: 30px;
    position: relative;
    padding-left: 50px;
}

.vtp_tracking_timeline::before {
    content: '';
    position: absolute;
    left: 27px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
}

.vtp_timeline_item {
    position: relative;
    padding-bottom: 30px;
}

.vtp_timeline_item:last-child {
    padding-bottom: 0;
}

.vtp_timeline_marker {
    position: absolute;
    left: -30px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ccc;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #e0e0e0;
    z-index: 1;
}

.vtp_timeline_item.vtp_timeline_active .vtp_timeline_marker {
    background: #c62828;
    box-shadow: 0 0 0 2px #c62828;
}

.vtp_timeline_status {
    font-size: 16px;
    font-weight: bold;
    color: #c62828;
    margin-bottom: 5px;
}

.vtp_timeline_date {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.vtp_timeline_note {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

.vtp_timeline_location {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.vtp_location_icon {
    margin-right: 5px;
}

.vtp_location_detail {
    margin-top: 5px;
    padding-left: 20px;
    color: #333;
}

.vtp_timeline_order_link {
    display: inline-block;
    margin-top: 10px;
    color: #446084;
    text-decoration: none;
    font-size: 14px;
}

.vtp_timeline_order_link:hover {
    text-decoration: underline;
}

.vtp_error_message {
    padding: 20px;
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
    border-radius: 4px;
    text-align: center;
}

@media (max-width: 768px) {
    .viettel_tracking_new {
        padding: 15px;
    }
    
    .viettel_tracking_search_box {
        padding: 20px;
    }
    
    .form_vtp_tracking_search {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form_vtp_tracking_search .button {
        width: 100%;
    }
    
    .vtp_tracking_info_grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .vtp_tracking_info {
        padding: 20px;
    }
}