/* TENGDA CONTACT FORM 7 */
.tengda-contact-form {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 15px 20px;
    background: var(--color-white);
    border: 2px solid var(--color-main);
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .10);
    box-sizing: border-box;
}

/* HEADER */
.tengda-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.tengda-form-header h2 {
    margin: 0 0 5px;
    color: var(--color-black);
    font-size: 23px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: .5px;
}

.tengda-form-header p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

/* BADGE */
.tengda-form-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border: 1px solid var(--color-main);
    border-radius: 9px;
    color: #b87900;
    background: #fffdf5;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.tengda-form-badge i {
    color: var(--color-main);
}

/* LINE */
.tengda-form-line {
    width: 100%;
    height: 1px;
    margin: 16px 0 10px;
    background: var(--color-main);
}

/* ROW */
.tengda-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 10px;
}

/* GROUP */
.tengda-form-group {
    width: 100%;
}

.tengda-form-group label {
    display: block;
    color: var(--color-black);
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
}

.tengda-form-group label span {
    color: #f59e0b;
}

/* INPUT */
.tengda-contact-form .tengda-input,
.tengda-contact-form .tengda-select,
.tengda-contact-form .tengda-textarea {
    width: 100%;
    margin: 0;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    color: #172033;
    font-size: 13px;
    box-shadow: none;
    outline: none;
    transition: all .25s ease;
}

.tengda-contact-form .tengda-input,
.tengda-contact-form .tengda-select {
    height: 40px;
}

.tengda-contact-form .tengda-textarea {
    min-height: 90px;
    resize: vertical;
    line-height: 1.5;
}

/* PLACEHOLDER */
.tengda-contact-form input::placeholder,
.tengda-contact-form textarea::placeholder {
    color: #94a3b8;
    opacity: 1;
}

/* FOCUS */
.tengda-contact-form .tengda-input:focus,
.tengda-contact-form .tengda-select:focus,
.tengda-contact-form .tengda-textarea:focus {
    border-color: var(--color-main);
    background: var(--color-white);
    box-shadow: 0 0 0 3px rgba(255, 185, 0, .12);
}

/* TEXTAREA */
.tengda-full {
    margin-bottom: 18px;
}

/* TENGDA FILE UPLOAD */
.tengda-upload {
    position: relative;
    width: 100%;
    min-height: 130px;
    padding: 20px;
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    background: #fbfdff;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    transition: all .25s ease;
    box-sizing: border-box;
}

.tengda-upload:hover {
    border-color: var(--color-main);
    background: #fffdf5;
}

/* ICON */
.tengda-upload-icon {
    position: relative;
    z-index: 1;
    margin-bottom: 5px;
    color: var(--color-main);
    font-size: 25px;
    pointer-events: none;
}

/* TITLE */
.tengda-upload-title {
    position: relative;
    z-index: 1;
    margin-bottom: 4px;
    color: #172033;
    font-size: 14px;
    font-weight: 700;
    pointer-events: none;
}

/* DESCRIPTION */
.tengda-upload-desc {
    position: relative;
    z-index: 1;
    color: #64748b;
    font-size: 11px;
    line-height: 1.5;
    pointer-events: none;
}

/* NOTE */
.tengda-upload-note {
    position: relative;
    z-index: 1;
    margin-top: 5px;
    color: #94a3b8;
    font-size: 10px;
    pointer-events: none;
}

/* CF7 WRAPPER */
.tengda-upload .wpcf7-form-control-wrap {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 10 !important;
}

/* FILE INPUT */
.tengda-upload input[type="file"] {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    cursor: pointer !important;
    z-index: 11 !important;
}

/* Khi hover */
.tengda-upload:has(input[type="file"]:hover) {
    border-color: var(--color-main);
    background: #fffdf5;
}

/* FILE NAME */
.tengda-upload .wpcf7-not-valid-tip {
    position: relative;
    z-index: 20;
}

.tengda-upload input[type="file"] {
    min-height: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* OPTIONAL CHECKBOX */
.tengda-options {
    width: 100%;
    margin-top: 5px;
    margin-bottom: 16px;
    padding: 10px 12px;
    border: 1px solid #dbe3ed;
    border-radius: 12px;
    background: #f8fafc;
}

.tengda-check {
    display: flex !important;
    align-items: center;
    gap: 9px;
    width: 100%;
    margin: 0 !important;
    padding: 3px 0;
    color: #172033 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    cursor: pointer;
}

.tengda-check .wpcf7-list-item {
    margin: 0;
}

.tengda-check input[type="checkbox"] {
    position: relative;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    border: 1px solid #94a3b8;
    border-radius: 3px;
    background: var(--color-white);
    cursor: pointer;
}

.tengda-check input[type="checkbox"]:checked {
    border-color: var(--color-main);
    background: var(--color-main);
}

/* SUBMIT */
.tengda-submit-wrap {
    width: 100%;
}

.tengda-contact-form .tengda-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    margin: 0;
    padding: 12px 20px;
    border: 0 !important;
    border-radius: 25px;
    background: var(--color-main) !important;
    color: var(--color-black) !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 5px 10px rgba(0, 0, 0, .12);
    transition: all .25s ease;
}

.tengda-contact-form .tengda-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, .16);
}

.tengda-contact-form .tengda-submit:active {
    transform: translateY(0);
}

/* CF7 RESPONSE */
.tengda-contact-form .wpcf7-not-valid-tip {
    margin-top: 4px;
    font-size: 11px;
}

.tengda-contact-form .wpcf7-response-output {
    margin: 15px 0 0 !important;
    padding: 10px 13px !important;
    border-radius: 10px;
    font-size: 12px;
}

.tengda-contact-form .wpcf7-spinner {
	display: none;
}

/* TABLET */
@media (max-width: 991px) {
    .tengda-form-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .tengda-form-header h2 {
        font-size: 20px;
    }

    .tengda-form-header p {
        font-size: 12px;
    }

    .tengda-form-badge {
        font-size: 9px;
    }

    .tengda-form-line {
        margin: 15px 0 20px;
    }

    .tengda-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 15px;
    }

    .tengda-form-group label {
        font-size: 12px;
    }

    .tengda-contact-form .tengda-input,
    .tengda-contact-form .tengda-select {
        height: 44px;
    }

    .tengda-contact-form .tengda-textarea {
        min-height: 105px;
    }

    .tengda-upload {
        min-height: 80px;
        padding: 13px 10px;
    }

    .tengda-upload-text {
        font-size: 11px;
    }

    .tengda-options {
        padding: 9px 11px;
    }

    .tengda-check {
        font-size: 11px !important;
    }

    .tengda-contact-form .tengda-submit {
        min-height: 48px;
        font-size: 13px;
    }
}

/* MOBILE NHỎ */
@media (max-width: 768px) {
    .tengda-form-header h2 {
        font-size: 18px;
    }

    .tengda-form-header p {
        font-size: 11px;
    }

    .tengda-form-line {
        margin: 13px 0 18px;
    }

    .tengda-upload-text {
        font-size: 10px;
    }

    .tengda-check {
        font-size: 10.5px !important;
    }
}