/* ==================== TỔNG THỂ CONTAINER ==================== */
.UIContactUs {
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 25px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #eef2f6;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* ==================== TIÊU ĐỀ (TITLE) ==================== */
.UIContactUs .Title {
    padding: 0 0 15px 0;
    text-align: left;
    margin-top: 0;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
}

.UIContactUs .Title span {
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    color: #ce1126; /* Màu đỏ chủ đạo */
    margin-left: 20px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.UIContactUs .Title:before {
    width: 4px;
    height: 20px;
    border-radius: 4px;
    position: absolute;
    content: '';
    background: #ce1126;
    left: 0;
    top: 2px;
}

/* Phần Head (Ẩn theo code cũ của bạn) */
.UIContactUs .Head {
    display: none;
}

/* ==================== THÔNG BÁO LỖI (ERROR) ==================== */
.UIContactUs .divInfo {
    color: #d32f2f;
    font-size: 14px;
    background: #fff5f5;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #fed7d7;
    margin-bottom: 20px;
}

.UIContactUs .InfoError {
    background-color: transparent;
    padding: 5px 0;
}

/* ==================== FORM BODY & TABLE LAYOUT ==================== */
.UIContactUs .FormBody {
    width: 100%;
}

.UIContactUs table.FormContact {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.UIContactUs table.FormContact td {
    padding: 10px 0;
    font-size: 15px;
    color: #334155;
    vertical-align: middle;
}

.UIContactUs .LabelText {
    width: 180px;
    font-weight: 600;
    color: #475569;
}

/* ==================== INPUTS & TEXTAREA ==================== */
.UIContactUs input[type="text"],
.UIContactUs textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    color: #1e293b;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.UIContactUs input[type="text"]:focus,
.UIContactUs textarea:focus {
    background-color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.UIContactUs .Content {
    height: 120px !important;
    resize: vertical;
}

/* ==================== FILE UPLOAD ==================== */
.UIContactUs input[type='file'] {
    padding: 10px 0;
    border: none;
    font-size: 13px;
}

.UIContactUs input[type='file']::-webkit-file-upload-button {
    background: #ffffff;
    border: 1px solid #2c4e8b;
    border-radius: 6px;
    color: #2c4e8b;
    padding: 8px 16px;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.UIContactUs input[type='file']::-webkit-file-upload-button:hover {
    background: #2c4e8b;
    color: #fff;
}

/* ==================== CAPTCHA ==================== */
.UIContactUs .capcha {
    height: 40px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    vertical-align: middle;
}

.UIContactUs .reload_cap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

/* ==================== NÚT BẤM (BUTTONS) ==================== */
.UIContactUs .SubmitForm {
    padding: 20px 0 10px 0;
    text-align: center;
    border-top: 1px solid #f1f5f9;
}

.UIContactUs .btnSubmit,
.UIContactUs .lnkSubmit,
.UIContactUs .lnkClear {
    display: inline-block;
    padding: 10px 35px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

/* Nút Gửi (Primary) */
.UIContactUs #ctrl_205184_27_btnSend,
.UIContactUs .btnSubmit:first-child {
    background: #ce1126;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(206, 17, 38, 0.2);
}

.UIContactUs #ctrl_205184_27_btnSend:hover {
    background: #a80e1f;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(206, 17, 38, 0.3);
}

/* Nút Nhập lại (Secondary) */
.UIContactUs #ctrl_205184_27_btnCancel,
.UIContactUs .btnSubmit:last-child {
    background: #f1f5f9;
    color: #475569 !important;
    margin-left: 10px;
}

.UIContactUs #ctrl_205184_27_btnCancel:hover {
    background: #e2e8f0;
    color: #1e293b !important;
}

/* ==================== RESPONSIVE ==================== */
@media only screen and (max-width: 768px) {
    .UIContactUs {
        margin: 10px;
        padding: 15px !important;
    }

    .UIContactUs .LabelText {
        width: 100%;
        display: block;
        padding-bottom: 5px;
    }

    .UIContactUs table.FormContact td {
        display: block;
        width: 100%;
    }

    .UIContactUs .SubmitForm {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .UIContactUs #ctrl_205184_27_btnCancel {
        margin-left: 0;
    }

    .UIContactUs .btnSubmit {
        width: 100%;
        box-sizing: border-box;
    }
}