/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Child theme của Astra
Author: Webtop
Template: astra
Version: 1.0
*/

/* ==========================================================================
   Global CSS Variables (Biến toàn cục)
   ========================================================================== */
:root {
    --font-primary: 'Montserrat', sans-serif;
    --font-montserrat: 'Montserrat', sans-serif;
}

.wt-h-auto img {
    height: auto !important;
}

.wt-padding-left-1350px {
    padding-left: max(20px, calc((100vw - 1350px) / 2)) !important;
}

.wt-img-hero-banner {
    overflow: hidden;
    border-radius: 20% 0 50% 40% / 50% 0 50% 50%;
}

.wt-img-hero-banner .wp-block-uagb-image__figure {
    margin: 0;
    width: 100%;
    height: 100%;
}

.wt-img-hero-banner img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
    border-radius: 20% 0 50% 40% / 50% 0 50% 50%;
}

@media (max-width: 976px) {

    .wt-img-hero-banner,
    .wt-img-hero-banner img {
        border-radius: 0 !important;
    }
}

/* form */
/* ================================================================
   Form Stylesheet Module (Form trang liên hệ & Google Maps)
   ================================================================ */
.wt-form-lien-he form.uagb-forms-main-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.wt-form-lien-he .uagb-forms-form-hidden-data,
.wt-form-lien-he [class*="uagb-form-reacaptcha-error"] {
    display: none !important;
}

.wt-form-lien-he .wp-block-button {
    margin-top: 10px !important;
}

.wt-form-lien-he button {
    justify-content: center !important;
}


@media (min-width: 768px) {
    .wt-form-lien-he form.uagb-forms-main-form {
        grid-template-columns: repeat(2, 1fr);
    }

    .wt-form-lien-he .wp-block-uagb-forms-name {
        grid-column: span 2;
    }

    .wt-form-lien-he .wp-block-uagb-forms-textarea {
        grid-column: span 2;
    }

    .wt-form-lien-he .uagb-forms-main-submit-button-wrap {
        grid-column: span 2;
    }
}

.wt-max-h-500px,
.wt-max-h-500px figure,
.wt-max-h-500px figure img {
    max-height: 500px !important;
    height: 100% !important;
}

.wt-w-7 {
    width: 70% !important;
}

@media (max-width: 767px) {

    .wt-w-7,
    .wt-w-7 figure,
    .wt-w-7 img {
        width: 100% !important;
    }

    .wt-max-h-500px,
    .wt-max-h-500px figure,
    .wt-max-h-500px figure img {
        max-height: 100% !important;
        height: auto !important;
    }
}

.wt-icon div {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}