/* ===== Contact box (floating) ===== */
.contact-box {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 1000;
}

/* Checkout already has its own primary action; floating CTAs obstruct fields. */
.woocommerce-cart .contact-box,
.woocommerce-cart .quote-form-box,
.woocommerce-checkout .contact-box,
.woocommerce-checkout .quote-form-box {
    display: none;
}

.contact-box > .container {
    padding: 0;
    margin: 0;
}

.contact-box .block--banner .content {
    max-height: 0;
    opacity: 0;
    transform: translateY(6px);
    overflow: hidden;
    pointer-events: none;
    visibility: hidden;
    background: #fff;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition:
        max-height 0.28s ease,
        opacity 0.2s ease,
        transform 0.28s ease,
        padding 0.28s ease,
        visibility 0s linear 0.28s;
}

.contact-box.is-open .block--banner .content {
    max-height: 600px;
    opacity: 1;
    transform: translateY(0);
    padding: .5rem;
    pointer-events: auto;
    visibility: visible;
    transition-delay: 0s;
}

.contact-box.is-open {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
}

.contact-box .banners-list {
    display: grid;
    gap: 12px;
}

.contact-box .banner-item {
    display: flex;
    justify-content: center;
}

.contact-box .banner-link {
    display: grid;
    justify-items: center;
    gap: 6px;
    color: #444;
    font-weight: 700;
    font-size: 14px;
}

.contact-box .banner-image {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.quote-form-box {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1001;
    pointer-events: none;
}

.quote-form-box > .container {
    width: auto;
    max-width: none;
    padding: 0;
    margin: 0;
}

.quote-form-box .block--banner {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.quote-form-box.is-open .block--banner {
    position: relative;
}

.quote-form-box .block--banner .content {
    max-height: 0;
    opacity: 0;
    transform: translateY(6px);
    overflow: hidden;
    pointer-events: none;
    visibility: hidden;
    background: #fff;
    transition:
        max-height 0.28s ease,
        opacity 0.2s ease,
        transform 0.28s ease,
        visibility 0s linear 0.28s;
}

.quote-form-box.is-open {
    bottom: auto;
    top: 50%;
    right: auto;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    pointer-events: auto;
}

.quote-form-box.is-open .block--banner .content {
    width: min(97vw, 1500px);
    max-height: calc(100vh - 8px);
    opacity: 1;
    transform: translateY(0);
    overflow: auto;
    pointer-events: auto;
    visibility: visible;
    border: 4px solid #111;
    background: #fff;
    transition-delay: 0s;
}

.quote-form-box .banners-list,
.quote-form-box .banner-item,
.quote-form-box .banner-caption {
    display: block;
}

.quote-form-box .wpcf7 {
    margin: 0;
}

.tinado-quote-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(640px, .95fr);
    min-height: min(760px, calc(100vh - 36px));
    background: #fff;
    color: #151515;
    font-family: 'Mulish', system-ui, -apple-system, sans-serif;
}

.tqf-promo {
    position: relative;
    min-height: inherit;
    padding: clamp(34px, 4.1vw, 68px) 28px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.86) 39%, rgba(255,255,255,.22) 100%),
        url("/wp-content/uploads/2025/12/revolutionary-automatic-label-printing-machine-with-digital-control-panel_1305972-3977.webp") center bottom/cover no-repeat;
}

.tqf-promo::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 42%;
    background-image: radial-gradient(#d9d9d9 2px, transparent 2px);
    background-size: 18px 18px;
    opacity: .45;
}

.tqf-promo::after {
    display: none;
}

.tqf-promo__badge,
.tqf-promo__offer,
.tqf-promo__sub,
.tqf-promo__terms,
.tqf-promo__copy,
.tqf-promo__timer {
    position: relative;
    z-index: 1;
    max-width: 760px;
    text-align: center;
}

.tqf-promo__badge {
    margin: 0 auto;
    color: #f7b400;
    font-size: 16px !important;
    font-weight: 700;
    line-height: .95;
    text-shadow: 8px 9px 0 rgba(20, 24, 42, .72), 4px 5px 0 #6e2417;
}

.tqf-promo__offer {
    margin: .1rem auto 0;
    color: #f7b400;
    font-size: 16px !important;
    font-weight: 700;
    line-height: .9;
    text-shadow: 8px 9px 0 rgba(20, 24, 42, .75), 4px 5px 0 #263557;
}

.tqf-promo__offer strong {
    font-size: 16px !important;
    line-height: .75;
}

.tqf-promo__sub {
    margin: .15rem auto 1rem;
    color: #f7b400;
    font-size: 16px !important;
    font-weight: 700;
    line-height: 1.05;
    text-shadow: 5px 6px 0 rgba(20, 24, 42, .78), 2px 3px 0 #6e2417;
}

.tqf-promo__copy {
    margin: 0 auto;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    text-wrap: balance;
}

.tqf-promo__copy strong {
    font-weight: 700;
}

.tqf-promo__terms {
    margin: -8px auto 10px;
    color: #0b1538;
    font-size: 14px !important;
    font-weight: 600;
    line-height: 1.35;
}

.tqf-panel {
    display: flex;
    flex-direction: column;
    align-self: center;
    margin: 24px 20px 24px 0;
    padding: 0 18px 12px;
    border: 2px solid #f7b400;
    border-radius: 44px;
    background: #fff;
    overflow: hidden;
}

.tqf-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 -18px 10px;
    padding: 12px 20px 10px;
    min-height: 64px;
    background: #ffc72c;
    color: #111;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.tqf-head strong {
    font-size: 16px !important;
    font-weight: inherit !important;
}

.tqf-head .pw-countdown {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 0;
}

.tqf-head .pw-countdown__segment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    border-radius: 7px;
    background: #ed1c24;
    color: #fff;
    font-weight: 700;
    font-size: 16px !important;
}

.tqf-head .pw-countdown__label {
    display: none;
}

.tqf-head .pw-countdown__separator {
    color: #ed1c24;
    font-weight: 700;
}

.tqf-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 28px;
}

.tqf-field--full {
    grid-column: 1 / -1;
}

.tinado-quote-form .tqf-extra-details {
    margin-top: 8px;
}

.tinado-quote-form .tqf-extra-details > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid #d8dce8;
    border-radius: 12px;
    background: #f8f9fc;
    color: #0b1538;
    font-size: 14px !important;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    list-style: none;
    box-sizing: border-box;
}

.tinado-quote-form .tqf-extra-details > summary::-webkit-details-marker {
    display: none;
}

.tinado-quote-form .tqf-extra-details > summary::after {
    content: "\f347";
    flex: 0 0 auto;
    margin-left: 10px;
    font-family: dashicons;
    font-size: 16px;
    font-weight: 400;
    transition: transform .2s ease;
}

.tinado-quote-form .tqf-extra-details.is-expanded > summary::after {
    transform: rotate(180deg);
}

.tinado-quote-form .tqf-extra-details > summary span {
    color: #62697d;
    font-size: 14px !important;
    font-weight: 500;
}

.tinado-quote-form .tqf-extra-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 18px;
    padding-top: 9px;
}

.tqf-field {
    position: relative;
}

.tinado-quote-form .tqf-floating-label {
    position: absolute;
    top: -7px;
    left: 42px;
    z-index: 3;
    max-width: calc(100% - 56px);
    padding: 0 5px;
    overflow: hidden;
    background: #f8f9fc;
    color: #50566a;
    font-size: 14px !important;
    font-weight: 600;
    line-height: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
}

.tinado-quote-form .tqf-design-request {
    position: relative;
}

.tinado-quote-form .tqf-design-request .tqf-floating-label {
    left: 14px;
    max-width: calc(100% - 28px);
}

.tinado-quote-form .tqf-field:has(:is(input, textarea)[aria-required="true"]) > .tqf-floating-label::after,
.tinado-quote-form .tqf-design-request:has(textarea[aria-required="true"]) > .tqf-floating-label::after {
    content: " *";
    color: #c62828;
    font-weight: 700;
}

.tqf-field::before {
    content: var(--tqf-icon);
    position: absolute;
    left: 14px;
    top: 50%;
    z-index: 1;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    color: #111;
    font-family: dashicons;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    text-align: center;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.tinado-quote-form .wpcf7-form-control-wrap::before {
    display: none !important;
    content: none !important;
}

.tqf-icon-product { --tqf-icon: "\f193"; }
.tqf-icon-size { --tqf-icon: "\f188"; }
.tqf-icon-pages { --tqf-icon: "\f497"; }
.tqf-icon-material { --tqf-icon: "\f180"; }
.tqf-icon-time { --tqf-icon: "\f469"; }
.tqf-icon-qty { --tqf-icon: "\f204"; }
.tqf-icon-color { --tqf-icon: "\f131"; }
.tqf-icon-user { --tqf-icon: "\f110"; }
.tqf-icon-phone { --tqf-icon: "\f525"; }
.tqf-icon-mail { --tqf-icon: "\f465"; }
.tqf-icon-note { --tqf-icon: "\f125"; }
.tqf-icon-note::before { top: 16px; transform: none; }

.tinado-quote-form input,
.tinado-quote-form select,
.tinado-quote-form textarea {
    width: 100%;
    min-height: 42px !important;
    padding: 8px 14px 8px 52px !important;
    border: 2px solid #f7b400;
    border-radius: 17px;
    background: #f6f6f6;
    color: #444;
    font-family: 'Mulish', system-ui, -apple-system, sans-serif !important;
    font-size: 16px !important;
    font-weight: 700;
    line-height: 1.2;
    box-sizing: border-box;
}

.tinado-quote-form input::placeholder,
.tinado-quote-form textarea::placeholder {
    color: #9b9b9b;
    font-family: 'Mulish', system-ui, -apple-system, sans-serif !important;
    font-weight: 700;
    opacity: 1;
}

.tinado-quote-form textarea {
    min-height: 42px;
    max-height: 58px;
    resize: vertical;
}

.tqf-file-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 10px 0 0;
}

.tqf-file-tabs span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: 28px 28px 0 0;
    background: #ffc531;
    color: #111;
    border: 2px solid #ffc531;
    border-bottom: 0;
    font-weight: 700;
    font-size: 16px !important;
    text-align: center;
}

.tqf-file-tabs span + span {
    background: #fff;
    border: 2px solid #ffc531;
    border-bottom: 0;
}

.tqf-file-box {
    border: 2px solid #ffc531;
    border-top: 0;
    margin-top: 10px;
    background: #fff;
}

.tqf-choice {
    padding: 8px 10px 4px;
    font-size: 14px !important;
    font-weight: 500;
    line-height: 1.18;
    color: #111;
}

.tqf-choice .wpcf7-form-control {
    display: grid;
    gap: 7px;
}

.tqf-choice .wpcf7-list-item {
    display: block;
    margin: 0;
}

.tqf-choice label {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    align-items: start;
    column-gap: 6px;
}

.tqf-choice input[type="radio"] {
    width: 12px !important;
    min-width: 12px;
    min-height: 12px !important;
    height: 12px !important;
    margin: 1px 0 0 !important;
    padding: 0 !important;
    accent-color: #111;
    box-sizing: border-box;
}

.tqf-choice .wpcf7-list-item-label {
    display: block;
    line-height: 1.22;
}

.tqf-choice .wpcf7-list-item.first .wpcf7-list-item-label {
    font-weight: 700;
}

.tqf-choice .wpcf7-list-item.first .wpcf7-list-item-label::after {
    content: "Khuyên dùng - Miễn phí - thêm 2 - 4 giờ làm việc";
    display: block;
    color: #ed1c24;
    font-weight: 700;
    font-style: italic;
}

.tqf-choice .wpcf7-list-item.first .wpcf7-list-item-label {
    color: transparent;
    font-size: 14px !important;
}

.tqf-choice .wpcf7-list-item.first .wpcf7-list-item-label::before {
    content: var(--pw-company-name, "Tinado") " kiểm tra file và gửi mô tả thành phẩm để Tôi xác nhận.";
    color: #111;
    font-size: 14px !important;
    font-weight: 700;
    font-style: normal;
}

.tqf-upload {
    margin: 6px 10px 8px;
    padding: 0 14px;
    border: 3px dashed #ffc531;
    border-radius: 18px;
    background: #fff;
    min-height: 42px;
}

.tqf-upload .codedropz-upload-handler {
    min-height: 38px !important;
    border: 0 !important;
    padding: 0 !important;
    background: transparent;
}

.tqf-upload .codedropz-upload-inner {
    display: grid !important;
    grid-template-columns: max-content max-content max-content;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 !important;
    min-height: 38px !important;
    height: 38px !important;
    white-space: nowrap;
}

.tqf-upload .codedropz-upload-inner h3 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #111;
    font-size: 16px !important;
    font-weight: 700;
}

.tqf-upload .codedropz-upload-inner h3::before {
    content: "\f13b";
    font-family: dashicons;
    color: #111;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
}

.tqf-upload .codedropz-upload-inner span {
    color: transparent;
    font-size: 14px !important;
    font-weight: 700;
    line-height: 1 !important;
}

.tqf-upload .codedropz-upload-inner span:first-child::before {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    content: "\f13b  Kéo & Thả Tệp Vào Đây";
    color: #111;
    font-family: dashicons, 'Mulish', system-ui, -apple-system, sans-serif;
    font-size: 16px !important;
}

.tqf-upload .codedropz-upload-inner span:first-child {
    min-width: 0;
}

.tqf-upload .codedropz-upload-inner span:nth-child(2)::before {
    content: "hoặc";
    color: #111;
    font-family: 'Mulish', system-ui, -apple-system, sans-serif;
    font-size: 16px !important;
}

.tqf-upload .codedropz-btn-wrap {
    display: inline-flex;
    min-width: 0;
}

.tqf-upload .codedropz-upload-inner .cd-upload-btn {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    height: 30px;
    min-width: 112px;
    padding: 0 18px;
    border-radius: 999px;
    background: #ffc531;
    color: transparent !important;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

.tqf-upload .codedropz-upload-inner .cd-upload-btn::after {
    position: absolute;
    inset: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    content: "Duyệt tập tin";
    font-size: 14px !important;
    font-weight: 700;
    color: #111;
}

.tqf-upload .dnd-upload-counter {
    display: none;
}

.tqf-captcha {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    margin: 0 10px 10px;
    font-family: 'Mulish', system-ui, -apple-system, sans-serif;
    font-size: 14px !important;
    font-weight: 500;
    color: #555;
}

.tqf-captcha--real {
    position: relative;
    display: flex;
    width: 304px;
    max-width: calc(100% - 20px);
    min-height: 78px;
    align-items: flex-start;
    overflow: hidden;
}

.tqf-captcha--real:not(:has(iframe))::after {
    content: "Đang tải xác minh…";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8dce8;
    border-radius: 3px;
    background: #f8f9fc;
    color: #50566a;
    font-family: 'Mulish', system-ui, -apple-system, sans-serif;
    font-size: 14px !important;
    font-weight: 600;
    line-height: 1.2;
    box-sizing: border-box;
}

.tqf-panel > .tqf-captcha--real {
    margin: 10px auto 8px;
}

.tqf-captcha--real .g-recaptcha {
    display: block;
    width: 304px;
    max-width: 100%;
    height: 78px;
}

.tqf-captcha-box {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    border: 1px solid #aaa;
    background: #fff;
}

.tqf-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    padding: 10px 8px 0;
}

.tinado-quote-form .wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border-radius: 16px;
    border: 0;
    font-family: 'Mulish', system-ui, -apple-system, sans-serif !important;
    font-size: 16px !important;
    font-weight: 700;
    cursor: pointer;
}

.tinado-quote-form .tqf-cart {
    background: #fff;
    color: #ed1c24;
    border: 2px solid #ed1c24;
}

.tinado-quote-form .tqf-cart .dashicons {
    width: 26px;
    height: 26px;
    font-size: 16px;
}

.tinado-quote-form .tqf-submit {
    background: #ed1c24 !important;
    color: #fff !important;
}

.tinado-quote-form .tqf-submit[aria-busy="true"] {
    opacity: .72;
    cursor: wait;
}

.tinado-quote-form .wpcf7-response-output,
.tinado-quote-form .wpcf7-spinner {
    display: none;
}

.tinado-quote-form .wpcf7-not-valid-tip {
    display: block;
    margin: 4px 10px 0;
    color: #c62828;
    font-size: 14px !important;
    font-weight: 600;
    line-height: 1.25;
}

.tinado-quote-form .wpcf7-not-valid {
    border-color: #c62828 !important;
}

.tinado-quote-form .tqf-form-alert {
    margin: 8px 0 0;
    padding: 8px 10px;
    border: 1px solid #c62828;
    border-radius: 10px;
    background: #fff4f4;
    color: #8f1d1d;
    font-size: 14px !important;
    font-weight: 600;
    line-height: 1.3;
}

.tinado-quote-form .tqf-form-alert[hidden] {
    display: none;
}

.tinado-quote-form .tqf-form-alert.is-success {
    border-color: #2e7d32;
    background: #f1f8f2;
    color: #1f6425;
}

.tinado-quote-form .tqf-form-alert:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.contact-box .foot {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.quote-form-box .foot {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.quote-form-box .foot .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 128px;
    height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: #ed1c24;
    color: #fff;
    border: 2px solid #ffc531;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(237, 28, 36, 0.28);
    pointer-events: auto;
}

.contact-box .foot .btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #d7262b;
    font-size: 16px;
    line-height: 1;
    border: 0;
    box-shadow: none;
    position: relative;
    text-indent: -9999px;
}

.contact-box .foot .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 45px;
    height: 45px;
    transform: translate(-50%, -50%);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 -960 960 960' width='24px' fill='%23e3e3e3'%3E%3Cpath d='M440-120v-80h320v-284q0-117-81.5-198.5T480-764q-117 0-198.5 81.5T200-484v244h-40q-33 0-56.5-23.5T80-320v-80q0-21 10.5-39.5T120-469l3-53q8-68 39.5-126t79-101q47.5-43 109-67T480-840q68 0 129 24t109 66.5Q766-707 797-649t40 126l3 52q19 9 29.5 27t10.5 38v92q0 20-10.5 38T840-249v49q0 33-23.5 56.5T760-120H440Zm-80-280q-17 0-28.5-11.5T320-440q0-17 11.5-28.5T360-480q17 0 28.5 11.5T400-440q0 17-11.5 28.5T360-400Zm240 0q-17 0-28.5-11.5T560-440q0-17 11.5-28.5T600-480q17 0 28.5 11.5T640-440q0 17-11.5 28.5T600-400Zm-359-62q-7-106 64-182t177-76q89 0 156.5 56.5T720-519q-91-1-167.5-49T435-698q-16 80-67.5 142.5T241-462Z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.contact-box .foot .btn::after {
    display: none;
}

.contact-box.is-open .foot .btn {
    width: 32px;
    height: 32px;
    background: #d7262b;
    box-shadow: 0 6px 14px rgba(215, 38, 43, 0.35);
}

.contact-box.is-open .foot .btn::before,
.contact-box.is-open .foot .btn::after {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transform: translate(-50%, -50%) rotate(45deg);
}

.contact-box.is-open .foot .btn::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.quote-form-box.is-open .foot {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    margin: 0;
}

.quote-form-box.is-open .foot .btn {
    width: 32px;
    min-width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #d7262b;
    position: relative;
    text-indent: -9999px;
    box-shadow: 0 6px 14px rgba(215, 38, 43, 0.35);
}

.quote-form-box.is-open .foot .btn::before,
.quote-form-box.is-open .foot .btn::after {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transform: translate(-50%, -50%) rotate(45deg);
}

.quote-form-box.is-open .foot .btn::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

@media (max-width: 768px) {

    .contact-box {
        left: 12px;
        bottom: 12px;
    }

    .quote-form-box {
        right: 12px;
        bottom: 80px;
    }

    .quote-form-box.is-open {
        left: 50%;
        width: 96vw;
    }

    .quote-form-box.is-open .block--banner .content {
        width: 96vw;
    }

    .quote-form-box.is-open .foot {
        top: 8px;
        right: 8px;
    }

    .tinado-quote-form {
        grid-template-columns: 1fr;
    }

    .tqf-promo {
        min-height: 220px;
        padding: 28px 18px;
    }

    .tqf-promo__badge {
        font-size: 16px !important;
    }

    .tqf-promo__offer {
        font-size: 16px !important;
    }

    .tqf-promo__offer strong {
        font-size: 16px !important;
    }

    .tqf-promo__sub {
        font-size: 16px !important;
    }

    .tqf-promo__copy {
        font-size: 16px;
    }

    .tqf-panel {
        margin: 0;
        border-radius: 18px;
    }

    .tqf-grid,
    .tqf-file-tabs,
    .tqf-actions {
        grid-template-columns: 1fr;
    }

    .tqf-upload {
        padding: 0 10px;
        border-width: 2px;
        border-radius: 14px;
        min-height: 38px;
    }

    .tqf-upload .codedropz-upload-handler,
    .tqf-upload .codedropz-upload-inner {
        min-height: 34px !important;
        height: 34px !important;
    }

    .tqf-upload .codedropz-upload-inner {
        grid-template-columns: max-content max-content max-content;
        gap: 7px;
        justify-content: center;
        overflow: hidden;
    }

    .tqf-upload .codedropz-upload-inner span:first-child::before {
        gap: 5px;
        font-size: 14px !important;
    }

    .tqf-upload .codedropz-upload-inner span:nth-child(2)::before {
        font-size: 14px !important;
    }

    .tqf-upload .codedropz-upload-inner .cd-upload-btn {
        min-width: 82px;
        height: 26px;
        min-height: 26px;
        padding: 0 12px;
    }

    .tqf-upload .codedropz-upload-inner .cd-upload-btn::after {
        font-size: 14px !important;
    }

}

/* Popup "Dat in nhanh" matched to the compact reference artwork. */
.quote-form-box.is-open .block--banner .content {
    width: min(96vw, 940px);
}

.tinado-quote-form {
    grid-template-columns: minmax(0, 1.04fr) minmax(420px, .96fr);
    min-height: 500px;
}

.tqf-promo {
    padding: 28px 18px;
}

.tqf-panel {
    align-self: stretch;
    justify-content: center;
    margin: 16px 10px 16px 0;
    padding: 0 10px 8px;
    border-radius: 30px;
    font-size: 14px;
}

.tqf-head {
    gap: 8px;
    margin: 0 -10px 6px;
    padding: 6px 10px;
    min-height: 38px;
    font-size: 14px;
}

.tqf-head strong,
.tqf-head .pw-countdown__segment {
    font-size: 14px !important;
}

.tqf-head .pw-countdown__segment {
    min-width: 24px;
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.tqf-grid {
    gap: 6px 18px;
}

.tqf-field::before {
    left: 8px;
    width: 16px;
    height: 16px;
    font-size: 14px;
}

.tinado-quote-form input,
.tinado-quote-form select,
.tinado-quote-form textarea {
    min-height: 28px !important;
    padding: 4px 8px 4px 30px !important;
    border-width: 2px;
    border-radius: 10px;
    font-size: 14px !important;
    font-weight: 600;
}

.tinado-quote-form textarea {
    min-height: 28px !important;
    height: 28px;
    max-height: 52px;
}

.tqf-icon-note::before {
    top: 7px;
}

.tqf-file-box {
    margin-top: 6px;
}

.tqf-file-tabs {
    margin-top: 0;
}

.tqf-file-tabs span {
    min-height: 30px;
    font-size: 14px !important;
}

.tqf-choice {
    padding: 5px 6px 2px;
    font-size: 10px !important;
}

.tqf-choice .wpcf7-form-control {
    gap: 3px;
}

.tqf-choice .wpcf7-list-item-label,
.tqf-choice .wpcf7-list-item.first .wpcf7-list-item-label,
.tqf-choice .wpcf7-list-item.first .wpcf7-list-item-label::before {
    font-size: 10px !important;
}

.tqf-upload {
    margin: 4px 6px 6px;
    min-height: 34px;
    padding: 0 8px;
    border-width: 2px;
    border-radius: 12px;
}

.tqf-upload .codedropz-upload-handler,
.tqf-upload .codedropz-upload-inner {
    min-height: 30px !important;
    height: 30px !important;
}

.tqf-upload .codedropz-upload-inner {
    gap: 7px;
}

.tqf-upload .codedropz-upload-inner span:first-child::before,
.tqf-upload .codedropz-upload-inner span:nth-child(2)::before,
.tqf-upload .codedropz-upload-inner .cd-upload-btn::after {
    font-size: 14px !important;
}

.tqf-upload .codedropz-upload-inner .cd-upload-btn {
    min-width: 82px;
    min-height: 24px;
    height: 24px;
    padding: 0 10px;
}

.tqf-panel > .tqf-captcha--real {
    margin: 4px auto 2px;
    width: 219px;
    max-width: 219px;
    min-height: 56px;
    height: 56px;
    overflow: hidden;
}

.tqf-panel > .tqf-captcha--real .g-recaptcha {
    width: 304px;
    max-width: none;
    transform: scale(.72);
    transform-origin: top left;
}

.tqf-actions {
    gap: 18px;
    padding: 4px 8px 0;
}

.tinado-quote-form .wpcf7-submit {
    min-height: 28px;
    border-radius: 10px;
    font-size: 14px !important;
}

@media (max-width: 768px) {
    .tinado-quote-form {
        grid-template-columns: 1fr;
    }

    .tqf-panel {
        margin: 0;
    }
}

/* Harmonise the quick-print modal with Tinado's navy/gold visual system. */
.quote-form-box.is-open {
    inset: 0;
    width: 100%;
    height: 100%;
    transform: none;
    display: grid;
    place-items: center;
    padding: 24px;
    z-index: 100000;
}

.quote-form-box.is-open::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 17, 43, .68);
    backdrop-filter: blur(3px);
}

.quote-form-box.is-open > .container,
.quote-form-box.is-open .block--banner {
    position: relative;
    z-index: 1;
}

.quote-form-box.is-open .block--banner .content {
    width: min(94vw, 1080px);
    max-height: calc(100vh - 48px);
    border: 0;
    border-radius: 24px;
    overflow: auto;
    box-shadow: 0 28px 80px rgba(5, 12, 35, .38);
}

.tinado-quote-form {
    grid-template-columns: minmax(0, 1fr) minmax(500px, .92fr);
    min-height: 590px;
    background: #fff;
}

.tqf-promo {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 590px;
    padding: 46px 34px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.88) 30%, rgba(255,255,255,.1) 68%),
        url("/wp-content/uploads/2025/12/revolutionary-automatic-label-printing-machine-with-digital-control-panel_1305972-3977.webp") center bottom/cover no-repeat;
}

.tqf-promo::before {
    width: 46%;
    opacity: .28;
}

.tqf-promo__badge {
    color: #f4b400;
    font-size: 34px !important;
    line-height: 1;
    text-shadow: 3px 4px 0 #0b1538, 1px 2px 0 #7a2d1e;
}

.tqf-promo__offer {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    margin-top: 4px;
    color: #f4b400;
    font-size: 30px !important;
    line-height: 1;
    text-shadow: 2px 3px 0 #0b1538;
}

.tqf-promo__offer strong {
    font-size: 64px !important;
    line-height: .9;
}

.tqf-promo__offer span {
    color: #f4b400;
    font-size: 18px !important;
    font-weight: 800;
}

.tqf-promo__sub {
    margin: 4px auto 10px;
    color: #f4b400;
    font-size: 20px !important;
    font-weight: 800;
    line-height: 1.15;
    text-shadow: 2px 3px 0 #0b1538;
}

.tqf-promo__copy {
    max-width: 520px;
    padding: 0;
    background: transparent;
    color: #111;
    font-size: 16px;
    line-height: 1.35;
    box-shadow: none;
}

.tqf-promo__timer {
    width: fit-content;
    min-width: 214px;
    margin: 14px auto 0;
    padding: 9px 14px 10px;
    border: 1px solid rgba(11,21,56,.18);
    border-radius: 14px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 8px 22px rgba(11,21,56,.12);
}

.tqf-promo__timer-label {
    margin-bottom: 7px;
    color: #0b1538;
    font-size: 14px !important;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.tqf-promo__timer .pw-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.tqf-promo__timer .pw-countdown__segment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    min-width: 32px;
    height: 32px;
    border-radius: 7px;
    background: #ed1c24;
    color: #fff;
    font-size: 16px !important;
    font-weight: 800;
    line-height: 1;
}

.tqf-promo__timer .pw-countdown__label {
    display: none;
}

.tqf-promo__timer .pw-countdown__separator {
    color: #0b1538;
    font-size: 16px !important;
    font-weight: 800;
}

.tqf-panel {
    align-self: center;
    margin: 20px 18px 20px 0;
    padding: 0 14px 14px;
    border: 1px solid #f4b400;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(11,21,56,.1);
}

.tqf-head {
    margin: 0 -14px 10px;
    padding: 8px 14px;
    min-height: 42px;
    border-radius: 21px 21px 0 0;
    background: #ffc531;
    color: #111;
}

.tinado-quote-form .tqf-head {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.tinado-quote-form .tqf-head > strong {
    min-width: 0;
    color: #111;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.15;
    white-space: nowrap;
}

.tinado-quote-form .tqf-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tinado-quote-form .tqf-actions > * {
    min-width: 0;
}

.tinado-quote-form .tqf-head .tqf-countdown {
    flex: 0 0 auto;
    margin-left: 0;
}

.tinado-quote-form .tqf-offer-clock {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    margin-left: auto;
}

.tinado-quote-form .tqf-offer-clock > span {
    color: #111;
    font-size: 14px !important;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.tinado-quote-form input,
.tinado-quote-form select,
.tinado-quote-form textarea {
    border-color: #e5b31f;
    background: #f8f9fc;
    color: #18213e;
}

.tinado-quote-form input:focus,
.tinado-quote-form select:focus,
.tinado-quote-form textarea:focus {
    border-color: #0b1538;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(244,180,0,.18);
}

.tqf-file-tabs span {
    background: #f4b400;
    border-color: #f4b400;
    color: #0b1538;
}

.tqf-file-tabs span + span {
    border-color: #f4b400;
    background: #fff;
}

.tqf-file-box {
    border-color: #f4b400;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.tqf-upload {
    border-color: #e5b31f;
    background: #fffdf5;
}

.tinado-quote-form .tqf-cart {
    border-color: #0b1538;
    color: #0b1538;
}

.tinado-quote-form .tqf-submit {
    background: #f4b400 !important;
    color: #0b1538 !important;
}

.tinado-quote-form .wpcf7-submit {
    width: 100%;
    min-height: 36px;
    height: 36px;
    gap: 5px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 16px !important;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.tinado-quote-form .tqf-cart .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
    line-height: 18px;
}

.tinado-quote-form .wpcf7-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 16px rgba(11,21,56,.16);
}

.quote-form-box.is-open .foot {
    top: 0;
    right: 0;
    transform: translate(42%, -42%);
}

.quote-form-box.is-open .foot .btn {
    width: 36px;
    min-width: 36px;
    height: 36px;
    background: #0b1538;
    border: 2px solid rgba(255,255,255,.9);
    box-shadow: 0 6px 18px rgba(5,12,35,.25);
}

@media (max-width: 768px) {
    .quote-form-box.is-open {
        width: 100%;
        height: 100%;
        padding: 10px;
    }

    .quote-form-box.is-open .block--banner .content {
        width: min(96vw, 540px);
        max-height: calc(100vh - 20px);
        border-radius: 18px;
    }

    .tinado-quote-form {
        grid-template-columns: 1fr;
    }

    .tqf-promo {
        display: none;
    }

    .tqf-panel {
        margin: 0;
        border: 0;
        border-radius: 18px;
        box-shadow: none;
    }

    .tqf-head {
        border-radius: 17px 17px 0 0;
    }

    .quote-form-box.is-open .foot {
        top: 0;
        right: 0;
        transform: translate(20%, -20%);
    }

    .tqf-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tqf-file-tabs,
    .tqf-actions {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .tqf-grid {
        grid-template-columns: 1fr;
    }

    .tqf-field--full {
        grid-column: auto;
    }

    .tqf-head {
        padding-right: 46px;
    }
}

/* Reference-accurate file preparation block. */
.tinado-quote-form .tqf-file-tabs {
    margin: 6px 0 0;
}

.tinado-quote-form .tqf-file-tabs span {
    min-height: 30px;
    height: 30px;
    padding: 0 8px;
    border-width: 2px;
    border-radius: 18px 18px 0 0;
    font-size: 14px !important;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.tinado-quote-form .tqf-file-box {
    position: relative;
    margin-top: 0;
    border: 0;
    border-radius: 0 0 12px 12px;
    overflow: visible;
}

.tinado-quote-form .tqf-file-box::after {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 30px 0 0;
    border: 2px solid #f4b400;
    border-top: 0;
    border-radius: 0 0 12px 12px;
    pointer-events: none;
}

.tinado-quote-form .tqf-file-box > * {
    position: relative;
    z-index: 1;
}

.tinado-quote-form .tqf-choice {
    padding: 4px 5px 2px;
    font-size: 9px !important;
    line-height: 1.08;
}

.tinado-quote-form .tqf-choice .wpcf7-form-control {
    gap: 2px;
}

.tinado-quote-form .tqf-choice label {
    grid-template-columns: 10px minmax(0, 1fr);
    column-gap: 3px;
}

.tinado-quote-form .tqf-choice input[type="radio"] {
    width: 9px !important;
    min-width: 9px;
    height: 9px !important;
    min-height: 9px !important;
    margin-top: 1px !important;
}

.tinado-quote-form .tqf-choice .wpcf7-list-item-label,
.tinado-quote-form .tqf-choice .wpcf7-list-item.first .wpcf7-list-item-label,
.tinado-quote-form .tqf-choice .wpcf7-list-item.first .wpcf7-list-item-label::before,
.tinado-quote-form .tqf-choice .wpcf7-list-item.first .wpcf7-list-item-label::after {
    font-size: 9px !important;
    line-height: 1.08;
}

.tinado-quote-form .tqf-choice .wpcf7-list-item.first .wpcf7-list-item-label {
    font-size: 0 !important;
    line-height: 0;
}

.tinado-quote-form .tqf-choice .wpcf7-list-item.first .wpcf7-list-item-label::before {
    display: block;
    font-size: 7px !important;
    line-height: 1.1;
    white-space: nowrap;
}

.tinado-quote-form .tqf-choice .wpcf7-list-item.first .wpcf7-list-item-label::after {
    display: block;
    margin-top: 1px;
    font-size: 8px !important;
    line-height: 1.1;
    white-space: nowrap;
}

.tinado-quote-form .tqf-upload {
    margin: 3px 4px 4px;
    padding: 0 6px;
    height: 36px;
    min-height: 36px;
    border-width: 2px;
    border-radius: 12px;
}

.tinado-quote-form .tqf-upload .codedropz-upload-handler,
.tinado-quote-form .tqf-upload .codedropz-upload-inner {
    height: 32px !important;
    min-height: 32px !important;
}

.tinado-quote-form .tqf-upload .codedropz-upload-inner {
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    gap: 6px !important;
    width: 100%;
}

.tinado-quote-form .tqf-upload .codedropz-upload-inner .cd-upload-btn {
    min-width: 88px;
    height: 28px;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 14px !important;
    font-weight: 500;
}

/* Match the inputs used by the homepage "Dich vu noi bat" form. */
.tinado-quote-form .tqf-field::before {
    left: 9px;
}

.tinado-quote-form .tqf-upload {
    height: 36px;
    min-height: 36px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
}

.tinado-quote-form .tqf-upload .codedropz-upload-handler {
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 2px 0 12px !important;
    border: 2px solid #fec935 !important;
    border-radius: 999px;
    background: #f3f3f3;
    box-sizing: border-box;
}

.tinado-quote-form .tqf-upload .codedropz-upload-inner {
    height: 32px !important;
    min-height: 32px !important;
}

.tinado-quote-form .tqf-upload .codedropz-upload-inner .cd-upload-btn {
    min-width: 94px;
    height: 30px;
    min-height: 30px;
    padding: 0 10px;
    background: #fec935;
}

/* Two-level type scale for the file preparation controls. */
.tinado-quote-form .tqf-file-tabs span {
    height: 36px;
    min-height: 36px;
    font-size: 16px !important;
}

/* Mobile layout: readable, contained and free of horizontal clipping. */
@media (max-width: 768px) {
    .tinado-quote-form {
        min-height: 0;
    }

    .tinado-quote-form .tqf-panel {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 0 12px 12px;
        box-sizing: border-box;
        overflow: hidden;
    }

    .tinado-quote-form .tqf-head {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0;
        height: auto;
        min-height: 44px;
        margin-right: -12px;
        margin-left: -12px;
        padding: 9px 48px 9px 12px;
    }

    .tinado-quote-form .tqf-head > strong {
        width: 100%;
        white-space: normal;
    }

    .tinado-quote-form .tqf-head .tqf-countdown {
        flex: 0 0 auto;
        margin-left: 0;
    }

    .tinado-quote-form .tqf-offer-clock {
        align-items: flex-start;
        margin-left: 0;
    }

    .tinado-quote-form .tqf-file-tabs span {
        height: auto;
        min-height: 48px;
        padding: 5px 8px;
        white-space: normal;
    }

    .tinado-quote-form .tqf-file-box::after {
        inset-block-start: 48px;
    }

    .tinado-quote-form .tqf-actions {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .tqf-panel > .tqf-captcha--real {
        width: 304px;
        max-width: 100%;
        height: 78px;
        min-height: 78px;
    }

    .tqf-panel > .tqf-captcha--real .g-recaptcha {
        width: 304px;
        max-width: none;
        transform: none;
    }
}

@media (max-width: 480px) {
    .tinado-quote-form .tqf-upload .codedropz-upload-inner {
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 4px !important;
    }

    .tinado-quote-form .tqf-upload .codedropz-upload-inner span:nth-child(2) {
        display: none !important;
    }

    .tinado-quote-form .tqf-upload .codedropz-upload-inner .cd-upload-btn {
        min-width: 94px;
    }
}

/* Keep the primary and optional field pairs compact on common phone widths. */
@media (min-width: 360px) and (max-width: 480px) {
    .tinado-quote-form .tqf-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tinado-quote-form .tqf-grid > .tqf-field--full,
    .tinado-quote-form .tqf-extra-grid > .tqf-field--full {
        grid-column: 1 / -1;
    }
}

@media (max-width: 359px) {
    .tinado-quote-form .tqf-extra-grid {
        grid-template-columns: 1fr;
    }

    .tinado-quote-form .tqf-extra-grid > .tqf-field--full {
        grid-column: auto;
    }
}

/* Keep the popup uploader identical to the homepage uploader at every width. */
.tinado-quote-form .tqf-upload .codedropz-upload-inner .cd-upload-btn {
    min-width: 94px;
    width: 94px;
    height: 30px;
    min-height: 30px;
    padding: 0 10px;
}

@media (max-width: 480px) {
    .tinado-quote-form .tqf-upload .codedropz-upload-inner {
        grid-template-columns: minmax(0, 1fr) auto auto !important;
        gap: 8px !important;
    }

    .tinado-quote-form .tqf-upload .codedropz-upload-inner span:nth-child(2) {
        display: inline-flex !important;
    }
}

.tinado-quote-form .tqf-file-box::after {
    inset-block-start: 36px;
}

.tinado-quote-form .tqf-choice {
    padding: 6px 7px 4px;
    font-size: 14px !important;
    line-height: 1.2;
}

.tinado-quote-form .tqf-choice .wpcf7-form-control {
    gap: 4px;
}

.tinado-quote-form .tqf-choice label {
    grid-template-columns: 14px minmax(0, 1fr);
    column-gap: 5px;
}

.tinado-quote-form .tqf-choice input[type="radio"] {
    width: 12px !important;
    min-width: 12px;
    height: 12px !important;
    min-height: 12px !important;
}

.tinado-quote-form .tqf-choice .wpcf7-list-item-label,
.tinado-quote-form .tqf-choice .wpcf7-list-item.first .wpcf7-list-item-label::before,
.tinado-quote-form .tqf-choice .wpcf7-list-item.first .wpcf7-list-item-label::after {
    font-size: 14px !important;
    line-height: 1.2;
}

.tinado-quote-form .tqf-choice .wpcf7-list-item.first .wpcf7-list-item-label::before,
.tinado-quote-form .tqf-choice .wpcf7-list-item.first .wpcf7-list-item-label::after {
    white-space: normal;
}

.tinado-quote-form .tqf-upload .codedropz-upload-inner span:first-child::after,
.tinado-quote-form .tqf-upload .codedropz-upload-inner .cd-upload-btn::after {
    font-size: 14px !important;
}

.tinado-quote-form .tqf-upload .codedropz-upload-inner span:nth-child(2)::before {
    font-size: 14px !important;
}

.tinado-quote-form .tqf-upload .codedropz-upload-inner .cd-upload-btn {
    width: 94px;
    min-width: 94px;
    padding: 0 10px;
    font-size: 14px !important;
    box-sizing: border-box;
}

/* Canonical codedropz component — homepage featured-services form is the source of truth. */
body .codedropz-upload-wrapper {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

body .codedropz-upload-wrapper .codedropz-upload-handler {
    width: 100%;
    height: 36px !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 0 2px 0 12px !important;
    border: 2px solid #fec935 !important;
    border-radius: 999px !important;
    background: #f3f3f3 !important;
    color: #111 !important;
    box-sizing: border-box !important;
}

body .codedropz-upload-wrapper .codedropz-upload-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    align-items: center !important;
    justify-content: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    height: 32px !important;
    min-height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #111 !important;
    box-sizing: border-box !important;
    white-space: nowrap;
}

body .codedropz-upload-wrapper .codedropz-upload-inner h3 {
    display: contents;
    margin: 0;
}

body .codedropz-upload-wrapper .codedropz-upload-inner span:first-child {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
    color: transparent !important;
    font-size: 0 !important;
}

body .codedropz-upload-wrapper .codedropz-upload-inner span:first-child::before {
    content: "\f13b" !important;
    display: inline-flex !important;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    width: 24px !important;
    height: 24px !important;
    color: #000 !important;
    font-family: dashicons !important;
    font-size: 24px !important;
    font-weight: 400 !important;
    line-height: 24px !important;
}

body .codedropz-upload-wrapper .codedropz-upload-inner span:first-child::after {
    content: "Kéo & Thả Tệp" !important;
    min-width: 0;
    overflow: hidden;
    color: #777 !important;
    font-family: 'Mulish', system-ui, -apple-system, sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 14px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body .codedropz-upload-wrapper .codedropz-upload-inner span:nth-child(2) {
    display: inline-flex !important;
    align-items: center;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

body .codedropz-upload-wrapper .codedropz-upload-inner span:nth-child(2)::before {
    content: "hoặc" !important;
    color: #777 !important;
    font-family: 'Mulish', system-ui, -apple-system, sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 14px !important;
}

body .codedropz-upload-wrapper .codedropz-btn-wrap {
    display: inline-flex !important;
    width: 94px !important;
    min-width: 94px !important;
}

body .codedropz-upload-wrapper .codedropz-upload-inner .cd-upload-btn {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 94px !important;
    min-width: 94px !important;
    max-width: 94px !important;
    height: 30px !important;
    min-height: 30px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #fec935 !important;
    color: transparent !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
}

body .codedropz-upload-wrapper .codedropz-upload-inner .cd-upload-btn::after {
    content: "Duyệt tập tin" !important;
    position: absolute;
    inset: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111 !important;
    font-family: 'Mulish', system-ui, -apple-system, sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 14px !important;
}

/* Win over legacy form-specific rules so every wrapper resolves identically. */
body .wpcf7-form .codedropz-upload-wrapper .codedropz-upload-inner {
    position: relative;
    grid-template-columns: minmax(0, 1fr) 94px !important;
    gap: 8px !important;
    padding: 0 !important;
}

body .wpcf7-form .codedropz-upload-wrapper .codedropz-upload-inner span:first-child {
    grid-column: 1;
}

body .wpcf7-form .codedropz-upload-wrapper .codedropz-upload-inner span:nth-child(2) {
    position: absolute;
    left: 50%;
    z-index: 2;
    transform: translateX(-50%);
}

body .wpcf7-form .codedropz-upload-wrapper .codedropz-btn-wrap {
    grid-column: 2;
}

body .wpcf7-form .codedropz-upload-wrapper .codedropz-upload-inner .cd-upload-btn {
    width: 94px !important;
    min-width: 94px !important;
    max-width: 94px !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 10px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    box-sizing: border-box !important;
}

/* File-choice copy: keep every visible line at the 14px secondary scale. */
body .tinado-quote-form .tqf-choice .wpcf7-list-item.first .wpcf7-list-item-label::before,
body .tinado-quote-form .tqf-choice .wpcf7-list-item.first .wpcf7-list-item-label::after,
body .tinado-quote-form .tqf-choice .wpcf7-list-item.last .wpcf7-list-item-label {
    font-size: 14px !important;
    line-height: 1.2 !important;
}

/* Only the currently selected file option is emphasized. */
body .tinado-quote-form .tqf-file-tabs span {
    background: #f4b400;
    color: #111;
    font-weight: 500 !important;
    cursor: pointer;
}

body .tinado-quote-form .tqf-file-tabs {
    margin: 0;
}

body .tinado-quote-form .tqf-file-tabs span.is-active {
    background: #fff;
    color: #0b1538;
    font-weight: 700 !important;
}

body .tinado-quote-form .tqf-choice .wpcf7-list-item .wpcf7-list-item-label,
body .tinado-quote-form .tqf-choice .wpcf7-list-item.first .wpcf7-list-item-label::before,
body .tinado-quote-form .tqf-choice .wpcf7-list-item.first .wpcf7-list-item-label::after {
    font-weight: 500 !important;
}

body .tinado-quote-form .tqf-choice .wpcf7-list-item.is-selected .wpcf7-list-item-label,
body .tinado-quote-form .tqf-choice .wpcf7-list-item.first.is-selected .wpcf7-list-item-label::before,
body .tinado-quote-form .tqf-choice .wpcf7-list-item.first.is-selected .wpcf7-list-item-label::after {
    font-weight: 700 !important;
}

body .tinado-quote-form .tqf-actions {
    grid-template-columns: 1fr;
}

/* Independent content panels for the two file/design tabs. */
body .tinado-quote-form .tqf-design-request {
    display: none;
    padding: 10px 8px 8px;
}

body .tinado-quote-form .tqf-file-box.is-design-request .tqf-choice,
body .tinado-quote-form .tqf-file-box.is-design-request .tqf-upload {
    display: none;
}

body .tinado-quote-form .tqf-file-box.is-design-request .tqf-design-request {
    display: block;
}

body .tinado-quote-form .tqf-design-request textarea.wpcf7-form-control {
    display: block;
    width: 100%;
    height: 120px !important;
    min-height: 120px !important;
    max-height: 220px;
    padding: 10px 12px !important;
    border: 2px solid #fec935 !important;
    border-radius: 12px !important;
    background: #f3f3f3 !important;
    color: #111 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    resize: vertical;
    box-sizing: border-box !important;
}

/* Keep the modal geometry stable while switching between file/design tabs. */
body .tinado-quote-form .tqf-file-box {
    height: 180px;
    min-height: 180px;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    body .tinado-quote-form .tqf-file-box {
        height: 213px;
        min-height: 213px;
    }
}

/* Vertically balance and loosen the content of the uploaded-file tab. */
body .tinado-quote-form .tqf-file-box:not(.is-design-request) .tqf-choice {
    margin-top: 17px;
    padding-right: 12px;
    padding-left: 12px;
}

body .tinado-quote-form .tqf-file-box:not(.is-design-request) .tqf-choice .wpcf7-form-control {
    gap: 6px;
}

body .tinado-quote-form .tqf-file-box:not(.is-design-request) .tqf-upload {
    margin: 7px 12px 4px;
}

body .tinado-quote-form .tqf-design-request {
    padding: 12px;
}

@media (max-width: 480px) {
    body .tinado-quote-form .tqf-file-box:not(.is-design-request) .tqf-choice {
        margin-top: 2px;
    }

    body .tinado-quote-form .tqf-design-request {
        padding: 22px 12px;
    }
}

/* Final popup-specific countdown skin; overrides the shared circular timer. */
body .tinado-quote-form .tqf-promo__timer .pw-countdown__segment {
    flex: 0 0 32px !important;
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    border-radius: 7px !important;
    background: #ed1c24 !important;
    color: #fff !important;
    box-shadow: 0 3px 8px rgba(237,28,36,.2) !important;
    box-sizing: border-box;
}

body .tinado-quote-form .tqf-promo__timer .pw-countdown__value {
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 800 !important;
}

body .tinado-quote-form .tqf-promo__timer .pw-countdown__separator {
    color: #0b1538 !important;
    font-size: 16px !important;
    font-weight: 800 !important;
}

/* Balanced rhythm for the compact primary and additional-information fields. */
body .tinado-quote-form .tqf-grid {
    column-gap: 18px;
    row-gap: 14px;
}

body .tinado-quote-form .tqf-extra-details {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
    min-width: 0;
}

body .tinado-quote-form .tqf-extra-grid {
    column-gap: 18px;
    row-gap: 14px;
    max-height: 0;
    padding-top: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height .28s ease, padding-top .28s ease, opacity .2s ease, transform .28s ease;
}

body .tinado-quote-form .tqf-extra-details.is-expanded .tqf-extra-grid {
    max-height: 520px;
    padding-top: 14px;
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    body .tinado-quote-form .tqf-extra-grid,
    body .tinado-quote-form .tqf-extra-details > summary::after {
        transition: none;
    }
}

body .tinado-quote-form .tqf-file-box {
    margin-top: 14px;
}

body .tinado-quote-form .tqf-extra-grid textarea[name="noi-dung"] {
    height: 72px !important;
    min-height: 72px !important;
    max-height: 120px !important;
    padding: 13px 14px 10px 42px !important;
    border-radius: 12px !important;
    line-height: 1.35 !important;
    resize: vertical;
}

body .tinado-quote-form .tqf-extra-grid .tqf-icon-note::before {
    top: 17px;
    transform: none;
}

body .tinado-quote-form .tqf-design-request .tqf-floating-label {
    top: 5px;
    left: 24px;
    max-width: calc(100% - 48px);
    background: #fff;
}

@media (max-width: 480px) {
    body .tinado-quote-form .tqf-design-request .tqf-floating-label {
        top: 15px;
    }
}

body .tinado-quote-form .tqf-floating-label {
    background: #fff;
}

#pw-quote-form-box .tinado-quote-form .tqf-field :is(input, select, textarea).wpcf7-form-control,
#pw-quote-form-box .tinado-quote-form .tqf-design-request textarea.wpcf7-form-control {
    background: #fff !important;
}
