/*
  ================================================================
  CSS TRANG LIÊN HỆ — vieclam4u.com
  Đồng bộ với design system trang chủ (accent #e84545, font Be Vietnam Pro + Instrument Serif)
  Khớp chính xác với HTML gốc: .contact-grid, .contact-form, .contact-info,
  .form-field, .form-buttons, .btnSend, .btnReset, .info-item, .map-box

  Thêm vào <head> của lien-he.html:
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link href="https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700;800&family=Instrument+Serif:ital@0;1&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="lien-he.css">
  ================================================================
*/

/* ── DESIGN TOKENS (đồng bộ với trang chủ) ── */
:root {
    --c-ink:         #0f1724;
    --c-ink-soft:    #374151;
    --c-ink-muted:   #6b7280;
    --c-paper:       #fafaf8;
    --c-white:       #ffffff;
    --c-accent:      #e84545;
    --c-accent-dark: #c0392b;
    --c-accent-soft: #fff1f1;
    --c-teal:        #0d9488;
    --c-teal-soft:   #f0fdfa;
    --c-border:      #e5e7eb;
    --c-border-soft: #f3f4f6;
    --font-body:     'Be Vietnam Pro', sans-serif;
    --font-serif:    'Instrument Serif', serif;
    --radius-sm:     8px;
    --radius-md:     14px;
    --radius-lg:     22px;
    --shadow-sm:     0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md:     0 4px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
}
.section{
    padding: 25px 24px;
}
/* ── WRAPPER PAGE LIÊN HỆ ── */
/* Tạo hero banner đầu trang (đặt trước .contact-grid) */
.contact-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0 50px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    align-items: start;
}

/* ── FORM SECTION (.contact-form) ── */
.contact-form {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: 36px 40px;
    box-shadow: var(--shadow-md);
    animation: fadeUp .45s ease both;
}

/* H1 tiêu đề trong form */
.contact-form h2 {
    font-family: var(--font-serif);
    font-size: 28px;
    font-style: italic;
    font-weight: 400;
    color: var(--c-ink);
    letter-spacing: -.5px;
    margin-bottom: 6px;
    line-height: 1.2;
}

/* Dòng mô tả dưới tiêu đề */
.contact-form > p {
    font-size: 14px;
    color: var(--c-ink-muted);
    margin-bottom: 28px;
    line-height: 1.6;
}

/* ── FORM FIELDS (.form-field) ── */
.form-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.form-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--c-ink-soft);
    margin-bottom: 6px;
}

/* Dấu * bắt buộc */
.form-field label .required,
.required {
    color: var(--c-accent);
    margin-left: 2px;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--c-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--c-ink);
    background: var(--c-white);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    line-height: 1.5;
}

.form-field input[type="text"]:focus,
.form-field input[type="email"]:focus,
.form-field input[type="tel"]:focus,
.form-field textarea:focus {
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px rgba(232,69,69,.1);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #adb5bd;
    font-size: 13px;
}

.form-field textarea {
    min-height: 130px;
    resize: vertical;
}

/* ── NÚT (.form-buttons, .btnSend, .btnReset) ── */
.form-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.btnSend {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--c-accent);
    color: #fff;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background .18s, transform .15s, box-shadow .18s;
}

.btnSend:hover {
    background: var(--c-accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(232,69,69,.3);
}

.btnSend:active { transform: translateY(0); }

.btnReset {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    background: transparent;
    color: var(--c-ink-muted);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all .18s;
}

.btnReset:hover {
    background: var(--c-border-soft);
    border-color: #d1d5db;
    color: var(--c-ink-soft);
}

/* ── SIDEBAR THÔNG TIN (.contact-info) ── */
.contact-info {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: 28px 30px;
    box-shadow: var(--shadow-sm);
    animation: fadeUp .45s .12s ease both;
}

/* H2 tiêu đề sidebar */
.contact-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--c-ink);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--c-border-soft);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Thanh accent bên trái h2 */
.contact-info h3::before {
    content: '';
    width: 3px;
    height: 16px;
    background: var(--c-accent);
    border-radius: 2px;
    flex-shrink: 0;
}

/* Từng dòng thông tin (.info-item) */
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--c-ink-soft);
    margin-bottom: 16px;
    line-height: 1.6;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--c-border-soft);
    border: 1px solid var(--c-border);
    transition: background .15s;
}

.info-item:hover {
    background: var(--c-accent-soft);
    border-color: #fecaca;
}

/* Phone & email styling */
.info-item .phone_contact_space {
    font-weight: 700;
    color: var(--c-ink);
    letter-spacing: .02em;
}

.info-item a {
    color: var(--c-teal);
    font-weight: 600;
    transition: color .15s;
}

.info-item a:hover {
    color: #0b7a6e;
    text-decoration: underline;
}

/* Map iframe wrapper (.map-box) */
.map-box {
    margin-top: 20px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--c-border);
    line-height: 0;
}

.map-box iframe {
    width: 100%;
    height: 260px;
    border: none;
    display: block;
}

/* ── ANIMATION ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
    .contact-grid {
        grid-template-columns: 1fr;
        padding: 32px 20px 60px;
    }
}

@media (max-width: 640px) {
    .contact-form {
        padding: 24px 20px;
    }
    .contact-form h1 {
        font-size: 22px;
    }
    .form-buttons {
        flex-direction: column;
    }
    .btnSend,
    .btnReset {
        width: 100%;
        justify-content: center;
    }
    .contact-info {
        padding: 22px 18px;
    }
}