/* 
Theme Name: Astra Child 
Theme URL: https://wpastra.com
Description: Astra Child 
Theme Author: Rhhs
Author URL: https://wpastra.com
Template: astra
Version: 1.0.0 
Text Domain: astra-child 
*/



.page.type-page.ast-article-single {
    margin: auto;  
    max-width: 750px;
    /* width: 50%; */
}


.width-35 {
    width: 35% !important;
}
.width-40 {
    width: 40% !important;
}
.width-45 {
    width: 45% !important;
}
.width-50 {
    width: 50% !important;
}

.stack-emission-parameteres-table-container tr {
    font-size: 12px;
}
.stack-emission-parameteres-table-container tr td {
    padding: 3px 5px;
}

.general-tuv-fields-table-container, .general-tuv-result-table-container {
    font-size: 12px;
}
.general-tuv-fields-table-container tr td, .general-tuv-result-table-container tr td {
    padding: 3px 5px;
}




.verification-mobile-result tr {
    font-size: 14px;
}
.verification-mobile-result tr td {
    padding: 0px 5px;
    min-height: 25px;
    border: 1px solid rgb(195, 195, 195);
    border-radius: 5px;
}



.header-verification-button {
    background-color: initial;
    border: 2px solid white;
    border-radius: 50px;
    color: white !important;
    padding: 0px;
    /* height: 35px; */
    width: 200px;
    display: flex;
}
.header-verification-button>a {
    padding: 12px 20px !important;
    /* width: 100% !important; */
    /* height: 100% !important; */
    color: white !important;
}
.header-verification-button>a>i {
    margin-right: 8px;
}
.header-verification-button:hover {
    background-color: white;
    color: black !important;
    transition: 0.3s;
}
.header-verification-button:active {
    transform: scale(1.1);
    transition: 0.1s;
}
.header-verification-button>a:hover {
    color: black !important;
    text-decoration: none;
}

/* 
.personal-tuv-wrapper {
    width: 100% !important;
    height: 100% !important;
    position: initial !important;
} */



.card-hologram-overlay {
    position: absolute !important;
    width: 100%;
    height: 100%;
    top: 0px;
    opacity: 0.6;
}



  
.non-admin-users-warning {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
    margin: 50px auto;
    font-size: 14px;
    text-align: center;
    font-weight: bold;
    color: rgb(126, 2, 2);
}



.yes-no-checks-container {
    display:flex;
    align-items:center;
    gap:5px;
    font-size: 13px;
}
.yes-no-checks-container>.fa-square {
    position: relative; /* Make the parent container position relative */
    font-size: 20px; /* Adjust the size of the square */
}
  
.yes-no-checks-container>.fa-square>.fa-xmark {
    position: absolute; /* Position the check icon inside the square */
    left: 1px;
    font-size: 20px; /* Adjust the size of the check icon */
}
.tuv-hide-object {
    display: none;
}


.certificate-table-records-button {
    width: 35px;
    height: 35px;
    padding: 0px;
    margin: 0px 5px !important;
    color: white !important;
    transform: scale(1);
    border: none;
}
.certificate-table-records-button.certificate-delete-button {
    background-color: #e74c3c;
}
.certificate-table-records-button:hover {
    transform: scale(1.2);
    transition: 0.3s;
}

.certificate-table-records-button.certificate-show-button>a {
    padding: 9px;
    border-radius: 100px;
    color: white !important;
}




#certificate-verification-form>button, #certificate-verification-form>input {
    height: 50px;
    width: 100%;
    margin: 10px auto;
    border-radius: 50px;
}
#certificate-verification-form.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}
/* loader wrapper centered inside form */
#certificate-verification-form.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* perfectly center */
    display: flex;
    gap: 8px; /* space between dots */
    width: auto;
    height: 16px;
}
/* dots inside the loader */
#certificate-verification-form.loading span {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #333;
    border-radius: 50%;
    animation: bounce 0.6s infinite alternate;
}
#certificate-verification-form.loading span:nth-child(2) {
    animation-delay: 0.2s;
}
#certificate-verification-form.loading span:nth-child(3) {
    animation-delay: 0.4s;
}
/* bounce animation */
@keyframes bounce {
    to {
        transform: translateY(-100%);
    }
}



#verification-result-download-button {
    border: 2px solid white;
    background-color: initial;
    padding: 7px;
    margin: auto 10px;
}
#verification-result-download-button:hover {
    background-color: white;
    color: black;
    transition: 0.3s;
}
#verification-result-download-button:active {
    transform: scale(1.2);
    transition: 0.1s;
}

#downloadable-verification-result-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

#certificate-verification-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 20px;
}

#result-header {
    width: auto;
    border-radius: 100px;
    padding: 10px 20px;
    color: white;
}
#result-header.success {
    background-color: #009f60;
}
#result-header.failed {
    background-color: #9a3b00;
}

.vehicle-tuv-footer-container img {
    max-height: 65px;
}


#person-tuv-container {
    /* position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1078/1383;

    box-shadow: 0px 0px   #00000070;
    background-image: url('https://asastuv.com/wp-content/uploads/2025/10/Card.png');
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: contain;
    background-attachment: scroll;
    background-clip: padding-box;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    align-content: center;
    row-gap: 0px;
    column-gap: 0px; */

    /* aspect-ratio: 390/500; */
    height: 500px !important;
    container-type: inline-size; /* enable container queries, this will allow us to change child style depending on this element's spesifications */
}

.verification-message {
    width: 100%;
    display: flex;
    margin-bottom: 20px;
}
.verification-message>.verification-success-message {
    width: 100%;
    height: 100%;
    padding: 10px;
    color: rgb(0, 76, 6);
    text-align: center;
}
.verification-message>.verification-failed-message {
    width: 100%;
    height: 100%;
    padding: 10px;
    color: rgb(108, 0, 0);
    text-align: center;
}

#person-tuv-container>.wrapper {
    font-size: 12.5px; /* base font size, inner texts will be % related to this */
    line-height: 15px;
    height: 100%;
    position: initial !important;
}
@container (max-width: 350px) {
    #person-tuv-container>.wrapper {
        font-size: 11.5px; /* base font size, inner texts will be % related to this */
        line-height: 14px;
    }
}
@container (max-width: 300px) {
    #person-tuv-container>.wrapper {
        font-size: 10.7px; /* base font size, inner texts will be % related to this */
        line-height: 13px;
    }
}




.personal-tuv-certificate-code-text {
    position: absolute !important;
    right: 4%;
    top: 12.3%;
    font-size: 90%;
}



.card-front-face-container {
    position: absolute;
    top: 0px;
    left: 0px;
    height: 100% !important;
    width: 100% !important;
    box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.405);
    border-radius: 10px;
    font-size: 14px !important;
}
.card-front-face-container .content-text {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.card-front-face-container .content-text.name {
    height: 14%;
    width: 55%;
    top: 21.5%;
    left: 21%;
}
.card-front-face-container .content-text.id-no {
    height: 10%;
    top: 35.5%;
    left: 21%;
}
.card-front-face-container .content-text.co-name {
    height: 14%;
    top: 46%;
    left: 21%;
}
.card-front-face-container .content-text.issue-date {
    height: 10%;
    top: 69%;
    left: 22.5%;
}
.card-front-face-container .content-text.expiry-date {
    height: 10%;
    top: 69%;
    left: 48%;
}
.card-front-face-container .certificate-code-text {
    height: 10%;
    top: 69%;
    left: 74%;
    color: rgb(153, 0, 0);
}
.card-front-face-container .certificate-type-text {
    height: 10%;
    top: 87.4%;
    left: 22.5%;
    color: rgb(153, 0, 0);
}
.card-front-face-container .photo-container {
    position: absolute;
    width: 19.2%;
    height: 33.5%;
    top: 7%;
    left: 76.5%;
    border-radius: 5px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.3);
}
.card-front-face-container .photo-container>img {
    border: 1px solid gray;
    border-radius: 10%;
}
.card-front-face-container .qrcode-container {
    position: absolute;
    height: 27%;
    aspect-ratio: 1/1;
    top: 66%;
    left: 3%;

    display: flex;
    flex-direction: column;
    justify-content: center;

    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.3);
}


.card-back-face-container {
    position: absolute;
    top: 0px;
    left: 0px;
    height: 100% !important;
    width: 100% !important;
    box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.405);
    border-radius: 10px;
    font-size: 14px !important;
}
.card-back-face-container .content-text {
    position: absolute;
}
.card-back-face-container .content-text.details {
    height: 24%;
    width: 45%;
    top: 29%;
    left: 6%;
}
.card-back-face-container .content-text.limitations {
    height: 17.5%;
    width: 45%;
    top: 66%;
    left: 6%;
}










.forminator-edit-popup {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
#forminator-edit-form {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    flex-flow: column;
}
#forminator-edit-form-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 83vh;
    overflow-y: auto;
    position: relative;
}
.custom-forminator-edit-actions {
    width: 90%;
    max-width: 600px;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
}
.custom-forminator-edit-btn {
    padding: 10px 15px;
    border: none;
    width: 48%;
}
.forminator-edit-popup-content {
    position: flex;
    top: 0px;
    right: 0px;
    width: 100%;
    height: 100%;
}
.forminator-field-wrapper {
    margin-bottom: 15px;
}






@media print {
    
    @page {
        /* size: A4; */
        margin: 0;
    }

    /* Hide everything */
    header, footer, nav, #wpadminbar, .no-print, body * {
        visibility: hidden !important;
    }
    
    /* Clean body background, and Remove extra spacing */
    html, body {
        background: #fff !important;
    }

    /* Ensure colors and background images are printed correctly */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
      }

    /* Show the downloadable wrapper of the certificate + its contents */
    #downloadable-verification-result-wrapper,
    #downloadable-verification-result-wrapper * {
      visibility: visible !important;
    }

    /* Remove any transformations from the container of the downloadable content */
    .certificate-verification-system-container {
        transform: none !important;
    }

    /* show and set the card container */
    #person-tuv-container {
        position: fixed; /* keeps it centered */
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        box-shadow: none !important;
        filter: none !important;
    }
    
    .a4-certificate {
        position: fixed !important;
        top: 0 !important;
        margin: 0px !important;
        padding: 0px !important;
    }

    .a4-certificate > #inner-a4-layout {
        /* make sure the certificate uses full a4 space */
        height: 100% !important;
    }
    
    .certificate-verification-system-container::after {
        content: '';
        display: block;
        height: 0;
        page-break-after: always;
        background: inherit;
      }
}



/* A4 preview in browser */
.a4-certificate {

    /* make sure it's aligned to the up of the page */
    display: block !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;

    /* here we want it to be exactly as a4 in the webpage */
    width: 210mm;
    height: 297mm;
}
  

.a4-details-table td, .a4-details-table-2 td {
    padding: 2px 10px;
}
.a4-details-table-2 td:first-child {
    width: 75%;
}

  



/* this is the main container of the certificate verification form */
#certificate-verification-form {
    max-width: 400px;
}
.verification-type {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}
.verification-fields input {
    width: 100%;
    margin-bottom: 10px;
}
