/* Component "Tìm kiếm việc làm" – Views/Shared/_TimKiemViecLam.cshtml (Trang chủ, Việc làm).
   Giao diện theo trang Việc làm (#254853): khung xanh #0256B3, ô nhập / ô địa điểm nền #F8FAFC, nút #0095FF; ≥1200px theo Figma 233:12337 (bo 10, control cao 50 bo 14).
   Cỡ / độ đậm chữ lấy từ typography.css (selector html body .cmp-timkiem…). Không phụ thuộc CSS trang. */
.cmp-timkiem,
.cmp-timkiem * {
    box-sizing: border-box;
}

.cmp-timkiem {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 20px;
    background: #0256B3;
    border-radius: 8px;
    text-align: left;
}

/* ----- Ô từ khoá ----- */
.cmp-timkiem__o-nhap {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    min-width: 0;
    height: 48px;
    padding: 0 16px;
    background: #F8FAFC;
    border-radius: 8px;
    transition: box-shadow .16s ease;
}

    .cmp-timkiem__o-nhap:focus-within {
        box-shadow: 0 0 0 3px rgba(46, 144, 250, .3);
    }

.cmp-timkiem__input {
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: #1E293B;
}

    .cmp-timkiem__input::placeholder {
        color: #878787;
    }

/* ----- Ô địa điểm (select gốc trước khi select2 dựng + select2) ----- */
.cmp-timkiem__select {
    flex: 0 0 260px;
    width: 260px;
    height: 48px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: #F8FAFC;
    color: #0256B3;
}

.cmp-timkiem .select2-container {
    flex: 0 0 260px;
    min-width: 260px;
    max-width: 260px;
}

    .cmp-timkiem .select2-container .select2-selection--single {
        display: flex;
        align-items: center;
        height: 48px;
        border: 0;
        border-radius: 8px;
        background: #F8FAFC;
    }

        .cmp-timkiem .select2-container .select2-selection--single .select2-selection__rendered {
            padding-left: 8px;
            line-height: 46px;
            color: #0256B3;
        }

        /* Mũi tên dạng chevron xanh (thay tam giác xám của select2) */
        .cmp-timkiem .select2-container .select2-selection--single .select2-selection__arrow {
            height: 46px;
            right: 10px;
            width: 16px;
        }

            .cmp-timkiem .select2-container .select2-selection--single .select2-selection__arrow b {
                border: 0;
                width: 14px;
                height: 14px;
                margin: -7px 0 0 -7px;
                background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%230256B3' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
                transition: transform .16s ease;
            }

    .cmp-timkiem .select2-container--open .select2-selection--single .select2-selection__arrow b {
        transform: rotate(180deg);
    }

/* ----- Nút Tìm kiếm ----- */
.cmp-timkiem__btn {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 8px;
    background: #0095FF;
    color: #fff;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background .16s ease, transform .16s ease;
}

    .cmp-timkiem__btn:hover {
        background: #25A1FF;
    }

    .cmp-timkiem__btn:active {
        transform: translateY(1px);
    }

    .cmp-timkiem__btn:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px rgba(255, 255, 255, .7);
    }

@media (max-width: 768px) {
    .cmp-timkiem {
        padding: 16px;
        gap: 12px;
    }

    .cmp-timkiem .select2-container {
        flex: 1 1 auto;
        min-width: 0;
        max-width: none;
    }
}

/* Điện thoại: ô từ khoá + nút cùng 1 hàng, bo 12 */
@media (max-width: 767.98px) {
    .cmp-timkiem {
        gap: 10px;
        padding: 16px;
        border-radius: 12px;
    }

    .cmp-timkiem__o-nhap,
    .cmp-timkiem__btn {
        border-radius: 12px;
    }

    .cmp-timkiem__btn {
        padding: 0 14px;
    }

    /* Trang chủ (design mobile): không có ô chọn địa điểm */
    .cmp-timkiem--an-diadiem-mobile .cmp-timkiem__select,
    .cmp-timkiem--an-diadiem-mobile .select2-container {
        display: none;
    }
}

/* Figma 233:12337 – chữ ô địa điểm và nút SemiBold */
html body .cmp-timkiem .select2-container .select2-selection--single .select2-selection__rendered,
html body .cmp-timkiem__btn {
    font-weight: 600;
}

@media (min-width: 1200px) {
    .cmp-timkiem {
        border-radius: 10px;
    }

    .cmp-timkiem__o-nhap,
    .cmp-timkiem__select,
    .cmp-timkiem__btn,
    .cmp-timkiem .select2-container .select2-selection--single {
        height: 50px;
        border-radius: 14px;
    }

    .cmp-timkiem__o-nhap {
        padding: 0 10px;
    }

    .cmp-timkiem__btn {
        padding: 0 10px;
    }

    .cmp-timkiem .select2-container .select2-selection--single .select2-selection__rendered {
        line-height: 48px;
    }

    .cmp-timkiem .select2-container .select2-selection--single .select2-selection__arrow {
        height: 48px;
        width: 17px;
    }

        .cmp-timkiem .select2-container .select2-selection--single .select2-selection__arrow b {
            width: 17px;
            height: 17px;
            margin: -8.5px 0 0 -8.5px;
        }
}
