/* VietHome Platform — public styles */
:root {
	--vh-bg: #FAF8F4;
	--vh-ink: #1E1C18;
	--vh-primary: #7C4A2D;
	--vh-primary-hover: #A9713F;
	--vh-gold: #C9A227;
	--vh-border: #E7E0D5;
	--vh-muted: #57534E;
}

/* Forms */
.vh-form { background: #fff; border: 1px solid var(--vh-border); border-radius: 12px; padding: 24px; max-width: 560px; }
.vh-form-title { font-size: 1.25rem; font-weight: 700; color: var(--vh-ink); margin: 0 0 12px; }
.vh-form input, .vh-form select, .vh-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--vh-border); border-radius: 8px; font-size: 1rem; box-sizing: border-box; }
.vh-form-row { display: flex; gap: 8px; }
.vh-form-row > * { flex: 1; }
.vh-btn { background: var(--vh-primary); color: #fff; border: none; border-radius: 8px; padding: 12px 20px; font-size: 1rem; cursor: pointer; width: 100%; }
.vh-btn:hover { background: var(--vh-primary-hover); }
.vh-form-msg { min-height: 1.5em; font-size: .95rem; }
.vh-form-msg.vh-ok { color: #15803D; }
.vh-form-msg.vh-error { color: #DC2626; }

/* Projects grid */
.vh-projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.vh-project-card { background: #fff; border: 1px solid var(--vh-border); border-radius: 12px; overflow: hidden; }
.vh-project-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.vh-project-card h3 { font-size: 1.05rem; margin: 12px 16px 4px; }
.vh-project-card h3 a, .vh-project-card a { color: var(--vh-ink); text-decoration: none; }
.vh-project-loc { color: var(--vh-muted); font-size: .9rem; margin: 0 16px 16px; }

/* Branches */
.vh-branches h3 { color: var(--vh-primary); margin-top: 1.5em; }
.vh-branches ul { list-style: none; padding: 0; }
.vh-branches li { background: #fff; border: 1px solid var(--vh-border); border-radius: 8px; padding: 10px 14px; margin-bottom: 8px; }

/* Floating contact buttons */
.vh-contact-buttons { position: fixed; left: 16px; bottom: 96px; display: flex; flex-direction: column; gap: 8px; z-index: 9998; }
.vh-contact-btn { display: flex; align-items: center; gap: 8px; background: var(--vh-primary); color: #fff; border-radius: 999px; padding: 8px 14px 8px 8px; text-decoration: none; font-size: .9rem; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.vh-contact-btn:hover { background: var(--vh-primary-hover); color: #fff; }
.vh-contact-icon { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.2); display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; }

/* Chat widget */
.vh-chat { position: fixed; right: 16px; bottom: 16px; z-index: 9999; font-family: inherit; }
.vh-chat-toggle { width: 56px; height: 56px; border-radius: 50%; background: var(--vh-primary); border: none; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.vh-chat-toggle-icon { font-size: 1.6rem; }
.vh-chat-panel { width: 340px; max-width: calc(100vw - 32px); height: 480px; max-height: calc(100vh - 120px); background: #fff; border: 1px solid var(--vh-border); border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,.2); margin-bottom: 12px; }
.vh-chat-panel[hidden] { display: none; }
.vh-chat-header { background: var(--vh-primary); color: #fff; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; }
.vh-chat-close { background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; }
.vh-chat-messages { flex: 1; overflow-y: auto; padding: 12px; background: var(--vh-bg); }
.vh-msg { max-width: 85%; padding: 8px 12px; border-radius: 12px; margin-bottom: 8px; font-size: .95rem; line-height: 1.45; word-wrap: break-word; }
.vh-msg-user { background: var(--vh-primary); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.vh-msg-bot, .vh-msg-staff { background: #fff; border: 1px solid var(--vh-border); color: var(--vh-ink); border-bottom-left-radius: 4px; }
.vh-chat-quick { display: flex; gap: 6px; padding: 8px 12px; border-top: 1px solid var(--vh-border); flex-wrap: wrap; }
.vh-chat-quick button { font-size: .8rem; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--vh-primary); background: #fff; color: var(--vh-primary); cursor: pointer; }
.vh-chat-input { display: flex; border-top: 1px solid var(--vh-border); }
.vh-chat-input input { flex: 1; border: none; padding: 12px; font-size: 1rem; }
.vh-chat-input button { background: var(--vh-primary); color: #fff; border: none; padding: 0 18px; cursor: pointer; }

@media (max-width: 480px) {
	.vh-chat-panel { width: calc(100vw - 32px); }
}
