/* ==========================================================================
   Quote Request Form Stylesheet (bao-gia.css)
   ========================================================================== */

.td-quote-form-wrapper {
    margin: 0 auto;
    background: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    color: #1A1A1A;
    box-sizing: border-box;
}

/* Form Sections */
.td-form-section {
    margin-bottom: 24px;
}

.td-form-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1F6F4A;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 8px;
    border-bottom: 1px solid #E5E5E5;
    margin: 0 0 16px 0;
}

/* Rows and Columns */
.td-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.td-form-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Fields & Labels */
.td-form-col label {
    font-family: Montserrat;
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: -3%;

    color: #1A1A1A;
    margin-bottom: 6px;
    display: block;
}

.td-form-col .required {
    color: #EF4444;
    margin-left: 2px;
}

/* Inputs & Textareas */
.td-quote-form-wrapper input[type="text"],
.td-quote-form-wrapper input[type="email"],
.td-quote-form-wrapper input[type="tel"],
.td-quote-form-wrapper textarea {
    width: 100% !important;
    height: 48px;
    border: 1px solid #E5E5E5 !important;
    border-radius: 8px !important;
    padding: 10px 16px !important;
    font-size: 16px !important;
    color: #1A1A1A !important;
    background: #FFFFFF !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    box-shadow: none !important;
    margin: 0 !important;
    font-family: 'Montserrat', sans-serif !important;
}

.td-quote-form-wrapper input[type="text"]::placeholder,
.td-quote-form-wrapper input[type="email"]::placeholder,
.td-quote-form-wrapper input[type="tel"]::placeholder,
.td-quote-form-wrapper textarea::placeholder {
    color: #666666 !important;
    opacity: 1 !important;
    font-weight: 400 !important;
}

.td-form-footer-call br {
    display: block;
}

.td-quote-form-wrapper input[type="text"]:focus,
.td-quote-form-wrapper input[type="email"]:focus,
.td-quote-form-wrapper input[type="tel"]:focus,
.td-quote-form-wrapper textarea:focus {
    border-color: #1F6F4A !important;
    box-shadow: 0 0 0 3px rgba(31, 111, 74, 0.1) !important;
    outline: none !important;
}

.td-quote-form-wrapper textarea {
    height: 120px !important;
    resize: vertical !important;
    line-height: 1.5 !important;
}

/* Upload Zone */
.td-upload-zone {
    border: 1.5px dashed #CCCCCC;
    border-radius: 8px;
    background: #FAFAFA;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
    position: relative;
    user-select: none;
}

.td-upload-zone.dragover {
    border-color: #1F6F4A;
    background-color: rgba(31, 111, 74, 0.05);
}

.td-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.td-upload-icon {
    margin-bottom: 12px;
}

.td-upload-icon svg {
    display: block;
}

.td-upload-text {
    font-size: 15px;
    font-weight: 500;
    color: #1A1A1A;
    margin: 0 0 6px 0;
}

.td-upload-link {
    color: #1F6F4A;
    font-weight: 700;
    text-decoration: underline;
}

.td-upload-subtext {
    font-size: 13px;
    color: #737373;
    margin: 0;
}

/* Custom File Input Hidden */
.td-file-input {
    display: none !important;
}

/* File display container */
.td-file-display-container {
    width: 100%;
}

/* File Attached Card Style */
.file-attached-card {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 16px;
    gap: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    position: relative;
    text-align: left;
}

.file-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    flex-shrink: 0;
}

.file-icon-box.icon-excel {
    background: rgba(22, 163, 74, 0.1);
}

.file-icon-box.icon-csv {
    background: rgba(13, 148, 136, 0.1);
}

.file-icon-box.icon-pdf {
    background: rgba(220, 38, 38, 0.1);
}

.file-icon-box.icon-image {
    background: rgba(37, 99, 235, 0.1);
}

.file-icon-box.icon-default {
    background: rgba(107, 114, 128, 0.1);
}

.file-attached-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.file-attached-name {
    font-size: 14px;
    font-weight: 600;
    color: #1A1A1A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.file-attached-size {
    font-size: 12px;
    color: #737373;
    margin-top: 2px;
}

.file-attached-remove {
    background: none !important;
    border: none !important;
    color: #A3A3A3 !important;
    cursor: pointer !important;
    padding: 6px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.2s, color 0.2s !important;
    flex-shrink: 0;
}

.file-attached-remove:hover {
    background-color: #F5F5F5 !important;
    color: #EF4444 !important;
}

/* Footer Section */
.td-form-footer {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 24px;
}

.td-btn-submit {
    background: #F97316 !important;
    color: #FFFFFF !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 32px !important;
    height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    transition: background-color 0.2s, transform 0.2s !important;
    text-transform: none !important;
    line-height: 1 !important;
    box-shadow: none !important;
    margin: 0 !important;
    width: 100%;
}

p:has(.td-btn-submit) {
    width: 100%;
}

.td-btn-submit:hover {
    background: #EA580C !important;
}

.td-btn-submit svg {
    transition: transform 0.2s;
}

.td-btn-submit:hover svg {
    transform: translate(2px, -2px);
}

.td-form-footer-call {
    font-size: 14px;
    font-weight: 500;
    color: #737373;
    display: flex;
    flex-direction: column;
    line-height: 1.4;
    width: 250px;
}

.td-form-footer-call a {
    color: #1F6F4A !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-decoration: underline !important;
    transition: color 0.2s !important;
}

.td-form-footer-call a:hover {
    color: #154D32 !important;
}

/* CF7 Custom Validation Error Tip Style */
.wpcf7-not-valid-tip {
    color: #EF4444 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    margin-top: 6px !important;
    display: block !important;
}

div.wpcf7 .wpcf7-response-output {
    border-radius: 8px !important;
    margin: 20px 0 0 0 !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* Responsive Styles */
@media (max-width: 767px) {
    .td-form-row {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 20px;
    }

    .td-form-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .td-btn-submit {
        width: 100% !important;
    }

    .td-form-footer-call {
        align-items: center;
        text-align: center;
    }
}

.quote-banner {
    padding-bottom: 240px !important;
}

.quote-banner .section-bg-overlay {
    background: linear-gradient(0deg, rgba(11, 61, 46, 0.6), rgba(11, 61, 46, 0.6)),
        linear-gradient(0deg, #0B3D2E 7.69%, rgba(15, 71, 51, 0.80627) 49.18%, rgba(31, 111, 74, 0) 100%);
    background-color: transparent !important;
}

.section-content .row.quote-process-wrapper {
    background: white;
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0px 4px 20px 0px #1A1A1A0D;
    margin-top: -168px !important;

}

.quotes-process-grid .col-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr 20px) 1fr;
    width: 856px;
    max-width: 100%;
    margin: 0 auto !important;
    align-items: center;
}

.quotes-process-grid .icon-box {
    gap: 4px;
    padding-top: 48px;
    padding-right: 20px;
    padding-bottom: 20px;
    padding-left: 20px;
    border-radius: 4px;
    border: 1px solid #E5E5E5;
    position: relative;
}

.quotes-process-grid .icon-box h3 {
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: -3%;
    text-align: center;
    color: #1a1a1a;
}

.quotes-process-grid .icon-box p {
    margin: 0;
    margin-bottom: 4px;
    font-weight: 400;
    font-size: 14px;
    line-height: 150%;
    letter-spacing: -3%;
    text-align: center;
    color: #666666;
}

.quotes-process-grid .icon-box:hover {
    border-color: #1F6F4A;
    box-shadow: 0px 4px 20px 0px #1A1A1A0D;
    background-color: #EFFAF3;
}

.quotes-process-grid .icon-box:hover h3,
.quotes-process-grid .icon-box:hover p {
    color: #1F6F4A;
}

.quotes-process-grid .icon-box .icon-box-img {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translatex(-50%) translatey(-50%);
}

.quotes-page-form-wrapper {
    display: grid;
    grid-template-columns: 504px 1fr;
    gap: 0;
    background: white;
    border-radius: 16px;
    overflow: hidden;
}


.quotes-page-form-wrapper>div:first-of-type {
    height: 100%;


    padding: 0;
    border-radius: 16px;
    overflow: hidden;
}

.quotes-page-form-wrapper>div:first-of-type .col-inner {
    position: relative;
    background-image: url('https://td-corp.vn/wp-content/uploads/2026/08/Frame-2147239378-2.jpg');
    background-position: bottom;
    background-size: cover;
    height: 100%;
    padding: 40px;
}

.quotes-page-form-wrapper>div:first-of-type .col-inner .text {
    z-index: 2;
    position: relative;
}

.quotes-page-form-wrapper>div:first-of-type .col-inner .text li {
    position: relative;
    list-style: none;
    padding-left: 28px;
    margin-left: 0 !important;
    margin-bottom: 8px;
}

.quotes-page-form-wrapper>div:first-of-type .col-inner .text li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M3.75 10L7.91667 14.1667L16.25 5.83337' stroke='%23F97316' stroke-width='1.66667' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.quotes-page-form-wrapper>div:first-of-type .col-inner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            #0B3D2E 0%,
            #0B3D2E 30%,
            rgba(11, 61, 46, 0.72) 53%,
            rgba(11, 61, 46, 0) 100%);
    pointer-events: none;
    z-index: 0;
}

.quotes-page-form-wrapper>div:last-of-type {
    padding: 40px;
}


.table-vat-tu {
    padding: 24px;
    background: #F6F6F652;
    border-radius: 4px;
    border: 1px solid #E5E5E5;
}

.table-vat-tu table {
    border-collapse: collapse;
}

.table-vat-tu table tr td {
    gap: 10px;
    padding-top: 8px;
    padding-right: 24px;
    padding-bottom: 8px;
    padding-left: 24px;
    border-width: 1px;
    border: 1px solid #E5E5E5;
    background: #fff;

    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: -3%;

    color: #666666;
}


.table-vat-tu table tr:first-of-type td {
    font-weight: 700;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: -3%;
    color: #1A1A1A;
    background: #E5E5E5;
}

.table-vat-tu table tr td:first-of-type {
    color: #1A1A1A;
}

.quote-contact-section .section-bg-overlay {
    background-image: linear-gradient(90deg, #0B3D2E 30%, rgba(15, 71, 51, 0.80627) 43%, rgba(31, 111, 74, 0) 63.03%),
        /* Lớp gradient 1 phía trên */
        linear-gradient(90deg, #1F6F4A 47.28%, rgba(11, 61, 46, 0) 66.77%)
        /* Lớp gradient 2 phía dưới: Giữ màu đậm liên tục đến 30% rồi mới bắt đầu nhạt dần */
        !important;
}

.quote-tel-btn {
    min-width: 160px;
    gap: 4px;
    opacity: 1;
    padding-top: 12px;
    padding-right: 16px;
    padding-bottom: 12px;
    padding-left: 16px;
    border-radius: 8px;
    background: #F97316 !important;
    box-shadow: 0px 20px 35px 0px #1A1A1A26;

    font-weight: 700;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: -3%;
    color: #FFFFFF !important;

    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.quote-tel-btn::before {
    content: "";
    width: 24px;
    height: 24px;
    background: url("https://td-corp.vn/wp-content/uploads/2026/08/phone-call.svg") center / contain no-repeat;
}


.quote-zalo-btn {
    min-width: 160px;
    gap: 4px;
    opacity: 1;
    padding-top: 12px;
    padding-right: 16px;
    padding-bottom: 12px;
    padding-left: 16px;
    border-radius: 8px;
    color: #F97316 !important;
    box-shadow: 0px 20px 35px 0px #1A1A1A26;

    font-weight: 700;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: -3%;
    background: #FFFFFF !important;

    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.quote-zalo-btn::before {
    content: "";
    width: 24px;
    height: 24px;
    background: url("https://td-corp.vn/wp-content/uploads/2026/08/message-2.svg") center / contain no-repeat;
}

.download-bom-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.download-bom-meta a {
    gap: 4px;
    padding-top: 12px;
    padding-right: 16px;
    padding-bottom: 12px;
    padding-left: 16px;
    border-radius: 8px;
    display: inline-flex;
    border: 1px solid #1F6F4A;

    font-weight: 700;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: -3%;
    color: #1F6F4A !important;

    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.download-bom-meta a::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    background: url("https://td-corp.vn/wp-content/uploads/2026/08/download.svg") center / contain no-repeat;
}

.download-bom-meta a:hover {
    box-shadow: inset 0 0 0 100px rgba(0, 0, 0, .2);
}

@media (max-width: 767px) {
    .bao-gia-h1 {
        width: 288px;
        max-width: 100%;
        margin: 0 auto;
    }

    .quote-banner {
        padding-bottom: 180px !important;
        padding-top: 48px !important;
    }

    .section-content .row.quote-process-wrapper {
        padding: 16px;
    }

    .quotes-process-grid .col-inner {
        display: flex;
        flex-direction: column;
    }

    .quotes-process-grid .col-inner .img {
        display: flex;
        justify-content: center;
        margin-bottom: 0.2em;
        box-sizing: border-box;
    }



    .quotes-process-grid .col-inner .img img {
        width: 16px;
        transform: rotate(90deg);
    }

    .quotes-process-grid .icon-box .icon-box-img {
        position: relative;
        transform: none;
        left: 0;
    }

    .quotes-process-grid .icon-box {
        padding: 12px;
    }

    .quotes-process-grid .icon-box h3 {
        text-align: left;
        font-size: 14px;
    }

    .quotes-process-grid .icon-box p {
        text-align: left;
        font-size: 12px;
    }

    .quotes-process-grid .icon-box .icon-box-text {
        padding: 0;
    }

    .quotes-process-grid .icon-box .icon-box-img {
        width: 44px;
    }

    .section-content .row.quote-process-wrapper {
        margin-top: -159px !important;
    }

    .quotes-page-form-wrapper {
        display: flex;
        flex-direction: column;
    }

    .quotes-page-form-wrapper>div:last-of-type {
        padding: 18px 16px 18px 16px;
    }

    .td-form-section-title,
    .td-form-col label,
    .td-quote-form-wrapper input[type="text"],
    .td-quote-form-wrapper input[type="email"],
    .td-quote-form-wrapper input[type="tel"],
    .td-quote-form-wrapper textarea {
        font-size: 14px !important;
    }

    .wpcf7 label,
    .td-upload-text {
        font-size: 14px;
    }


    .td-upload-subtext {
        font-size: 12px;
    }

    .td-btn-submit {
        font-size: 14px !important;
        height: 44px !important;
    }

    .tick-list li {
        position: relative;
        list-style: none;
        padding-left: 28px;
        margin-left: 0 !important;
        margin-bottom: 8px;
    }

    .tick-list li::before {
        content: "";
        position: absolute;
        left: 0;
        top: 2px;
        width: 20px;
        height: 20px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M3.75 10L7.91667 14.1667L16.25 5.83337' stroke='%23F97316' stroke-width='1.66667' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
    }

    .td-form-footer-call {
        width: 100%;
    }

    .td-form-footer-call br {
        display: none;
    }

    .bom-table-h2 {
        width: 280px;
        margin: 0 auto !important;
        max-width: 100%;
    }

    .table-vat-tu {
        padding: 0;
        border: 0;
    }

    .table-vat-tu table tr td {
        padding: 6px;
        font-size: 12px;
    }

    .table-vat-tu table tr:first-of-type td {
        font-size: 10.5px;
        letter-spacing: -0.05em;
    }

    .download-bom-meta {
        flex-direction: column;
        gap: 12px;
        justify-content: center;
        align-items: center;
    }

    .download-bom-meta p {
        margin: 0;
        font-size: 14px;
        text-align: center;
    }

    .download-bom-meta a {
        font-size: 14px;
    }

    .quote-contact-section .section-bg-overlay {
        background: linear-gradient(180deg, #0B3D2E 30%, rgba(15, 71, 51, 0.80627) 43%, rgba(31, 111, 74, 0) 63.03%), linear-gradient(180deg, #1F6F4A 47.67%, rgba(11, 61, 46, 0) 58.25%), linear-gradient(180deg, #0B3D2E 20%, rgba(15, 71, 51, 0.80627) 60%, rgba(31, 111, 74, 0) 65%) !important
    }

    .quote-tel-btn,
    .quote-zalo-btn {
        width: 100%;
        font-size: 14px;
    }

    .quote-contact-section .section-bg img {
        object-position: 80% 0% !important;
        height: 45%;
        bottom: 0;
        top: auto;
    }
}