/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 7.9.9
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
/* HIDE RADIO */
.check-form form {
    padding: 0 20%;
    color: white;
}

.check-form ul {
    list-style: none;
    margin: 0;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 90%;
}

.check-form ul li {
    display: inline-block;
}

.check-form ul li input[type="radio"][name="Xe"] {
    display: none;
}

input[type="radio"][name="Xe"]+label {
    padding: 10px;
    display: block;
    position: relative;
    cursor: pointer;
}

input[type="radio"][name="Xe"]+label:before {
    color: white;
    content: " ";
    display: block;
    border-radius: 50%;
    position: absolute;
    top: -5px;
    left: -5px;
    width: 25px;
    height: 25px;
    text-align: center;
    line-height: 28px;
    transition-duration: 0.4s;
    transform: scale(0);
    z-index: 1000;
}

input[type="radio"][name="Xe"]+label img {
    height: 100px;
    width: 100px;
    transition-duration: 0.4s;
    transform-origin: 50% 50%;
}

input[type="radio"][name="Xe"]:checked+label {
    border: 1px solid #0dcaf0;
    border-radius: 25px;
}

input[type="radio"][name="Xe"]:checked+label:before {
    content: "✓";
    background-color: #198754;
    border: 1px solid #146c43;
    transform: scale(1);
}

input[type="radio"][name="Xe"]:checked+label img {
    transform: scale(1.1);
    z-index: -1;
}

.form-group {
    margin: auto;
    max-width: calc(90% - 20px);
    width: 100%;
    display: block;
}

input[name="BienKS"], input[name="MaDangKiem"] {
    padding: 10px 10px;
    margin: 10px 0 0 0;
    font-size: 16px;
    border: 1px solid;
    border-radius: 10px;
}

.button-search {
    color: white;
    background: #0dcaf0;
    border-radius: 10px;
    width: 90%;
}

.check-form table,
.check-form th,
.check-form td {
    border: 1px solid white;
    color: white;
    border-collapse: collapse;
}

.check-form td {
    padding: 10px 0;
    text-align: center;
}

@media only screen and (max-width: 429px) {
    
    input[type="radio"][name="Xe"]+label img {
        height: 5rem;
        width: 5rem;
    }
    
}

#ketquatracuu h3 {
    color: white;
}

.btn {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.btn-danger {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-success {
    color: #fff;
    background-color: #198754;
    border-color: #198754;
}

.btn-primary {
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-outline-info {
    color: #0dcaf0;
    background-color: #0d6efd;
    border-color: #0dcaf0;
}

#PoppupDownload {
    display: none;
}

#ketquatracuu {
    color: white;
}

@media only screen and (max-width: 48em) {

    /*************** ADD MOBILE ONLY CSS HERE  ***************/
    .check-form form {
        padding: 0;
    }

}

@media only screen and (max-width: 600px) {
    #PoppupDownload {
        display: block;
    }

    .PuppupImages {
        max-width: 130px;
        width: auto;
    }

    #ketquatracuu #modalFineViolation .modal-content {
        width: 90%;
    }
}

/* Box modal */
/* Nền mờ khi hiển thị modal */
#ketquatracuu #modalFineViolation.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Nội dung modal */
#ketquatracuu #modalFineViolation .modal-content {
    background: white;
    padding: 10px;
    border-radius: 8px;
    width: 500px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Khi hiển thị modal */
#ketquatracuu #modalFineViolation.modal-overlay.show {
    display: flex;
}

#ketquatracuu #modalFineViolation .modal-content.show {
    opacity: 1;
    transform: scale(1);
}

#ketquatracuu #modalFineViolation .modal-content .title {
    background: #d1cece;
    padding: 0.5rem;
    text-align: start;
    color: black;
    font-size: 0.8rem;
    font-weight: bold;
}

#ketquatracuu #modalFineViolation .modal-content .content {
    text-align: start;

}

/* Nút đóng */
#ketquatracuu #modalFineViolation .close-btn {
    background: #d9534f;
    color: white;
    border: none;
    padding: 0 12px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

#ketquatracuu #modalFineViolation .close-btn:hover {
    background: #c9302c;
}


/* Tabcontrol */

/* Ẩn tất cả nội dung tab */
#mainFormTraCuu .tab-anhcoder.tab-content {
    display: none;
    padding: 20px;
    border: 1px solid #ddd;
    border-top: none;
}

/* Hiển thị tab đang active */
#mainFormTraCuu .tab-anhcoder.tab-content.active {
    display: block;
}

/* Style cho danh sách tab */
#mainFormTraCuu .tab-buttons {
    display: flex;
    border-bottom: 2px solid #ddd;
	justify-content: space-between;
	text-align: center;
	margin-bottom: -2px;
}

#mainFormTraCuu .tab-buttons button {
    background: #f1f1f1;
    border: none;
    padding: 10px 20px;
	margin: 0;
    cursor: pointer;
    transition: 0.3s;
    font-size: 16px;
	width: 100%;
	border: 1px solid #bbb8b8;
}

#mainFormTraCuu .tab-buttons button:nth-child(1){
	border-top-left-radius: 10px;
}

#mainFormTraCuu .tab-buttons button:nth-child(2){
	border-top-right-radius: 10px;
}

/* Khi tab được chọn */
#mainFormTraCuu .tab-buttons button.active {
    background: #32414A;
    font-weight: bold;
	color: white;
	border: none;
}

#mainFormTraCuu .tab-content{
	display: none;
}

#mainFormTraCuu .tab-content.active{
	display: block;
}

@media only screen and (max-width: 600px) {
	#mainFormTraCuu .tab-buttons button{
		font-size: 12px;
	}
  }

@media only screen and (max-width: 425px) {
	#mainFormTraCuu .tab-buttons button{
		font-size: 10px;
	}
  }

/** INPUT CUSTOM **/
form input.form-custom-bienks {
    width: 100%;
    height: 40px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 19px;
    color: #fff;
    box-shadow: none;
    border-bottom: 0.4px solid #02BFED;
    padding-top: 10px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 5px;
}

form input.form-custom-bienks:focus{
    background-color: transparent;
    caret-color: white;
    box-shadow: none;
    color: white;
}


form input.form-custom-bienks::-webkit-input-placeholder {
    color: #fff;
}

form input.form-custom-bienks:focus::-webkit-input-placeholder , input.form-custom-bienks:valid::-webkit-input-placeholder {
    transform: translateY(-20px);    
    color:#02BFED;
    font-size: 13px;
    transition-duration: .6s;
}

@keyframes highlightAnimation {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

.highlightAnimation {
    animation: highlightAnimation 2s infinite;
}

.cta-img {
    position: relative;
    display: inline-block;
    border-radius: 12px;
    overflow: hidden;
  }
  .cta-img img {
    display: block;
    width: 100%;
    height: auto;
    /*animation: blinkImg 0.8s steps(2, jump-none) infinite;*/
  }
  .cta-img::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 4px solid #02BFED;
    box-sizing: border-box;
    border-radius: 12px;
    animation: blinkBorder 0.8s steps(2, jump-none) infinite;
    pointer-events: none;
  }
  
  /* nút ở giữa */
  .cta-button {
    position: absolute;
    top: 65%;
    left: 25%;
    transform: translate(-50%, -50%);
    width: 5rem; /* chỉnh kích thước nút */
    animation: bounceStrong 1s infinite;
    z-index: 2;
    pointer-events: none; /* click xuyên qua nút tới link */
  }
  
  .badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 8px 14px;
    border-radius: 8px;
    background: #02BFED;
    color: #fff;
    font: 700 16px/1 system-ui;
    animation: blinkBadge 0.8s steps(2, jump-none) infinite;
  }

  @keyframes blinkImg {
    0%, 50% { filter: brightness(1); }
    25%, 75% { filter: brightness(2) saturate(1.4); }
  }
  @keyframes blinkBorder {
    0%, 50% { opacity: 0; }
    25%, 75% { opacity: 1; }
  }
  @keyframes blinkBadge {
    0%, 50% { background: #02BFED; }
    25%, 75% { background: yellow; color: black; }
  }
  .cta-img img {
  /*animation: bounceStrong 1s infinite;*/
}

@keyframes bounceStrong {
  0%, 100% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-20px) scale(1.1); }
  50% { transform: translateY(5px) scale(0.95); }
  70% { transform: translateY(-10px) scale(1.05); }
}
