/*
 Theme Name:   Flatsome Child
 Template:     flatsome
 Version:      1.1.22
*/

/* --- 1. KHAI BÁO FONT (Giữ nguyên 9 file) --- */
@font-face { font-family: '1FTV VIP Outfit'; src: url('/wp-content/fonts/1FTV/1FTVVIPOutfit-Thin.otf') format('opentype'); font-weight: 100; font-display: swap; }
@font-face { font-family: '1FTV VIP Outfit'; src: url('/wp-content/fonts/1FTV/1FTVVIPOutfit-ExtraLight.otf') format('opentype'); font-weight: 200; font-display: swap; }
@font-face { font-family: '1FTV VIP Outfit'; src: url('/wp-content/fonts/1FTV/1FTVVIPOutfit-Light.otf') format('opentype'); font-weight: 300; font-display: swap; }
@font-face { font-family: '1FTV VIP Outfit'; src: url('/wp-content/fonts/1FTV/1FTVVIPOutfit-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: '1FTV VIP Outfit'; src: url('/wp-content/fonts/1FTV/1FTVVIPOutfit-Medium.otf') format('opentype'); font-weight: 500; font-display: swap; }
@font-face { font-family: '1FTV VIP Outfit'; src: url('/wp-content/fonts/1FTV/1FTVVIPOutfit-SemiBold.otf') format('opentype'); font-weight: 600; font-display: swap; }
@font-face { font-family: '1FTV VIP Outfit'; src: url('/wp-content/fonts/1FTV/1FTVVIPOutfit-Bold.otf') format('opentype'); font-weight: 700; font-display: swap; }
@font-face { font-family: '1FTV VIP Outfit'; src: url('/wp-content/fonts/1FTV/1FTVVIPOutfit-ExtraBold.otf') format('opentype'); font-weight: 800; font-display: swap; }
@font-face { font-family: '1FTV VIP Outfit'; src: url('/wp-content/fonts/1FTV/1FTVVIPOutfit-Black.otf') format('opentype'); font-weight: 900; font-display: swap; }

/* --- 2. ÁP DỤNG FONT CÓ LOẠI TRỪ THÔNG MINH --- */

/* Áp dụng cho các thẻ văn bản phổ biến */
body, p, a, span, li, input, textarea, button, blockquote,
h1, h2, h3, h4, h5, h6, .nav > li > a {
    font-family: '1FTV VIP Outfit', sans-serif;
}

/* --- 3. BẢO VỆ ICON (QUAN TRỌNG) --- */

/* Loại bỏ font-family cho tất cả các thẻ i (thẻ chứa icon) và các class icon phổ biến */
i, 
[class^="icon-"], [class*=" icon-"], 
[class^="fa-"], [class*=" fa-"],
.fas, .fab, .far, .fal, .fad, .fat, .dashicons, [class^="dashicons-"]{
    line-height: 1.8 !important;
}
.dashicons{
	font-family: "dashicons" !important;
    display: inline-block !important;
    font-style: normal !important;
    font-weight: normal !important;
    line-height: 1.8 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.fa {
	font-family: "FontAwesome" !important;
  	display: inline-block !important;
    font-style: normal !important;
    font-weight: normal !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* Sửa lỗi icon trên Admin Bar cụ thể */
#wpadminbar .ab-icon:before, 
#wpadminbar .ab-item:before,
#wpadminbar .dashicons-before:before {
    font-family: dashicons !important;
}

/* Container chính của Form */

.custom-contact-form h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 20px;
}

/* Màu nền Gradient cho toàn bộ form */
.recruitment-form {
    background: linear-gradient(135deg, #003FAF 0%, #22AE4D 100%);
    padding: 30px;
    border-radius: 15px;
}

/* Dấu sao đỏ */
.required {
    color: #ff4d4d;
    margin-left: 3px;
}

/* Tiêu đề có thanh dọc bên trái */
.form-header {
    border-left: 4px solid #fff;
    padding-left: 15px;
    margin-bottom: 25px;
}
.form-title {
    margin: 0 !important;
    font-weight: 700 !important;
}

/* Tùy chỉnh ô Upload File */
/* 1. Khung bao bọc ngoài cùng */
.file-upload-wrapper {
    position: relative;
    width: 100%;
    height: 140px; /* Tăng nhẹ chiều cao để cân đối */
    background: #ffffff;
    border: 2px dashed #a5cfbb;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden; /* Đảm bảo không có phần tử nào tràn ra ngoài */
}

/* 2. Sửa lỗi thẻ span của CF7 và ép kích thước Input File */
/* CF7 luôn bọc input trong một thẻ span, ta cần ép span này phủ kín khung */
.file-upload-wrapper span.wpcf7-form-control-wrap {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 10; /* Nằm trên cùng để nhận click */
}

.file-upload-wrapper input[type="file"] {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    cursor: pointer !important;
    opacity: 0 !important; /* Làm ẩn input mặc định của trình duyệt */
    margin: 0 !important;
    padding: 0 !important;
}

/* 3. Giao diện hiển thị (Icon và Chữ nằm dưới lớp input) */
.file-custom-design {
    position: relative;
    z-index: 5;
    text-align: center;
    pointer-events: none; /* Rất quan trọng: Giúp click xuyên qua chữ để chạm vào input */
}

.file-custom-design i {
    font-size: 35px;
    color: #444;
    margin-bottom: 10px;
    display: block;
}

.file-custom-design .file-text {
    color: #22AE4D;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.file-custom-design .file-limit {
    font-size: 12px;
    color: #888;
    font-weight: 400;
}

/* 4. Hiệu ứng Hover (Khi di chuột vào ô) */
.file-upload-wrapper:hover {
    background-color: #f0fff4;
    border-color: #22AE4D;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.file-upload-wrapper:hover .file-custom-design i {
    transform: translateY(-3px);
    transition: transform 0.3s ease;
}

/* 5. Responsive cho điện thoại */
@media (max-width: 600px) {
    .file-upload-wrapper {
        height: 120px;
    }
}

/* Tùy chỉnh textarea */
.custom-contact-form textarea {
    height: 120px !important;
    resize: none;
}

/* Nút bấm giống ảnh mẫu */
.recruitment-form .form-submit input[type="submit"] {
    background: linear-gradient(90deg, #22AE4D 0%, #003FAF 100%) !important;
    border: 1px solid #fff !important;
    text-transform: none;
    font-size: 18px;
    padding: 12px !important;
}

/* Chia cột cho form */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.form-group {
    width: 50%;
    padding: 0 10px;
    margin-bottom: 15px;
}

.form-group.full-width-custome {
    width: 100%;
}

/* Style cho Label */
.custom-contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #fff;
}

/* Style cho Input, Select, Textarea */
.custom-contact-form input[type="text"],
.custom-contact-form input[type="email"],
.custom-contact-form input[type="tel"],
.custom-contact-form select,
.custom-contact-form textarea {
    width: 100% !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 15px !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    color: #333 !important;
    margin: 0 !important;
  	height: 48px;
}

/* Nút bấm gửi đi */
.custom-contact-form .form-submit {
    text-align: center;
    margin-top: 10px;
}

.custom-contact-form input[type="submit"] {
    background: linear-gradient(90deg, #22AE4D 0%, #003FAF 100%);
    border: 2px solid #fff !important;
    color: #fff !important;
    padding: 10px 40px !important;
    border-radius: 10px !important;
    font-weight: bold !important;
    transition: all 0.3s ease;
    width: 100%;
}

.custom-contact-form input[type="submit"]:hover {
    background: #fff !important;
    color: #006666 !important;
}