/**
 * Cedony Theme - Contact LadiPage CSS
 * Trang: page-lien-he.php (Template Name: Liên hệ - LadiPage)
 */

/* ===== Hero: Ảnh mặt tiền phòng khám ===== */
.contact-hero {
    width: 100%;
}
/* Chiều cao lấy từ biến --banner-height (style.css) để bằng đúng banner trang chủ */
.contact-hero__img {
    width: 100%;
    height: var(--banner-height);
    object-fit: cover;
    display: block;
}
.contact-hero__placeholder {
    width: 100%;
    height: var(--banner-height);
    min-height: 160px;
    background: #eaf3fb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #8aa9c2;
    font-size: 15px;
}

/* ===== Khu vực bản đồ + thông tin liên hệ ===== */
.contact-body {
    background: #f9fbff;
    padding-bottom: 60px;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 30px;
    align-items: stretch;
}

/* Bản đồ */
.contact-map {
    min-height: 480px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: #eee;
}
.contact-map iframe {
    display: block;
    min-height: 480px;
}
.contact-map__placeholder {
    width: 100%;
    height: 100%;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #8aa9c2;
    font-size: 15px;
}
.contact-map__placeholder .cedony-icon svg {
    width: 40px;
    height: 40px;
}

/* Cột phải: thông tin liên hệ + form */
.contact-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.contact-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 24px;
}
.contact-card__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 12px;
}
.contact-card__desc {
    color: var(--color-text);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Card: Liên hệ (địa chỉ, hotline) */
.contact-info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}
.contact-info-row:last-child {
    margin-bottom: 0;
}
.contact-info-row__icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 110, 178, 0.08);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-info-row__icon svg {
    width: 16px;
    height: 16px;
}
.contact-info-row__content strong {
    display: block;
    font-size: 11px;
    color: #8a8a8a;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.contact-info-row__content p {
    margin: 0;
    font-weight: 400;
    font-size: 14px;
    color: var(--color-navy);
    line-height: 1.45;
}
.contact-info-row__content a {
    color: var(--color-navy);
    text-decoration: none;
}
.contact-info-row__content a:hover {
    color: var(--color-primary);
}

/* Card: Yêu cầu tư vấn (form) */
.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.contact-form__group {
    margin-bottom: 14px;
}
.contact-form__group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 5px;
}
.contact-form .form-control {
    padding: 11px 14px;
    font-size: 14px;
}
.contact-form textarea.form-control {
    resize: vertical;
    min-height: auto;
}
.contact-form textarea.form-control[rows] {
    height: auto;
}
.contact-form__submit {
    width: 100%;
    border: none;
    cursor: pointer;
}
.contact-form__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.form-result {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
}
.form-result.is-success {
    background: rgba(92, 179, 46, 0.12);
    color: #2f6b17;
}
.form-result.is-error {
    background: rgba(220, 53, 69, 0.1);
    color: #b02a37;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-map,
    .contact-map iframe,
    .contact-map__placeholder {
        min-height: 320px;
    }
}
@media (max-width: 576px) {
    /* Không ép chiều cao riêng ở đây nữa - để biến --banner-height quyết định */
    .contact-form__row {
        grid-template-columns: 1fr;
    }
    .contact-card {
        padding: 20px;
    }
}