/* ============================================
   CONTACT PAGE CSS
   ============================================ */

/* Contact Section Grid */
.contact-section {
    max-width: 1200px;
    margin: auto;
}

.contact-section .grid-2-cols {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

/* Contact Details Section */
.contact-details p {
    margin-bottom: 20px;
}


/* Contact Info Cards - Styled like mv-card */
.contact-details .info-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid rgba(46, 50, 147, 0.2);
    transition: var(--transition-normal);
    height: 100%;
}

/* Different border colors for each card */
.contact-details .info-list li:nth-child(1) {
    border-color: #7779c8;
    border-left: 5px solid var(--primary-color-text);
}

.contact-details .info-list li:nth-child(2) {
    border-color: #f09d2e;
    border-left: 5px solid var(--secondary-color);
}

.contact-details .info-list li:nth-child(3) {
    border-color: #a1bf46;
    border-left: 5px solid #a1bf46;
}

.contact-details .info-list li:last-child {
    margin-bottom: 0;
}

.contact-details .info-list li h3 {
    font-size: 18px;
    font-weight: 800;
    text-transform: capitalize;
}

.contact-details .info-list li p {
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.contact-details .info-list li p a {
    text-decoration: none;
    transition: var(--transition-fast);
}

.contact-details .info-list li p a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Icon Box - Styled like mv-icon */
.icon-box-sm {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 5px;
}

/* Different icon colors for each card */
.contact-details .info-list li:nth-child(1) .icon-box-sm {
    background: #e6f0ff;
    color: var(--primary-color-text);
}

.contact-details .info-list li:nth-child(2) .icon-box-sm {
    background: #fff8e1;
    color: var(--secondary-color);
}

.contact-details .info-list li:nth-child(3) .icon-box-sm {
    color: #95b535;
    background: #eef8de;
}

/* Map Section - Full Width Row */
.map-section {
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.map-section iframe {
    border: 0;
    border-radius: 8px;
    display: block;
}

/* Contact Form Wrapper */
.contact-form-wrapper {
    background: url('/web/img/bg-light-caro.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 30px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Contact Form - Flexbox Layout */
.contact-form {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Contact Form Grid Layout */
.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Form Group Flex - For Textarea to Fill Height */
.contact-form .form-group-flex {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.contact-form .form-group-flex textarea {
    flex: 1;
    min-height: 120px;
    resize: none;
}


/*CSs bổ sung*/
.contact-form .form-control {
    border: solid 1px #d4dde6;
}

.contact-form .form-control::placeholder {
    font-size: 15px;
    color: #999;
}

.contact-form .form-group {
    margin-bottom: 12px;
}

.contact-form .btn {
    width: 100%;
}


/*Responsive liên hệ*/
@media (max-width: 575px) {
    .contact-details .info-list li {
        padding: 12px;
    }

    .map-section {
        margin-top: 24px;
    }

    .contact-form-wrapper {
        padding: 20px;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .map-section iframe {
        height: 250px;
    }

    .contact-details .info-list li h3 {
        font-size: 16px;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .contact-details .info-list li {
        padding: 8px;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    .map-section {
        margin-top: 24px;
    }

    .map-section iframe {
        height: 300px;
    }

    .contact-details .info-list li h3 {
        font-size: 16px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {

    .map-section {
        margin-top: 24px;
    }

    .contact-form-wrapper {
        padding: 20px;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .grid-2-cols {
        gap: 24px;
    }

    .map-section iframe {
        height: 300px;
    }

    .contact-details .info-list li {
        padding: 10px;
    }

    .contact-details .info-list li h3 {
        font-size: 17px;
    }
}

/* End repsonsive liên hệ*/



/* ============================================
   END CONTACT PAGE CSS
   ============================================ */