/* ============================================================
   TƯ VẤN NHANH v1.0 – Hân Việt Brand
   Primary #001B4B · Secondary #C8102E · Tertiary #F1F4F9
   Font: Be Vietnam Pro · Inter
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* ── TOKENS ─────────────────────────────────────────────── */
.tvn-wrapper {
    --tvn-primary:       #001B4B;
    --tvn-primary-lite:  #0a2d6e;
    --tvn-primary-pale:  #e8edf5;
    --tvn-secondary:     #C8102E;
    --tvn-secondary-dk:  #a00d24;
    --tvn-secondary-pale:#fdecea;
    --tvn-tertiary:      #F1F4F9;
    --tvn-neutral:       #4A5568;
    --tvn-neutral-lite:  #8899aa;
    --tvn-border:        #d8dde8;
    --tvn-white:         #ffffff;
    --tvn-radius:        12px;
    --tvn-radius-sm:     8px;
    --tvn-shadow:        0 2px 20px rgba(0,27,75,.10);

    display: flex;
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 20px;
    align-items: flex-start;
    box-sizing: border-box;
    font-family: 'Inter', Arial, sans-serif;
}

/* ════════════════════════════════════════════════════════
   LEFT – FORM CARD
════════════════════════════════════════════════════════ */
.tvn-left { flex: 1 1 55%; min-width: 0; }

.tvn-form-card {
    background: var(--tvn-white);
    border: 1px solid var(--tvn-border);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--tvn-shadow);
}

.tvn-form-title {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--tvn-primary);
    margin: 0 0 8px;
}

.tvn-form-sub {
    font-size: 13px;
    color: var(--tvn-neutral);
    margin: 0 0 24px;
    line-height: 1.6;
}

/* ── 2-col row ─────────────────────────────────────────── */
.tvn-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

/* ── FIELD ─────────────────────────────────────────────── */
.tvn-field { margin-bottom: 18px; }

.tvn-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--tvn-primary);
    margin-bottom: 7px;
}

.tvn-req { color: var(--tvn-secondary); margin-left: 2px; }

.tvn-input,
.tvn-textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1.5px solid var(--tvn-border);
    border-radius: var(--tvn-radius-sm);
    padding: 11px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--tvn-primary);
    background: var(--tvn-white);
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    -webkit-appearance: none;
}

.tvn-input::placeholder,
.tvn-textarea::placeholder { color: var(--tvn-neutral-lite); }

.tvn-input:focus,
.tvn-textarea:focus {
    border-color: var(--tvn-primary);
    box-shadow: 0 0 0 3px rgba(0,27,75,.09);
}

.tvn-textarea { resize: vertical; min-height: 110px; line-height: 1.55; }

/* ── SERVICE GRID ──────────────────────────────────────── */
.tvn-service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.tvn-service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 14px 10px;
    background: var(--tvn-white);
    border: 1.5px solid var(--tvn-border);
    border-radius: var(--tvn-radius-sm);
    cursor: pointer;
    text-align: center;
    transition: border-color .2s, background .2s, box-shadow .15s;
    user-select: none;
}

.tvn-service-card:hover {
    border-color: var(--tvn-primary);
    box-shadow: 0 2px 10px rgba(0,27,75,.10);
}

.tvn-service-card.tvn-active {
    border-color: var(--tvn-secondary);
    background: var(--tvn-secondary-pale);
}

.tvn-sc-check {
    position: absolute;
    top: 6px; right: 6px;
    width: 18px; height: 18px;
    background: var(--tvn-secondary);
    color: #fff;
    border-radius: 50%;
    font-size: 9px;
    display: none;
    align-items: center;
    justify-content: center;
}
.tvn-service-card.tvn-active .tvn-sc-check { display: flex; }

.tvn-sc-icon {
    font-size: 20px;
    color: var(--tvn-neutral);
    line-height: 1;
    transition: color .2s;
}
.tvn-service-card.tvn-active .tvn-sc-icon { color: var(--tvn-secondary); }

.tvn-sc-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--tvn-neutral);
    line-height: 1.3;
}
.tvn-service-card.tvn-active .tvn-sc-label { color: var(--tvn-secondary); }

/* ── SUBMIT ────────────────────────────────────────────── */
.tvn-submit-btn {
    display: block;
    width: 100%;
    background: var(--tvn-secondary);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 16px 24px;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .3px;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 18px rgba(200,16,46,.28);
    margin-top: 4px;
}
.tvn-submit-btn i { margin-left: 8px; }

.tvn-submit-btn:hover {
    background: var(--tvn-secondary-dk);
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(200,16,46,.36);
}
.tvn-submit-btn:active { transform: translateY(0); }
.tvn-submit-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.tvn-privacy {
    text-align: center;
    font-size: 11px;
    color: var(--tvn-neutral-lite);
    margin: 12px 0 0;
}
.tvn-privacy i { margin-right: 4px; color: var(--tvn-primary); opacity:.5; }

/* ── SUCCESS / ERROR ───────────────────────────────────── */
.tvn-success-msg {
    text-align: center;
    padding: 32px 10px;
}
.tvn-success-icon {
    font-size: 56px;
    color: #16a34a;
    margin-bottom: 14px;
}
.tvn-success-msg h3 {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #16a34a;
    margin: 0 0 8px;
}
.tvn-success-msg p {
    font-size: 14px;
    color: var(--tvn-neutral);
    margin: 0;
    line-height: 1.6;
}

.tvn-error-msg {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--tvn-secondary-pale);
    border: 1px solid rgba(200,16,46,.25);
    border-radius: var(--tvn-radius-sm);
    padding: 10px 14px;
    font-size: 12px;
    color: var(--tvn-secondary-dk);
    margin-top: 12px;
}
.tvn-error-msg i { flex-shrink: 0; }

/* ════════════════════════════════════════════════════════
   RIGHT – CONTACT + MAP
════════════════════════════════════════════════════════ */
.tvn-right {
    flex: 0 0 340px;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── CONTACT CARD ──────────────────────────────────────── */
.tvn-contact-card {
    background: var(--tvn-white);
    border: 1px solid var(--tvn-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--tvn-shadow);
}

.tvn-contact-title {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: var(--tvn-primary);
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tvn-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    background: var(--tvn-secondary);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    flex-shrink: 0;
}

.tvn-contact-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--tvn-tertiary);
    align-items: flex-start;
}
.tvn-contact-item:last-child { border-bottom: none; padding-bottom: 0; }

.tvn-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border-radius: 8px;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}

.tvn-icon-loc   { background: var(--tvn-primary-pale); color: var(--tvn-primary); }
.tvn-icon-phone { background: rgba(200,16,46,.10);     color: var(--tvn-secondary); }
.tvn-icon-email { background: var(--tvn-primary-pale); color: var(--tvn-primary); }
.tvn-icon-clock { background: rgba(200,16,46,.10);     color: var(--tvn-secondary); }

.tvn-contact-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--tvn-primary);
    margin: 0 0 3px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.tvn-contact-val {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--tvn-neutral);
    margin: 0;
    line-height: 1.55;
}

.tvn-hotline-num {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--tvn-secondary);
    text-decoration: none;
    display: block;
    margin-top: 1px;
    letter-spacing: .5px;
}
.tvn-hotline-num:hover { color: var(--tvn-secondary-dk); }

.tvn-contact-link {
    font-size: 13px;
    color: var(--tvn-neutral);
    text-decoration: none;
}
.tvn-contact-link:hover { color: var(--tvn-primary); text-decoration: underline; }

/* ── MAP CARD ──────────────────────────────────────────── */
.tvn-map-card {
    background: var(--tvn-white);
    border: 1px solid var(--tvn-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--tvn-shadow);
}

.tvn-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--tvn-border);
}

.tvn-map-title {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--tvn-primary);
}
.tvn-map-title i { margin-right: 6px; color: var(--tvn-secondary); }

.tvn-map-open {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--tvn-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    opacity: .75;
    transition: opacity .2s;
}
.tvn-map-open:hover { opacity: 1; }
.tvn-map-open i { font-size: 10px; }

.tvn-map-body {
    height: 220px;
    position: relative;
    background: var(--tvn-tertiary);
}
.tvn-map-body iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.tvn-map-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    color: var(--tvn-neutral-lite);
}
.tvn-map-placeholder i { font-size: 36px; margin-bottom: 10px; color: var(--tvn-border); }
.tvn-map-placeholder p  { font-size: 12px; line-height: 1.6; margin: 0; }
.tvn-map-placeholder a  { color: var(--tvn-primary); }

/* ════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .tvn-wrapper {
        flex-direction: column;
        padding: 32px 16px;
    }
    .tvn-right {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .tvn-row-2 { grid-template-columns: 1fr; }
    .tvn-service-grid { grid-template-columns: repeat(2, 1fr); }
    .tvn-form-card { padding: 20px 16px; }
    .tvn-form-title { font-size: 18px; }
    .tvn-submit-btn { font-size: 14px; padding: 14px 20px; }
}

@media (max-width: 380px) {
    .tvn-service-grid { grid-template-columns: 1fr 1fr; }
}
