:root {
    --primary-red: #e60012;
    --primary-hover: #cc0010;
    --bg-page: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #64748b;
}

body {
    background-color: var(--bg-page);
}

.srv-detail-container {
    max-width: 1240px;
    margin: 20px auto 60px;
    padding: 0 16px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 15.5px;
    line-height: 1.6;
    color: #334155;
    box-sizing: border-box;
}

.srv-breadcrumb {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.srv-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}
.srv-breadcrumb a:hover {
    color: var(--text-dark);
}

/* BỐ CỤC 2 CỘT DESKTOP */
.srv-main-grid {
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 24px;
    align-items: start;
}

.srv-left-sticky {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 10;
}

/* CARD PHẲNG HIỆN ĐẠI (BORDERLESS) */
.srv-card-flat {
    background: #ffffff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    overflow: hidden;
}

.srv-detail-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.srv-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0f9ff;
    color: #0284c7;
    font-size: 12.5px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.srv-detail-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px;
    line-height: 1.4;
    word-break: normal;
    overflow-wrap: break-word;
}

.srv-detail-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-red);
    margin-bottom: 2px;
}

.srv-vat-note {
    font-size: 13.5px;
    color: #16a34a;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* GRID THÔNG SỐ VÀ TIỆN ÍCH */
.srv-commit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
    padding: 14px;
    background: #f8fafc;
    border-radius: 12px;
}
.srv-commit-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #334155;
}

/* CỤM NÚT BẤM - LUÔN HIỂN THỊ ĐẦY ĐỦ TRÊN MỌI THIẾT BỊ */
.srv-btn-group {
    display: flex !important;
    gap: 10px;
    margin-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
}

.srv-btn-order {
    flex: 1.4;
    padding: 13px 18px;
    background: var(--primary-red);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(230,0,18,0.25);
    transition: background 0.15s ease;
}
.srv-btn-order:hover { 
    background: var(--primary-hover); 
}

.srv-btn-zalo {
    flex: 1;
    padding: 13px 16px;
    background: #eff6ff;
    color: #0284c7;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.15s ease;
}
.srv-btn-zalo:hover { 
    background: #dbeafe; 
}

/* NỘI DUNG CÔNG VIỆC CỘT PHẢI */
.srv-work-content {
    background: #ffffff;
    border: none;
    border-radius: 16px;
    padding: 26px 28px;
    line-height: 1.8;
    font-size: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.srv-work-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 16px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
}
.srv-work-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 10px;
}

/* TỐI ƯU GIAO DIỆN DI ĐỘNG & IPAD FULL VIỀN 100%, KHÔNG BO TRÒN */
@media (max-width: 900px) {
    .srv-detail-container {
        margin: 0 auto 50px;
        padding: 0;
        width: 100%;
    }
    .srv-breadcrumb {
        padding: 12px 16px;
        margin-bottom: 0;
    }
    .srv-main-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .srv-left-sticky {
        position: static;
        gap: 12px;
    }
    /* Triệt tiêu hoàn toàn góc bo và viền để tràn viền mép màn hình */
    .srv-card-flat, .srv-work-content {
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    .srv-detail-img {
        height: 230px;
        border-radius: 0 !important;
    }
    .srv-detail-title {
        font-size: 1.35rem;
        line-height: 1.35;
    }
    .srv-commit-grid {
        border-radius: 8px;
        padding: 12px;
    }
    .srv-btn-group {
        flex-direction: row; /* Giữ 2 nút song song vừa vặn trên cùng 1 hàng */
    }

    #bookingModal > div {
        margin: 0 !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        display: flex;
        flex-direction: column;
    }
    #bookingModal form {
        flex: 1;
        overflow-y: auto;
        padding: 18px 16px 36px !important;
    }
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}
