﻿* {
    box-sizing: border-box;
}

.input-top {
    align-items: center;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.drop .drop-item {
    height: 30px;
    display: flex;
    align-items: center;
    padding-left: 0.75rem;
}

    .drop .drop-item:hover {
        background: #8c888878;
    }

.home-contact {
    background: url(../../../Design/img/contactt-background.jpg) no-repeat center center;
    background-size: cover; /* Hoặc contain */
    /* Chiều cao bạn muốn */
    width: 100%; /* Chiều rộng full khung cha, hoặc cụ thể: 1200px, v.v */
    padding: 2rem 0;
}


    .home-contact .grid.wide {
    }

    .home-contact .contact-detail {
        display: flex;
        justify-content: space-between;
        padding: 2rem 0;
        gap: 2rem;
    }

    .home-contact .detail-right {
        width: 100%;
    }

.detail-right h3 {
    font-size: 2rem;
    font-weight: 600;
    font-family: interM;
    color: #4e4b4be0;
    margin-bottom: 1.5rem;
}

.contact-address section p {
    font-size: 17px;
    margin: 0.5rem 0;
    line-height: 200%;
    position: relative;
    padding-left: 2.5rem;
    color: #1d1d1de0;
    text-align: left;
}

    .contact-address section p::before {
        content: "\f007";
        position: absolute;
        font-family: FontAwesome;
        color: #373636;
        left: 0;
        font-size: 0.875rem;
        background-color: rgba(59, 130, 246, 0.3);
        width: 1.75rem;
        height: 1.75rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 7px;
    }

    .contact-address section p:nth-child(1)::before {
        content: "\f015";
    }

    .contact-address section p:nth-child(2)::before {
        content: "\f095";
    }

    .contact-address section p:nth-child(3)::before {
        content: "\f0e0";
    }

.contact-detail .form {
    width: 100%;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    z-index: 2;
    transition: all 0.3s linear;
}

.contact-detail .item .lefts .form-group {
    padding: 2rem;
    --tw-bg-opacity: 1;
    background-color: rgb(250 250 250 / var(--tw-bg-opacity));
}

.form-group .heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.form-group .left {
    display: flex;
    flex-direction: column;
}

.form-group .sc {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 13px 0;
}

.form-group .left .input {
    position: relative;
    width: 100%;
}

.form-item-drop.active .drop {
    opacity: 1;
    pointer-events: all;
    position: absolute;
    top: 50px;
    background: #fffffffa;
}

.form-item-drop i {
    position: absolute;
    color: #33333394;
    font-size: 15px;
    right: 15px;
    pointer-events: none;
}

.form-item-drop input {
    pointer-events: none;
}

.form-item-drop {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

    .form-item-drop .drop {
        position: absolute;
        z-index: 2;
        background-color: #fff;
        top: 100%;
        border-radius: 10px;
        padding: 2px;
        width: 100%;
        overflow: hidden;
        max-height: 240px;
        box-shadow: 0 0 10px 0 #33333329;
        overflow-x: hidden;
        overflow-y: overlay;
        pointer-events: all;
        opacity: 0;
        pointer-events: none;
    }

    .form-item-drop input {
        height: 100%;
        border: none;
        outline: none;
        background-color: transparent;
        color: #333;
        line-height: 150%;
        font-size: 15px;
        padding: 0 24px;
    }

.form-group .left input::placeholder {
    color: #c1bcbc
}

.form-group .left input {
    width: 100%;
    padding: 0.75rem;
    border-radius: 7px;
    border: 1px solid rgba(229, 229, 229, 0.5);
    background-color: #ffffff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

    .form-group .left input:focus {
        border-color: #3b82f6;
    }

.form-group .left .erolh {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.form-group .left .input-capcha .tops {
}

.form-group .left .input-capcha .imgCapcha {
    height: 2.5rem;
    border-radius: 5px;
}

.form-group .left .input-capcha .txtCapCha {
    width: 100%;
    padding: 0.75rem;
    border-radius: 7px;
    border: 1px solid rgba(229, 229, 229, 0.5);
    font-size: 1rem;
    outline: none;
}

.form-group .right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

    .form-group .right .area textarea::placeholder {
        font-family: interR;
        color: #c1bcbc;
    }

    .form-group .right .area textarea {
        width: 100%;
        padding: 0.75rem;
        border-radius: 7px;
        border: 1px solid rgba(229, 229, 229, 0.5);
        background-color: #ffffff;
        font-size: 1rem;
        outline: none;
        transition: border-color 0.3s ease;
    }

        .form-group .right .area textarea:focus {
            border-color: #3b82f6;
        }

    .form-group .right .btn-sumid-contact {
        border: none;
        border-radius: 0.5rem;
        padding: 0.75rem 1.5rem;
        color: #ffffff;
        font-size: 1rem;
        cursor: pointer;
        transition: background 0.3s ease;
        align-self: flex-start;
        background: #45A987;
    }

.flex-center1 {
    display: flex;
    justify-content: center;
    max-width: 1214px;
    width: 100%;
}

/* Responsive Design */

/* Tablet (≤1023px) */
@media (max-width: 1023px) {
    .input-top {
        gap: 19px;
    }

    .home-contact {
    }

        .home-contact .grid.wide {
            /* padding: 0 1.5rem; */
        }

    .contact-detail .form {
        margin-left: 0 !important;
    }

    .home-contact .contact-detail {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 1.5rem 0;
    }

    .home-contact .detail-right {
        width: 100%;
        text-align: center;
    }

    .detail-right h3 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .contact-address section p {
        font-size: 0.95rem;
        padding-left: 2rem;
        margin: 0.4rem 0;
    }

        .contact-address section p::before {
            width: 1.5rem;
            height: 1.5rem;
            font-size: 0.8rem;
        }

    .contact-detail .form {
        width: 100%;
        border-radius: 15px;
    }

    .contact-detail .item .lefts .form-group {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }

    .form-group .heading {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .form-group .left input,
    .form-group .left .txtCapCha {
        padding: 0.6rem;
        font-size: 0.95rem;
    }

    .form-group .right .area textarea {
        padding: 0.6rem;
        font-size: 0.95rem;
        height: 120px;
    }

    .form-group .right .btn-sumid-contact {
        padding: 0.6rem 1.25rem;
        font-size: 0.95rem;
    }

    .form-group .left .input-capcha .imgCapcha {
        height: 2rem;
    }
}

/* Mobile (≤480px) */
@media (max-width: 480px) {
    .home-contact {
        padding: 1rem 0;
    }


        .home-contact .grid.wide {
            /* padding: 0 1rem; */
        }

    .contact-detail .form {
        margin-left: 0 !important;
    }

    .home-contact .contact-detail {
        /* padding: 0 15px; */
        gap: 1rem;
    }

    .detail-right h3 {
        font-size: 1.5rem;
    }

    .contact-address section p {
        font-size: 0.9rem;
        padding-left: 1.8rem;
        line-height: 180%;
        margin: 0.3rem 0;
    }

        .contact-address section p::before {
            width: 1.3rem;
            height: 1.3rem;
            font-size: 0.75rem;
        }

    .contact-detail .item .lefts .form-group {
        padding: 1rem;
    }

    .form-group .heading {
        font-size: 1.2rem;
    }

    .form-group .left input,
    .form-group .left .txtCapCha {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .form-group .right .area textarea {
        padding: 0.5rem;
        font-size: 0.9rem;
        height: 100px;
    }

    .form-group .right .btn-sumid-contact {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .form-group .left .input-capcha .imgCapcha {
        height: 1.8rem;
    }

    .input-top {
        gap: 20px;
    }
}
