/* BETAVIET — components.css (header, footer, popup, floating) */

/* Header */
header { background: #fff; border-bottom: 1px solid #eee; }
.topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 40px; background: #fff;
}
.logo { height: 50px; }
.hotline-group { display: flex; align-items: center; gap: 18px; }
.hotline-icon { width: 38px; height: 38px; display: block; }
.hotline-text { display: flex; flex-direction: column; line-height: 1.2; }
.hotline-support { color: #222; font-size: 16px; font-weight: 400; }
.hotline-text .phone { color: #c97a2b; font-size: 20px; font-weight: bold; margin-top: 2px; }
.quote-btn {
    background: #c97a2b; color: #fff; border: none;
    padding: 10px 32px; border-radius: 24px; cursor: pointer;
    font-weight: 500; font-size: 17px; margin-left: 10px;
}
.quote-btn:hover { background: #b06a23; }

/* Main menu */
.main-menu { background: #fff; border-bottom: 1px solid #eee; }
.main-menu ul {
    list-style: none; display: flex; gap: 24px; margin: 0;
    padding: 0 40px; justify-content: center; align-items: center;
    overflow-x: auto;
}
.main-menu ul li a {
    display: block; padding: 14px 10px; color: #333;
    text-decoration: none; font-weight: 500; font-size: 16px;
    border-bottom: 2px solid transparent; transition: all 0.2s;
}
.main-menu ul li a:hover, .main-menu ul li a.active {
    color: #c97a2b; border-bottom: 2px solid #c97a2b;
}
.hamburger {
    display: none; flex-direction: column; justify-content: center; align-items: center;
    width: 44px; height: 44px; background: none; border: none; cursor: pointer;
}
.hamburger span {
    display: block; width: 28px; height: 3px; margin: 4px 0;
    background: #333; border-radius: 2px; transition: 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
    .main-menu {
        position: fixed; top: 60px; left: 0; width: 100vw;
        background: #fff; box-shadow: 0 2px 8px #0002; z-index: 1001;
        transform: translateY(-120%); transition: transform 0.3s;
    }
    .main-menu.open { transform: translateY(0); }
    .main-menu ul { flex-direction: column; align-items: flex-start; gap: 0; padding: 16px 0; }
    .main-menu ul li { width: 100%; }
    .main-menu ul li a { width: 100%; padding: 16px 24px; font-size: 18px; border-bottom: 1px solid #eee; }
    .hamburger { display: flex; }
    .desktop-hotline { display: none !important; }
    .logo { height: 38px; }
    .topbar { padding: 10px 12px; }
    .quote-btn { padding: 8px 16px; font-size: 15px; }
}

/* Footer */
.new-footer { background: #c97a2b; color: white; padding: 40px 0 20px; margin-top: 60px; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-title {
    font-size: 28px; font-weight: bold; margin: 0 0 40px 0;
    color: white; text-align: center; letter-spacing: 1px;
}
.footer-content {
    display: grid; grid-template-columns: 280px 1fr 1fr 280px;
    gap: 40px; margin-bottom: 30px; align-items: start;
}
.footer-logo-section { display: flex; flex-direction: column; align-items: flex-start; }
.footer-logo { height: 80px; margin-bottom: 20px; filter: brightness(0) invert(1); }
.company-info { font-size: 14px; line-height: 1.8; color: white; }
.footer-column h3 { font-size: 16px; font-weight: bold; margin-bottom: 20px; color: white; text-align: center; }
.location-section { margin-bottom: 20px; }
.location-title {
    font-weight: bold; font-size: 14px; margin-bottom: 8px;
    display: flex; align-items: center; gap: 8px; color: white;
}
.location-icon { color: #ff6b9d; font-size: 16px; }
.location-address { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.9); margin-left: 24px; }
.social-section h3 { text-align: center; margin-bottom: 25px; }
.social-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.social-link {
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.15); padding: 12px 8px;
    border-radius: 8px; color: white; font-size: 13px; font-weight: 500;
    border: 1px solid rgba(255,255,255,0.2); transition: all 0.3s;
}
.social-link:hover { background: rgba(255,255,255,0.25); color: white; transform: translateY(-2px); }
.social-link-icon { width: 16px; height: 16px; margin-right: 6px; fill: currentColor; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.3);
    padding-top: 20px; text-align: center; font-size: 13px;
    line-height: 1.5; color: rgba(255,255,255,0.9);
}
@media (max-width: 968px) {
    .footer-content { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .footer-logo-section { align-items: center; }
    .social-links { grid-template-columns: repeat(3, 1fr); max-width: 300px; margin: 0 auto; }
    .footer-title { font-size: 22px; }
}
@media (max-width: 768px) {
    .social-links { grid-template-columns: repeat(2, 1fr); max-width: 250px; }
}

/* Floating buttons */
.floating-buttons {
    position: fixed; right: 20px; bottom: 20px;
    display: flex; flex-direction: column; gap: 10px; z-index: 1000;
}
.floating-btn {
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s;
}
.floating-btn:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(0,0,0,0.4); }
.floating-btn.messenger { background: #0084ff; }
.floating-btn.zalo { background: #0068ff; }
.floating-btn.back-to-top { background: #4169e1; }
.floating-btn svg { width: 30px; height: 30px; fill: white; }
@media (max-width: 968px) {
    .floating-buttons { right: 15px; bottom: 15px; }
    .floating-btn { width: 50px; height: 50px; }
    .floating-btn svg { width: 25px; height: 25px; }
}

/* Popup CTA */
.popup-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6);
    display: flex; justify-content: center; align-items: center;
    z-index: 9999; opacity: 0; visibility: hidden; transition: all 0.3s;
}
.popup-overlay.show { opacity: 1; visibility: visible; }
.popup-container {
    background: white; border-radius: 16px; max-width: 480px;
    width: 90%; max-height: 90vh; overflow-y: auto;
    transform: scale(0.7); transition: transform 0.3s;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.popup-overlay.show .popup-container { transform: scale(1); }
.popup-header {
    background: linear-gradient(135deg, #c97a2b, #d4864a);
    color: white; padding: 24px; border-radius: 16px 16px 0 0;
    text-align: center; position: relative;
}
.popup-title { font-size: 22px; font-weight: bold; margin: 0 0 8px; color: white; }
.popup-subtitle { font-size: 14px; opacity: 0.9; margin: 0; }
.close-btn {
    position: absolute; top: 16px; right: 16px; width: 32px; height: 32px;
    border-radius: 50%; background: rgba(255,255,255,0.2);
    border: none; color: white; font-size: 18px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.close-btn:hover { background: rgba(255,255,255,0.3); }
.popup-content { padding: 30px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 600; color: #333; font-size: 14px; }
.form-input {
    width: 100%; padding: 12px 16px; border: 2px solid #e0e0e0;
    border-radius: 8px; font-size: 16px; transition: all 0.3s;
}
.form-input:focus { outline: none; border-color: #c97a2b; box-shadow: 0 0 0 3px rgba(201,122,43,0.1); }
.submit-btn {
    width: 100%; background: linear-gradient(135deg, #c97a2b, #d4864a);
    color: white; border: none; padding: 14px; border-radius: 8px;
    font-size: 16px; font-weight: 600; cursor: pointer; margin-top: 10px;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,122,43,0.3); }
.submit-btn:disabled { background: #ccc; cursor: not-allowed; }
.loading {
    display: inline-block; width: 16px; height: 16px;
    border: 2px solid #fff; border-radius: 50%; border-top-color: transparent;
    animation: spin 1s ease-in-out infinite; margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.success-message, .error-message {
    padding: 16px; border-radius: 8px; margin-bottom: 20px; display: none;
}
.success-message { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.error-message { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.success-message.show, .error-message.show { display: block; }
.contact-info { background: #f8f9fa; padding: 20px; border-radius: 8px; margin-bottom: 20px; text-align: center; }
.hotline-text-popup { margin: 0; color: #666; font-size: 14px; }
.hotline-number { color: #c97a2b; font-size: 20px; font-weight: bold; margin: 8px 0 0; }
