/* ================================
   FORM LIÊN HỆ - Mobile First
   ================================ */

/* Base (mobile default) */
.form-lien-he {
    padding: 20px;
    background-image: url('../../../assets/bg-lien-he.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.form-lien-he .row {
    --bs-gutter-x: 0;
}

.form-lien-he .block-lien-he {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-lien-he .block-lien-he h2 {
    font-weight: 600;
    font-size: 24px;
    line-height: 1.4;
    color: #fff;
    margin-bottom: 10px;
}

.form-lien-he .block-lien-he .form-contact {
    background-color: #fff;
    padding: 32px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-lien-he .block-lien-he .form-contact .row {
    margin: 0;
}

.form-lien-he .block-lien-he .form-contact .info-box h2 {
    text-align: left;
    color: rgba(157, 157, 157, 1);
    font-weight: 700;
    font-size: 16px;
    padding: 0;
}

.form-lien-he .block-lien-he .form-contact .info-box .box .content .label {
    font-size: 16px;
    font-weight: 500;
    display: block;
}

.form-lien-he .block-lien-he .form-contact .info-box .box .content {
    margin: 20px 0;
}

.form-lien-he .block-lien-he .form-contact .info-box .box .content .value {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-color);

    display: inline-block;
    /* hoặc block nếu muốn chiếm hết chiều ngang */
    word-wrap: break-word;
    /* xuống dòng khi quá dài */
    word-break: break-word;
    /* xuống dòng với từ dài */
    white-space: normal;
    /* cho phép xuống dòng tự nhiên */
    max-width: 100%;
    /* giới hạn chiều ngang không vượt container */
}


.form-lien-he .block-lien-he .map-box {
    height: 196px;
}

/* Form elements */
.form-contact form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 0;
}

.form-lien-he .block-lien-he .form-contact h2 {
    color: rgba(16, 32, 49, 1);
    text-align: center;
    padding-top: 32px;
    padding-bottom: 20px;
}

.form-contact .group-field {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}

.form-contact .form-group {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.form-contact label {
    font-weight: 400;
    margin-bottom: 8px;
    font-size: 16px;
    color: #333;
}

.form-contact input,
.form-contact textarea {
    width: 100%;
    padding: 10px 12px;
    outline: none;
    border-radius: 4px;
    border: 1px solid var(--placeholder-content, rgba(216, 216, 217, 1));
    font-size: 15px;
    box-shadow: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-contact input:focus,
.form-contact textarea:focus {
    border-color: #0073aa;
    outline: none;
}

.form-contact input {
    height: 48px;
}

.form-contact textarea {
    resize: vertical;
    height: 160px;
}

/* Button */
.form-contact .btn-contact {
    /* margin-top: 20px; */
    display: flex;
    justify-content: center;
}

.form-contact .btn-contact button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-weight: 400;
    height: 44px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.form-contact button:hover {
    background-color: #005f8d;
    transform: translateY(-2px);
}

/* Messages */
p.success {
    color: #007e33;
    background: #dff0d8;
    border: 1px solid #c3e6cb;
    padding: 10px 12px;
    border-radius: 6px;
    font-weight: 600;
}

p.error {
    color: #cc0000;
    background: #f8d7da;
    border: 1px solid #f5c2c7;
    padding: 10px 12px;
    border-radius: 6px;
    font-weight: 600;
}

/* ================================
   Responsive - Mobile First
   ================================ */

/* Tablet ≥ 768px */
@media (min-width: 768px) {
    .form-lien-he .block-lien-he {
        gap: 40px;
    }

    .form-lien-he .block-lien-he h2 {
        font-size: 28px;
        text-align: left;
    }

    .form-lien-he .block-lien-he .form-contact {
        padding: 32px 30px;
    }
}

/* Desktop ≥ 1024px */
@media (min-width: 1024px) {
    .form-lien-he .block-lien-he {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 60px 0;
        max-width: 1100px;
        margin: 0 auto;
    }

    .form-lien-he .block-lien-he h2 {
        font-size: 32px;
        max-width: 500px;
        margin-bottom: 0;
    }

    .form-lien-he .block-lien-he .form-contact {
        flex: 1;
    }
}

/* Large Desktop ≥ 1400px */
@media (min-width: 1400px) {

    .form-lien-he .block-lien-he {
        max-width: 1276px;
        padding: 68px 0;
        gap: 60px;
    }

    .form-lien-he .block-lien-he h2 {
        max-width: 579px;
        font-size: 34px;
    }

    .form-contact .group-field {
        display: flex;
        flex-direction: row;

    }

}