﻿.home-contact {
    background-image: url(../../../Design/img/Layer40.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    z-index: 1;
    padding-bottom: 32px;
}

    .home-contact:before {
        position: absolute;
        content: "";
        width: 100%;
        height: 100%;
        background-color: #49372bd4;
        top: 0;
        left: 0;
        z-index: 2;
    }

.home-contact-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    padding: 87px 0;
    align-items: center;
    z-index: 3;
}

.form-item-drops .fa-angle-down {
    transition: transform 0.3s ease;
}

/* Khi form-item có class "active", xoay icon 180 độ */
.form-item-drops.active .fa-angle-down {
    transform: rotate(180deg);
}

.contact-h-left {
    width: 51%;
}

    .contact-h-left h2 {
        font-size: 35px;
        margin: 0;
        font-family: 'Montserrat-Bold';
        color: #c19710;
        text-transform: uppercase;
        margin-bottom: 13px;
    }

.contact-h-right {
    width: 47%;
}

    .contact-h-right img {
        width: 107%;
    }

.contact-h-left .erolh {
    top: 4px;
    position: absolute;
    font-size: 10px;
    margin-top: 0;
    width: 100%;
    left: 17px;
}

.contact-h-left span {
    margin-top: 24px;
    font-family: monR;
    font-size: 18px;
    color: #FFF;
}

input[type="text"]:hover {
    border: 1px solid #ffffff; /* viền xanh da trời */
    box-shadow: 0 0 8px #ffffff; /* ánh sáng phát ra */
    transition: all 0.3s ease;
}

.form-item input::placeholder,
.form-item input::-webkit-input-placeholder,
.form-item input::-moz-placeholder,
.form-item input:-ms-input-placeholder {
    color: #FFF;
    opacity: 0.8;
}

.form-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 39px;
}

.form-item {
    height: 53px;
    border-radius: 55px;
    position: relative;
}

    .form-item input {
        width: 100%;
        padding: 16px;
        background: transparent;
        border: 1px solid #ffffff7d;
        border-radius: 20px;
        color: #FFF;
    }

    .form-item i {
        position: absolute;
        color: #ffffff;
        font-size: 14px;
        right: 21px;
        pointer-events: none;
        top: 15px;
    }

    .form-item .drop-items {
        font-size: 14px;
        color: #333;
        padding: 8px 10px;
        line-height: 152%;
        font-family: 'interM';
        user-select: none;
        cursor: pointer;
    }

.txtDVpop {
    pointer-events: none;
    caret-color: transparent;
    background-color: white;
}

.input-wrapper {
    cursor: pointer; /* Cho thấy có thể click */
}

/* Nếu bạn cần cho phép click toàn vùng form-item-drops */
.form-item-drops {
    position: relative;
    cursor: pointer;
}

.form-item-drops {
    cursor: pointer;
}

.form-item .drops::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.form-item .drops {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
    position: absolute;
    top: 100%;
    z-index: 10;
    background-color: #fff;
    border-radius: 10px;
    padding: 2px;
    max-height: 152px;
    box-shadow: 0 0 10px 0 #33333329;
    overflow-x: hidden;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.form-item.active .drops {
    opacity: 1;
    pointer-events: auto;
}

.form-list .form-item:nth-child(3) {
    grid-row-start: 2;
}

.form-list .form-item:nth-child(4) {
    grid-row-start: 2;
}

.form-list .form-item:nth-child(5) {
    grid-row-start: 3;
}

.txtCapCha {
    width: 100%;
    padding: 16px;
    background: transparent;
    border: 1px solid #ffffff7d;
    border-radius: 20px;
    color: #FFF;
}
.tops .imgCapcha{
    width:100%;
    height: 92%;
    margin-top: 2px;
}
.tops{width:100%;
     height:100%}
.input-capcha {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
    gap: 17px;
}

.tops img {
    border-radius: 20px
}

.form-list .form-item:nth-child(6) {
    grid-column: span 2;
    grid-row: span 2;
    grid-row-start: 4;
}

.form-list .form-item:nth-child(7) {
    grid-column: span 2;
}

.form-list .form-item .form-btn {
    margin-top: 4px;
    padding: 10px 12px;
    background: var(--default-color-2);
    width: 27%;
    color: #FFF;
    text-align: center;
    border-radius: 20px;
    font-size: 16px;
    font-family: 'MonM';
}

.form-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #007BFF; /* Màu nền ban đầu */
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

    .form-btn:hover {
        background-color: #FFFF !important; /* Màu nền khi hover */
        transform: translateY(-2px); /* Hiệu ứng nổi lên */
        color: var(--default-color-2) !important;
        box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    }

.form-list .form-item:nth-child(8) {
    grid-row-start: 5;
    /* width: 35%; */
    /* background: var(--default-color-2); */
}

.drop-left-item {
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    color: #333;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    background-color: #fff;
}

    .drop-left-item:hover {
        background-color: #f0f0f0;
        color: var(--default-color-2);
        transform: translateX(5px);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }

.drop-left-item {
    position: relative;
    padding: 10px;
    z-index: 3;
    text-transform: capitalize;
}

.drop-right-wrap {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background: #fff;
    border: 1px solid #ccc;
    z-index: 4;
}

.drop-left-item:hover .drop-right-wrap {
    display: block;
}

.flatpickr-calendar {
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
}

.flatpickr-day.today {
    background-color: #4CAF50;
    color: #fff;
    border-radius: 50%;
}


.flatpickr-day.selected {
    background-color: #ff4081;
    color: #fff;
    border-radius: 50%;
}

.erx {
    z-index: 9;
    height: 86px;
    position: absolute;
    width: 92vw;
    background: #F7F5F2;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
}

.form-item input::placeholder {
    opacity: 1; /* tránh bị ẩn */
    color: #999;
}

@media (max-width: 739px) {
    .contact-h-right {
        display: none
    }

    .contact-h-left {
        width: 100%;
    }

        .contact-h-left h2 {
            font-size: 25px;
            letter-spacing: -1px;
        }

    .tops img {
        width: 100%;
        border-radius: 20px;
    }

    .input-capcha {
        gap: 9px;
    }

    .contact-h-left span {
        font-size: 14px;
    }

    .form-list .form-item .form-btn {
        width: 30%;
        font-size: 12px;
    }

    .form-list .form-item:nth-child(8) {
        width: 100%;
    }

    .erx {
        bottom: -11px;
    }

    .drop-toggle {
        font-size: 14px;
    }

    .home-contact-container {
        padding-top: 23px;
    }

    .txtCapCha {
        width: 100%;
    }
    .form-list{
        margin-top: 23px;
    }
}
