/*
 * Trang Liên hệ.
 * Chỉ nạp trên trang có khối .vgh-contact nên không ảnh hưởng phần còn lại.
 */

/* Template trang đơn của theme giới hạn nội dung ở 900px cho dễ đọc văn bản.
   Hợp lý với bài viết, nhưng chật cho bố cục hai cột + bản đồ. Nới đúng trang
   nào có khối .vgh-contact, các trang còn lại giữ nguyên. */
.vs-page__wrap:has(.vgh-contact),
.dragon-container:has(> .entry-content > .vgh-contact) {
    max-width: var(--dragon-container, 1440px);
}

.vgh-contact {
    --c-brown: var(--dragon-primary, #4a2c17);
    --c-brown-dark: var(--dragon-primary-dark, #35200f);
    --c-gold: var(--dragon-accent, #d99a1c);
    --c-gold-text: var(--dragon-gold-text, #96610c);
    --c-muted: var(--dragon-muted, #6b645c);
    --c-cream: var(--dragon-bg-light, #faf7f2);
    --c-line: rgba(74, 44, 23, .14);

    padding: 8px 0 64px;
}

/* Hai cột: thông tin bên trái, biểu mẫu bên phải. */
.vgh-contact__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 36px;
    align-items: start;
}

@media (max-width: 899px) {
    .vgh-contact__grid { grid-template-columns: 1fr; gap: 28px; }
    .vgh-contact { padding-bottom: 44px; }
}

/* ------------------------------------------------------------- Cột thông tin */
.vgh-contact__info {
    background: linear-gradient(160deg, var(--c-brown) 0%, var(--c-brown-dark) 100%);
    color: #fff;
    border-radius: 6px;
    padding: 40px 36px;
}

.vgh-contact__info h2 {
    color: #fff !important;
    font-size: clamp(20px, 1.8vw, 25px);
    font-weight: 600;
    letter-spacing: .03em;
    margin: 0 0 12px;
}

.vgh-contact__lead {
    color: rgba(255, 255, 255, .78);
    font-size: 15px;
    line-height: 1.8;
    margin: 0 0 28px;
}

.vgh-contact__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 20px;
}

.vgh-contact__list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin: 0;
}

.vgh-contact__ico {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(217, 154, 28, .16);
    border: 1px solid rgba(217, 154, 28, .4);
}

.vgh-contact__ico svg {
    width: 19px;
    height: 19px;
    stroke: var(--c-gold);
}

.vgh-contact__txt {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    padding-top: 2px;
}

.vgh-contact__txt strong {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--c-gold);
}

.vgh-contact__txt,
.vgh-contact__txt a {
    color: #fff;
    font-size: 15.5px;
    line-height: 1.6;
    word-break: break-word;
}

.vgh-contact__txt a { text-decoration: none; }
.vgh-contact__txt a:hover { color: var(--c-gold); }

/* ------------------------------------------------------------ Cột biểu mẫu */
.vgh-contact__form {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: 6px;
    padding: 40px 36px;
    box-shadow: 0 14px 40px rgba(53, 32, 15, .07);
}

.vgh-contact__form h2 {
    font-size: clamp(19px, 1.7vw, 23px);
    font-weight: 600;
    color: var(--c-brown);
    letter-spacing: .03em;
    margin: 0 0 8px;
}

.vgh-contact__note {
    color: var(--c-muted);
    font-size: 14.5px;
    line-height: 1.75;
    margin: 0 0 24px;
}

/* Contact Form 7 mặc định không có kiểu dáng — tự dựng. */
.vgh-contact__form .wpcf7-form p { margin: 0 0 16px; }

.vgh-contact__form input[type="text"],
.vgh-contact__form input[type="tel"],
.vgh-contact__form input[type="email"],
.vgh-contact__form textarea {
    width: 100%;
    padding: 13px 15px;
    font-family: inherit;
    font-size: 15px;
    color: #221c16;
    background: var(--c-cream);
    border: 1px solid var(--c-line);
    border-radius: 4px;
    transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
    box-sizing: border-box;
}

.vgh-contact__form input::placeholder,
.vgh-contact__form textarea::placeholder { color: #a29a90; }

.vgh-contact__form input:focus,
.vgh-contact__form textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--c-gold);
    box-shadow: 0 0 0 3px rgba(217, 154, 28, .16);
}

.vgh-contact__form textarea { min-height: 130px; resize: vertical; }

/* Ô đồng ý nhận tư vấn */
.vgh-contact__form .wpcf7-acceptance .wpcf7-list-item { margin: 0; }

.vgh-contact__form .wpcf7-acceptance label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.6;
    color: var(--c-muted);
    cursor: pointer;
}

.vgh-contact__form input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
    accent-color: var(--c-gold);
    flex: 0 0 auto;
}

.vgh-contact__form input[type="submit"] {
    width: 100%;
    padding: 15px 24px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #fff;
    background: var(--c-brown);
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    transition: background .3s ease, transform .3s ease;
}

.vgh-contact__form input[type="submit"]:hover {
    background: var(--c-gold-text);
    transform: translateY(-1px);
}

/* Thông báo của Contact Form 7 */
.vgh-contact__form .wpcf7-not-valid-tip {
    color: #b3261e;
    font-size: 13px;
    margin-top: 6px;
}

.vgh-contact__form .wpcf7-response-output {
    margin: 18px 0 0 !important;
    padding: 13px 16px !important;
    border-radius: 4px;
    border-width: 1px !important;
    font-size: 14.5px;
}

.vgh-contact__form .wpcf7-spinner { margin: 10px auto 0; display: block; }

/* ------------------------------------------------------------------ Bản đồ */
.vgh-contact__map {
    margin-top: 36px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--c-line);
    line-height: 0;
}

.vgh-contact__map iframe {
    width: 100%;
    height: 420px;
    border: 0;
    display: block;
}

@media (max-width: 899px) {
    .vgh-contact__info,
    .vgh-contact__form { padding: 30px 24px; }
    .vgh-contact__map iframe { height: 300px; }
    .vgh-contact__map { margin-top: 28px; }
}
