/* ==========================================================================
   AWE 2026 — trang liên hệ. Nạp sau awe.css, dùng chung tokens.

   Phần lớn file là tạo hình cho markup của Contact Form 7: CF7 tự sinh
   .wpcf7-form-control-wrap quanh mỗi ô, nên nhãn và ô nhập không phải anh em
   trực tiếp và không xếp bằng gap được — mỗi .awe-form__field tự lo khoảng cách.
   ========================================================================== */

.awe-contact {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr);
    gap: 48px;
    align-items: start;
}

.awe-contact__main .awe-secsub { max-width: 56ch; margin-bottom: 26px; }

/* --------------------------------------------------------- cột phải */
.awe-quick {
    background: var(--awe-tint);
    border-radius: var(--awe-radius);
    padding: 20px;
    display: grid;
    gap: 10px;
}
.awe-quick__note {
    font-size: 13px;
    line-height: 1.5;
    color: var(--awe-muted);
    margin: 4px 0 0;
}

.awe-info {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: grid;
    gap: 20px;
}
.awe-info__item { display: flex; gap: 14px; align-items: flex-start; }
.awe-info__icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--awe-line);
    border-radius: var(--awe-radius);
    color: var(--awe-primary);
}
.awe-info__body { min-width: 0; }
.awe-info__title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--awe-ink);
}
.awe-info__line { font-size: 14.5px; line-height: 1.55; margin: 0; color: var(--awe-muted); }
.awe-info__line a { color: var(--awe-primary); text-decoration: none; }
.awe-info__line a:hover { text-decoration: underline; }

/* ------------------------------------------------------------- form */
.awe-form__down { font-size: 15px; color: var(--awe-muted); }
.awe-form__down a { color: var(--awe-primary); }

.awe-form .wpcf7 { margin: 0; }
.awe-form .wpcf7-form { margin: 0; }

.awe-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.awe-form__field { margin: 0 0 18px; }
.awe-form__grid .awe-form__field { margin: 0; }
/* Lưới ở trên dùng gap, ô "Câu hỏi của bạn" ở ngoài lưới nên phải tự chừa
   khoảng cách — không có dòng này thì nó dính vào hàng cuối của lưới. */
.awe-form__grid + .awe-form__field { margin-top: 18px; }

.awe-form__field label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--awe-ink);
    margin-bottom: 6px;
}
.awe-form__req { color: var(--awe-red); font-weight: 700; }
.awe-form__hint { font-size: 12.5px; color: var(--awe-muted-2); margin: 6px 0 0; }

/* CF7 bọc mỗi ô trong một <span> — ép nó thành khối để input rộng đủ hàng. */
.awe-form .wpcf7-form-control-wrap { display: block; }

.awe-form input[type="text"],
.awe-form input[type="email"],
.awe-form input[type="tel"],
.awe-form textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    color: var(--awe-ink);
    background: var(--awe-surface);
    border: 1px solid var(--awe-line);
    border-radius: var(--awe-radius);
    padding: 11px 13px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.awe-form textarea { resize: vertical; min-height: 150px; }

.awe-form input::placeholder,
.awe-form textarea::placeholder { color: var(--awe-muted-2); }

.awe-form input[type="text"]:focus,
.awe-form input[type="email"]:focus,
.awe-form input[type="tel"]:focus,
.awe-form textarea:focus {
    outline: none;
    border-color: var(--awe-primary);
    box-shadow: 0 0 0 3px rgba(0, 128, 128, .14);
}

/* Phải nêu cả tên thẻ: `.awe-form input[type="text"]` ở trên có trọng số
   0,2,1, hơn hẳn `.awe-form .wpcf7-not-valid` (0,2,0) nên viền đỏ không ăn. */
.awe-form input.wpcf7-not-valid,
.awe-form textarea.wpcf7-not-valid { border-color: var(--awe-red); }
.awe-form .wpcf7-not-valid-tip {
    display: block;
    font-size: 12.5px;
    color: var(--awe-red);
    margin-top: 6px;
}

/* Nút gửi: cùng hình với .awe-btn--primary, nhưng là <input> nên phải khai lại. */
.awe-form__submit { margin: 22px 0 0; display: flex; align-items: center; gap: 12px; }
.awe-form input[type="submit"] {
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: var(--awe-primary);
    border: 1px solid transparent;
    border-radius: 3px;
    padding: 13px 30px;
    cursor: pointer;
    transition: background-color .15s ease;
}
.awe-form input[type="submit"]:hover { background: var(--awe-primary-dark); }
.awe-form input[type="submit"]:disabled { opacity: .6; cursor: default; }

/* Hộp báo kết quả của CF7: mặc định viền 2px xanh/vàng/đỏ lệch hẳn hệ màu.
   Selector phải kèm `.wpcf7 form` cho đủ trọng số — styles.css của CF7 dùng
   `.wpcf7 form .wpcf7-response-output` (0,2,1), hơn `.awe-form .wpcf7-…` (0,2,0). */
.awe-form .wpcf7 form .wpcf7-response-output {
    margin: 20px 0 0;
    padding: 12px 15px;
    font-size: 14px;
    line-height: 1.55;
    border: 1px solid var(--awe-line);
    border-left-width: 3px;
    border-radius: var(--awe-radius);
    background: var(--awe-surface);
}
.awe-form .wpcf7 form.sent .wpcf7-response-output { border-left-color: var(--awe-primary); }
.awe-form .wpcf7 form.invalid .wpcf7-response-output,
.awe-form .wpcf7 form.unaccepted .wpcf7-response-output,
.awe-form .wpcf7 form.failed .wpcf7-response-output,
.awe-form .wpcf7 form.spam .wpcf7-response-output { border-left-color: var(--awe-red); }

.awe-form .wpcf7-spinner { margin: 0; }

/* CF7 in một khối chỉ dành cho trình đọc màn hình; Eduma vốn giấu nó, mà ở
   trang này CSS của Eduma bị bỏ nên phải tự giấu, không thì lộ ra đầu form. */
.awe-form .screen-reader-response {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* -------------------------------------------------------- nút nổi */
/* Trang này đã có nút "Gọi" và "Nhắn Zalo" cỡ lớn ngay cột phải, nên cụm nút
   nổi ở footer vừa thừa vừa che mất ô "Câu hỏi của bạn" (nó neo góc trái dưới,
   đúng chỗ form đứng). Widget của plugin ot-zalo cũng không còn —
   awe_drop_zalo_widget() gỡ nó khỏi mọi trang dùng footer-awe.php. */
.awe-float { display: none; }

/* -------------------------------------------------------- bản đồ */
.awe-map { border-top: 1px solid var(--awe-line-soft); }
.awe-map__frame {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
}

@media (max-width: 980px) {
    .awe-contact { grid-template-columns: 1fr; gap: 34px; }
    .awe-contact__aside { order: -1; }
}

@media (max-width: 640px) {
    .awe-form__grid { grid-template-columns: 1fr; }
    .awe-map__frame { height: 300px; }
}
