
.page-title-txt {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    z-index: 5;
    color: #fff;
}
.tagline-small {
    font-weight: 600;
    padding-bottom: 1rem;
}
.page-title-txt .main-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0;
    line-height: 1;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
    background: none;
    padding: 0;
    color: #fff;
}
.overlay-blue {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #251f1d7d;
    z-index: 2;
}
.sub-hero-bg img {
    width: 100%;
}

.contact-form-section{
    padding: 5rem 0;
}


.contact-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}
/* --- Thêm vào cuối contact.css --- */

/* Style cho viền đỏ khi có lỗi */
.form-group input.input-error,
.form-group textarea.input-error {
    border-color: #d32424 !important; /* Màu đỏ */
    background-color: #fff8f8;        /* Nền đỏ rất nhạt */
    box-shadow: 0 0 0 2px rgba(211, 36, 36, 0.1);
}

/* Style cho dòng thông báo lỗi (thẻ span) */
.error-msg {
    display: none; /* Mặc định ẩn */
    color: #d32424;
    font-size: 13px;
    font-weight: 600;
    margin-top: 6px;
    animation: fadeIn 0.3s ease-in-out;
}

/* Thêm icon cảnh báo nhỏ trước text lỗi */
.error-msg::before {
    content: "⚠️ "; 
}

/* Hiệu ứng hiện dần */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Checkbox container khi lỗi */
.confirm-check.input-error-box {
    border: 1px solid #d32424;
    padding: 10px;
    border-radius: 4px;
    background-color: #fff8f8;
}
/* --- CĂN TRÁI CHECKBOX --- */
.confirm-check {
    /* Đổi từ center sang flex-start để căn trái */
    justify-content: flex-start !important; 
    
    /* Thêm chút khoảng cách nếu muốn thẳng hàng với input ở trên */
    padding-left: 5px; 
    margin-bottom: 15px; /* Khoảng cách giữa 2 dòng checkbox */
}

/* --- LOGIC NÚT SUBMIT (DISABLED) --- */

/* Khi nút bị disabled (chưa check đủ) */
.btn-submit:disabled {
    background-color: #cccccc !important; /* Màu xám */
    color: #888888 !important;
    cursor: not-allowed; /* Chuột hiển thị dấu cấm */
    pointer-events: none; /* Không cho click */
}

/* Khi nút active (đã check đủ) */
.btn-submit:not(:disabled) {
    background-color: #d80c18; /* Màu đỏ chủ đạo (hoặc màu bạn muốn) */
    color: #fff;
    cursor: pointer;
}

.btn-submit:not(:disabled):hover {
    background-color: #bd0a15; /* Màu hover tối hơn chút */
}
/* =========================================
   GRAY FLOW SECTION STYLE (Giống ảnh mẫu)
   ========================================= */

/* Khung bao ngoài */
.flow-gray-section {
    padding: 60px 0px;
    font-family: 'Noto Sans JP', sans-serif;
    display: flex;
    justify-content: center;
}

.flow-gray-box {
    background-color: #f7f8fa;
    border-radius: 50px;
    padding: 30px 40px;
    width: 100%;
    max-width: 1100px;
    text-align: center;
}
/* Tiêu đề */
.flow-gray-title {
    color: #5f6368; /* Màu chữ xám đậm */
    font-size: 32px;
    font-weight: 500;
    margin: 0 0 50px 0;
    letter-spacing: 0.05em;
}

/* Grid Layout 4 cột */
.flow-gray-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.flow-gray-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Mũi tên Xám (Dùng Clip-path) --- */
.flow-gray-arrow {
    background-color: #e3e4e8; /* Màu nền mũi tên */
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    width: 100%;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    
    /* Tạo hình mũi tên nhọn đầu */
    clip-path: polygon(0% 0%, 85% 0%, 100% 50%, 85% 100%, 0% 100%);
    
    /* Đẩy chữ sang trái một chút để cân đối với mũi nhọn */
    padding-right: 15px; 
}

/* Label tên bước */
.flow-gray-label {
    font-size: 18px;
    font-weight: 700;
    color: #5f6368; /* Màu xám đậm */
    margin: 0 0 30px 0; /* Cách icon bên dưới */
}

/* Icon */
.flow-gray-icon {
    width: 80px;
    height: 80px;
    opacity: 0.6; /* Làm mờ ảnh icon nhẹ cho giống style */
}

.flow-gray-icon img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(1);
}
@media (max-width: 998px) {
.sub-hero-bg img {
    width: 100%;
    height: 100%;       /* Ép ảnh cao bằng khung chứa */
    object-fit: cover;  /* Cắt bớt 2 bên ảnh để lấp đầy chiều cao mà không méo hình */
    object-position: center; /* Căn giữa ảnh */
    display: block;
}

}
/* --- RESPONSIVE MOBILE --- */
@media (max-width: 767.98px) {
    .flow-gray-box {
        padding: 40px 20px;
        border-radius: 20px;
    }
.container {
    padding: 0 5px;
}
.contact-form-section {
    padding: 3rem 0;
}
.flow-gray-title {
    margin: 0 0 20px 0;
    font-size: 23px;
}
    .flow-gray-grid {
        flex-direction: column;
        gap: 50px;
    }

    .flow-gray-arrow {
        width: 100%;
        max-width: 300px; /* Giới hạn chiều rộng mũi tên trên mobile */
        clip-path: none;  /* Bỏ nhọn trên mobile hoặc giữ tùy ý */
        border-radius: 5px; /* Bo góc nhẹ nếu bỏ nhọn */
        clip-path: polygon(0% 0%, 90% 0%, 100% 50%, 90% 100%, 0% 100%);
    }
}
.form-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 400;
    position: relative;
    padding-bottom: 15px;
}

/* Đường gạch chân ngắn màu xanh nhạt dưới tiêu đề */
.form-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: #dbe2ef; /* Màu xanh xám nhạt */
    margin: 15px auto 0;
}

.form-desc {
    text-align: center;
    font-size: 1rem;
    color: #666;
}

/* --- Các nhóm input --- */
.form-group {
    margin-bottom: 25px;
}

/* Label (Nhãn) */
.form-group label {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
    color: #222;
}

/* --- Badge (Nhãn Bắt buộc / Tùy chọn) --- */
.badge {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 10px;
    color: #fff;
    font-weight: normal;
    display: inline-block;
    vertical-align: middle;
}

.badge.required {
    background-color: #d32424;
}
/* Màu xám cho 'Tùy chọn' */
.badge.optional {
    background-color: #999; /* Hoặc #a8a8a8 */
}

/* --- Input Field (Ô nhập liệu) --- */
.form-group input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ccc; /* Viền xám nhạt */
    border-radius: 6px; /* Bo góc nhẹ */
    box-sizing: border-box; /* Để padding không làm vỡ layout */
    color: #333;
    background-color: #fff;
    transition: border-color 0.3s;
}

/* Placeholder (Chữ gợi ý bên trong) */
.form-group input::placeholder {
    color: #aaa; /* Màu chữ xám nhạt */
}

/* Hiệu ứng khi click vào ô input */
.form-group input:focus {
    outline: none;
    border-color: #312fe5; /* Màu xanh đậm giống theme timeline của bạn */
    box-shadow: 0 0 5px rgba(49, 47, 229, 0.2);
}
/* --- Style cho phần Textarea & Note --- */
.label-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Xuống dòng nếu màn hình quá nhỏ */
    margin-bottom: 8px;
}

/* Dòng chữ nhỏ lưu ý về 300 ký tự */
.note-text {
    font-size: 12px;
    margin-left: 10px;
    color: #333;
}

/* Khung nhập văn bản lớn */
.form-group textarea {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-family: inherit; /* Giữ font chữ giống body */
    resize: vertical; /* Cho phép kéo giãn chiều dọc */
}

.form-group textarea:focus {
    outline: none;
    border-color: #312fe5;
    box-shadow: 0 0 5px rgba(49, 47, 229, 0.2);
}

/* --- Style cho Footer (Cảnh báo, Checkbox, Button) --- */
.form-footer {
    text-align: center; /* Căn giữa toàn bộ nội dung bên dưới */
    margin-top: 30px;
}

/* Đoạn văn bản cảnh báo màu đỏ */
.warning-msg {
    color: #ff0000; /* Màu đỏ */
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
    font-weight: 500;
    text-align: left;
}

.warning-msg p {
    margin: 5px 0;
}

/* Checkbox xác nhận */
.confirm-check {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: #333;
}

.confirm-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
}

.confirm-check label {
    cursor: pointer;
}

/* Nút Submit (Gửi) */
.btn-submit {
    background-color: #eee; /* Nền xám nhạt giống ảnh */
    color: #555; /* Chữ xám đậm */
    border: none;
    padding: 15px 60px; /* Nút rộng ngang */
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

/* Hiệu ứng khi di chuột vào nút */
.btn-submit:hover {
    background-color: #ddd;
    color: #000;
}

/* Responsive cho mobile */
@media (max-width: 600px) {
    .label-row {
        display: block; /* Label xuống dòng để không bị vỡ */
    }
    .note-text {
        display: block;
        margin-left: 0;
        margin-top: 5px;
    }
    .warning-msg {
        font-size: 12px;
    }
}
/* Responsive cho màn hình nhỏ */
@media (max-width: 480px) {
    .contact-container {
        padding: 0 10px;
    }
    .form-group input {
        font-size: 14px;
    }
}