body {
    background-color: #faf6f1;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #3b2b26;
}

.hero {
    background: linear-gradient(135deg, #6b4423, #8a5a3b);
    color: #fff;
    border-radius: 16px;
    padding: 60px 30px;
    margin-bottom: 30px;
}

.card-service {
    border: none;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: transform .15s ease;
    height: 100%;
}
.card-service:hover {
    transform: translateY(-4px);
}

.badge-status-pending { background-color: #f0ad4e; }
.badge-status-confirmed { background-color: #5bc0de; }
.badge-status-completed { background-color: #5cb85c; }
.badge-status-cancelled { background-color: #d9534f; }

.btn-brand {
    background-color: #6b4423;
    color: #fff;
    border: none;
}
.btn-brand:hover {
    background-color: #543319;
    color: #fff;
}

.auth-card {
    max-width: 480px;
    margin: 20px auto;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* ===================== Tối ưu cho điện thoại (màn hình dưới 576px) ===================== */
@media (max-width: 576px) {
    .hero {
        padding: 28px 16px;
        border-radius: 12px;
        margin-bottom: 20px;
    }
    .hero h1 {
        font-size: 1.5rem;
    }
    .hero p.fs-5 {
        font-size: 0.95rem !important;
    }
    .navbar-brand img {
        height: 32px !important;
    }
    .card, .card-service {
        border-radius: 12px;
    }
    h2.fw-bold {
        font-size: 1.35rem;
    }
    h3.fw-bold {
        font-size: 1.2rem;
    }
    /* Nút liên hệ nổi thu nhỏ lại một chút để không chiếm quá nhiều diện tích màn hình nhỏ */
    body > div[style*="position:fixed"][style*="right:20px"] a {
        width: 46px !important;
        height: 46px !important;
    }
    .table-responsive table {
        font-size: 0.85rem;
    }
    .container.py-4 {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

/* Các nút trong khối hero luôn xuống dòng gọn gàng, không bị tràn ngang trên màn hình hẹp */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

/* Ô tìm kiếm trên navbar: full width khi menu mở trên điện thoại, giới hạn width trên desktop */
.navbar-search-box {
    width: 100%;
}
@media (min-width: 992px) {
    .navbar-search-box {
        width: auto;
        max-width: 260px;
        margin-left: 1rem;
        margin-right: 1rem;
    }
}
